CN106685773A - Intelligent network type PPPoE (point-to-point protocol over Ethernet) and DHCP (dynamic host configuration protocol) access method and system - Google Patents
Intelligent network type PPPoE (point-to-point protocol over Ethernet) and DHCP (dynamic host configuration protocol) access method and system Download PDFInfo
- Publication number
- CN106685773A CN106685773A CN201611259389.7A CN201611259389A CN106685773A CN 106685773 A CN106685773 A CN 106685773A CN 201611259389 A CN201611259389 A CN 201611259389A CN 106685773 A CN106685773 A CN 106685773A
- Authority
- CN
- China
- Prior art keywords
- dhcp
- pppoe
- detection
- network type
- access
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2854—Wide area networks, e.g. public data networks
- H04L12/2856—Access arrangements, e.g. Internet access
- H04L12/2869—Operational details of access network equipments
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides an intelligent network type PPPoE (point-to-point protocol over Ethernet) and DHCP (dynamic host configuration protocol) access method and system, and belongs to the technical field of network equipment application. The method includes the steps: A detecting an access port and judging the type of an access network cable by a network detection module when the network cable is inserted; B building a DHCP data packet for detecting a data link; C judging whether the internet can be surfed or not, indicating the networking mode of DHCP if the internet can be surfed, executing the step E, and prompting a user to input a PPPoE user name and passwords if not; D setting the PPPoE user name and the passwords, and then transmitting an inspection packet for inspecting the networking mode and building WAN (wide area network) connection; E displaying adaptive and detected access modes and network modes on pages. The method has the advantages that an ADSL (asymmetrical digital subscriber loop) and the Ethernet of the PPPoE and DHCP can be identified and determined, application scenarios of products are wider, and the products are more easily used by users.
Description
Technical field
The present invention relates to network equipment applied technical field, more particularly to a kind of intelligent network type PPPoE and DHCP connect
Enter method, also design a kind of system for realizing above-mentioned cut-in method.
Background technology
There is the access way of Ethernet (RJ45) and ADSL (RJ11) at present.Both modes all can network as wan mouths
Access way, and have the networking mode of PPPoE and DHCP.In general dialing equipment all it should be understood that this two kinds of sides
Formula and accessed with corresponding mode.As PPPoE with DHCP networking modes are also, it is necessary to which one-to-one corresponding could be dialled successfully
Number networking.It is by inquiring ISP that (Internet Service Provider, Internet service is carried that original network equipment is accessed
For business), then by the type of the server set by ISP, that such as ISP builds is PPPoE (Point-to-Point
Protocol over Ethernet, the point-to-point protocol on Ethernet) server, then client is exactly PPPoE servers.
If DHCP (Dynamic Host Configuration Protocol, DHCP) server, then visitor
Family end is exactly the access way of DHCP.So client must in advance know these access ways.
Also both access ways are different methods to set up, and DHCP is a kind of mode of IPoE.In the access class of DSL
Seek to set PVC where PPPoE and DHCP are common in type, if in the access style of ETH (Ethernet), without arranging
PVC, as long as the username and password of PPPoE accounts is arranged accurate, DHCP is then without the username and password of setting account.Such as
Below some uncertain environment, user does not know how to access or how to go to arrange to fruit.
To sum up, prior art has following a few point defects:
(1) some current products have been only capable of PVC detecting functions, and detect covering not entirely, miss to adapt to mostly
Area;
(2) at present function can only detect several PVC groups of adsl link, but not can know which bar is for surfing the Net.Only
User arranges manually the PVC for detecting;
(3) when arranging ADSL or Ethernet WAN, user can arrange two layer interfaces and arrange three layer services, user again
Operation can be comparatively laborious, multi-step operation, not humane, not easy-to-use.
The content of the invention
To solve the problems of the prior art, the present invention provides a kind of intelligent network type PPPoE and DHCP cut-in methods,
Additionally provide a kind of system for realizing said method.
Intelligent network type PPPoE of the present invention and DHCP cut-in methods comprise the steps:
A:When netting twine is inserted, network detection module detection access port judges the type of the netting twine of access;
B:Build DHCP Packet probing data link;
C:Judge whether to surf the Net, if it is possible to surf the Net, then networking mode is DHCP, then execution step E, otherwise
Prompting user input PPPoE username and password;
D:After setting PPPoE username and passwords, send detection bag detection networking mode and set up WAN connections;
E:The page shows the access way and networking mode of automatic adaptation and detection.
The present invention is further improved, and in step, the netting twine is telephone wire and/or ethernet line.
The present invention is further improved, and in step, network detection resume module step is:
A1:Network detection module to network type identification module sends detection bag;
A2:Network type identification module sends assembling datagram by transmission interface dev_xmit_queue, then passes through
Receiving data interface netif_receive_skb receives probe response message;
A3:Network type identification module parses probe response message data bag, preserves data and is sent to network type
Network detection module.
The present invention is further improved, and in step A1, the DetectWan processes of network detection module judge that access way is
It is no to access for telephone wire DSL, if it is, the DetectWan processes are led to the detectPVC processes of network type identification module
Letter, detects the networking mode under PVC, and then detecting telephone line connection status;If it is not, then being Ethernet access, then described
DetectWan processes and the detectEth process communications of network type identification module, detect the connection under ethernet line connection status
Net mode.
The present invention is further improved, and in step C or D, judges that environment can be with access way, if only ethernet line
Access or telephone wire is accessed, then set up the WAN services of the setting networking mode automatically;If while having ethernet line and electricity
Words line is accessed, then while setting up two WAN services of telephone wire and Ethernet automatically.
The present invention is further improved, and the detection of access way and the adaptation of networking mode can be according to user browser pages
The setting in face is turned on and off.
Present invention also offers a kind of system for realizing said method, including network detection module:For when insertion netting twine
When, detect access port;Network type identification module:For judging the type of the netting twine for accessing;Data link detecting module:For
Build DHCP Packet probing data link;DHCP access way judge modules:For judging whether to surf the Net, if it is possible to
Online, then networking mode is DHCP, otherwise points out user input PPPoE username and password;PPPoE access ways detect mould
Block:For after PPPoE username and passwords are set, sending detection bag detection networking mode and setting up WAN connections;Show mould
Block:For showing the access way and networking mode of automatic adaptation and detection on the page.
Compared with prior art, the invention has the beneficial effects as follows:It is simple to operate to understand, client is solved in DSL telephone wire classes
Type and ETH netting twine access style PPPoE and DHCP mode are from adaptation;Be capable of identify that and determine PPPoE and DHCP ADSL and with
Too net, so that the application scenarios of product are wider, user uses more easy-to-use;Can effectively reduce from work angle ADSL and
The difference of Ethernet both access ways.
Description of the drawings
Fig. 1 is the inventive method flow chart;
Fig. 2 is that network detection module recognizes networking mode method flow diagram;
Fig. 3 is present invention method flow chart.
Specific embodiment
The present invention is described in further details with reference to the accompanying drawings and examples.
As shown in figure 1, intelligent network type PPPoE of the present invention and DHCP cut-in methods comprise the steps:
A:When netting twine is inserted, network detection module detection access port judges the type of the netting twine of access;
B:Build DHCP Packet probing data link;
C:Judge whether to surf the Net, if it is possible to surf the Net, then networking mode is DHCP, then execution step E, otherwise
Prompting user input PPPoE username and password;
D:After setting PPPoE username and passwords, send detection bag detection networking mode and set up WAN connections;
E:The page shows the access way and networking mode of automatic adaptation and detection.
The present invention can automatic adaptation access way, recognize DSL or ETH access;Automatic identification PPPoE or DHCP
Networking mode, give out a contract for a project automatically detect and set up wan connection, reach the effect for making user easy-to-use.
Wherein, in step, the netting twine of this example is telephone wire and/or ethernet line.Wherein, network detection resume module
Step is:
A1:Network detection module to network type identification module sends detection bag;
A2:Network type identification module sends assembling datagram by transmission interface dev_xmit_queue, then passes through
Receiving data interface netif_receive_skb receives probe response message;
A3:Network type identification module parses probe response message data bag, preserves data and is sent to network type
Network detection module.
As shown in Fig. 2 the concrete processing method of network detection module is in step A1:Network detection module
DetectWan processes judge whether access way is that telephone wire DSL is accessed, if it is, the DetectWan processes and network class
The detectPVC process communications of type identification module, detect the networking mode under PVC, and then detecting telephone line connection status;If
It is no, then it is Ethernet access, then the detectEth process communications of the DetectWan processes and network type identification module,
Networking mode under detection ethernet line connection status.
As shown in figure 3, used as one embodiment of the present of invention, the present invention specifically includes following steps:
S1:The access way that insertion ISP is provided;
S2:Network detection module detects access port;
S3:Judge to access WAN mouth netting twine types, be adapted to networking mode;
S4:If user does not know access way, then again User Page selects auto (automatic) mode;If user knows
Road is DHCP networking modes, then select DHCP networking modes;If it is known that be PPPoE, then user name that ISP provides and close is input into
Code;When user select be auto (automatic) mode when, execution step B of the present invention and step C, until can surf the Net.
S5:Judge that environment can be with access way, if only DSL telephone wires or ethernet line are surfed the Net, the present invention is automatically
The WAN services of the setting networking mode are set up, networking state is then shown, including IP address, gateway address etc.;If while had
When DSL telephone wires or ethernet line access online, the present invention while set up two WAN services of DSL and Ethernet automatically, then
Display networking state, including IP address, gateway address etc..
Present invention also offers a kind of system for realizing said method, including network detection module:For when insertion netting twine
When, detect access port;Network type identification module:For judging the type of the netting twine for accessing;Data link detecting module:For
Build DHCP Packet probing data link;DHCP access way judge modules:For judging whether to surf the Net, if it is possible to
Online, then networking mode is DHCP, otherwise points out user input PPPoE username and password;PPPoE access ways detect mould
Block:For after PPPoE username and passwords are set, sending detection bag detection networking mode and setting up WAN connections;Show mould
Block:For showing the access way and networking mode of automatic adaptation and detection on the page.
The detection of access way of the present invention and the adaptation of networking mode can be opened according to the setting of the user browser page
Or close.User just easily can be surfed the Net by said method using router, without troublesome operation and setting, greatly promote use
The experience at family.
The concrete operations of user are as follows:
1st, power-on, insertion online connected with network cable, wherein, telephone wire then inserts telephone wire mouth, and ethernet line is then inserted
WAN mouths;
2nd, PC accesses LAN mouths and obtains IP address automatically, and logs in router interface in PC browsers, on interface is arranged
Net mode;
If the 3, network access that ISP is provided is DHCP, and interface then selects DHCP network accesses, provided that PPPoE
Corresponding network access is then set, the user name password that ISP is provided is input into (the method is manual mode);
If the 4, in the case where environment is not known for DHCP or PPPoE, could be would to attempt being set in the way of in page DHCP
Put, the access way of networking is automatic, then the netting twine that equipment can be accessed according to you judges access way, and builds DHCP numbers
Data link is surveyed according to detective, if energy UNICOM network, then networking mode is then which, it is impossible to is then other modes, need to carry
For the user name password of PPPoE;
5th, when the method for operating procedure 4 is PPPoE, then access way need not be comprehended for DSL or Ethernet, as long as
The access way of PPPoE user name passwords, system meeting automatic adaptation DSL and Ethernet is set, and if equally with DHCP's
Under environment, can also connect Internet;
6th, the page can show the access way and networking mode of automatic adaptation and detection, also have the result for whether connecting to show
Show.
The present invention has effect following prominent:
(1) using driving direct structural exploration PVC bags to be detected, speed of detection is fast, and accurately, already covered by the whole world
77 groups of PVC, multiple PVC line sniffings success rates are up to more than 99%;
(2) multiple pvcs can be detected and with reference to IPTV detections, the different business of ADSL can be distinguished, more human nature is talked about, automatically
Change;
(3) can Intelligent Recognition adaptation user's PPPoE and DHCP environment under ADSL and Ethernet access, greatly reduce user
Understanding and unnecessary setting to access environment, while the application of compatibility ADSL and ethernet environment significantly.
The specific embodiment of the above is the better embodiment of the present invention, not limits the concrete of the present invention with this
Practical range, the scope of the present invention includes being not limited to this specific embodiment, all equal according to the equivalence changes made of the invention
Within the scope of the present invention.
Claims (7)
1. a kind of intelligent network type PPPoE and DHCP cut-in methods, it is characterised in that comprise the steps:
A:When netting twine is inserted, network detection module detection access port judges the type of the netting twine of access;
B:Build DHCP Packet probing data link;
C:Judge whether to surf the Net, if it is possible to surf the Net, then networking mode is DHCP, then execution step E, is otherwise pointed out
User input PPPoE username and password;
D:After setting PPPoE username and passwords, send detection bag detection networking mode and set up WAN connections;
E:The page shows the access way and networking mode of automatic adaptation and detection.
2. intelligent network type PPPoE according to claim 1 and DHCP cut-in methods, it is characterised in that:In step A
In, the netting twine is telephone wire and/or ethernet line.
3. intelligent network type PPPoE according to claim 1 and DHCP cut-in methods, it is characterised in that:In step A
In, network detection resume module step is:
A1:Network detection module to network type identification module sends detection bag;
A2:Network type identification module sends assembling datagram by transmission interface dev_xmit_queue, then by receiving
Data-interface netif_receive_skb receives probe response message;
A3:Network type identification module parses probe response message data bag, preserves data and network type is sent to into network
Detecting module.
4. intelligent network type PPPoE according to claim 3 and DHCP cut-in methods, it is characterised in that:In step A1,
The DetectWan processes of network detection module judge whether access way is that telephone wire DSL is accessed, if it is, described
DetectWan processes and the detectPVC process communications of network type identification module, detect PVC, and then detecting telephone line connects
Networking mode under state;If it is not, then being Ethernet access, then the DetectWan processes recognize mould with network type
The detectEth process communications of block, detect the networking mode under ethernet line connection status.
5. intelligent network type PPPoE according to claim 2 and DHCP cut-in methods, it is characterised in that:Step C or D
In, judge that environment can be with access way, if only ethernet line is accessed or telephone wire is accessed, then set up this automatically and set
Put the WAN services of networking mode;If while having ethernet line and telephone wire to access, then at the same set up automatically telephone wire and with
The two WAN services netted very much.
6. intelligent network type PPPoE according to claim 1 and DHCP cut-in methods, it is characterised in that:Access way
Detection and the adaptation of networking mode can be turned on and off according to the setting of the user browser page.
7. a kind of system for realizing intelligent network type PPPoE and DHCP cut-in methods described in any one of claim 1-6, it is special
Levy is to include:
Network detection module:For when netting twine is inserted, detecting access port;
Network type identification module:For judging the type of the netting twine for accessing;
Data link detecting module:For building DHCP Packet probing data link;
DHCP access way judge modules:For judging whether to surf the Net, if it is possible to surf the Net, then networking mode is
DHCP, otherwise points out user input PPPoE username and password;
PPPoE access way detection modules:For after PPPoE username and passwords are set, sending detection bag detection networking
Mode simultaneously sets up WAN connections;
Display module:For showing the access way and networking mode of automatic adaptation and detection on the page.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611259389.7A CN106685773B (en) | 2016-12-30 | 2016-12-30 | A kind of intelligent network type PPPoE and DHCP cut-in method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611259389.7A CN106685773B (en) | 2016-12-30 | 2016-12-30 | A kind of intelligent network type PPPoE and DHCP cut-in method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106685773A true CN106685773A (en) | 2017-05-17 |
CN106685773B CN106685773B (en) | 2019-11-12 |
Family
ID=58873509
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611259389.7A Active CN106685773B (en) | 2016-12-30 | 2016-12-30 | A kind of intelligent network type PPPoE and DHCP cut-in method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106685773B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107592240A (en) * | 2017-09-07 | 2018-01-16 | 上海斐讯数据通信技术有限公司 | A kind of method and system of router automatic detection network access |
CN110493632A (en) * | 2018-05-14 | 2019-11-22 | 中国电信股份有限公司 | IPTV method for connecting network and system, user terminal, terminal network management platform |
CN113691407A (en) * | 2021-09-01 | 2021-11-23 | 深圳市大洲智创科技有限公司 | Method and device for detecting networking fault prompt |
CN114244704A (en) * | 2021-12-31 | 2022-03-25 | 四川天邑康和通信股份有限公司 | Router LANWAN self-adaptation method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859524A (en) * | 2006-03-24 | 2006-11-08 | 华为技术有限公司 | Method and its device for automatically configurating PVC to ADSL terminal |
CN102307145A (en) * | 2006-03-24 | 2012-01-04 | 华为技术有限公司 | ADSL (asymmetrical digital subscriber loop) terminal with function of automatically configuring PVC (permanent virtual connection) |
CN103441828A (en) * | 2013-08-08 | 2013-12-11 | 深圳市共进电子股份有限公司 | Detecting and sending method for usability of PVC based on PPPoE |
CN104683498A (en) * | 2015-03-10 | 2015-06-03 | 太仓市同维电子有限公司 | Method being convenient for users to simply configure WAN connection types of routers |
CN106059832A (en) * | 2016-08-31 | 2016-10-26 | 上海斐讯数据通信技术有限公司 | Method and system for automatically judging Internet-surfing way of WAN (Wide Area Network) port |
-
2016
- 2016-12-30 CN CN201611259389.7A patent/CN106685773B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859524A (en) * | 2006-03-24 | 2006-11-08 | 华为技术有限公司 | Method and its device for automatically configurating PVC to ADSL terminal |
CN102307145A (en) * | 2006-03-24 | 2012-01-04 | 华为技术有限公司 | ADSL (asymmetrical digital subscriber loop) terminal with function of automatically configuring PVC (permanent virtual connection) |
CN103441828A (en) * | 2013-08-08 | 2013-12-11 | 深圳市共进电子股份有限公司 | Detecting and sending method for usability of PVC based on PPPoE |
CN104683498A (en) * | 2015-03-10 | 2015-06-03 | 太仓市同维电子有限公司 | Method being convenient for users to simply configure WAN connection types of routers |
CN106059832A (en) * | 2016-08-31 | 2016-10-26 | 上海斐讯数据通信技术有限公司 | Method and system for automatically judging Internet-surfing way of WAN (Wide Area Network) port |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107592240A (en) * | 2017-09-07 | 2018-01-16 | 上海斐讯数据通信技术有限公司 | A kind of method and system of router automatic detection network access |
CN110493632A (en) * | 2018-05-14 | 2019-11-22 | 中国电信股份有限公司 | IPTV method for connecting network and system, user terminal, terminal network management platform |
CN113691407A (en) * | 2021-09-01 | 2021-11-23 | 深圳市大洲智创科技有限公司 | Method and device for detecting networking fault prompt |
CN114244704A (en) * | 2021-12-31 | 2022-03-25 | 四川天邑康和通信股份有限公司 | Router LANWAN self-adaptation method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106685773B (en) | 2019-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106685773A (en) | Intelligent network type PPPoE (point-to-point protocol over Ethernet) and DHCP (dynamic host configuration protocol) access method and system | |
US6636505B1 (en) | Method for service provisioning a broadband modem | |
US7111054B2 (en) | Customer premises equipment autoconfiguration | |
CN103581161B (en) | Zero setting system and method for network device | |
CN106059994B (en) | Data transmission method and network equipment | |
US20100103941A1 (en) | Data Collection from CPE Devices on a Remote LAN | |
CN104993947A (en) | Method for upgrading firmware in batches | |
CN103166854B (en) | LAN and wan business binding method and system | |
CN103220276B (en) | A kind of method of network insertion, gateway and system | |
CN107302528A (en) | A kind of transmission method of multi-protocol data and a kind of gateway apparatus | |
EP2093959B1 (en) | A method, system and access equipment for realizing service configuration | |
CN107040429A (en) | A kind of method of testing and system of port forwarding performance | |
CN108924219A (en) | The method, apparatus and system of remote operation terminal | |
CN105429832A (en) | Dialing method and system based on PPPOE network, and router | |
CN202094935U (en) | Dynamic IP network based remote switch signal control system | |
CN101980508B (en) | Network adaptive operation mode on network monitoring system | |
CN105142243A (en) | Intelligent double-channel broadband gateway and working method of intelligent broadband gateway | |
CN105933179B (en) | The method of multimedia terminal and push online unexpected message | |
CN114244704B (en) | Router LANWAN self-adaption method and system | |
CN101192998A (en) | Data line detection method based on network processor | |
US7876775B2 (en) | Connection management for data networks | |
CN103260178B (en) | A kind of consumer WAP product detects the method for upgrading automatically | |
Cisco | Configuring and Managing External Modems | |
Cisco | Cisco 10000 Series ESR - Cisco IOS Release 12.2(2)BY1 | |
Cisco | Cisco 10000 Series ESR - Cisco IOS Release 12.2(2)BY2 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |