CN103227729B - PPPoE dial user name and code error fault cues method and device - Google Patents

PPPoE dial user name and code error fault cues method and device Download PDF

Info

Publication number
CN103227729B
CN103227729B CN201310138415.0A CN201310138415A CN103227729B CN 103227729 B CN103227729 B CN 103227729B CN 201310138415 A CN201310138415 A CN 201310138415A CN 103227729 B CN103227729 B CN 103227729B
Authority
CN
China
Prior art keywords
value
fault cues
error identification
password
main frame
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.)
Active
Application number
CN201310138415.0A
Other languages
Chinese (zh)
Other versions
CN103227729A (en
Inventor
王宏伟
全登平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN JIXIANG TENDA TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN JIXIANG TENDA TECHNOLOGY 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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=48837998&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=CN103227729(B) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by SHENZHEN JIXIANG TENDA TECHNOLOGY Co Ltd filed Critical SHENZHEN JIXIANG TENDA TECHNOLOGY Co Ltd
Priority to CN201310138415.0A priority Critical patent/CN103227729B/en
Publication of CN103227729A publication Critical patent/CN103227729A/en
Application granted granted Critical
Publication of CN103227729B publication Critical patent/CN103227729B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

<b> the present invention relates to PPPoE dial user name and code error fault cues method and device.The method comprises the following steps: main frame sends the authentication data packet being used for authentication of users name and password to access server; After main frame receives the authentication result packet that described access server returns, if described authentication result packet is negative response bag NAK, then the value arranging error identification is X; Main frame judges the value of an error identification second every M, if the value of error identification is X, then in the dialing page, shows the prompting of username and password mistake.</b><bGreatT.Gre aT.GT dials the page can be wrong with the input of the username and password of easy-to-understand, straightforward mode reminding user according to error identification, user can recognize very intuitively because the username and password input of oneself is wrong and cause can not enter net, thus correct username and password can be inputted in time, surf the Net smoothly.</b>

Description

PPPoE dial user name and code error fault cues method and device
Technical field
The present invention relates to PPPoE dial technology.
Background technology
At present, in network access technique field, the authentication techniques of employing mainly contain PPPoE, 802.1X, web authentication etc., wherein use the most general in the field of communications with PPPoE technology.
PPPoE dial-up access network is divided into two stages, discovery phase (Discoverystage) and PPP session stage (PPPSessionStage).Wherein:
(1) discovery phase is mainly divided into 4 steps, include main frame (host) and send initialized broadcast packet (PADI, PPPoEActiveDiscoveryInitiationpacket), one or more access server (AccessConcentrator) return response bag (PADO, PPPoEActiveDiscoveryOfferpacket), main frame sends the unicast packet (PADR of a session request again, PPPoEActiveDiscoveryRequestpacket), selected access server again loopback session confirms bag (PADS, PPPoEActiveDiscoverySession-confirmationpacket).
After completing these steps, the connection of a session (Session) will be set up in the two ends participating in certification, and know the ethernet mac address of pppoe session indications (SESSION_ID) corresponding to this connection and the other side, these parameters will define this PPPoESession uniquely and connect.After main frame receives this session confirmation (PADS) bag, main frame and access server enter PPP session stage by continuing.After this data send with mode of unicast, and in whole conversation procedure, PPPoESESSION_ID does not change.
After session connection is set up, main frame or access server at any time all can send a PPPoE and remove bag (PADT, PPPoEActiveDiscoveryTerminatepacket) to remove this session connection.After receiving PADT bag, any PPP information stream does not allow to have sent in this session connection.
(2) PPP session stage (PPPSessionstage), is mainly divided into link establishment (LinkEstablishmentPhase), Certificate Authority (AuthenticationPhase), network layer protocol to consult the link such as (Network-LayerProtocolPhase), link down (LinkTerminationPhase).Wherein, Certificate Authority is optional link.
Link establishment is that session both sides are by exchanging configuration data bag, receiving drive test to try and send confirmation bag and complete; For needing the link of certification (being generally needs in telecom operation), after link establishment, the Authentication and authorization of identity need be carried out immediately.Require the retry mechanism supporting certification, still identify after the trial exceeding certain number of times, this link will be removed.
After Certificate Authority passes through, network layer protocol (as IP, IPX or AppleTalk etc.) will by corresponding NCP(NetworkControlProtocol) choose and configure; Afterwards, corresponding Network layer Protocol Data bag just can be carried in this PPP connection.
But, in Certificate Authority link, usually user is needed to input username and password to carry out certification, such as, after user sets the username and password of PPPoE in the router, can not ensure it is correct, if input error, router can not dial-up success, and the dialing page is also shown as in connection always, any fault cues, not which results in user and does not know failure cause.
According to investigations, in the user using router but can not normally surf the Net, there is the user of 80% all because username and password inputs wrong causing.This problem is often difficult to discover, and user can spend several hours usually, and even the time of one day goes the problem of groping where to go out on earth, and to finally still can not enter net, cause a large amount of wastes of time and energy, and mood is irritated, depressed.
Most user even can think that router has fault, and application after-sale service, wastes the time of user oneself and router businessman, energy, disposal cost.
Summary of the invention
The object of the invention is to propose a kind of PPPoE dial user name and code error fault cues method, it can solve current router cannot dial-up success because of username and password mistake, but there will not be the problem of any fault cues.
In order to achieve the above object, the technical solution adopted in the present invention is as follows:
PPPoE dial user name and code error fault cues method, it comprises the following steps:
A, when main frame and access server enter the Certificate Authority link of PPP session stage, send the authentication data packet being used for authentication of users name and password to access server;
After B, main frame receive the authentication result packet that described access server returns, if described authentication result packet is negative response bag NAK, then the value arranging error identification is X, and returns discovery phase, to re-execute steps A; If described authentication result packet for determining response packet ACK, then removes the value of error identification;
C, dialing the page in, obtain an error identification second every M, if the value of error identification is X, then show the prompting of username and password mistake, if the value of error identification is not X, then do not show fault cues; Wherein, M be greater than 0 real number, X is character
Optionally, in step C, before the value of misjudgment mark, also have the following steps: judge whether dial mode is PPPoE, if not, then do not show fault cues, if so, then continue to judge whether successful access network, if, then do not show fault cues, if not, just enter the value step of misjudgment mark.
Optionally, M=5.
The invention allows for a kind of PPPoE dial user name for realizing above-mentioned PPPoE dial user name and code error fault cues method and code error fault cues device, it comprises with lower module:
Sending module, during for Certificate Authority link after main frame and access server enter PPP session stage, sends the authentication data packet being used for authentication of users name and password to access server;
Error identification arranges module, and after receiving for main frame the authentication result packet that described access server returns, if described authentication result packet is negative response bag NAK, then the value arranging error identification is X, and returns discovery phase, to re-execute steps A; If described authentication result packet for determining response packet ACK, then removes the value of error identification;
Fault cues module, in the dialing page, obtains an error identification every M, if the value of error identification is X, then shows the prompting of username and password mistake, if the value of error identification is not X, then do not show fault cues second; Wherein, M be greater than 0 real number, X is character.
Optionally, in fault cues module, before the value of misjudgment mark, also have the following steps: judge whether dial mode is PPPoE, if not, then do not show fault cues, if so, then continue to judge whether successful access network, if, then do not show fault cues, if not, just enter the value step of misjudgment mark.
X can be 1,2,3 , the character such as #, %, *, a, b, c.
The present invention has following beneficial effect:
After PPPoE dialing, the authentication result packet that access server is beamed back is to judge that whether username and password is correct, if incorrect, just error identification is set, the dialing page can be wrong with the input of the username and password of easy-to-understand, straightforward mode reminding user according to error identification, user can recognize very intuitively because the username and password input of oneself is wrong and cause can not enter net, thus correct username and password can be inputted in time, surf the Net smoothly.
Accompanying drawing explanation
Fig. 1 is the PPPoE dial user name of present pre-ferred embodiments and the principle flow chart of code error fault cues method;
Fig. 2 is the PPPoE dial user name of present pre-ferred embodiments and the software flow pattern arranging error identification of code error fault cues method;
Fig. 3 is the software flow pattern of the PPPoE dial user name of present pre-ferred embodiments and the fault cues of code error fault cues method.
Embodiment
Below, by reference to the accompanying drawings and embodiment, the present invention is described further.
As shown in Figure 1, a kind of PPPoE dial user name and code error fault cues method, it comprises the following steps:
Step 1, enter PPP session stage at main frame and access server, first carry out ppp link and to set up and LCP consults, after success, enter Certificate Authority link, main frame sends the authentication data packet for authentication of users name and password to access server;
After step 2, main frame receive the authentication result packet that described access server returns, if described authentication result packet is negative response bag NAK(NegativeAcknowledge), the value then arranging error identification is 2, and returns discovery phase, to re-execute steps A; If described authentication result packet is for determining response packet ACK(Acknowledge), then remove the value of error identification;
Step 3, dialing the page in, every 5 seconds judge once, judge whether dial mode is PPPoE, if not, then do not show fault cues, if, then continue to judge whether successful access network, if so, then do not show fault cues, if not, then continue the value of misjudgment mark, if the value of error identification is 2, then in the dialing page, show the prompting of username and password mistake, if the value of error identification is not 2, then do not show fault cues.
Composition graphs 2 and Fig. 3 are the software flow pattern of the PPPoE dial user name and code error fault cues method that realize the present embodiment.
As shown in Figure 2, the step arranging error identification is as follows:
Step 11, PPPoE dial beginning, arrange err_check=0.Wherein, err_check represents error identification.Err_check=0 then represents that the value of error identification is 0, is equivalent to remove error identification.
Step 12, PPPoE dial-up success complete discovery phase, and enter the Certificate Authority link of PPP session stage.
Step 13, main frame send the authentication data packet being used for authentication of users name and password to access server.
Step 14, main frame receive the authentication result packet that access server returns.
Step 15, main frame judge described authentication result packet, if authentication result packet is negative response bag NAK, then perform step 16, if authentication result packet is for determining reply data bag, then perform step 17.
Step 16, error identification is set, makes err_check=2, and return step 12.
Step 17, consult successfully, network protocol layer is chosen by corresponding NCP and is configured, and gets the information such as IP, subnetmask, gateway, DNS, and arranges err_check=0, and error identification is removed.
As shown in Figure 3, the step of fault cues is as follows:
Step 21, dialing the page in, main frame every 5 seconds judge once, perform step 22.
Step 22, judge whether dial mode is PPPoE, if then perform step 23, then perform step 26 if not.
Step 23, judge whether successful access network, if then perform step 26, then perform step 24 if not.
Step 24, judge whether err_check=2, if then perform step 25, then perform step 26 if not.
The prompting of step 25, dialing page display username and password mistake, and continue to perform step 21, ensure the value obtaining err_check in time.
Step 26, do not show fault cues.
This enforcement also proposed a kind of PPPoE dial user name for realizing above-mentioned PPPoE dial user name and code error fault cues method and code error fault cues device, and it comprises with lower module:
Sending module, during for entering the Certificate Authority link of PPP session stage at main frame and access server, main frame sends the authentication data packet being used for authentication of users name and password to access server;
Error identification arranges module, and after receiving for main frame the authentication result packet that described access server returns, if described authentication result packet is negative response bag NAK, then the value arranging error identification is X, and returns discovery phase, to re-execute steps A; If described authentication result packet for determining response packet ACK, then removes the value of error identification;
Fault cues module, in the dialing page, judged once every 5 seconds, judge whether dial mode is PPPoE, if not, does not then show fault cues, if so, then continue to judge whether successful access network, if, then do not show fault cues, if not, then continue the value of misjudgment mark, if the value of error identification is 2, in the dialing page, then show the prompting of username and password mistake, if the value of error identification is not 2, then do not show fault cues.
In addition, in above-described embodiment, described main frame is router.
For a person skilled in the art, according to technical scheme described above and design, other various corresponding change and distortion can be made, and all these change and distortion all should belong within the protection range of the claims in the present invention.

Claims (4)

1.PPPoE dial user name and code error fault cues method, is characterized in that, comprise the following steps:
A, when main frame and access server enter the Certificate Authority link of PPP session stage, send the authentication data packet being used for authentication of users name and password to access server;
After B, main frame receive the authentication result packet that described access server returns, if described authentication result packet is negative response bag NAK, then the value arranging error identification is X, and returns discovery phase, to re-execute steps A; If described authentication result packet for determining response packet ACK, then removes the value of error identification;
C, dialing the page in, obtain an error identification second every M, if the value of error identification is X, then show the prompting of username and password mistake, if the value of error identification is not X, then do not show fault cues; Wherein, M be greater than 0 real number, X is character;
In step C, before the value of misjudgment mark, also have the following steps: judge whether dial mode is PPPoE, if not, does not then show fault cues, if, then continue to judge whether successful access network, if so, then do not show fault cues, if not, the value step of misjudgment mark is just entered.
2. PPPoE dial user name as claimed in claim 1 and code error fault cues method, is characterized in that, M=5.
3.PPPoE dial user name and code error fault cues device, is characterized in that, comprise with lower module:
Sending module, during for entering the Certificate Authority link of PPP session stage at main frame and access server, main frame sends the authentication data packet being used for authentication of users name and password to access server;
Error identification arranges module, and after receiving for main frame the authentication result packet that described access server returns, if described authentication result packet is negative response bag NAK, then the value arranging error identification is X, and returns discovery phase, to re-execute steps A; If described authentication result packet for determining response packet ACK, then removes the value of error identification;
Fault cues module, in the dialing page, obtains an error identification every M, if the value of error identification is X, then shows the prompting of username and password mistake, if the value of error identification is not X, then do not show fault cues second; Wherein, M be greater than 0 real number, X is character;
In fault cues module, before the value of misjudgment mark, also have the following steps: judge whether dial mode is PPPoE, if not, does not then show fault cues, if, then continue to judge whether successful access network, if so, then do not show fault cues, if not, the value step of misjudgment mark is just entered.
4. PPPoE dial user name as claimed in claim 3 and code error fault cues device, is characterized in that, M=5.
CN201310138415.0A 2013-04-19 2013-04-19 PPPoE dial user name and code error fault cues method and device Active CN103227729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310138415.0A CN103227729B (en) 2013-04-19 2013-04-19 PPPoE dial user name and code error fault cues method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310138415.0A CN103227729B (en) 2013-04-19 2013-04-19 PPPoE dial user name and code error fault cues method and device

Publications (2)

Publication Number Publication Date
CN103227729A CN103227729A (en) 2013-07-31
CN103227729B true CN103227729B (en) 2016-01-13

Family

ID=48837998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310138415.0A Active CN103227729B (en) 2013-04-19 2013-04-19 PPPoE dial user name and code error fault cues method and device

Country Status (1)

Country Link
CN (1) CN103227729B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949192A (en) * 2020-08-21 2020-11-17 维沃移动通信有限公司 Password input prompting method and device and electronic equipment
CN114338218B (en) * 2022-01-04 2023-06-02 四川九州电子科技股份有限公司 PPPoE dialing method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968094A (en) * 2006-11-23 2007-05-23 华为技术有限公司 Method, system and server for prompting the cause for user terminal authentication failure
CN101262368A (en) * 2008-03-17 2008-09-10 中兴通讯股份有限公司 Method and device for configuration and configuration in home gateway routing mode
CN101267304A (en) * 2007-03-13 2008-09-17 华为技术有限公司 A network access privilege control method, device and system
CN101350720A (en) * 2007-07-18 2009-01-21 中国移动通信集团公司 Dynamic cipher authentication system and method
CN101895526A (en) * 2009-05-20 2010-11-24 中国电信股份有限公司 Dial-up authentication method and system
CN102136966A (en) * 2010-12-23 2011-07-27 广州智帮通讯技术有限公司 ADSL (Asymmetrical Digital Subscriber Line) dialing process monitoring and intelligent analyzing method
CN102223270A (en) * 2011-07-14 2011-10-19 深圳市共进电子有限公司 Method for detecting net playing mode of router

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968094A (en) * 2006-11-23 2007-05-23 华为技术有限公司 Method, system and server for prompting the cause for user terminal authentication failure
CN101267304A (en) * 2007-03-13 2008-09-17 华为技术有限公司 A network access privilege control method, device and system
CN101350720A (en) * 2007-07-18 2009-01-21 中国移动通信集团公司 Dynamic cipher authentication system and method
CN101262368A (en) * 2008-03-17 2008-09-10 中兴通讯股份有限公司 Method and device for configuration and configuration in home gateway routing mode
CN101895526A (en) * 2009-05-20 2010-11-24 中国电信股份有限公司 Dial-up authentication method and system
CN102136966A (en) * 2010-12-23 2011-07-27 广州智帮通讯技术有限公司 ADSL (Asymmetrical Digital Subscriber Line) dialing process monitoring and intelligent analyzing method
CN102223270A (en) * 2011-07-14 2011-10-19 深圳市共进电子有限公司 Method for detecting net playing mode of router

Also Published As

Publication number Publication date
CN103227729A (en) 2013-07-31

Similar Documents

Publication Publication Date Title
US8108903B2 (en) Arrangement and a method relating to IP network access
KR101019943B1 (en) Method and apparatus for supporting different authentication credentials
KR100996983B1 (en) Method and apparatus enabling reauthentication in a cellular communication system
CN101867476B (en) 3G virtual private dialing network user safety authentication method and device thereof
CN101895526B (en) Dial-up authentication method and system
CN103973658A (en) Static user terminal authentication processing method and device
JP2005339093A (en) Authentication method, authentication system, authentication proxy server, network access authenticating server, program, and storage medium
EP2757819A1 (en) Device, system and method using eap for external authentication
CN108307694B (en) Network connection information acquisition method and router
CN103067337A (en) Identity federation method, identity federation intrusion detection &amp; prevention system (IdP), identity federation service provider (SP) and identity federation system
CN106027565A (en) PPPOE (Point-to-Point Protocol over Ethernet)-based Intranet-Extranet uniform authentication method and device
Beadles et al. Criteria for Evaluating Network Access Server Protocols
CN109104475A (en) Connect restoration methods, apparatus and system
WO2010111922A1 (en) Method and apparatus for obtaining address of video transmission management server
CN103533505B (en) A kind of note transmission method, server, system and mobile terminal
CN106301847B (en) Access point interface configuration recovery method and device and home gateway
CN103227729B (en) PPPoE dial user name and code error fault cues method and device
US20100107231A1 (en) Failure indication
CN103905236A (en) Terminal positioning method, system and device
JP5941465B2 (en) Limiting resources consumed by rejected subscriber stations
WO2013174310A1 (en) Dialing mobile terminal and dialing method thereof
CN101087232B (en) An access method, system and device based on Ethernet point-to-point protocol
Cisco X.25 over TCP Profiles
CN103634221A (en) Access control method of environmental protection and technology service network
CN101902483B (en) Network service realization method for portable satellite station

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant