<<

CONNECTING THE HOME WITH A PHONE LINE NETWORK CHIP SET

IN ADDITION TO SHARED ACCESS FOR PCS, THE

WILL CONNECT TO EVERY CONSUMER ELECTRONIC DEVICE. TO MAKE THIS

POSSIBLE, WE MUST CONSIDER ROBUST SYSTEM REQUIREMENTS, HOME

PHONE LINE STANDARDS, COSTS, AND IMPLEMENTATION OF A SUPPORTING

ILINE10 CHIP SET.

We live in an age of ever-accelerating Local Loop (FWLL), terrestrial technological change. The signal event at the broadcast, and satellite broadcast—are being end of the second millennium was almost cer- developed and will increase the flood of digi- tainly the explosion of the Internet. In 1995 tal information reaching the home. It is gen- there were 20 million Internet users; by 1998 erally assumed that our 50-year-old voice there were 160 million. We could have 500 telephony infrastructure will be replaced with million users worldwide by 2003, with over an integrated broadband digital network car- 14 countries having more than 40% of their rying voice, audio, video, and data. population online. Those 14 countries repre- What is less well appreciated is that the elec- sent more than half of the world’s GDP (gross tronic dendrites of this network will extend domestic product). beyond the to every elec- Internet-based commerce has grown from tronic device within the home, connecting lit- essentially zero in 1995 to $50 billion in 1998, erally billions of devices (see Figure 1, next Edward H. Frank and industry observers expect it to reach page). $1,300 billion by 2003. There is an unprece- Jack Holloway dented level of investment in Internet-relat- Connecting the home ed business ventures—a direct consequence Traditional (TV, stereo of the appreciation that the “new world order” audio, telephones) are already in the process of built on a wired information network will pro- being redefined to use digital technology. In the foundly affect the way we work and live. new era, these devices will be designed with a More than half of US homes today have communications network built in as a standard access to the Internet, primarily via dial-up component, mirroring the absorption of the voice . Multibillion-dollar invest- embedded microprocessor that occurred in the ments are being made in cable and previous era. Network-connected devices will DSL () infrastructure to be smarter, easier to use, and easier to maintain, upgrade that access to broadband reception. transforming today’s TV, radio, and telephone. By 2003 we expect one third of connected US Novel Internet appliances will be invented homes to subscribe to a broadband always-on to access new services that are carried by the access service. Several new broadband digital new-era network. As shown in Figure 2, IDC technologies—such as Fixed Wireless projects this product category to grow rapid-

0272-1732/00/$10.00  2000 IEEE 1 CONNECTING THE HOME

Satellite and Kid's bedroom Master bedroom Study wireless service IP telephone Web browser broadband IP MPEG video broadband access access Cable service provider

Broadband gateway Local Living room telephone Digital set-top provider box Kitchen Integrated Web Garage Terrestrial IP telephone browser Standard digital broadcast IP video phone IP video phone telephone

Figure 1. Connectivity in a networked home.

line networking. (See HPNA 2.0 system1 and 35 http://www.homepna.org). This group has Consumer PC 30 introduced a first-generation 1-Mbps tech- Consumer info appliance nology (based on a system developed by Tut 25 Systems) and a second-generation 10-Mbps technology (based on a joint proposal from 20 Broadcom Corporation and Lucent Micro- 15 electronics). Home phone line networking is well suited for the interconnection of broad- 10 band voice, video, and data within the home since it offers data rates from 10 to 100 Mbps US consumer unit shipments 5 with good . Industry reports 0 1999 2000 2001 2002 2003 estimate shipments of 1 million HPNA-com- Year patible interfaces by the end of 1999, and somewhere between 5 to 10 million interfaces Figure 2. The growth in home PCs and Internet appliances. Source: Interna- by the end of 2000. tional Data Corporation (IDC), 1999 Networking over the existing home phone line infrastructure suffers from many impair- ments (as do all “no-new-wires” physical ly, eventually far exceeding the number of PCs media), namely high attenuation, reflections, in the home. impulse noise, cross talk, and RFI ingress and The hard reality is that consumers don’t egress. These challenges must be overcome by want to buy networks. However, they will be a successful technology. motivated to buy smart network-connected devices that entertain, inform, educate, con- Home networking requirements nect, and increase convenience and choice. To For a home networking technology to be initiate rapid market adoption, these devices successful, it must properly address certain will need to plug in as simply as a telephone, issues. It must with no new wires. The home has three existing wiring infra- 1. leverage existing wiring infrastructure structures that can be exploited: phone line and be easy to install; wiring, wireless, and AC power wiring. It 2. leverage existing standards and interwork appears that all three will be used, with phone with common operating systems and line networks deployed first. software platforms; In 1998 the computer and semiconductor 3. implement a quality of service (QoS) industries created the Home Phone Line Net- mechanism that provides low latency for working Alliance (HPNA) to select, promote, telephony and other voice applications, and standardize technologies for home phone and implement guaranteed bandwidth for

2 IEEE MICRO Table 1. Comparison of networking technologies.

Parameter HPNA 2.0 Wireless Power wire (Category 5) Leverage existing infrastructure Good Good Good Poor Leverage standards Good M edium Poor Excellent (802.3 compatible) (too many standards)* (no standards) QoS support Good Good to poor Unknown M edium (some standards have (simple hubs don’t support no QoS provision) QoS; more expensive switches may) Robustness Good M edium Unknown Good (highly impaired channel) Performance >10 Mbps; 1 to 11 Mbps; Unknown 10, 100, 100 Mbps up to 50 Mbps (highly variable 1,000 Mbps next generation at 5 GHz channel capacity) Privacy of physical medium Good Poor Poor Good Future safe Good Poor Unknown Good (too many standards, potential for interference) Cost Good M edium Unknown M edium (initial installation (RF circuitry is (but should be (low hardware cost, but cost:<$100; ne w harder to integrate) comparable to HPNA) higher cost when connected devices:<$50) installing ne w wiring)

*Several competing systems are under development and proposed for the unlicensed 2.4-GHz band (, HomeRF, IEEE 802.11b). This band has multiple sources of interference such as Digital Enhanced Cordless Telecommunications (DECT) standard phones, and ovens. The 5-GHz NII spectrum may also be used for home networking, using IEEE 802.11a or some other standard. Other standards and frequencies are proposed for systems to be used in Europe and Japan.

streaming audio and video applications; Leveraging standards 4. be very robust and provide connectivity The importance of leveraging standards in essentially every home; cannot be overestimated. There are two issues 5. support data rates in excess of 10Base-T to consider: 1) is there an accepted standard Ethernet and scale to 100 Mbps in a way that guarantees interoperability between that remains compatible with installed equipment from multiple manufacturers, and earlier generations; 2) does the system faultlessly support other 6. provide reasonable privacy at the physi- networking standards and in particular the cal layer (wireless and power line tech- Internet protocol (IP) suite. Only protocols nologies require some level of that have been extensively tested for many to achieve wired-equivalent privacy); years in real use are likely to be ready for large- 7. be future safe, employing designs that are scale consumer deployment. Given the pre- scalable and extensible so that users do ponderance of IEEE-802.3 Layer 2 not have to do “fork-lift” replacements networking across the Internet infrastructure, when upgrading their networks in the HPNA has chosen a technology that uses future; and 802.3 framing and Ethernet CSMA/CD (car- 8. be implementable with sufficiently low rier sense multiple access with collision detec- cost to allow inclusion as a standard in a tion) MAC (media access control) behavior. wide variety of products. Quality of service Table 1 summarizes how well the principal Anticipated home applications will drive the choices for home networking technology meet requirement for QoS support. The initial moti- these criteria. vation for home networking is sharing resources

MARCH–APRIL 2000 3 CONNECTING THE HOME

among multiple PCs such as Internet access, files, • impulse noise coupled from AC power and printers. However, the ultimate applications wiring that is seen on many phone lines; that will dominate home networks are the trans- and port of digital audio, digital video, and digital • RF ingress and egress, particularly in the voice (IP telephony). Latency in voice connec- amateur radio frequency bands. tions must be controlled below 10 to 20 ms on the home network segment if voice quality is to Little prior field survey has been done to sta- be maintained. Streaming video and audio con- tistically model these impairments. nections must receive an application-determined Such less-than-ideal channels can have an minimum bandwidth from the network. impact on both robustness and performance. Although the aggregate throughput rate of One way to overcome the challenge present- 10 Mbps for HPNA 2.0 is more than adequate ed by what might be referred to as impaired for many application scenarios, burst loads pre- media is to simply operate at very low data sented by TCP transfers between PCs, without rates (when compared to the theoretical chan- some QoS mechanism, would at times make nel capacity) or over very limited distances. the network unable to meet the latency and The X-10 system4 used for control of lights guaranteed bandwidth service requirements. and other devices on power lines adopts the Furthermore, bandwidth allocation within a low data rate approach. given class of service should be fair. The tradi- tional Ethernet MAC2 layer exhibits a phe- Performance nomenon known as packet capture,3 which can The HPNA 1.0 technology5 uses a pulse result in long tail access latency distributions. position modulation (PPM) technique with The HPNA 2.0 MAC layer introduces eight a spectral efficiency of 0.16 bits/baud, result- priority levels and an improved collision reso- ing in a 1-Mbps data rate. The second-gener- lution technique that eliminates packet capture. ation system targets an order-of-magnitude higher data rate. Robustness History has taught us that higher network The primary difference between twisted- speeds are always better. In home networking pair Ethernet and other technologies is the several external influences persuade us that we quality of the communications channel. Run- require at least 10 Mbps. The common broad- ning over Category-5 cable, Ethernet encoun- band access technologies such as ADSL (asym- ters a channel that has a number of very nice metric digital subscriber line) and the properties. They include point-to-point com- DOCSIS (Data Over Cable Service Interface munication, proper termination, a well-char- Standard) require home net- acterized channel response (both in terms of works with data rates of 6 Mbps or more to nulls and overall attenuation), and very low share the access bandwidth. Moreover, appli- cross talk. In contrast, all of the no-new-wires cations such as multiple DVD streams or high- media available for networking within homes definition digital video make it easy to imagine have the problem that the communications that even 10 Mbps isn’t enough. Therefore, channel can be severely impaired. the alliance designed the HPNA 2.0 system to The ad hoc home wiring topology results in achieve data rates up to 32 Mbps in approxi- mately the same bandwidth as the HPNA 1.0 • reflections and frequency-dependent system and be forward compatible with future channel transfer functions; stations operating at speeds up to 100 Mbps. • uncharacterized and highly variable wire To achieve high data rates over impaired transmission parameters, especially at channels, we need to use some form of complex higher frequencies; modulation and a receiver that is adaptive to the • telephone instruments on the same frequency-dependent channel characteristics. wiring that present a wide range of fre- Channel response is a function of the location quency-dependent impedances; on the network wiring of both the transmitter • POTS (plain old telephone system) sig- and receiver, so this adaptation is different for naling and ringing that can produce sig- each unique transmitter-receiver pair. Channel nificant transients; response can also vary over a short time frame

4 IEEE MICRO when telephone instruments iLine InsideLine Computer change impedance during 10 switch-hook transitions and Ethernet CSMA/CD dialing. To work reliably over MAC with QoS a wide range of possible home Existing iLine home Board wiring configurations, we have phone wire QAM modulation 10 chosen to design stations to be PHY (4-256 QAM 2-25 Mbaud) rate adaptive. Then when there iLine Modem isn’t sufficient channel capaci- 10 ty on a given path for the full rate, connectivity can still be iLine achieved at lower rates. TV monitor

S 10

The fundamental design T Down- O challenge for home phone P Upstream stream 4 MHz 10 MHz line networking is how a POTS xDSL HPNA 2.0, HPNA 1.0 35 kHz 100 kHz receiver can determine—for each burst transmission seen Figure 3. A vie w of the HPNA 2.0 stack and spectrum. on the channel—the equal- ization and demodulation that should be applied to recover the packet. puter and networking industries, volume is And conversely, for each transmitter, what everything. With decreasing prices for computer modulation rate is feasible when sending to a equipment—especially for the home—a suc- given destination station? cessful home-networking technology must be In HPNA 2.0, this is accomplished with a inexpensive, and it must ride Moore’s law. Prac- self-describing frame format with PHY-level tically, the technology must be implementable signals that can directly control equalizer in mainstream CMOS technology and require training and demodulation. few additional external components.

Physical layer privacy HPNA 2.0 system Both power wire and wireless systems allow Figure 3 illustrates the HPNA 2.0 system users to share the same physical medium. from the point of view of the network stack Therefore, they must have encryption at the and frequency spectrum; the system is a mul- link level to attain a degree of privacy equiva- tipoint CSMA/CD packet network that sup- lent to the phone line. This requires some user ports unicast, multicast, and broadcast key configuration, which somewhat defeats the transmissions. It has the look and feel of Eth- plug-and-play objective. On the other hand, ernet. However, it differs from 10Base-2 and the presumptive privacy of phone wires is not 10Base-T in a number of respects. First and a substitute for true cryptographic security. foremost, HPNA 2.0 places no restrictions on wiring type, wiring topology, or termination. Future safeness Moreover, like 10Base-2, but unlike 10Base- Once installed, home networks are likely to T, HPNA 2.0 uses a shared physical medium remain in place for many years. Worse yet, as with no need for a switch or hub. On the other home network interfaces become embedded hand, 10Base-T requires dedicated point-to- in appliances, it may become almost impossi- point Category-3 or Category-5 wires. ble to replace them. Thus, a good home-net- working technology ideally has built into the current generation a plan for interoperability At the physical layer, the system is frequen- with future generations. cy division multiplexed on the same wire as used by the standard analog phone service and Cost splitterless ADSL.6 Analog telephony uses the Finally, there is the issue of implementation low part of the spectrum: below 35 kHz. cost and complexity. As has become very well ADSL (both G.Lite and G.Heavy) use spec- understood over the last 10 years by the com- trum up to 1.1 MHz.

MARCH–APRIL 2000 5 CONNECTING THE HOME

HPNA selected the 4- to 10-MHz band for (FDQAM). several reasons. The lower limit of 4 MHz In a traditional QAM system, a single copy makes it feasible to implement the filters need- of the baseband signal is sent and received. ed to reduce out-of-band interference between Because in FDQAM the baud rate is less than HPNA and splitterless ADSL. After model- half the filter’s width, the output signal has ing several thousand representative networks two redundant copies of the baseband signal. with capacitive telephones and common wire Thus, the signal is frequency diverse, moti- lengths, it was determined that the spectrum vating the name FDQAM. above 10 MHz was much more likely to have Intuitively, it’s easy to see that on channels wider and deeper nulls caused by reflections.7 where half of the spectrum is nulled out, one Cross talk between phone lines increases with copy of the signal will still make it through. frequency, and the analog front end is harder Quantifying FDQAM performance versus to implement at higher frequencies. The par- that of QAM on arbitrary channels is more ticular choice of 4 to 10 MHz only overlaps a complicated, and this analysis is not included single amateur radio band (40 meters), which here. However, on channels with a low signal- simplifies ingress and egress filtering. to-noise ratio, or SNR, where a large part of While HPNA 1.0 uses PPM, HPNA 2.0 the spectrum is severely attenuated, FDQAM uses quadrature amplitude modulation works robustly in many cases where uncoded (QAM), both to get more throughput in the QAM would fail. Such channels are common same bandwidth and to achieve greater on home phone lines. Unlike most other robustness. However, because the channels methods of handling severe channels, may have very deep nulls, and multiple nulls FDQAM does not require the transmitter to in band, two techniques are used. The first have knowledge of the channel characteristics. technique, as mentioned earlier, is adapting This simplifies the protocol and enables robust the modulation rate. Instead of having a fixed performance over time-varying channels. number of bits per symbol, a transmitter may, In cases where the channel nulls are not par- on a packet-by-packet basis, vary the packet ticularly deep, HPNA 2.0 allows for a higher encoding from 2 to 8 bits per symbol. A pack- performance 4-Mbaud mode, which achieves et header is always encoded at 2 bits per sym- peak data rates up to 32 Mbps and through- bol, so that every receiver can demodulate at put above 20 Mbps. least the packet’s header. The system uses a fixed 7-MHz carrier fre- Frame format quency and can operate at either 2 Mbaud or Figure 4 shows the frame format on the wire. 4 Mbaud with modulation encodings of 2 to The frame begins with a known 64-symbol pre- 8 bits per symbol. The base symbol rate is 2 amble. The preamble supports robust carrier Mbaud. At this rate, the system has a peak sensing and collision detection, equalizer train- data rate ranging from 4 to 16 Mbps, though ing, timing recovery, and gain adjustment. overhead reduces the actual throughput the Following the preamble is a frame control system can achieve. In practice, to achieve per- field, the first part of which is an 8-bit frame formance equivalent to 10Base-T Ethernet, a type. Frame-type = 0 is shown in the figure, packet must be sent at 6 bits per symbol. where other codes can be assigned for future system frame formats. Following the frame type Frequency-diverse QAM is an 8-bit field that specifies the modulation Unfortunately, the nature of channel nulls format (bits per symbol, for example). There can be such that even rate adaptation down are other miscellaneous control fields in frame to 2 bits per symbol is not sufficient to guar- control including an 8-bit CRC header. The antee that the packet can be received. In a tra- remainder of the packet is exactly an 802.3 Eth- ditional QAM system, if there is an extreme ernet frame followed by CRC16, padding, and null (that is, one with which the equalizer can’t EOF sequence. The CRC16 covers the head- cope) in the band, the system will fail to oper- er and payload, and reduces the undetected ate. At its 2-Mbaud rate, HPNA 2.0 imple- error rate for severely impaired networks. ments a modified version of QAM invented Key to operation is that the first 120 bits of by Eric Ojard called frequency-diverse QAM the frame are sent at the most robust 2-

6 IEEE MICRO Ethernet packet

Frame Ether- CRC Preamble DST SRC Ethernet data FCS PAD EOF control type 16

64 symbols 16 4 sym. sym.

Trailer Header Payload (2-Mbaud (2-Mbaud QPSK) (2- or 4-Mbaud QPSK to 256 QAM) QPSK)

Figure 4. HPNA 2.0 frame format.

Mbaud, 2-bits/symbol rate so that any station to send, and when N2 and N0 contend for able to demodulate a packet can do it at this access (resulting in a collision), N2 by chance encoding. Thus, even if the payload is encod- chooses a longer back-off interval than N0. N0 ed at a rate or bits/symbol that the receiver gains access again and transmits. During this can’t demodulate, it will be possible to demod- time, another station N1 becomes active, and ulate the header. In this situation, the receiv- starts deferring, waiting for N0 to finish. Now, er sends a rate request control frame (RRCF) when N2 attempts to transmit, it collides with to the sender, asking it to reduce the number N1. A possible outcome is that N1 succeeds in of bits/symbol or the symbol rate. the collision resolution, and N2 further increas- In practice, the system starts out sending at 2 es its back off. In this manner, the queuing dis- bits/symbol unless the receiver sends an RRCF, cipline can become very unfair for N2. If N0 asking for future packets to be sent at higher and N1 are PCs engaged in file transfers, they data rates. Several algorithms can be used to can generate enough traffic loading on the net- determine when to send RRCFs and to estimate work to cause errors in the VoIP service oper- the channel capacity using an approximate SNR ating on N2. and bit error statistics. The rate adaptation algo- One solution is to introduce different access rithm can optimize the rate used when sending priorities in which the VoIP station uses a high- to multicast and broadcast groups. er priority than best-effort file transfer traffic. HPNA 2.0 accomplishes this by organizing the Media access control time following the interframe gap into an As mentioned earlier, HPNA 2.0 is a ordered series of priority slots. See Figure 5. CSMA/CD system, just like the standard When N0 finishes transmitting, all stations IEEE 802.3 Ethernet. HPNA 2.0 introduces on the network with a lower priority than 7 eight levels of priority and uses a new colli- wait while N2 begins to transmit (without col- sion resolution algorithm called distributed lision). After N2’s transmission, no stations fair priority queuing (DFPQ). have traffic with priority higher than 1, so N0 Voice telephony requires a low-latency net- again gains access to the channel with its next work service, and streaming audio or video transmission. applications require a guaranteed bandwidth Access priority lets software define differ- service. With the MAC in Ethernet, there are ent service classes such as low-latency, con- no real service guarantees. trolled-bandwidth, guaranteed-bandwidth, For example, three nodes (N1, N2, and N3) best effort, and penalty. Each uses a different could contend for access to the network. Node priority level. N2 is transmitting a voice-over-IP (VoIP) pack- Within a given priority level, HPNA 2.0 et. Initially, N0 accesses the wire and transmits uses a new algorithm for collision resolution. a frame (TX). During this transmission N2 has Each station keeps track of a back-off level packetized a voice sample and is ready to trans- and after a collision, randomly chooses to mit, but must defer to N0. At the end of the increment the back-off level by 0, 1, or 2. first transmission, N0 has a second packet ready During a collision resolution cycle, stations

MARCH–APRIL 2000 7 CONNECTING THE HOME

PRI slot 7, N2 goes

N0 TX IFG 7 Deferring IFG 7 6 5 4 3 2 TX (PRI = 1) IFG

PRI slot 1, N0 goes N2 Deferring TX IFG 7 6 5 4 3 2 1

Min. latency

Figure 5. Priority example.

Back-off signals Collision Back-off level = 1

N0 TX IFG 7 CX S0 S1 S2 7 6 Deferring IFG 7 EOF

N1 Waiting IFG 7 CX S0 S1 S2 7 TX IFG 7

Back-off level = 0

Figure 6. HPNA 2.0 collision resolution algorithm.

incrementally establish a partial ordering. Link layer protocols Eventually, only one station remains at the Another impairment is a problem for all lowest back-off level and gains access to the home networks using no-new-wires technol- channel. ogy: impulse noise. On phone wires, impulse In the example shown in Figure 6, N0 and noise exists due to phone ringing, switch- N1 enter into a collision resolution cycle. N0 hook transitions, and noise coupled from the randomly chooses to increment its back-off AC power wiring. Fortunately, the impulses level by 2, and N1 by 0. To optimize the par- tend to be short and destroy only a single tial ordering, eliminating null levels, stations packet. While there are coding techniques send a special signal immediately following a that might reduce the number of packets collision. The signal reflects the back-off incre- destroyed by impulses, we have chosen to use ment chosen (0 and 2 in the example shown). a fast retransmission mechanism we call lim- All stations observe these signals and perform ited automatic repeat request (LARQ). a distributed computation to calculate the Because LARQ is implemented (in software) new (partial) ordering. In this case, N0 incre- at Layer 2 and because it operates only on a ments its back-off level by 1 because it saw the single segment of the network, it is very effec- back-off signal from N1 in S0, but no station tive in hiding packet erasure from TCP/IP, as indicating in S1. demonstrated in Figure 7. In practice, even on saturated networks, Finally, note that HPNA 2.0 implements a HPNA 2.0 behaves very well, and unlike tra- link integrity mechanism, which can be ditional Ethernet does not exhibit the capture implemented either in hardware or at low lev- effect. As the offered load increases, Ethernet els of a software driver. The virtue of link experiences delays of hundreds of frame times integrity is that it provides a quick and easy for several percent of transmission attempts. way for the end user to determine if the net- When compared with the Ethernet delay, the work has basic connectivity. Link integrity HPNA 2.0 access latency distribution reveals frames are sent once per second, unless there a negligible tail beyond twice the minimum is traffic on the wire, in which case a reduced time to service each active station, even at high number of frames may be sent. offered loads.

