System and method for selectively bridging and routing data packets between multiple networks
A system and method to permit efficient communication between multiple devices having different network protocols and to permit a private network device to conduct a direct PPPoE session without restricting other devices on the private network from using another IP address. In particular, a gateway device is provided that translates and routes data packets between devices of different network protocols by referring to a table of device addresses and physical port information. Advantageously, the gateway device may maintain the table dynamically. An entry is created for a device the first time it sends a packet over the network, and an entry is deleted if a device has not sent a packet for a predetermined time interval. If no entry exists corresponding to a packet's destination, the packet is sent to all devices on the network. Finally, the gateway device also identifies the ethertype of data packets and routes them accordingly.
Latest 2Wire, Inc. Patents:
- METHOD AND APPARATUS FOR GENERATING A COMMON-MODE REFERENCE SIGNAL
- Method and apparatus for providing power to a network interface device via telephone lines
- Method and apparatus for generating a common-mode reference signal
- Carrier current communication system with infrared receiver
- Data session handling
This application is related to, and claims the benefit of, U.S. Provisional Patent Application Ser. No. 60/227,722, entitled “System And Method for Selectively Bridging and Routing Data Packets Between Multiple Networks,” filed Aug. 24, 2000, the subject matter of which is hereby incorporated by reference.
BACKGROUND1. Technical Field
The present system and method generally relate to electronic networks, and more particularly to a system and method for selectively bridging and routing data packets between multiple networks.
2. Description of the Background Art
Network devices frequently transmit and receive data according to certain protocols. For example, network devices may communicate with each other using protocols such as USB, HomePNA, Ethernet, AppleTalk, HomeRF wireless, 802.11b wireless, and the like. However, configuring and managing a network that permits devices that use different protocols to communicate with each other can be burdensome and expensive.
Moreover, in some network configurations, multiple network devices are coupled to a gateway, which interfaces the multiple network devices with a public network, such as the Internet. Commonly, such a gateway will have a public, or routable, IP address and will serve as a proxy for the multiple network devices that sit behind the gateway. Pursuant to this configuration, each of the multiple network devices has a private IP address that is valid only on the private network. It may be desirable, or necessary, in some instances, however for one or more of the multiple network devices that reside behind the gateway to conduct a direct PPPoE (Point-to-Point Protocol over Ethernet) session over the Internet.
Accordingly, a need exists for a system and method by which multiple devices having different protocols may efficiently communicate with each other. An additional need exists for a system and method by which a private network device can conduct a direct PPPoE session over the Internet through a gateway device.
SUMMARY OF THE INVENTIONA system and method are disclosed to permit efficient communication between multiple devices having different network protocols and to permit a private network device to conduct a direct PPPoE session without restricting other devices on the network from using another IP address.
In general, the invention provides a gateway device that couples multiple physical networks. These physical networks may include both private networks, such as home networks, and public networks, such as the Internet. The various devices connected to the physical networks may each use different network protocols. The gateway device stores a device address and physical port information of the various devices and uses this information to translate and route data packets between the various devices. In addition, the gateway device identifies the ethertype of data packets and routes them accordingly, which enables a device on a private network to conduct a PPPoE session without interfering with the ability of another device on the private network to use a different IP address.
According to one embodiment, the gateway device stores the device address and physical port information as a dynamic look-up table in random access memory. The gateway device creates a table entry for each device the first time the device sends a data packet over the network and deletes the entry if the device does not send a data packet for a predetermined length of time.
Then, as the gateway device receives data packets, it refers to the look-up table to determine the physical port information for the destination device of the packet. The gateway device then translates the data packet using a device driver and sends the data packet to the physical port corresponding to the destination device. If the look-up table contains no entry corresponding to the destination device, the gateway device sends the data packet to all devices on the network.
Other advantages and features of the invention will be apparent from the drawings and detailed descriptions as set forth below.
Broadband link 140 may be implemented as a digital subscriber line (DSL) link, a digital cable link, or any other type of broadband communication link. Private network 112 and gateway device 114 are further discussed below.
Wireless devices 240 communicate with gateway device 114 via wireless network 218 using any appropriate wireless communication protocol, such as HomeRF or 802.11b. Other network devices 222 may be connected to USB host network 220. For example, a USB-to-powerline networking device may be connected to gateway device 114 via USB host network 220.
Gateway device 114 allows each PC or other device in private network 112 to communicate with any other device on the bridged private network 112. Gateway device 114 creates a virtual one-wire private network where each device appears to be connected to every other device, even though devices may be connected to different ports of gateway device 114 and may use different protocols.
Gateway device 114 achieves this virtual one-wire network by translating the protocol of each packet it receives into the protocol used by the receiving device. For example, if PC 230 sends a packet to PC 238, gateway device 114 receives an HPNA packet from PC 230, translates that packet into an Ethernet packet, and then sends the Ethernet packet to PC 238. This translation process is invisible to PCs 230 and 238. Gateway device 114 transmits a packet to the destination device over the physical network to which the destination device is connected and in the protocol of that physical network.
Network controllers 320 include an HPNA Media Access Control (MAC) 322, an Ethernet MAC 324, a USB Host MAC 325, a USB Device MAC 326, a wireless MAC 327, and a broadband MAC 328. The various MACs may be embodied in one or more integrated circuit packages. Each MAC of network controllers 320 communicates with RAM 330 using a direct memory access (DMA) transfer. Software modules stored in RAM 330, in conjunction with CPU 340, control the transfer of packets among the various ports of gateway device 114.
Each packet received by gateway device 114 is translated first into an Ethernet packet, except for packets received on Ethernet port 214. A network device driver (not shown) for each port is configured to convert the native packet type into an Ethernet packet, and convert an Ethernet packet into the native packet type. Techniques for this conversion are not discussed here as they are known in the art.
The contents of MAC table 412 are dynamic. Any device that is added to private network 112 will be added to MAC table 412 as soon as the network device transmits a packet received by gateway 114 via one of the ports 312–317 (
Bridging module 414 uses the contents of MAC table 412 to send each packet to the correct destination. Bridging module 414 finds the MAC address of the destination device specified in a transmitted packet, and looks up that MAC address in MAC table 412 to determine the port of the destination device. Bridging module 414 then sends the transmitted packet to the appropriate device driver (not shown) for conversion into the appropriate format. If there is no entry in MAC table 412 for the destination device, bridging module 414 sends the Ethernet packet to all of the ports of gateway device 114. Thus, transmitted packets do not always have to be broadcast to all network devices; rather, they can be sent to only the physical network to which the destination device is connected.
IP routing module 416 controls the routing of packets between the private network 112 and the public network 120. Packets traveling across the public network are typically routed using Internet Protocol (IP). Packets received by gateway device 114 are converted to Ethernet packets and those with an ethertype of IP are forwarded to the broadband device driver (not shown). The broadband device driver converts the Ethernet packet into the type of packet utilized by broadband link 140.
The
A conventional PPPoE software package may be installed on one or more PCs in private network 112. For example, a PPPoE software package may be installed on PC 230. During a PPPoE session, PC 230 sends HPNA packets to gateway device 114. Gateway device 114 converts the HPNA packets to Ethernet packets as described above. PPPoE module 516 recognizes the ethertype of these packets as PPPoE and, in response, bridges such packets. PPPoE packets typically have an Ethertype (byte 12, 13) of 0x8863 and 0x8864. PPPoE module 516 creates an entry in PPPoE MAC table 512 that includes the MAC address of PC 230 and the port type. The Ethernet packets are then sent to the broadband port driver for conversion into broadband-type packets.
When gateway device 114 receives PPPoE session packets from broadband link 140, the broadband port driver converts the incoming packets into Ethernet packets. PPPoE module 516 identifies the ethertype as PPPoE and looks up the port type of the destination device in PPPOE MAC table 512. PPPoE module then sends the Ethernet package to the appropriate port driver for conversion. PPPoE packets destined for PC 230 will be sent to the HPNA port driver, converted into HPNA packets, and then sent over HPNA port 212 to PC 230.
Next, in step 620, bridging module 214 forwards the Ethernet packet to the network device driver for the destination port. In step 622, the network device driver converts the Ethernet packet into its port type, in this case USB. Then, in step 624, the converted packet is sent to the destination over the appropriate port, or in this case the port 316, to the associated physical network 216 to the PC 242.
In step 718, IP routing module 416 recognizes the ethertype of the received packet as IP. Next, in step 720, routing module 416 forwards the Ethernet packet to the network device driver for broadband link 140. In step 722, the network device driver for broadband link 140 converts the Ethernet packet into the broadband port type. Then, in step 724, the broadband packet is sent to public network 120 via broadband link 140.
In step 818, PPPoE module 516 recognizes the ethertype of the received packet as PPPoE. The Ethernet packet thus does not undergo an IP routing process and is forwarded to the broadband network port driver in step 820. In step 822, the broadband network port driver converts the received packet into the destination port type, which may be ADSL. Then, in step 824, the converted packet is sent over broadband link 140 to broadband access concentrator 130.
The invention has been explained above with reference to specific embodiments. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention as set forth in the appended claims. The foregoing description and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.
Claims
1. A system for selectively bridging and routing data packets, comprising:
- a gateway device coupling a private network and a public network,
- the gateway device comprising: a physical port for coupling to the private network; a physical port for coupling to the public network; a network device driver for each physical port configured to convert data packets back and forth between an Ethernet protocol and a network protocol of the private network; a network device driver for each physical port configured to convert data packets back and forth between an Ethernet protocol and a network protocol of the public network; a bridging module for routing each data packet to a appropriate network device driver based on each data packet's intended destination; a look-up module for use by the bridging module to store device addresses and physical port information; a Point-to-Point Protocol over Ethernet (PPPoE) module and PPPoE Media Access Control (MAC) table for identifying and routing PPPoE data packets between a device on the private network and the public network using a first public Internet Protocol (IP) address without restricting other devices on the private network from accessing the public network using a second public IP address and allowing the device on the private network to bypass IP translation of the gateway device; and a look-up module for use by the PPPoE module to store device addresses and physical port information.
2. The system of claim 1, wherein the physical port for coupling to the public network is a broadband network connection.
3. The system of claim 2, wherein the gateway device further comprises an Internet Protocol (IP) module for identifying and routing IP data packets between the public network and the private network.
4. The system of claim 1, wherein the gateway device further comprises an Internet Protocol (IP) module for identifying and routing IP data packets between the public network and the private network.
5. The system of claim 1, wherein the look-up module for use by the bridging module further comprises a dynamically allocable table including entries comprising a Media Access Control (MAC) address and an identifier of a corresponding physical port of each device.
6. The system of claim 5, wherein the dynamically allocable table further includes entries comprising a Media Access Control (MAC) address and an identifier of a corresponding logical extension of a physical port for each device.
7. The system of claim 1, wherein the look-up module for use by the bridging module further comprises a dynamically allocable table including entries comprising a Media Access Control (MAC) address and an identifier of a corresponding logical extension of a physical port of each device.
8. The system of claim 1, wherein the look-up module for use by the PPPoE module further comprises a dynamically allocable table including entries comprising a Media Access Control (MAC) address and an identifier of a corresponding physical port of each device.
9. The system of claim 8, wherein the dynamically allocable table further includes entries comprising a Media Access Control (MAC) address and an identifier of a corresponding logical extension of a physical port for each device.
10. The system of claim 1, wherein the look-up module for use by the PPPoE module further comprises a dynamically allocable table including entries comprising a Media Access Control (MAC) address and an identifier of a corresponding logical extension of a physical port of each device.
11. A method of selectively bridging and routing data packets, comprising:
- receiving a data packet from a source device in a private network at one of a plurality of physical ports of a gateway device;
- identifying a network protocol of the source device;
- translating, at said physical port of the gateway device, the data packet from the network protocol of the source device to an Ethernet protocol;
- identifying an ethertype of the data packet as Point-to-Point Protocol over Ethernet (PPPoE);
- enabling a PPPoE connection between a device on the private network and a public network with a PPPoE module and PPPoE Media Access Control (MAC) table to allow the device to use a first public Internet Protocol (IP) address without restricting other devices on the private network from accessing the public network using a second public IP address and to allow the device on the private network to bypass IP translation of the gateway device;
- identifying a destination device for the data packet;
- identifying a network protocol of the destination device;
- translating, at said physical port of the gateway device, the data packet from an Ethernet protocol to the network protocol of the destination device; and
- sending the data packet to the destination device.
12. The method of claim 11, wherein the step of identifying the network protocol of the destination device includes referring to a look-up table including a device address and physical port information for each device.
13. The method of claim 12, further comprising the step of creating an entry in the look-up table each time a device first sends a data packet over the private network.
14. The method of claim 13, further comprising the step of deleting the entry in the look-up table if the device corresponding to the entry does not send a data packet over the private network for a predetermined length of time.
15. The method of claim 14, further comprising the step of sending the data packet to all devices coupled to the private network and the public network if the look-up table does not contain the entry for the destination device of the data packet.
16. The method of claim 13, further comprising the step of sending the data packet to all devices coupled to the private network and the public network if the look-up table does not contain the entry for the destination device of the data packet.
17. The method of claim 12, further comprising the step of deleting an entry in the look-up table if the device corresponding to the entry does not send a data packet over the private network for a predetermined length of time.
18. The method of claim 17, further comprising the step of sending the data packet to all devices coupled to the private network and the public network if the look-up table does not contain the entry for the destination device of the data packet.
19. The method of claim 12, further comprising the step of sending the data packet to all devices coupled to the private network and the public network if the look-up table does not contain an entry for the destination device of the data packet.
5673322 | September 30, 1997 | Pepe et al. |
5826032 | October 20, 1998 | Finn et al. |
5999525 | December 7, 1999 | Krishnaswamy et al. |
6047325 | April 4, 2000 | Jain et al. |
6067568 | May 23, 2000 | Li et al. |
6105100 | August 15, 2000 | Dean et al. |
6434627 | August 13, 2002 | Millet et al. |
6480508 | November 12, 2002 | Mwikalo et al. |
6507585 | January 14, 2003 | Dobson |
6674767 | January 6, 2004 | Kadyk et al. |
6704317 | March 9, 2004 | Dobson |
6711162 | March 23, 2004 | Ortega et al. |
6747979 | June 8, 2004 | Banks et al. |
6754709 | June 22, 2004 | Gbadegesin |
6822955 | November 23, 2004 | Brothers et al. |
6853637 | February 8, 2005 | Norrell et al. |
6965614 | November 15, 2005 | Osterhout et al. |
20010030977 | October 18, 2001 | May |
02001251362 | September 2001 | JP |
WO2004/043046 | May 2004 | WO |
- Notice of Transmittal of International Preliminary Examination Report, mailed on Apr. 29, 2003, pp. 1 total.
Type: Grant
Filed: Jul 16, 2001
Date of Patent: Jan 23, 2007
Patent Publication Number: 20020026528
Assignee: 2Wire, Inc. (San Jose, CA)
Inventor: Kwoktung B. Lo (San Jose, CA)
Primary Examiner: ThuHa Nguyen
Attorney: Blakely, Sokoloff, Taylor & Zafman LLP
Application Number: 09/907,178
International Classification: G06F 15/16 (20060101);