There has been a recent trend to change connections to broadband customer premises equipment from a point-to-point protocol over Ethernet (PPPoE) to a dynamic host configuration protocol (DHCP) in order to access features and management capabilities provided by DHCP functionality. Typically, the customer premises equipment is configured to establish either a PPPoE connection or a DHCP connection. This may cause unnecessary delay and frustration when the customer premises equipment attempts to acquire a network connection using an unavailable protocol.
The following detailed description refers to the accompanying drawings. The same reference numbers in different drawings may identify the same or similar elements. Also, the following detailed description does not limit the invention.
Implementations described herein may facilitate automatic detection and establishment of a network connection, such as a DHCP connection or PPPoE connection. In one implementation, DHCP and PPPoE connections may be alternatively attempted for a predetermined number of rounds.
Modem 110 may include a network device, such as a cable modem, a DSL modem, a dial-up modem, or another type of modem, that processes data received on an external link (e.g., on the ISP network side) for transmission on a local link (e.g., on the home network side), and vice versa.
Home router 120 may include a network device that may provide connectivity between the ISP network and the home network. Home router 120 may obtain configuration information, such as a network address and/or one or more configuration parameters, from the ISP network. Home router 120 may also provide firewall functionality for the home network, such as packet filtering and protection against network attacks.
Wireless router 130 may include a network device that may provide wireless connectivity within the home network. For example, wireless router 130 may permit a wireless user device to connect to the home network and/or gain access outside of the home network.
User devices 140 and 150 may include any type or form of computation or communication device, such as a personal computer, a laptop, a personal digital assistant (PDA), etc. A user of user device 140/150 may utilize user device 140/150 to gain access outside of the home network, such as to gain access to a wide area network (e.g., the Internet).
The ISP network may include a number of points-of-presence (POPs) 160-1, . . . 160-N (collectively referred to as “POPs 160”). A POP 160 may include one or more devices that may function as an access point to a network, such as the Internet. In one implementation, a POP 160 may support DHCP functionality, PPP functionality, or a combination of DHCP and PPP functionality. As shown in
DHCP device 162 may include a DHCP server that may maintain a pool of addresses available for assignment. DHCP device 162 may provide a unique IP address and other configuration parameters that a requesting device may need to communicate with a network using DHCP. DHCP device 162 may set a length of time, called a lease, for which a provided IP address is valid. DHCP device 162 may ensure that all IP addresses are unique (i.e., no IP address is assigned to a second device while the first device's assignment is valid (e.g., its lease has not expired)).
PPP device 164 may include an access concentrator that may facilitate the connection of a group of modems to a network, such as the Internet. PPP device 164 may communicate with a requesting device to establish a point-to-point connection using PPPoE. PPP device 164 may establish a connection between two Ethernet ports that can then be used to transport IP packets based on the features of PPP.
Processor 220 may include a processor, microprocessor, or processing logic that may interpret and execute instructions. RAM 230 may include any type of dynamic storage device that may store information and instructions for execution by processor 220. Flash memory 240 may include any type of non-volatile storage device that may store information for use by processor 220.
Input component 250 may include a mechanism that permits an operator to input information to device 300, such as a button, switch, input key, etc. Output component 260 may include a mechanism that outputs information to the operator, such as a display, one or more light emitting diodes (LEDs), a speaker, etc. Communication interfaces 270 may include any transceiver-like mechanisms that enable device 300 to communicate with other devices and/or systems. For example, communication interfaces 270 may include one or more Ethernet interfaces, optical interfaces, coaxial interfaces, or the like.
As will be described in detail below, home router 120 may perform certain operations relating to the automatic detection and establishment of a network connection. Home router 120 may perform these operations in response to processor 220 executing software instructions contained in a computer-readable medium, such as RAM 230. A computer-readable medium may be defined as a physical or logical memory device and/or carrier wave.
The software instructions may be read into RAM 230 from another computer-readable medium, such as flash memory 240, or from another device via communication interfaces 270. The software instructions contained in RAM 230 may cause processor 220 to perform processes that will be described later. Alternatively, hardwired circuitry may be used in place of or in combination with software instructions to implement processes described herein. Thus, implementations described herein are not limited to any specific combination of hardware circuitry and software.
Home router 120 may have a user-configurable parameter that instructs home router 120 to use DHCP only, PPPoE only, or automatic detection when acquiring a network connection.
A network link may be detected (block 310) (
If DHCP is to be used to acquire the network connection, a discover message may be generated and broadcast (blocks 410 and 420) (
Each DHCP device 162 may identify an available address from its address pool. DHCP devices 162 may respond with an offer message that includes an available network address and other configuration parameters. DHCP devices 162 may forward the offer messages to a hardware address associated with home router 120.
Offer messages may be collected (block 430). For example, home router 120 may receive one or more offer messages from one or more DHCP devices 162. In one implementation, home router 120 may collect offer messages received within a predetermined time period. Home router 120 may ignore any offer message received after the predetermined time period. If home router 120 receives no offer messages during the predetermined time period, home router 120 may retransmit the discover message.
A DHCP device 162 may be selected (block 440). For example, home router 120 may select one of the DHCP devices 162 from which home router 120 received an offer message. In one implementation, home router 120 may select a DHCP device 162 based on the configuration parameters provided in the offer message.
A request message may be generated and broadcast (blocks 450 and 460). The request message may identify the selected DHCP device 162 and may specify desired network address and/or one or more configuration parameters. In one implementation, home router 120 may broadcast the request message to the same broadcast address to which it sent the discover message.
DHCP devices 162 may receive the request message. A DHCP device 162 that was not selected by home router 120 may use the request message as notification that home router 120 declined its offer. A DHCP device 162 that was selected by home router 120 may store the network address and/or the one or more configuration parameters for home router 120 in persistent storage. The selected DHCP device 162 may generate an acknowledgement message that contains the network address, the configuration parameters for home router 120, and/or duration of the lease. DHCP device 162 may send the acknowledgement message to home router 120.
The acknowledgement message may be received (block 470). For example, home router 120 may receive the acknowledgement message and check the configuration parameters contained in the acknowledgement message. Home router 120 may also record the duration of the lease. At this point, home router 120 may be properly configured to communicate on the network.
If PPPoE is to be used to acquire the network connection, a two-stage process may be performed, including a discovery stage followed by a session stage. During the discovery stage, an initiation message may be generated and broadcast (blocks 510 and 520) (
The initiation message may be received by one or more PPP devices 164 of one or more POPs 160. If a PPP device 164 receives an initiation message that it can serve, PPP device 164 may generate an offer message. The offer message may identify the PPP device 164 and may identify the service requested by home router 120 and possibly one or more other services offered by PPP device 164. PPP device 164 may send the offer message to the unicast address associated with home router 120.
Because the initiation message was broadcast, home router 120 may receive offer messages from more than one PPP device 164. Offer messages may be collected (block 530). For example, home router 120 may collect offer messages received within a predetermined time period. Home router 120 may ignore any offer message received after the predetermined time period. If home router 120 receives no offer messages during the predetermined time period, home router 120 may retransmit the initiation message.
A PPP device 164 may be selected (block 540). For example, home router 120 may select one of the PPP devices 164 from which home router 120 received an offer message. In one implementation, home router 120 may select a PPP device 164 based on the name of the PPP device 164 and/or the service(s) being offered in the offer message.
A request message may be generated and sent to the selected PPP device 164 (blocks 550 and 560). The request message may identify the service requested by home router 120. Home router 120 may send the request message to the unicast address associated with the selected PPP device 164.
If the selected PPP device 164 receives the request message, the selected PPP device 164 may prepare to begin a PPP session. For example, the selected PPP device 164 may generate a unique session identifier for the PPP session and may include the session identifier in a session confirmation message. The session confirmation message may identify the service for which the selected PPP device 164 has accepted the PPP session. The selected PPP device 164 may send the session confirmation message to the unicast message associated with home router 120. The selected PPP device 164 may then enter the session stage.
The session confirmation message may be received (block 570). For example, home router 120 may receive the session confirmation message and may determine whether the service identified by the message matches the service requested by home router 120. If the service matches, home router 120 may enter the session stage.
During the session stage, resources may be allocated for the service (block 580). For example, home router 120 and the selected PPP device 164 may exchange PPP data with the appropriate PPP encapsulation to enable home router 120 to gain access to the network.
If automatic detection is to be used to acquire the network connection, an attempt may be made to establish a DHCP connection (block 610) (
If the DHCP connection is not successfully established (block 620—NO), then an attempt may be made to establish a PPPoE connection (block 630). For example, home router 120 may perform the PPPoE establishing process described with regard to
If the PPPoE connection is not successfully established (block 640—NO), then another attempt may be made to establish a DHCP connection (block 620). In one implementation, home router 120 may alternatively attempt DHCP and PPPoE connections for a predetermined number of rounds (e.g., two rounds). The predetermined number of rounds may be a user-configurable parameter. While home router 120 attempts a DHCP connection, home router 120 may not attempt a PPPoE connection. Similarly, while home router 120 attempts a PPPoE connection, home router 120 may not attempt a DHCP connection. If no connection (neither DHCP nor PPPoE) is established within the predetermined number of rounds, then home router 120 may declare the connection to be unattainable.
If the DHCP connection is successfully established (block 620—YES), then home router 120 may stop the PPPoE establishing process, if any, clear all states relating to the PPPoE establishing process, and ignore any PPPoE data that it may receive. If the PPPoE connection is successfully established (block 640—YES), then home router 120 may stop the DHCP establishing process, if any, clear all states relating to the DHCP establishing process, and ignore any DHCP data that it may receive.
If at any time during the automatic detection process the active network link is lost or closed, then home router 120 may return to block 610 and attempt to establish a DHCP connection if home router 120 detects that the network link becomes active again.
Implementations described herein may automatically determine the appropriate protocol to use to establish a network connection by, for example, alternatively attempting to achieve DHCP and PPPoE connections.
The foregoing description provides illustration and description, but is not intended to be exhaustive or to limit the invention to the precise form disclosed. Modifications and variations are possible in light of the above teachings or may be acquired from practice of the invention.
For example, while a series of acts has been described with regard to
Also, it has been described that the automatic detection process entails attempting to achieve a DHCP connection followed by a PPPoE connection. In an alternate implementation, the automatic detection process may entail attempting to achieve a PPPoE connection followed by a DHCP connection.
It will be apparent that systems and methods, as described above, may be implemented in many different forms of software, firmware, and hardware in the implementations illustrated in the figures. The actual software code or specialized control hardware used to implement these systems and methods is not limiting of the invention. Thus, the operation and behavior of the systems and methods were described without reference to the specific software code—it being understood that software and control hardware can be designed to implement the systems and methods based on the description herein.
No element, act, or instruction used in the present application should be construed as critical or essential to the invention unless explicitly described as such. Also, as used herein, the article “a” is intended to include one or more items. Where only one item is intended, the term “tone” or similar language is used. Further, the phrase “based on” is intended to mean “based, at least in part, on” unless explicitly stated otherwise.
Number | Name | Date | Kind |
---|---|---|---|
6560648 | Dunn et al. | May 2003 | B1 |
6957276 | Bahl | Oct 2005 | B1 |
6958996 | Xiong | Oct 2005 | B2 |
20030069947 | Lipinski | Apr 2003 | A1 |
20030069992 | Ramig | Apr 2003 | A1 |
20040078708 | Li et al. | Apr 2004 | A1 |
20040114610 | Featherston et al. | Jun 2004 | A1 |
20050015644 | Chu et al. | Jan 2005 | A1 |
20050102406 | Moon | May 2005 | A1 |
20060250982 | Yuan et al. | Nov 2006 | A1 |
Number | Date | Country | |
---|---|---|---|
20080162702 A1 | Jul 2008 | US |