CN109005146A - A kind of method and gateway obtaining account information - Google Patents

A kind of method and gateway obtaining account information Download PDF

Info

Publication number
CN109005146A
CN109005146A CN201810563936.3A CN201810563936A CN109005146A CN 109005146 A CN109005146 A CN 109005146A CN 201810563936 A CN201810563936 A CN 201810563936A CN 109005146 A CN109005146 A CN 109005146A
Authority
CN
China
Prior art keywords
gateway
message
pppoe
protocol stack
server
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
CN201810563936.3A
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.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia 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
Application filed by Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201810563936.3A priority Critical patent/CN109005146A/en
Publication of CN109005146A publication Critical patent/CN109005146A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Abstract

The present embodiments relate to a kind of methods and gateway for obtaining account information, when solving to replace home gateway in the prior art, need user manually by original account name and Password Input into gateway, the cumbersome problem of process.The PPPoE message that second gateway is sent is reported to the PPPoE server in the first gateway by the kernel protocol stack in the first gateway of the embodiment of the present invention;PPPoE server in first gateway carries out LCP after receiving PPPoE message with the second gateway to be negotiated to determine authentication mode;PPPoE server in first gateway receives the internet account information that the second gateway is sent by kernel protocol stack according to determining authentication mode.It since the PPPoE server in the first gateway can receive internet account information, does not need user and is manually entered username and password, keep replacement gateway procedures more simple and convenient.

Description

A kind of method and gateway obtaining account information
Technical field
The present invention relates to field of communication technology, in particular to a kind of method and gateway for obtaining account information.
Background technique
Network has become a part in life, currently, being fitted with broadband in most family.Home gateway conduct Domestic consumer realizes the core equipment of broadband access, occupies an important position in people's daily life.
In life, user is to access when initially handling broadband services to home gateway.It is accessing When, the broadband account and password mainly provided according to operator completes the configuration of network access.But match completing network access After setting, does not need substantially to carry out sign-on access to home gateway, account and password will be forgotten over time, Wu Fadeng Record home gateway.Meanwhile some users, when handling broadband services, username and password used is all by bandwidth operator What operation maintenance personnel was configured, it does not all need user oneself and accesses home gateway, therefore user does not know that account and password.
When using home gateway, there is the demand of replacement home gateway in rear extended meeting, and new home gateway is carrying out When broadband account configures, due to infrequently accessing, lead to forget username and password when transacting business originally;Or it initially does Account and password are arranged by the operation maintenance personnel of operator when reason business, user can not find Internet user's name of operator's offer and close Code.It just needs user to seek advice to the customer service of operator at this time, determines username and password when handling.It is seeked advice to operator When, it needs to carry out the certification of identity, just learns the username and password for the broadband services oneself handled by many steps, and It is manually entered into new gateway after determining username and password.
During replacing home gateway, if user remembers initial username and password, need user name and close Code is input in new gateway, in input, if username and password is comparatively laborious, then and it is possible that the case where inputing by mistake, Lead to not the replacement for carrying out gateway, needs to input username and password again, process is more troublesome.
In conclusion needing user manually by original account name and password when replacing home gateway in the prior art It is input in gateway, process is cumbersome.
Summary of the invention
The present invention provides a kind of method and gateway for obtaining account information, replaces home gateway in the prior art to solve When, need user manually by original account name and Password Input into gateway, the cumbersome problem of process.
In a first aspect, the embodiment of the present invention provides a kind of method for obtaining account information, this method comprises:
PPPoE (the Point to Point Protocol that kernel protocol stack in first gateway sends the second gateway Over Ethemet, the PPP(Point to Point Protocol) based on Ethernet) message is reported to the PPPoE server in the first gateway;
PPPoE server in first gateway carries out LCP (Link with the second gateway after receiving PPPoE message Control Protocol, Link Control Protocol) negotiate to determine authentication mode;
PPPoE server in first gateway receives the second gateway hair by kernel protocol stack according to determining authentication mode The internet account information sent.
The PPPoE message that second gateway is sent is reported to the first net by the above method, the kernel protocol stack in the first gateway The PPPoE server in the Central Shanxi Plain, PPPoE server in first gateway is after receiving the PPPoE message with described Two gateways, which carry out LCP, to be negotiated to determine authentication mode, and the PPPoE server in first gateway is logical according to determining authentication mode It crosses kernel protocol stack and receives the internet account information that the second gateway is sent.Kernel protocol stack in the present invention in the first gateway can be with The PPPoE message of the second gateway transmission is received, and the PPPoE message is sent to the service of the PPPoE in first gateway Device allows the PPPoE server to hold consultation with the second gateway, after determining authentication mode, uses determining authenticating party Formula receives the internet account information that the second gateway is sent.Since the PPPoE server in the present invention in the first gateway can receive Internet account information, it is automatic to obtain, it does not need user and is manually entered username and password, keep replacement gateway procedures more simple It is convenient.
In one possible implementation, the Ethernet chip in the first gateway passes through LAN (Local Area Network, local network) mouth detects level signal, it is determined that the WAN (Wide of the LAN mouth and the second gateway of the first gateway Area Network, wide area network) mouth is connected, and the first gateway of user and the second gateway is notified to connect;User touches after determining connection Operational order is sent out, the management module in the first gateway can receive the operational order of user, and instruction is opened depending on the user's operation PPPoE server is opened, starting PPPoE obtains internet account and password;The kernel protocol stack in the first gateway is by the second net at this time It closes the PPPoE message sent and is reported to the PPPoE server in the first gateway.
The above method is connected by cable between the LAN mouth of the first gateway and the WAN mouth of the second gateway, allows user Log on to the page of the first gateway, and determine the account information for obtaining PPPoE network access on the page, at this time the first net Pass receives user operation instruction, opens PPPoE server, obtains the account information of PPPoE network access, while the second gateway By WAN mouthfuls of transmission PPPoE messages, it ensure that the second gateway can send PPPoE message to the first gateway by WAN mouthfuls;The PPPoE server in one gateway receives the PPPoE message, and does corresponding processing to the message received.
In one possible implementation, the kernel protocol stack in the first gateway is logical by LAN mouthfuls of the second gateways of reception Cross the PPPoE message of WAN mouthfuls of transmissions;And the PPPoE message received is parsed, determine the message of the PPPoE message Type;The type of message of the determining PPPoE message is compared with preset type of message, however, it is determined that described preset Include the type of message of the PPPoE message in type of message, then the PPPoE message is reported to the PPPoE in the first gateway Server.
The above method, the kernel protocol stack in first gateway parse the PPPoE message received, and determination connects The type of message of the PPPoE message received, and judge the type of message of the PPPoE message received whether in preset message class In type, determine in preset type of message, then the message received is reported to by the kernel protocol stack in first gateway The PPPoE server, required message when guaranteeing the message that the PPPoE server receives to obtain account information.
In one possible implementation, the PPPoE report that the PPPoE server identification in the first gateway receives Type of message in text is after finding type, to generate the response message comprising session identification, the response message is passed through described Kernel protocol stack returns to second gateway;And it is carried out according to the session identification in the response message with second gateway LCP negotiates to determine authentication mode.
The above method, the PPPoE server in first gateway can identify the PPPoE message received, and according to knowledge Not Chu type of message make corresponding response message, message can be smoothly carried out between first gateway and the second gateway Transmission, hold consultation, so that first gateway can smoothly receive the message comprising account information.
In one possible implementation, the PPPoE server in the first gateway passes through according to determining authentication mode Kernel protocol stack receive the second gateway send internet account information, when determine authentication mode be PAP (Password Authentication Protocol, password identify agreement) authentication mode when, the PPPoE server in the first gateway receives institute State the internet account information that the second gateway is sent with clear-text way.
The above method, the PPPoE server in first gateway can receive the internet account sent to the second gateway Information, user does not need to carry out authentication to determine online account information, to user with convenience.
In one possible implementation, the PPPoE server in the first gateway passes through according to determining authentication mode After kernel protocol stack receives the internet account information that the second gateway is sent, the kernel protocol stack in the first gateway services PPPoE The authentification failure response message that device returns is sent to the second gateway, so that the second gateway stops sending PPPoE message.
The above method, after the PPPoE server in first gateway receives online account information, to described second Gateway, which sends authentification failure response message, makes the second gateway stop sending PPPoE message to first gateway, saves the second net While closing energy, guarantee will not interfere the first gateway.
Second aspect, the embodiment of the present invention provide it is a kind of obtain account information the first gateway, first gateway include: to A few processing unit and at least one storage unit, wherein the storage unit is stored with program code, when described program generation When code is executed by the processing unit, so that the processing unit executes following process:
It is reported in the first gateway using the PPPoE message based on Ethernet that kernel protocol stack sends the second gateway PPPoE server;
LCP negotiation determination is carried out with second gateway after receiving the PPPoE message using PPPoE server to recognize Card mode;
Second net is received by the kernel protocol stack according to the determining authentication mode using PPPoE server Close the internet account information sent.
The third aspect, the embodiment of the present invention provide another the first gateway for obtaining account information, which includes:
The PPPoE message based on Ethernet positioned at the reporting module of kernel protocol stack, for sending the second gateway Offer the PPPoE server in the first gateway;
Positioned at the negotiation module of PPPoE server, for after receiving the PPPoE message with second gateway into Row LCP negotiates to determine authentication mode;
Positioned at the receiving module of PPPoE server, for passing through the core protocol according to the determining authentication mode Stack receives the internet account information that second gateway is sent.
In addition, second aspect technical effect brought by any implementation into the third aspect can be found in first aspect Technical effect brought by middle difference implementation, details are not described herein again.
These aspects or other aspects of the application can more straightforward in the following description.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of method flow diagram for obtaining account information provided in an embodiment of the present invention;
Fig. 2 is the network connection schematic diagram of the first gateway provided in an embodiment of the present invention and the second gateway;
Fig. 3 is page internet account information configuring methods schematic diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of holistic approach flow chart for obtaining account information provided in an embodiment of the present invention;
Fig. 5 is a kind of the first gateway architecture schematic diagram for obtaining account information provided in an embodiment of the present invention;
Fig. 6 is another the first gateway architecture schematic diagram for obtaining account information provided in an embodiment of the present invention.
Specific embodiment
The application is described in further detail below in conjunction with attached drawing.Concrete operation method in embodiment of the method It can be applied in Installation practice or system embodiment.Wherein, in the description of the present application, unless otherwise indicated, " multiple " It is meant that two or more.
Network has become for a part in living, and general home-use network is all broadband connection to passive fiber equipment The upper more people of formation can connect the network used simultaneously.Domestic consumer realizes that the core equipment of broadband access is home gateway.? In some cases, domestic consumer needs replacing home gateway, but when replacing home gateway, needs username and password is defeated Enter into new home gateway, and stops the use of old home gateway.It is that user is determining in input username and password It carries out being manually entered into new home gateway after username and password, if having forgotten username and password, it is also necessary to operation Quotient carries out authentication and obtains username and password, more troublesome.
Therefore the present invention provides one kind and does not need that online account information can be obtained by operator's progress authentication Method.
The business scenario of the embodiment of the present application description is the technical solution in order to more clearly illustrate the embodiment of the present application, The restriction for technical solution provided by the embodiments of the present application is not constituted, those of ordinary skill in the art are it is found that with network New business scene appearance, technical solution provided by the embodiments of the present application is equally applicable for similar technical problem.
For above-mentioned scene, a kind of method flow diagram obtaining account information provided in an embodiment of the present invention, such as Fig. 1 institute Show, specifically comprises the following steps:
Step 100, the PPPoE message that the second gateway is sent is reported to the first gateway by the kernel protocol stack in the first gateway In PPPoE server;
Step 101, the PPPoE server in first gateway is after receiving the PPPoE message with described second Gateway, which carries out LCP, to be negotiated to determine authentication mode;
Step 102, the PPPoE server in first gateway passes through the kernel according to the determining authentication mode Protocol stack receives the internet account information that second gateway is sent.
The PPPoE message that second gateway is sent is reported to first by the kernel protocol stack in the first gateway of the embodiment of the present invention PPPoE server in gateway, PPPoE server in first gateway after receiving the PPPoE message with it is described Second gateway, which carries out LCP, to be negotiated to determine authentication mode, and the PPPoE server in first gateway is according to the determining certification Mode receives the internet account information that second gateway is sent by the kernel protocol stack.In the present invention in the first gateway Kernel protocol stack can receive the PPPoE message of the second gateway transmission, and the PPPoE message is sent to first gateway In PPPoE server, so that the PPPoE server is held consultation with the second gateway, after determining authentication mode, use Determining authentication mode receives the internet account information that the second gateway is sent.Due to the PPPoE clothes in the present invention in the first gateway Business device can receive internet account information, automatic to obtain, and does not need user and is manually entered username and password, make to replace gateway Process is more simple and convenient.
Specifically, the kernel protocol stack in first gateway mainly passes through described in the LAN mouth reception on the first gateway PPPoE message.Therefore first gateway will guarantee LAN mouth on the first gateway and the before receiving the PPPoE message The connection of two gateways.
Optionally, the PPPoE message that the second gateway is sent is reported to first by the kernel protocol stack in first gateway Before PPPoE server in gateway, after the Ethernet chip in first gateway detects level signal by LAN mouthfuls, Notify wide area network WAN mouthful connections of the LAN mouth of the first gateway of user with second gateway;
After management module in first gateway receives the operational order of user, the PPPoE server is opened.
Specifically, as shown in Fig. 2, the network connection for the first gateway provided in an embodiment of the present invention and the second gateway is illustrated Figure, it can be seen that the LAN mouth of the first gateway is connect with the WAN of the second gateway mouth.Wherein, the first gateway and the second gateway it Between to be user be attached the LAN mouth of the first gateway and the WAN mouth of the second gateway by cable.In the first gateway and the second net After connection connects, meeting transmission level signal between the first gateway and the second gateway, when the first gateway and the second gateway detect level After signal, the LAN mouth and the WAN mouth of the second gateway for determining the first gateway are connected.
After the LAN mouth of the first gateway is connect by user either manually or by cable with the WAN of the second gateway mouth, it is notified that user First gateway and the second gateway are connected, and after user receives the notice of connection, log on to the page of the first gateway, selection online Mode is PPPoE, and the key of key acquisition is clicked on the page, and starting PPPoE server obtains online account information automatically, As shown in figure 3, being page internet account information configuring methods schematic diagram provided in an embodiment of the present invention.Wherein, the page can Think WEB page.After user clicks and obtains key, the first gateway receives user and triggers the account for obtaining PPPoE network access Number information command, the first gateway determine the account information for needing to obtain PPPoE network access according to user's triggering command.Second net After pass determination is connect with the first gateway by cable, the second gateway initiates PPPoE dialing process, and the second gateway passes through WAN at this time Mouth sends PPPoE message.
Wherein, described to notify that the mode connected between the first gateway of user and the second gateway includes but is not limited to following portion Divide or whole:
It determines after connecting, passes through the display reminding user of indicator light;The message for determining and connecting is sent to user.
In an implementation, it is connected between the LAN mouth of the first gateway and the WAN mouth of the second gateway by cable, allows user Log on to the page of the first gateway, and determine the account information for obtaining PPPoE network access on the page, at this time the first net Pass receives user's triggering command, determines the account information for obtaining PPPoE network access, while the second gateway is sent out by WAN mouthfuls PPPoE message is sent, ensure that the second gateway can send PPPoE message to the first gateway by WAN mouthfuls.
Connect specifically, the second gateway is also determining while the first gateway is determined and connect with the second gateway with the first gateway It connects.The second gateway can send PPPoE message to the first gateway at this time, and the kernel protocol stack in the first gateway can receive described PPPoE message, but the kernel protocol stack is as a transfer layer in the first gateway, the kernel protocol stack meeting of the first gateway The PPPoE message received is reported to the PPPoE server in the first gateway.
Wherein, when the PPPoE server is opened, the kernel protocol stack of first gateway can will just be received To PPPoE message be reported to the PPPoE server.
Optionally, the PPPoE message that the second gateway is sent is reported to first by the kernel protocol stack in first gateway Before PPPoE server in gateway, first gateway opens the PPPoE server.
Specifically, first gateway opens first net after first gateway has determined the triggering command of user The PPPoE server in the Central Shanxi Plain, so that the PPPoE server in first gateway can receive the kernel in first gateway The PPPoE message that protocol stack reports.
In an implementation, PPPoE server of the kernel protocol stack in the first gateway into the first gateway sends PPPoE message Before, the PPPoE server in first gateway is opened, guarantees that the PPPoE server in the first gateway can normal work Make, receives the PPPoE message.
Optionally, the kernel protocol stack that the PPPoE server receives in first gateway report PPPoE message it Before, what second gateway that the kernel protocol stack in first gateway is received by LAN mouthfuls was sent by WAN mouthfuls PPPoE message;
Kernel protocol stack in first gateway parses the PPPoE message received, determines the PPPoE report The type of message of text;
The kernel protocol stack of first gateway is by the type of message of the determining PPPoE message and preset message class Type is compared, however, it is determined that and it include the type of message of the PPPoE message in the preset type of message, then it will be described PPPoE message reports the PPPoE server in the first gateway.
Specifically, second gateway can pass through after the LAN mouth of the first gateway is connected with the WAN mouth of the second gateway WAN mouthfuls send PPPoE message to the first gateway, and the kernel protocol stack in the first gateway is sent by LAN mouthfuls of the second gateways of reception PPPoE message.
After kernel protocol stack in first gateway receives the PPPoE message, the PPPoE message is parsed, The kernel protocol stack described in resolving mainly utilizes the netfilter frame of linux, the NF_ in netfilter frame BR_PRE_ROUTING mount point mounts Hook Function, is parsed by the function to the PPPoE message received, determines The type of message of the PPPoE message received, and determine whether the type of message of the message meets the type of message prestored, After being determined for compliance with the type of message prestored, the PPPoE message received is reported to by the kernel protocol stack in first gateway The PPPoE server.
For example, preset type of message is that discovery type, conversation type, auth type etc. are a variety of in the kernel protocol stack Type of message.Wherein, when the type of message value of message is 0x8863, the corresponding message of the 0x8863 is that PPPoE has found The discovery type message that process uses;When the type of message value of message is 0x8864, the corresponding report of the 0x8864 Text is conversation type message used in pppoe session process.When the kernel protocol stack in first gateway receives one After PPPoE message A, parsing is carried out by the PPPoE message A that mounting Hook Function docking receives and determines the PPPoE message A's The value of type of message is 0x8863, it is determined that the PPPoE message A is discovery type message, determines the preset message It include the type of message of the PPPoE message A in type, then the kernel protocol stack in first gateway reports the PPPoE Literary A is reported to the PPPoE server in the first gateway.
In an implementation, the kernel protocol stack in first gateway parses the PPPoE message received, and determination connects The type of message of the PPPoE message received, and judge the type of message of the PPPoE message received whether in preset message class In type, determine in preset type of message, then the message received is reported to by the kernel protocol stack in first gateway The PPPoE server, required message when guaranteeing the message that the PPPoE server receives to obtain account information.
Based on above content, the PPPoE server receives the report that the kernel protocol stack in first gateway reports Wen Hou, the PPPoE server will continue to parse the message received, identify the message of the PPPoE message received Type, and different response messages is made according to different type of messages, to hold consultation with second gateway, carry out it The transmitting of his message information.
Optionally, the PPPoE server in first gateway after receiving the PPPoE message with second net When putting row LCP negotiation determination authentication mode into, the PPPoE server in first gateway identifies the PPPoE received Type of message in message is response message of the generation comprising session identification after discovery type, and the response message is passed through The kernel protocol stack returns to second gateway;
The PPPoE server of first gateway according in the response message session identification and second gateway into Row LCP negotiates to determine authentication mode.
Specifically, the PPPoE server in first gateway receives the PPPoE message that the kernel protocol stack reports Afterwards, to the message carry out be recognition and verification PPPoE message type of message, and generate after type of message has been determined corresponding Response message, the response message that the PPPoE server is delivered a child transport to the second gateway from LAN oral instructions by kernel protocol stack.
Before first gateway and the second gateway are held consultation, the first gateway and the second gateway will do it a discovery rank Section, specifically holds consultation with the first gateway so that the second gateway can determine.
When carrying out discovery phase, it is 0x8863 that second gateway can send a type of message value to the first gateway PPPoE message, the kernel protocol stack in first gateway passes through LAN mouthfuls and receives the type of message that first gateways are sent Value is the PPPoE message of 0x8863, and is parsed by the message that mounting Hook Function docking receives, and determines type of message Value is 0x8863, and determines in preset type of message include type of message value to be 0x8863, then by described first The type of message value that gateway is sent is that the PPPoE message of 0x8863 is reported to PPPoE server;
The PPPoE server identifies the type of message in the PPPoE message that the kernel protocol stack reports, and determines institute The type of message value for stating PPPoE message is 0x8863, and the PPPoE server determines in the PPPoE message received Type of message be discovery type, the PPPoE server to it is described discovery type PPPoE message generate response message, institute It states and carries session identification in response message.The response message of generation is passed through kernel protocol stack from LAN by the PPPoE server The second gateway is transported in oral instructions.
Wherein, the response message of generation is transported to the second net from LAN oral instructions by kernel protocol stack by the PPPoE server Guan Shi, the PPPoE server are determined according to the path for receiving PPPoE message from the kernel protocol stack to the core protocol The path of stack transmission response message.After the response message of generation is transmitted to kernel protocol stack by the PPPoE server, kernel Protocol stack is directly sent the response message from LAN mouthfuls using the dev_queue_xmit function in linux.
Correspondingly, second gateway receives the response message that first gateway is sent out, the second gateway root According to the session identification in response message, conversate with first gateway.First gateway and the second gateway enter session stage, LCP is carried out to negotiate to determine authentication mode.
Specifically, the second gateway sends request message, first net to first gateway when carrying out LCP negotiation After pass receives request message, the message of authentication mode is carried according to the information return authentication carried in request message.
In an implementation, the PPPoE server in first gateway can identify the PPPoE message received, and according to knowledge Not Chu type of message make corresponding response message, message can be smoothly carried out between first gateway and the second gateway Transmission, hold consultation, so that first gateway can smoothly receive the message comprising account information.
Optionally, the PPPoE server in first gateway passes through the kernel according to the determining authentication mode It is described if the authentication mode is pap authentication mode when protocol stack receives the internet account information that second gateway is sent PPPoE server in first gateway receives the internet account information that second gateway is sent with clear-text way.
Specifically, when first gateway and the second gateway carry out LCP and negotiate to authenticate, first gateway is to the second net It closes and sends message of negotiation request, the kernel protocol stack of first gateway receives the negotiation of the first gateway transmission by LAN mouthfuls After the message of request, the message of negotiation request received is parsed, after being determined for compliance with default type of message, will negotiate to request Message is reported to PPPoE server;
After the PPPoE server receives the message of negotiation request, the response report comprising pap authentication mode is generated Text, and the response message comprising pap authentication mode is sent to second gateway from LAN mouthfuls by kernel protocol stack;
Correspondingly, determining that first gateway is supported after the second gateway receives the response message comprising pap authentication mode After pap authentication mode, second gateway account information that will surf the Internet is encapsulated in message identifying in the form not encrypted, and described the Two gateways send the message identifying comprising online account information to first gateway;
Kernel protocol stack in first gateway by LAN mouthfuls receive that second gateway sends comprising online account After the message identifying of family information, the message identifying is sent to the PPPoE server in first gateway, first net The PPPoE server in the Central Shanxi Plain parses received message identifying, determines second gateway in a manner of (not encrypting) in plain text The internet account information of transmission.
In an implementation, the PPPoE server in first gateway can receive the internet account sent to the second gateway Information, user does not need to carry out authentication to determine online account information, to user with convenience.
Optionally, the PPPoE server in first gateway passes through the kernel according to the determining authentication mode After protocol stack receives the internet account information that second gateway is sent, the kernel protocol stack in first gateway will be described The authentification failure response message that PPPoE server returns is sent to second gateway, so that second gateway stops sending The PPPoE message.
Specifically, receiving the certification report comprising internet account information that second gateway is sent in first gateway Wen Hou parses the message identifying, also raw while including internet account information in determining the message identifying At authentification failure response message, after generating authentification failure response message, first gateway closes the PPPoE server, The PPPoE server is set no longer to receive any type of message that the kernel protocol stack in first gateway reports.
Authentification failure response message is sent to second gateway by first gateway, and second gateway receives institute After the authentification failure response message for stating the transmission of the first gateway, the PPPoE message no longer is sent to first gateway.
In an implementation, after the PPPoE server in first gateway receives online account information, to described second Gateway, which sends authentification failure response message, makes the second gateway stop sending PPPoE message to first gateway, saves the second net While closing energy, guarantee will not interfere the first gateway.
In embodiments of the present invention, after the PPPoE server in first gateway gets online account information, user After the page of login clicks determining key, the first gateway has been received by user and has determined the instruction for obtaining online account information, PPPoE server is got into online account information configuration in the page at this time, as shown in Figure 3.
Specifically, as shown in figure 4, for a kind of holistic approach process for obtaining account information provided in an embodiment of the present invention Figure, specifically comprises the following steps:
Step 400, the kernel protocol stack in the first gateway receives the PPPoE that second gateway is sent by LAN mouthfuls and reports Text;
Step 401, the kernel protocol stack in the first gateway parses the PPPoE message received, described in determination The type of message of PPPoE message is reported to PPPoE server in preset type of message, by the PPPoE message received;
Step 402, the PPPoE server in the first gateway is reported to the message that the kernel protocol stack reports is received The identification of literary type generates the response message comprising session identification after determining the PPPoE message received for discovery type, and The kernel protocol stack response message comprising session identification being sent in the first gateway;
Step 403, the response message comprising session identification is sent to by the kernel protocol stack in the first gateway from LAN mouthfuls Two gateways;
Step 404, the kernel protocol stack in the first gateway receives the second gateway and is generated according to the response message of session identification Message of negotiation request;
Step 405, the kernel protocol stack in the first gateway parses the message of negotiation request received, determines and negotiates The type of message of request message is reported to the clothes of the PPPoE in the first gateway in preset type of message, by message of negotiation request Business device;
Step 406, the PPPoE server in the first gateway is generated according to message of negotiation request is received comprising pap authentication The response message of mode, and the response message comprising pap authentication mode of generation is sent to the core protocol in the first gateway Stack;
Step 407, the kernel protocol stack in the first gateway sends out the response message comprising pap authentication mode by LAN mouthfuls Give the second gateway;
Step 408, what kernel protocol stack the second gateway of reception in the first gateway was sent in clear text manner includes online The message identifying of account information;
Step 409, the kernel protocol stack in the first gateway will be on the message identifying comprising online account information that received Offer the PPPoE server in the first gateway;
Step 410, the PPPoE server in the first gateway is according to the message identifying comprising online account information received Authentification failure response message is generated, and the authentification failure response message is sent to the kernel protocol stack in the first gateway;
Step 411, the kernel protocol stack in the first gateway sends authentification failure response report to the second gateway to by LAN mouthfuls Text.
Based on the same inventive concept, a kind of the first gateway for obtaining account information is additionally provided in the embodiment of the present invention, by Corresponding in first gateway is corresponding first gateway of method that the embodiment of the present invention obtains account information, and first net It is similar to this method to close the principle solved the problems, such as, therefore the implementation of first gateway may refer to the implementation of method, repeats place It repeats no more.
As shown in figure 5, for a kind of the first gateway architecture schematic diagram for obtaining account information provided in an embodiment of the present invention, it should First gateway includes at least one processing unit 500 and at least one storage unit 501, wherein the storage unit 501 stores Have program code, when said program code is executed by the processing unit 500 so that the processing unit 500 execute it is following Process:
It is reported in the first gateway using the PPPoE message based on Ethernet that kernel protocol stack sends the second gateway PPPoE server;
LCP negotiation determination is carried out with second gateway after receiving the PPPoE message using PPPoE server to recognize Card mode;
Second net is received by the kernel protocol stack according to the determining authentication mode using PPPoE server Close the internet account information sent.
Optionally, the processing unit 500 is also used to:
After detecting level signal by LAN mouthfuls using Ethernet chip, notify the LAN mouth of the first gateway of user with it is described The WAN mouth of second gateway is connected;
After the operational order for receiving user using management module, the PPPoE server is opened.
Optionally, the processing unit 500 is also used to:
The PPPoE message sent using second gateway that kernel protocol stack is received by LAN mouthfuls by WAN mouthfuls;
The PPPoE message received is parsed using kernel protocol stack, determines the message class of the PPPoE message Type;
The type of message of the determining PPPoE message is compared with preset type of message using kernel protocol stack Compared with, however, it is determined that it include the type of message of the PPPoE message in the preset type of message, then it will be on the PPPoE message Report the PPPoE server in the first gateway.
Optionally, the processing unit 500 is specifically used for:
After the type of message in the PPPoE message received using the identification of PPPoE server is discovery type, generate Response message comprising session identification, and the response message is returned into second gateway by the kernel protocol stack;
LCP negotiation is carried out with second gateway according to the session identification in the response message using PPPoE server Determine authentication mode.
Optionally, the processing unit 500 is specifically used for:
If the authentication mode is pap authentication mode, second gateway is received with plaintext side using PPPoE server The internet account information that formula is sent.
Optionally, the processing unit 500 is also used to:
The authentification failure response message that the PPPoE server returns is sent to second net using kernel protocol stack It closes, so that second gateway stops sending the PPPoE message.
As shown in fig. 6, for another the first gateway architecture schematic diagram for obtaining account information provided in an embodiment of the present invention, First gateway includes:
Positioned at the reporting module 600 of kernel protocol stack, the PPPoE message for sending the second gateway is reported to the first net The PPPoE server in the Central Shanxi Plain;
Positioned at the negotiation module 601 of PPPoE server, for after receiving the PPPoE message with second net Row LCP is put into negotiate to determine authentication mode;
Positioned at the receiving module 602 of PPPoE server, for being assisted according to the determining authentication mode by the kernel View stack receives the internet account information that second gateway is sent.
Optionally, the reporting module 600 positioned at kernel protocol stack is also used to:
After detecting level signal by LAN mouthfuls using Ethernet chip, notify the LAN mouth of the first gateway of user with it is described The WAN mouth of second gateway is connected;
After the operational order for receiving user using management module, the PPPoE server is opened.
Optionally, the reporting module 600 positioned at kernel protocol stack is also used to:
The PPPoE message that second gateway received by LAN mouthfuls is sent by WAN mouthfuls;
The PPPoE message received is parsed, determines the type of message of the PPPoE message;
The type of message of the determining PPPoE message is compared with preset type of message, however, it is determined that described pre- If type of message in include the PPPoE message type of message, then the PPPoE message is reported in the first gateway PPPoE server.
Optionally, the negotiation module 601 positioned at PPPoE server is specifically used for:
After identifying the type of message in the PPPoE message received for discovery type, generate comprising session identification Response message, and the response message is returned into second gateway by the kernel protocol stack;
According to the session identification and the determining authentication mode of second gateway progress LCP negotiation in the response message.
Optionally, the receiving module 602 positioned at PPPoE server is specifically used for:
If the authentication mode is pap authentication mode, the online account that second gateway is sent with clear-text way is received Number information.
Optionally, the receiving module 602 positioned at PPPoE server is also used to:
The authentification failure response message that the PPPoE server returns is sent to second gateway, so that described the Two gateways stop sending the PPPoE message.
Above by reference to showing according to the method, apparatus (system) of the embodiment of the present application and/or the frame of computer program product Figure and/or flow chart describe the application.It should be understood that can realize that block diagram and or flow chart is shown by computer program instructions The combination of the block of a block and block diagram and or flow chart diagram for figure.These computer program instructions can be supplied to logical With computer, the processor of special purpose computer and/or other programmable data processing units, to generate machine, so that via meter The instruction that calculation machine processor and/or other programmable data processing units execute creates for realizing block diagram and or flow chart block In specified function action method.
Correspondingly, the application can also be implemented with hardware and/or software (including firmware, resident software, microcode etc.).More Further, the application can take computer usable or the shape of the computer program product on computer readable storage medium Formula has the computer realized in the medium usable or computer readable program code, to be made by instruction execution system It is used with or in conjunction with instruction execution system.In the present context, computer can be used or computer-readable medium can be with It is arbitrary medium, may include, stores, communicates, transmits or transmit program, is made by instruction execution system, device or equipment With, or instruction execution system, device or equipment is combined to use.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (13)

1. a kind of method for obtaining account information, which is characterized in that this method comprises:
The point-to-point protocol PPPoE message based on Ethernet that kernel protocol stack in first gateway sends the second gateway reports To the PPPoE server in the first gateway;
PPPoE server in first gateway carries out link with second gateway after receiving the PPPoE message Control protocol LCP negotiates to determine authentication mode;
PPPoE server in first gateway receives institute by the kernel protocol stack according to the determining authentication mode State the internet account information of the second gateway transmission.
2. the method as described in claim 1, which is characterized in that the kernel protocol stack in first gateway sends out the second gateway The PPPoE message sent is reported to before the PPPoE server in the first gateway, further includes:
After Ethernet chip in first gateway detects level signal by local network LAN mouthfuls, the first net of user is notified WAN mouthfuls of wide area network connections of the LAN mouth of pass and second gateway;
After management module in first gateway receives the operational order of user, the PPPoE server is opened.
3. method according to claim 2, which is characterized in that the PPPoE server receives interior in first gateway Core protocol stack reports before PPPoE message, further includes:
What second gateway that the kernel protocol stack in first gateway is received by LAN mouthfuls was sent by WAN mouthfuls PPPoE message;
Kernel protocol stack in first gateway parses the PPPoE message received, determines the PPPoE message Type of message;
The kernel protocol stack of first gateway by the type of message of the determining PPPoE message and preset type of message into Row compares, however, it is determined that includes the type of message of the PPPoE message in the preset type of message, then reports the PPPoE Text reports the PPPoE server in the first gateway.
4. the method as described in claim 1, which is characterized in that the PPPoE server in first gateway is receiving Negotiate to determine authentication mode with second gateway progress LCP after stating PPPoE message, comprising:
The type of message in the PPPoE message that PPPoE server identification in first gateway receives is discovery class After type, generate include session identification response message, and described in the response message returned to by the kernel protocol stack Second gateway;
The PPPoE server of first gateway is carried out according to the session identification in the response message with second gateway LCP negotiates to determine authentication mode.
5. the method as described in claim 1, which is characterized in that the PPPoE server in first gateway is according to determining The authentication mode receives the internet account information that second gateway is sent by the kernel protocol stack, comprising:
If the authentication mode is that password identifies agreement pap authentication mode, the PPPoE server in first gateway is received The internet account information that second gateway is sent with clear-text way.
6. the method as described in claim 1, which is characterized in that the PPPoE server in first gateway is according to determining After the authentication mode receives the internet account information that second gateway is sent by the kernel protocol stack, further includes:
The authentification failure response message that the PPPoE server returns is sent to institute by the kernel protocol stack in first gateway The second gateway is stated, so that second gateway stops sending the PPPoE message.
7. it is a kind of obtain account information the first gateway, which is characterized in that first gateway include: at least one processing unit and At least one storage unit, wherein the storage unit is stored with program code, when said program code is by the processing unit When execution, so that the processing unit executes following process:
The PPPoE server being reported to the PPPoE message that the second gateway is sent using kernel protocol stack in the first gateway;
LCP is carried out with second gateway after receiving the PPPoE message using PPPoE server to negotiate to determine authenticating party Formula;
Second gateway is received by the kernel protocol stack according to the determining authentication mode using PPPoE server to send out The internet account information sent.
8. the first gateway as claimed in claim 7, which is characterized in that the processing unit is also used to:
After detecting level signal by LAN mouthfuls using Ethernet chip, the LAN mouth and described second of the first gateway of user is notified The WAN mouth of gateway is connected;
After the operational order for receiving user using management module, the PPPoE server is opened.
9. the first gateway as claimed in claim 8, which is characterized in that the processing unit is also used to:
The PPPoE message sent using second gateway that kernel protocol stack is received by LAN mouthfuls by WAN mouthfuls;
The PPPoE message received is parsed using kernel protocol stack, determines the type of message of the PPPoE message;
The type of message of the determining PPPoE message is compared with preset type of message using kernel protocol stack, if It determines the type of message in the preset type of message including the PPPoE message, then the PPPoE message is reported first PPPoE server in gateway.
10. the first gateway as claimed in claim 7, which is characterized in that the processing unit is specifically used for:
After the type of message in the PPPoE message received using the identification of PPPoE server is discovery type, generation includes The response message of session identification, and the response message is returned into second gateway by the kernel protocol stack;
LCP is carried out with second gateway according to the session identification in the response message using PPPoE server to negotiate to determine Authentication mode.
11. the first gateway as claimed in claim 7, which is characterized in that the processing unit is specifically used for:
If the authentication mode is pap authentication mode, second gateway is received using PPPoE server and is sent out with clear-text way The internet account information sent.
12. the first gateway as claimed in claim 7, which is characterized in that the processing unit is also used to:
The authentification failure response message that the PPPoE server returns is sent to second gateway using kernel protocol stack, So that second gateway stops sending the PPPoE message.
13. a kind of the first gateway for obtaining account information, which is characterized in that first gateway includes:
Positioned at the reporting module of kernel protocol stack, the PPPoE message for sending the second gateway is reported in the first gateway PPPoE server;
Positioned at the negotiation module of PPPoE server, for being carried out after receiving the PPPoE message with second gateway LCP negotiates to determine authentication mode;
Positioned at the receiving module of PPPoE server, for being connect according to the determining authentication mode by the kernel protocol stack Receive the internet account information that second gateway is sent.
CN201810563936.3A 2018-06-04 2018-06-04 A kind of method and gateway obtaining account information Pending CN109005146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810563936.3A CN109005146A (en) 2018-06-04 2018-06-04 A kind of method and gateway obtaining account information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810563936.3A CN109005146A (en) 2018-06-04 2018-06-04 A kind of method and gateway obtaining account information

Publications (1)

Publication Number Publication Date
CN109005146A true CN109005146A (en) 2018-12-14

Family

ID=64573353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810563936.3A Pending CN109005146A (en) 2018-06-04 2018-06-04 A kind of method and gateway obtaining account information

Country Status (1)

Country Link
CN (1) CN109005146A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428066A (en) * 2013-08-09 2013-12-04 深圳市吉祥腾达科技有限公司 Broadband router, as well as method and system for networking by utilizing same
CN103825910A (en) * 2014-03-19 2014-05-28 北京极科极客科技有限公司 Method and device for acquiring internet authentication information
CN103873307A (en) * 2014-04-11 2014-06-18 北京极科极客科技有限公司 Method for PPPOE user name and password backup and restoration
CN106059832A (en) * 2016-08-31 2016-10-26 上海斐讯数据通信技术有限公司 Method and system for automatically judging Internet-surfing way of WAN (Wide Area Network) port
CN106230669A (en) * 2016-07-18 2016-12-14 乐视控股(北京)有限公司 Information getting method, device and terminal
CN106452917A (en) * 2016-11-24 2017-02-22 上海斐讯数据通信技术有限公司 Method and system for automatically configuring PPPOE internet surfing account and password
US20170118329A1 (en) * 2015-10-22 2017-04-27 Comcast Cable Communications, Llc Caller number identification
CN106992934A (en) * 2016-01-21 2017-07-28 中兴通讯股份有限公司 A kind of method and device for obtaining configuration of routers
CN107592240A (en) * 2017-09-07 2018-01-16 上海斐讯数据通信技术有限公司 A kind of method and system of router automatic detection network access

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428066A (en) * 2013-08-09 2013-12-04 深圳市吉祥腾达科技有限公司 Broadband router, as well as method and system for networking by utilizing same
CN103825910A (en) * 2014-03-19 2014-05-28 北京极科极客科技有限公司 Method and device for acquiring internet authentication information
CN103873307A (en) * 2014-04-11 2014-06-18 北京极科极客科技有限公司 Method for PPPOE user name and password backup and restoration
US20170118329A1 (en) * 2015-10-22 2017-04-27 Comcast Cable Communications, Llc Caller number identification
CN106992934A (en) * 2016-01-21 2017-07-28 中兴通讯股份有限公司 A kind of method and device for obtaining configuration of routers
CN106230669A (en) * 2016-07-18 2016-12-14 乐视控股(北京)有限公司 Information getting method, device and terminal
CN106059832A (en) * 2016-08-31 2016-10-26 上海斐讯数据通信技术有限公司 Method and system for automatically judging Internet-surfing way of WAN (Wide Area Network) port
CN106452917A (en) * 2016-11-24 2017-02-22 上海斐讯数据通信技术有限公司 Method and system for automatically configuring PPPOE internet surfing account and password
CN107592240A (en) * 2017-09-07 2018-01-16 上海斐讯数据通信技术有限公司 A kind of method and system of router automatic detection network access

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
伍振国: "《数据通信技术》", 30 September 2009 *