8 IEEE MICRO iLine10 chip set framing. All but the initial part of the frame The iLine10 two chip set implements a is scrambled and encoded into symbols, where combined MAC/PHY approach for both the number of bits/symbol depends on frame HPNA 1.0 and HPNA 2.0. The major com- position and rate adaptation. The symbols are ponents of a complete PCI NIC board are upsampled and modulated into a QAM-like signal and then filtered. The receiver reverses • the BCM4210 MAC/PHY chip, the functions performed by the transmitter. • the BCM4100 analog front-end chip, The carrier sense and collision detection • a magnetics module for phone line iso- blocks are critical DSP functions. These oper- lation and protection, ations must be performed on signals with • a serial PROM with MAC address and other configuration, and 10 • a crystal. 9 With LARQ BCM4210 MAC/PHY chip 8 ) s

We implemented the primary component of p

b 7 the system—the BCM4210 MAC/PHY chip— M (

e using standard cells together with compiled t 6 a r

blocks for registers and memory. Approximate- a

t 5 a ly half the chip is dedicated to the PHY signal- d

r 4 e

processing functions. The frame processor s u 3 implements MAC layer functions such as CRC p c

t Without LARQ processing, address filtering, and wake-on-LAN. t 2 Figure 8 shows the major blocks of the 1 BCM4210; Table 2 describes its parameters. 0 On transmission, the system transfers pack- 0 10 20 30 40 50 60 70 80 90 100 110 120 ets via DMA over the host interface into an Impulse rate (events/sec) on-chip frame buffer. Each packet is aug- mented with a preamble, frame control, FCS, Figure 7. User-level throughput versus impulse noise events/sec. CRC16, and padding in the block labeled

AID/ 1.0 mode end-of-packet transmitter generator

Constellation Gap QAM/ Framing Scrambler FDQAM encoder insertion Collision detection modulator and carrier sense are DSP functions Control CSMA/CD Collision detection Host/ Frame Collision 2-4 wire MII buffer resolution hybrid interface Carrier QoS sense Control

QAM/FDQAM De- De- Constellation Front Demodulator framing scrambler decoder end Gap removal 2.0 mode 1.0 mode AID 1.0 mode receiver detector MAC

Figure 8. Block diagram of the BC M 4210.

MARCH–APRIL 2000 9 CONNECTING THE HOME

widely varying frequency-dependent attenu- dard PCs and a variety of embedded applica- ation, in real time. tions. The DMA engine supports a descrip- We chose a high sample rate of 32 Msam- tor-based architecture similar to what is found ples/sec to eliminate the need for precise ana- in other Ethernet MAC chips. The frame log domain filtering. Approximately 500 processor implements perfect filtering for up Moperations/sec are required for receive fil- to 64 MAC addresses and an imperfect filter tering, carrier sensing, and collision detection, for 2,048 addresses. The chip set is PC99 and this led us to prefer a hardwired data path. compatible, implementing four 128-byte Each of the chip’s subfunctions has its own wakeup patterns and dissipating less than 375 multipliers and adders. To minimize area, we mA when in D3 sleep state. kept the precision of each multiplier-accumu- lator to the minimum required for that step of BCM4100 analog front end the algorithm. The transceiver operates in two Figure 9 is a block diagram of the modes, native 2.0 and backward-compatible BCM4100 analog interface to the phone wire. 1.0, so that both HPNA 1.0 and HPNA 2.0 The receive path dominates the active chip can interoperate on the same phone wire. area. We carefully designed the layout and wire The host interface includes a complete 33- placement to minimize cross talk between dig- MHz, 32-bit PCI master and slave, as well as ital and analog blocks. Table 3 summarizes the a variety of other slave-only interfaces that key implementation parameters. allow the BCM4210 to be used both in stan- One of the challenges of phone line net- working is that due to both FCC part 68 requirements for maximum signal levels on Table 2. Implementation parameters for the phone lines and avoiding audible noise in BCM4210 MAC/PHY chip. phones caused by accidental envelope detec- Parameter Description tion of the HPNA signal, the transmit power Process 0.25-micron C M OS is severely limited. The HPNA 2.0 system has Package 144-pin TQ FP a peak signal level of approximately 750 mV Gates 250,000 peak to peak, and a PSD (power spectral den- M emory size 80 Kbytes sity) of −74dBm/Hz. Clock speed 64 M Hz Because the system is intended to operate Voltage 3.3 V (core and pads) with almost 40 dB of insertion loss, the min- Pow er 500 m W imum received signal can be less than 10 mV. Die size 4.5 mm × 4.5 mm This amount of insertion loss, combined with Equivalent transmit (operations/sec) 0.7 billion the relatively modest transmit voltage, means Equivalent receive (operations/sec) 2.2 billion that significant care was necessary not to intro- duce additional noise in the analog front end.

64 MHz xi xo

BCM4100 Clock interface s t

RX1 d n AFE_CLK ADC VGA Filter VGA n e a

n r o AFE_DAC [4:0] e c Phone line p i m n

O d r m i / RJ-11 o

I r

RX2 o

AFE_PWRDN o r

f

l t b c s

c

a y

t n n

i e h

AFE_RESET_L l a o

g r i

i E t t /

D c r e

AFE_GAIN [1:0] e t

TX t l i Transmit-off o r

Filter F AFE_ADC [5:0] DAC switch p AFE_CAL

Figure 9. Block diagram of the BC M4100.

10 IEEE MICRO For example, we determined that the combi- Table 3. Implementation parameters for the nation of the DAC and the active transmit fil- BCM4100 analog front-end chip. ter generated several dBs of noise, whether or not the transmitter was active. As a result we Parameter Description added a low-noise output switch on the trans- Technology 0.35-micron, double-poly C M OS mit path that decouples the on-chip circuitry Package 48-pin TQ FP when no packet is being transmitted. Voltage 3.3 V The ADC uses a pipelined architecture and Pow er 500 m W achieves an SNDR of 57 dB, or an equivalent DAC resolution 10 bits number of bits (ENOB) of almost 9.2 bits. The ADC resolution 10 bits dynamic range required led us to a design that SNDR (EN O B) 57 dB (9.2 bits) uses automatic gain control. The analog front Sample rate 32 Msamples/sec end, or AFE, contains a variable gain amplifier that is controlled digitally by the BCM4210 as a function of an estimation generated during receiver. In its simplest mode, the verification the preamble processing. system could be used to transmit a packet, which is then cooked using the channel model Magnetic and serial PROM and demodulated using the receiver. In prac- The magnetics module contains a trans- tice, the transmitter implementation is much former that provides electrical isolation and a simpler than the receiver. Using the channel hybrid function. Although several different modeler, we could generate millions of pack- implementations are possible, for performance ets (thousands of packets cooked by thousands reasons we use a split winding design. The of network topologies) to verify that the external transformer together with a small receiver was operating correctly. In addition number of passive components performs some we hand-generated several worst-case packets low-pass filtering to remove AM radio, POTS, that had, for example, worst-case peak-to- and ADSL signals that may be on the wire. average signals, timing offset, and so on. The primary purpose of the serial PROM is The next important use of the C imple- to store the 48-bit Ethernet MAC address. In mentation of the system is that it is possible to addition, it contains information such as use it as a “soft-PHY.” In this mode, together whether hardware link integrity is enabled by with a hardware analog front-end board that default, the Cardbus Information Structure, and plugged into a PC, we could actually send and PCI subsystem vendor IDs. Software can read receive packets at a reasonable rate, prior to and write the serial PROM to ease manufac- silicon availability. By using Pentium MMX turing. A locking mechanism prevents certain instructions to augment certain inner loops, key data from being overwritten in the field. we could demodulate at rates greater than 4 Mbps on a single-processor 400-MHz Pen- Verification environment tium. This soft implementation allows us to Because of the complexity of these chips, verify that the system operated correctly, particularly the BCM4210, it was necessary debug the upper layers of the drivers and the to implement a very robust verification envi- link layer protocols such as LARQ, and per- ronment. There are two key elements of this haps most importantly give realistic and environment. The first is a channel modeling impressive demonstrations of the system. system that was developed based on measur- We also used the C implementation in ing actual homes, combined with theoretical debugging the VHDL software used to imple- models for parameters such as wire gauge and ment the BCM4210. With great care and wire balance. This channel model allows us to effort, we matched the C and VHDL imple- generate “cooked” packets. That is to say, it mentations on a cycle-by-cycle basis in both allowed us to create a set of digital samples time and arithmetic calculations on major corresponding to a packet that traversed a par- block boundaries. We viewed any discrepan- ticular channel from one node to another. cy between the two implementations as a bug. The other key element is a C language Though the general transmitter and receiver implementation of both the transmitter and algorithms used in both the C and VHDL

MARCH–APRIL 2000 11 CONNECTING THE HOME

implementations were the same, their details .org. were very different. The C implementation 2. R. Metcalfe and D. Boggs, “Ethernet: Distrib- processes a block of samples at once, while the uted Packet Switching for Local Computer VHDL implementation is a sample at a time Networks,” Commun. ACM, New York, N.Y., in the hardware pipeline. By matching these Vol. 19, No. 5, July 1976, pp. 395-404. two implementations at block boundaries, we 3. M.L. Molle, A Ne w Binary Logarithmic convinced ourselves that the hardware cor- Arbitration Method for Ethernet, Tech. Report rectly implemented the DSP algorithms. CSRI-298, Computer Systems Research Finally, the verification environment pro- Institute, Univ. of Toronto, Apr. 1994. vided the means to connect multiple instances 4. X-10 FA Q, ftp://ftp.scruz.net/users/cichlid/ of either hardware or software simulations. public/x10faq. This let us verify that the MAC was func- 5. HPNA 1.0 Specification, Nov. 1999; available tioning correctly. to members of HPNA, see http://w w w. homepna.org. ome networking is now a reality. Using 6. W. Chen, DSL: Simulation Techniques and Hadvanced signal-processing techniques Standards Development for Digital Sub- and high-density CMOS makes it possible to scriber Line Systems, Macmillan Technical transmit data over existing media, such as in- Publishing, Mar. 1998, ISBN 1578700175. place telephone wire, at rates once considered 7. Spectrum Selection for Home Phone Line impossible. Equally important, the cost of Networking, ITU-T Study Group 15, NG-101, these solutions is such that the chips can be Nuremberg, Germany, 2 Aug. 1999. built into a wide variety of computers and Internet appliances. Edward H. Frank cofounded and is executive Just as the microprocessor has become an vice president of Epigram, now the Home Net- essential component of every digital device, we working Division of Broadcom Corporation. anticipate that a communications element, Previously, he served as vice president of engi- which we call the Internet-chip, or I-chip for neering for NeTpower, Inc., and was a Distin- short, will become an equally essential element guished Engineer at Sun Microsystems. At Sun, in every digital system over the next several he worked on the Green Project, which creat- years. Consumers will come to expect that the ed Oak, the precursor to Java, and was coar- devices they buy have an I-chip in them. By chitect of several generations of SPARCstation the year 2005, if not sooner, consumer devices workstations. Frank received his PhD from that can’t communicate in the Home LAN will Carnegie Mellon University, and his BSEE and be obsolete. MICRO MSEE degrees from Stanford University. He holds approximately 15 issued patents. Acknowledgments The work described here is the result of the Jack Holloway cofounded and is the chief tech- efforts of many people. In particular we rec- nology officer of Epigram, now the Home Net- ognize Ruben Alva, Neal Castagnoli, Alan working Division of Broadcom Corporation. Corry, Mike Dove, Greg Efland, Nino Fer- Earlier, he served as vice president of broadband rario, Hariprasad Garlapati, Ali Hariri, Ray at MicroUnity, a closely held mediaprocessor Hayes, Mark Kobayashi, Harrison Kuo, Jim developer, and as vice president, broadband Laudon, Joe Lauer, Guillermo Loyola, Tracy technology for Bolt Beranek and Newman. At Mallory, Rich McCauley, Subrat Mohapatra, BBN, he started an ATM product division Tushar Moorti, Walter Morton, Neal Nuck- called Lightstream, which was eventually olls, Eric Ojard, Jay Pattin, Kevin Peterson, acquired by . Holloway also Henry Ptasinski, Tim Robinson, Dane Snow, cofounded Symbolics, Inc., and for several years Bill Stafford, Jason Trachewsky, Jeff Vadasz, was a principal research scientist at MIT and Chris Warth, Larry Yamano, and Chris Young. codirector of the MIT VLSI Laboratory.

References Direct questions to Jack Holloway, Broad- 1. HPNA 2.0 Specification, Oct. 1999; available com Corporation, 870 West Maude Ave., to members of HPNA, see http://w w w. Sunnyvale, CA 94086; [email protected].

12 IEEE MICRO