Similar Documents

Publication Publication Date Title
TWI735429B (en) Authentication method, device, system and electronic equipment for client login server end
CA2914426C (en) Method for authenticating a user, corresponding server, communications terminal and programs
CN106487788B (en) A kind of user access method, SDN controller, forwarding device and subscriber access system
CN107211001A (en) Forced gate flow is acted on behalf of for input-bound device
KR20040073329A (en) A method and a system for authenticating a user at a network access while the user is making a connection to the Internet
CN106921636A (en) Identity identifying method and device
CN106027565B (en) A kind of method and apparatus of the intranet and extranet unified certification based on PPPOE
CN110661670A (en) Network equipment configuration management method and device
CN104954508B (en) A kind of system and its auxiliary charging method for DHCP protocol auxiliary charging
CN103997479B (en) A kind of asymmetric services IP Proxy Methods and equipment
CN109218115A (en) A kind of management method of ustomer premises access equipment CPE, apparatus and system
CN104702562B (en) Terminal fused business cut-in method, system and terminal
CN108200039B (en) Non-perception authentication and authorization system and method based on dynamic establishment of temporary account password
CN103546290B (en) Third Party Authentication system or method with user group
CN109150787A (en) A kind of authority acquiring method, apparatus, equipment and storage medium
CN108259457A (en) A kind of WEB authentication methods and device
US8102762B2 (en) Communication control system and communication control method
CN106301847A (en) Access point interface configuration recovery method, device and home gateway
CN106789905A (en) A kind of network access equipment and method
CN102202071A (en) Microsoft service network (MSN)-based network video monitoring method and system
CN106302856B (en) A kind of method and system shortening Android intelligence POS exchange hour
JP5211579B2 (en) Authentication system and authentication method using SIP
CN107547618A (en) A kind of session teardown method and apparatus
CN110233825A (en) Equipment initial methods, internet of things equipment, system, platform device and smart machine
CN105704109B (en) A kind of network access verifying method and equipment

Legal Events

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

Application publication date: 20181214

RJ01 Rejection of invention patent application after publication