EP1356633A2 - Cable modem with voice processing capability - Google Patents
Cable modem with voice processing capabilityInfo
- Publication number
- EP1356633A2 EP1356633A2 EP01970768A EP01970768A EP1356633A2 EP 1356633 A2 EP1356633 A2 EP 1356633A2 EP 01970768 A EP01970768 A EP 01970768A EP 01970768 A EP01970768 A EP 01970768A EP 1356633 A2 EP1356633 A2 EP 1356633A2
- Authority
- EP
- European Patent Office
- Prior art keywords
- voice
- signal
- head end
- ofthe
- cable head
- 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.)
- Withdrawn
Links
- 238000012545 processing Methods 0.000 title claims description 76
- 230000005540 biological transmission Effects 0.000 claims description 138
- 238000000034 method Methods 0.000 claims description 136
- 238000011144 upstream manufacturing Methods 0.000 claims description 119
- 230000006854 communication Effects 0.000 claims description 71
- 238000004891 communication Methods 0.000 claims description 66
- 238000001514 detection method Methods 0.000 claims description 66
- 238000005070 sampling Methods 0.000 claims description 35
- 230000006978 adaptation Effects 0.000 claims description 28
- 238000001914 filtration Methods 0.000 claims description 18
- 230000003750 conditioning effect Effects 0.000 claims description 13
- 230000032258 transport Effects 0.000 claims description 10
- 238000012952 Resampling Methods 0.000 claims description 7
- 239000000835 fiber Substances 0.000 abstract description 16
- 230000007175 bidirectional communication Effects 0.000 abstract description 6
- 230000015654 memory Effects 0.000 description 82
- 239000000523 sample Substances 0.000 description 77
- 238000007726 management method Methods 0.000 description 76
- 230000006870 function Effects 0.000 description 64
- 239000000872 buffer Substances 0.000 description 59
- 238000010586 diagram Methods 0.000 description 56
- 238000012546 transfer Methods 0.000 description 51
- 230000008569 process Effects 0.000 description 36
- 230000003044 adaptive effect Effects 0.000 description 35
- 230000004044 response Effects 0.000 description 35
- 230000011664 signaling Effects 0.000 description 34
- 238000011084 recovery Methods 0.000 description 28
- 230000007246 mechanism Effects 0.000 description 22
- 238000012384 transportation and delivery Methods 0.000 description 22
- 230000000694 effects Effects 0.000 description 19
- 230000002093 peripheral effect Effects 0.000 description 19
- 238000012937 correction Methods 0.000 description 18
- 230000001360 synchronised effect Effects 0.000 description 18
- 238000009432 framing Methods 0.000 description 15
- 238000013459 approach Methods 0.000 description 14
- 238000006243 chemical reaction Methods 0.000 description 14
- 238000012360 testing method Methods 0.000 description 12
- 230000006399 behavior Effects 0.000 description 11
- 238000007906 compression Methods 0.000 description 11
- 230000006835 compression Effects 0.000 description 11
- 230000001934 delay Effects 0.000 description 11
- 230000000875 corresponding effect Effects 0.000 description 10
- 230000001419 dependent effect Effects 0.000 description 9
- 230000008929 regeneration Effects 0.000 description 9
- 238000011069 regeneration method Methods 0.000 description 9
- 239000000243 solution Substances 0.000 description 9
- 101100172132 Mus musculus Eif3a gene Proteins 0.000 description 7
- 230000002596 correlated effect Effects 0.000 description 7
- 239000000284 extract Substances 0.000 description 7
- 230000002829 reductive effect Effects 0.000 description 7
- 239000002585 base Substances 0.000 description 6
- 230000008859 change Effects 0.000 description 6
- 230000009977 dual effect Effects 0.000 description 6
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 230000007704 transition Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 5
- 239000013078 crystal Substances 0.000 description 5
- 125000004122 cyclic group Chemical group 0.000 description 5
- 238000002592 echocardiography Methods 0.000 description 5
- 230000000977 initiatory effect Effects 0.000 description 5
- 238000013507 mapping Methods 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 5
- 230000000737 periodic effect Effects 0.000 description 5
- 230000002457 bidirectional effect Effects 0.000 description 4
- 238000013144 data compression Methods 0.000 description 4
- 230000006735 deficit Effects 0.000 description 4
- 239000012634 fragment Substances 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 4
- 239000013307 optical fiber Substances 0.000 description 4
- 239000002245 particle Substances 0.000 description 4
- 230000009467 reduction Effects 0.000 description 4
- 230000003139 buffering effect Effects 0.000 description 3
- 239000003795 chemical substances by application Substances 0.000 description 3
- 230000003247 decreasing effect Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 3
- 230000006855 networking Effects 0.000 description 3
- 239000012723 sample buffer Substances 0.000 description 3
- 238000001228 spectrum Methods 0.000 description 3
- 241000196324 Embryophyta Species 0.000 description 2
- 108700026140 MAC combination Proteins 0.000 description 2
- 240000007320 Pinus strobus Species 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 230000004913 activation Effects 0.000 description 2
- XIWFQDBQMCDYJT-UHFFFAOYSA-M benzyl-dimethyl-tridecylazanium;chloride Chemical compound [Cl-].CCCCCCCCCCCCC[N+](C)(C)CC1=CC=CC=C1 XIWFQDBQMCDYJT-UHFFFAOYSA-M 0.000 description 2
- 230000001143 conditioned effect Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 238000007667 floating Methods 0.000 description 2
- 238000013467 fragmentation Methods 0.000 description 2
- 238000006062 fragmentation reaction Methods 0.000 description 2
- 235000003642 hunger Nutrition 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 230000008520 organization Effects 0.000 description 2
- 230000037361 pathway Effects 0.000 description 2
- 230000002441 reversible effect Effects 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 230000003595 spectral effect Effects 0.000 description 2
- 230000037351 starvation Effects 0.000 description 2
- 230000000153 supplemental effect Effects 0.000 description 2
- 230000001629 suppression Effects 0.000 description 2
- PCTMTFRHKVHKIS-BMFZQQSSSA-N (1s,3r,4e,6e,8e,10e,12e,14e,16e,18s,19r,20r,21s,25r,27r,30r,31r,33s,35r,37s,38r)-3-[(2r,3s,4s,5s,6r)-4-amino-3,5-dihydroxy-6-methyloxan-2-yl]oxy-19,25,27,30,31,33,35,37-octahydroxy-18,20,21-trimethyl-23-oxo-22,39-dioxabicyclo[33.3.1]nonatriaconta-4,6,8,10 Chemical compound C1C=C2C[C@@H](OS(O)(=O)=O)CC[C@]2(C)[C@@H]2[C@@H]1[C@@H]1CC[C@H]([C@H](C)CCCC(C)C)[C@@]1(C)CC2.O[C@H]1[C@@H](N)[C@H](O)[C@@H](C)O[C@H]1O[C@H]1/C=C/C=C/C=C/C=C/C=C/C=C/C=C/[C@H](C)[C@@H](O)[C@@H](C)[C@H](C)OC(=O)C[C@H](O)C[C@H](O)CC[C@@H](O)[C@H](O)C[C@H](O)C[C@](O)(C[C@H](O)[C@H]2C(O)=O)O[C@H]2C1 PCTMTFRHKVHKIS-BMFZQQSSSA-N 0.000 description 1
- 206010003591 Ataxia Diseases 0.000 description 1
- 238000012935 Averaging Methods 0.000 description 1
- 241000117148 Brachycentrus echo Species 0.000 description 1
- 208000019300 CLIPPERS Diseases 0.000 description 1
- 206010010947 Coordination abnormal Diseases 0.000 description 1
- 206010024825 Loose associations Diseases 0.000 description 1
- 238000007476 Maximum Likelihood Methods 0.000 description 1
- 101100005280 Neurospora crassa (strain ATCC 24698 / 74-OR23-1A / CBS 708.71 / DSM 1257 / FGSC 987) cat-3 gene Proteins 0.000 description 1
- 240000005523 Peganum harmala Species 0.000 description 1
- 108010076504 Protein Sorting Signals Proteins 0.000 description 1
- 241000465502 Tobacco latent virus Species 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 239000003637 basic solution Substances 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 208000021930 chronic lymphocytic inflammation with pontine perivascular enhancement responsive to steroids Diseases 0.000 description 1
- 230000002860 competitive effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000001627 detrimental effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000036039 immunity Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 208000028756 lack of coordination Diseases 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 230000003278 mimic effect Effects 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000012913 prioritisation Methods 0.000 description 1
- 238000013139 quantization Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000009738 saturating Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 238000012358 sourcing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000007306 turnover Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/54—Store-and-forward switching systems
- H04L12/56—Packet switching systems
- H04L12/5691—Access to open networks; Ingress point selection, e.g. ISP selection
- H04L12/5692—Selection among different networks
-
- 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/2801—Broadband local area networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
- H04N21/2383—Channel coding or modulation of digital bit-stream, e.g. QPSK modulation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
- H04N21/4382—Demodulation or channel decoding, e.g. QPSK demodulation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/10—Adaptations for transmission by electrical cable
Definitions
- the present invention relates generally to telecommunications systems, and more particularly, to a system for interfacing telephony devices with DOCSIS compatible networks.
- a cable modem provides users with high-speed Internet access through a cable television network.
- Cable modem is capable of providing data rates as high as 56 Mbps, and is thus suitable for high speed Internet access, digital television (such as pay-per-view) and digital telephony.
- a cable modem in one aspect ofthe present invention includes a network port to interface with a cable head end, a telephony port to interface with a telephony device, a data port to interface with a data terminal and a processor coupled to each ofthe ports.
- a gateway in another aspect ofthe present invention, includes a network port to interface with a cable head end, a telephony port to interface to a telephony device, a data port to interface to a data terminal, a processor coupled to each of the ports and a transceiver disposed between the processor and the network port, the transceiver being capable of transmitting and receiving packets of voice signals, packets of data signals, and a television signal.
- a method of processing signals includes exchanging voice signals between a cable head end and a telephony device, exchanging data signals between the cable head end and a data terminal and receiving a television signal from the cable head end.
- a cable modem in a still further aspect ofthe present invention includes a first network port to interface with a cable head end, a second network port to interface with a local area network and a processor coupled to each ofthe ports.
- a gateway in a still further aspect ofthe present invention, includes a first network port to interface with a cable head end a second network port to interface to a local area network, a processor coupled to each ofthe ports and a transceiver disposed between the processor and the first network port, the transceiver being capable of transmitting and receiving packets of voice signals, packets of data signals, and a television signal.
- a method of processing signals includes exchanging voice signals between a cable head end and a local area network, exchanging data signals between the cable head end and the local area network and receiving a television signal from the cable head end.
- a method of synchronizing data clocked by a first clock to a second clock includes generating a clock error signal as a function of one or more data control flags, and fractionally resampling the data as a function ofthe offset.
- a synchronization circuit includes an error generation unit that generates a clock error signal as a function of an average far end sampling rate and a near end sampling rate and a sample tracker adapted to receive sampled data packets, wherein the sample tracker fractionally resamples the sampled data as a function ofthe clock error signal.
- a network gateway adapted to exchange voice signals between a network line at a first clock frequency and a packet based network at a second clock frequency, includes a network port to interface with a packet based network; a telephony port to interface with a telephony device; a processor coupled to each of the ports and a voice synchronizer, coupled between the network and telephony ports.
- the voice synchronizer includes an error generation unit for generating a clock error signal in accordance with the ratio ofthe first and second clocks and a sample tracker, that receives sampled data packets, and fractionally resamples the sampled data as a function ofthe clock error signal.
- FIG. 1 is a schematic diagram of a hybrid fiber coaxial (HFC) network showing typical pathways for data transmission between the headend (which contains the cable modem termination system) and a plurality of homes (each of which contain a cable modem);
- FIG. 2 is a block diagram of a network gateway integrated into a cable modem system wherein the network gateway interfaces a plurality of packet based and circuit switched systems with a cable modem termination system (CMTS) disposed at the headend;
- CMTS cable modem termination system
- FIG. 3 is a system block diagram of an exemplary network gateway in accordance with a preferred embodiment of the present invention.
- FIG.4 is a graphical depiction of a chaining mode of operation of a system direct memory access controller in accordance with a preferred embodiment ofthe present invention
- FIG. 5 is a system block diagram of a DOCSIS downstream demodulator in accordance with a preferred embodiment ofthe present invention
- FIG. 6 is a system block diagram of a DOCSIS upstream modulator in accordance with a preferred embodiment ofthe present invention.
- FIG. 7 is a system block diagram of a DOCSIS media access controller (MAC) in accordance with a preferred embodiment ofthe present invention
- FIG. 8 is asystem block diagram of an Ethernet transceiver for interfacing the network gateway with Ethernet devices in accordance with a preferred embodiment ofthe present invention
- FIG. 9 is a system block diagram of an Ethernet media access controller (MAC) in accordance with a preferred embodiment ofthe present invention.
- MAC Ethernet media access controller
- FIG. 10 is a system block a Universal Serial Bus (USB) controller in accordance with a preferred embodiment ofthe present invention.
- USB Universal Serial Bus
- FIG. 11 is a system block diagram of a MAC for a USB controller
- FIG. 12a is a system block diagram of an integrated HPNA MAC/PHY controller in accordance with an exemplary embodiment ofthe present invention
- FIG. 12b shows an analog front end interfacing the HPNA controller of FIG. 12a to premises wiring in accordance with an exemplary embodiment ofthe present invention
- FIG. 13 depicts in block diagram form a transmitter aspect of an embodiment of a PHY in accordance with an exemplary embodiment of the present invention
- FIG. 14 shows an HPNA frame format in accordance with an exemplary embodiment ofthe present invention
- FIG. 15 depicts the frame control field in accordance with an exemplary embodiment ofthe present invention.
- FIG. 16 depicts the frame-synchronized scrambler of FIG. 13 in accordance with an exemplary embodiment ofthe present invention
- FIG. 17 shows in simplified block diagram form an example QAM implementation in accordance with an exemplary embodiment of the present invention.
- FIG. 18 depicts compatibility mode frame formatting in accordance with an exemplary embodiment ofthe present invention
- FIG. 19 shows the transmitter aspect ofthe PHY embodiment operating in compatibility mode in accordance with an exemplary embodiment ofthe present invention
- FIG. 20 shows in functional block diagram form an embodiment of a transceiver in accordance with an exemplary embodiment ofthe present invention
- FIG. 21 depicts MAC logical layers and corresponding functions in accordance with an exemplary embodiment ofthe present invention
- FIGS .22 and 23 depict signal and priority slots involved with transmission and collision aspects in accordance with an exemplary embodiment ofthe present invention
- FIGS. 24 and 25 show transmission aspects without and with priority access
- FIG. 26 is a timing diagram of upstream transmission over an HPNA network in accordance with an exemplary embodiment ofthe present invention
- FIG. 27 show latency components in accordance with an exemplary embodiment ofthe present invention
- FIG.28 shows a timing recovery circuit in accordance with an exemplary embodiment ofthe present invention
- FIG. 29 is a block diagram of the analog front end for interfacing the analog processor with an external subscriber line interface circuit (SLIC) in accordance with a preferred embodiment ofthe present invention
- FIG. 30 is a block diagram of an external interface between the analog front end and the subscriber line interface circuit (SLIC) in accordance with a preferred embodiment ofthe present invention.
- SLIC subscriber line interface circuit
- FIG. 31 is a block diagram of an audio processor that interfaces a voice and data processor with external subscriber line circuits (SLICs) via an analog front end in accordance with a preferred embodiment ofthe present invention
- FIG. 32 is a block diagram of a ring generator that synthesizes a reference waveform utilized by external SLICs to ring telephony devices in accordance with a preferred embodiment ofthe present invention
- FIG. 33 is a block diagram of an audio processor integrated into a representative cable modem architecture in accordance with an exemplary embodiment ofthe present invention
- FIG. 34 is a block diagram of a multiply-accumulate datapath of an audio co-processor in accordance with an exemplary embodiment of the present invention
- FIG.35 is a block diagram of operations performed by an exemplary audio processor in accordance with an exemplary embodiment ofthe present invention.
- FIG. 36 is a system block diagram of a network gateway for interfacing between a hybrid fiber coaxial (HFC) network, a switched circuit network and a packet based network in accordance with a preferred embodiment ofthe present invention
- FIG. 37 is a block diagram of a timing recovery system for synchronizing a timing regeneration circuit clock of a network gateway to a CMTS clock in accordance with a preferred embodiment ofthe present invention
- FIG. 38 is a block diagram of a network gateway including a voice synchronizer for synchronizing voice data signals between telephony devices on the near and far ends of a HFC network in accordance with a preferred embodiment ofthe present invention
- FIG. 39 is a graphical depiction of fractional interpolation and decimation of a digitized analog voice signal in accordance with a preferred embodiment of the present invention
- FIG. 40 is a general block diagram of a voice synchronizer that generates an error signal which is used to polyphase re-sample an input voice signal so as to synchronize a near end signal with a far end signal in accordance with a preferred embodiment ofthe present invention
- FIG. 41 is a block diagram of clock divider circuits for generating various clocks for use within a network gateway in accordance with a preferred embodiment ofthe present invention.
- FIG. 42 is a timing diagram that illustrates an offset in input and output sample counts in a buffer overflow condition
- FIG.43 graphically illustrates zero buffer padding required between data points in a data buffer and low pass filter coefficients which, when applied to the samples stored in the buffer, yield a resampled signal
- FIG. 44 graphically illustrates the regeneration of a desired resampled output with a reduced number of filter coefficients
- FIG.45 is a voice synchronizer for the upstream direction wherein a TRC clock drives a counter which is clocked by a high frequency ADC clock and an incoming voice signal is re-sampled in accordance with the ratio ofthe counter output divided by the ratio ofthe high frequency ADC clock and the TRC clock in accordance with a preferred embodiment ofthe present invention
- FIG. 46 is a block diagram of a single pole low pass filter used to smooth or average the differences between sampling rates in accordance with a preferred embodiment ofthe present invention.
- FIG. 47 is a voice synchronizer for the downstream direction wherein a frame arrival clock drives a counter that is clocked by a high frequency D AC clock so that an incoming voice signal is re-sampled in accordance with the ratio ofthe counter output divided by the ratio of the high frequency DAC clock and the frame arrival clock in accordance with a preferred embodiment of the present invention
- FIG. 48 is a flow diagram illustrating the operation of an alternate voice synchronizer in accordance with a preferred embodiment ofthe present invention
- FIG. 49 is a voice synchronizer for the downstream direction wherein a TRC clock drives two counters, one of which latched in accordance with a packet arrival flag, the other of which is latched in accordance with a packet complete control flag, and an incoming voice signal is re-sampled in accordance with the ratio ofthe packet arrival counter output divided by the packet complete counter output in accordance with a preferred embodiment of the present invention;
- FIG. 50 is a block diagram of an echo canceller which utilizes energy estimates to detect near end speech in the presence of far end speech to control the adaptation of an adaptive filter in accordance with a preferred embodiment of the present invention
- FIG. 51 is a block diagram of an echo canceller which avoids delays in the detection of near end speech that are typically associated with conventional echo cancellers and utilizes the delay associated with a decimator and high pass filter to provide a look ahead capability so that filter adaptation may be disabled in advance of the arrival of near end speech in accordance with a preferred embodiment ofthe present invention
- FIG. 52 is a block diagram of an echo canceller that utilizes a delay buffer to provide a look ahead capability so that filter adaptation may be disabled in advance of the arrival of near end speech in accordance with a preferred embodiment ofthe present invention
- FIG. 53 is a block diagram of method for reducing the amplitude level of near end speech prior to double talk detection in accordance with a preferred embodiment of the present invention.
- FIG.54 is a block diagram of a signal processing system implemented with a programmable digital signal processor (DSP) software architecture for interfacing telephony devices with packet based networks in accordance with a preferred embodiment ofthe present invention
- FIG. 55 is a simplified block diagram of an HPNA network showing typical pathways for data transmission between a CMTS at a cable headend and a remote HPNA media adapter via a network gateway in accordance with an exemplary embodiment ofthe present invention
- FIG. 56 is a block diagram of an MTA architecture for interfacing a voice processor DSP with a MIPS core processor of a network gateway in accordance with a preferred embodiment ofthe present invention
- FIG. 57 is a block diagram of an architecture for gateway control protocol logic which interfaces with an external control element, called a call agent or call management server (CMS), to terminate and generate call signaling from and to a voice and data processor in compliance with the network-based call signaling (NCS) protocol specification, in accordance with a preferred embodiment ofthe present invention
- CMS call agent or call management server
- FIG. 58 is a block diagram of a method for converting between real time protocol packets required by the PacketCable exchange specification and the xChange packet format utilized by a voice and data processor and vice versa in accordance with a preferred embodiment ofthe present invention
- FIG. 59 is a block diagram of a software messaging interface between a host DSP and a remote media adapter in accordance with a preferred embodiment ofthe present invention
- FIG. 60 is a table illustrating call flow for an outgoing call origination in accordance with an exemplary embodiment ofthe present invention
- FIG. 61 is a block diagram of a software messaging interface between a host DSP and voice and data processing software in accordance with a preferred embodiment ofthe present invention
- FIG.62 is ablock diagram of channel associated signaling service logic for exchanging commands and events between a host MTA call client and standard commercial analog loop/ground start devices in accordance with a preferred embodiment ofthe present invention
- FIG. 63 is a block diagram of a software architecture operating on the DSP platform of FIG. 54 in accordance with a preferred embodiment of the present invention.
- FIG. 64 is state machine diagram ofthe operational modes of a virtual device driver for packet based network applications in accordance with a preferred embodiment ofthe present invention
- FIG. 65 is a system block diagram of a signal processing system operating in a voice mode in accordance with a preferred embodiment of the present invention
- FIG. 66 is a system block diagram of a signal processing system operating in a real time fax relay mode in accordance with a preferred embodiment ofthe present invention
- FIG.67 is a system block diagram of a signal processing system operating in a modem relay mode in accordance with a preferred embodiment ofthe present invention.
- FIG. 68 is a system block diagram illustrating the component parts of an exemplary network gateway that may be controlled by a power management system in accordance with an exemplary embodiment ofthe present invention.
- CMTS cable modem termination system
- CM cable modem
- the cable modem termination system must be capable of facilitating bidirectional communication with any desired one of the plurality of cable modems.
- the cable modem termination system is defined to include that portion of a headend which facilitates communication with a number of cable modems.
- a typical cable modem termination system includes a burst receiver, a continuous transmitter and a medium access control (MAC:).
- the cable modem termination system communicates with the cable modems via a hybrid fiber coaxial (HFC) network, wherein optical fiber provides communication to a number of fiber nodes and each fiber node typically serves approximately 500 to 2,000 subscribers, which communicate with the node via coaxial cable.
- the subscribers communicate with the fiber node via a common or shared coaxial cable.
- HFC hybrid fiber coaxial
- the HFC network of a cable modem system utilizes a point-to-multipoint topology to facilitate communication between the cable modem termination system and the cable modems.
- Frequency domain multiple access (FDMA)/time division multiplexing (TDM) is used to facilitate communication from the cable modem termination system to each ofthe cable modems, i.e., in the downstream direction.
- Frequency domain multiple access (FDMAVtime domain multiple access (TDMA) is used to facilitate communication from each cable modem to the cable modem termination system, i.e., in the upstream direction.
- the cable modem termination system includes a downstream modulator for transmitting data communications to the cable modems and an upstream demodulator for receiving data communications from the cable modems.
- the downstream modulator of the cable modem termination system generally utilizes either 64 QAM or 256 QAM in a frequency band of 54 MHz to
- each cable modem includes an upstream modulator for transmitting data to the cable modem termination system and a downstream demodulator for receiving data from the cable modem termination system.
- the upstream modulator of each cable modem typically uses either QPSK or 16 QAM within the 5 MHz to 42 MHz bandwidth of the upstream' demodulator and the downstream demodulator of each cable modem may use either 64 QAM or 256 QAM in the 54 MHz to 860 MHz bandwidth ofthe downstream modulator (in North America).
- the downstream demodulator of each cable modem may use either 64 QAM or 256 QAM in the 54 MHz to 860 MHz bandwidth ofthe downstream modulator (in North America).
- other modulation schemes may be used depending on the application.
- time slots may be assigned to each cable modem within which cable modems may transmit communications to the cable modem termination system.
- the assignment of such time slots is accomplished by providing a request contention area in the upstream data path within which the cable modems are permitted to contend in order to place a message which requests additional time in the upstream data path for the transmission of their message.
- the cable modem termination system responds to these requests by assigning time slots to the cable modems making such a request, so that as many ofthe cable modems as possible may transmit their messages to the cable modem termination system utilizing TDMA and so that the transmissions are performed without undesirable collisions. Because ofthe use of TDMA, the cable modem termination system uses a burst receiver, rather than a continuous receiver, to receive packets of information from the cable modems via upstream communications.
- a continuous receiver may be utilized where generally continuous communications (as opposed to burst communications as in the present invention) are performed, so as to substantially maintain timing synchronization between the cable modem transmitter and the CMTS receiver, for proper reception of the communicated information.
- timing recovery is a more straightforward process since signal acquisition generally only occurs at the initiation of such communications.
- acquisition is generally only performed in continuous receivers once per continuous transmission and each continuous transmission may be very long.
- burst communications inherent to TDMA systems entail periodic and frequent reacquisition of the signal. That is, during TDMA communications, the signal is reacquired for each separate burst transmission being received.
- a hybrid fiber coaxial (HFC) network 10 facilitates the transmission of data between a headend 12, which includes at least one cable modem termination system, and a number of homes 14, each of which contains a cable modem.
- HFC hybrid fiber coaxial
- Such hybrid fiber coaxial networks are commonly utilized by cable providers to provide Internet access, cable television, pay-per-view and the like to subscribers.
- An exemplary CMTS for use with the present invention is disclosed in commonly owned U.S. Patent Application No. 09/574,558, entitled “CABLE MODEM APPARATUS AND METHOD", filed May 19, 2000 the content of which is incorporated fully herein by reference.
- common reference numerals may be used to represent like components.
- Approximately 500 homes 14 are in electrical communication with each node 16, 34 ofthe hybrid fiber coaxial network 10, typically via coaxial cables 29, 30, 31.
- Amplifiers 15 facilitate the electrical connection ofthe more distant homes 14 to the nodes 16, 34 by boosting the electrical signals so as to desirably enhance the signal-to-noise ratio of such communications and by then transmitting the electrical signals over coaxial cables 30, 31.
- Coaxial cable 29 electrically interconnects the homes 14 with the coaxial cables 30, 31, which extend between amplifiers 15 and nodes 16, 34.
- Each node 16, 34 is electrically connected to a hub 22, 24, typically via an optical fiber 28, 32.
- the hubs 22, 24 are in communication with the headend 12, via optical fibers 20, 26.
- Each hub is typically capable of facilitating communication with approximately 20,000 homes 14.
- the optical fibers 20, 26 extending intermediate the headend 12 and each hub 22, 24 define a fiber ring which is typically capable of facilitating communication between approximately 100,000 homes 14 and the headend 12.
- the headend 12 may include video servers, satellite receivers, video modulators, telephone switches and/or Internet routers 18, as well as the cable modem termination system.
- the headend 12 communicates via transmission line 13, which may be a TI or T2 line, with the Internet, other headends and/or any other desired device(s) or network.
- a network gateway may facilitate on line and offline bi-directional communication between a number of near end data or telephony devices and far end data termination devices via a cable modem termination system.
- An exemplary topology is shown in FIG.2 with a network gateway 11a providing an interface to HFC network 10a for a telephone 53a, fax machine 54a and modem 55a through a subscriber loop interface circuit (SLIC) 50.
- SLIC subscriber loop interface circuit
- the network gateway 1 la also provides an interface to the 10a HFC network for a telephone 53b, a fax machine 54b and a modem 55b through an audio processor circuit 52.
- the described exemplary network gateway 11a may also couple a local area network (LAN) 46 and a universal synchronous bus (USB) 44 access to the HFC network 10a.
- the HFC network is coupled to a CMTS line card 42 in the CMTS 12.
- the CMTS line card 12 is coupled to a packet based network router 40 to determine whether the communication will be transported via a far end HFC network 10b, a far end PSTN network 57 or the Internet.
- the packet based network router 40 facilitates communication between the near end data devices and offline far end data terminating devices 56 via a circuit switched networks such as the public switched telephone network (PSTN) 57 and a PSTN gateway 58.
- PSTN public switched telephone network
- a network gateway 1 lb provides an interface between the far end data termination devices 56B and the far end HFC network 10b connected to the CMTS 12.
- Data termination devices include by way of example, analog and digital phones, ethernet phones, Internet Protocol phones, fax machines, data modems, cable modems, interactive voice response systems, PBXs, key systems, and any other conventional telephony devices known in the art.
- One of skill in the art will appreciate that the described exemplary network gateway is not limited to a telephony interface to the HFC network, but rather may interface with a variety of communication media such as for example, asymmetric digital subscriber line (ADSL), DSL, TI or other networks known in the art. Therefore, the described hybrid fiber coaxial network 10a is by way of example only and not by way of limitation.
- FIG. 3 An exemplary embodiment ofthe network gateway is shown schematically in FIG. 3.
- the described exemplary embodiment is implemented by a highly integrated single chip solution that is compliant with the Data Over Cable Service
- DOCSIS Interface Specification
- a power splitter may divide the downstream signal into two, approximately half power signals.
- One ofthe signals may then be coupled to a subscriber's television via a shutoff relay (not shown) and the other is coupled to the downstream demodulator.
- a remote cable operator may command the MIPS core to shut off a subscribers access to the cable television signal via the QAM downstream demodulator.
- the MIPS core may issue a command to the shut off relay (not shown) effectively blocking access to the television signal.
- the described exemplary embodiment can support multiple inputs in accordance with a variety of protocols.
- a universal serial bus (USB) transceiver 104 and USB MAC 122 support transparent bi-directional IP traffic between devices operating on a USB, such as, for example a PC workstation, server printer or other similar devices and the far end data terminating device.
- USB universal serial bus
- an I.E.E 802.3 compliant media independent interface (Mil) 110 in conjunction with an Ethernet MAC 134 provide bi-directional data exchange between devices such as, for example, a number of PCs and or Ethernet phones operating on an Ethernet and the far end data terminating device.
- a voice and data processor 160 processes and exchanges voice, as well as fax and modem data between packet based networks and telephony devices.
- the QAM downstream demodulator 100 may utilize either 64 QAM or 256 QAM in the 54 to 860 MHz bandwidth to interface with the CMTS.
- the QAM downstream demodulator 100 accepts an analog signal centered at the standard television IF frequencies, amplifies and digitizes the signal with an integrated programable gain amplifier and A/D converter. The digitized signal is demodulated with recovered clock and carrier timing. Matched filters and then adaptive filters remove multi- path propagation effects and narrowband co-channel interference. Soft decisions are then passed off to an ITU-T J.83 Annex A/B/C compatible decoder.
- the integrated decoder performs error correction and forwards the processed received data, in either parallel or serial MPEG-2 format to a DOCSIS Media Access Controller (MAC) 112.
- the DOCSIS MAC 112 may include baseline privacy encryption and decryption as well as robust frame acquisition and multiplexing with MPEG2-TS compliant video and audio streams.
- the DOCSIS MAC 112 implements the downstream portions ofthe DOCSIS protocol.
- the DOCSIS MAC 112 extracts DOCSIS MAC frames from MPEG-2 frames, processes MAC headers, and filters and processes messages and data.
- Downstream data packets and message packets may then be placed in system memory 114 by a SDRAM interface 116 via an internal system bus 118.
- the SDRAM interface 116 preferably interfaces to a number of off the shelf SDRAMs wliich are provided to support the high bandwidth requirements ofthe
- Ethernet MAC 134 and other peripherals may support multiple combinations of 8, 16 or 32 bit wide SDRAMs, allowing for external data storage in the range of about 2 to 32 MBytes.
- the DOCSIS MAC 112 includes a number of direct memory access (DMA) channels for fast data access to and from the system memory 114 via the internal system bus 118.
- DMA direct memory access
- the DOCSIS MAC 112 can also implement the upstream portions ofthe DOCSIS protocol before transmission by the upstream modulator 102.
- the DOCSIS MAC 112 receives data from system memory via a DMA channel, requests bandwidth and frames the data for TDMA with other modems on the same upstream frequency.
- the upstream modulator 102 provides an interface with the CMTS.
- the upstream modulator 102 may be configured to operate with numerous modulation schemes including for example, QPSK and 16-QAM.
- the upstream modulator 102 supports bursts or continuous data, provides forward error correction (FEC) encoding and pre-equalization, filters and modulates the data stream and provides a direct 0-65 MHz analog output.
- FEC forward error correction
- the DOCSIS MAC interfaces with MIPS core 128 via the ISB 118.
- An exemplary embodiment ofthe MIPS core 128 includes a high performance CPU operating at a speed of at least 80 MHz with 32-bit address and data paths.
- the MIPS core includes two way set associative instruction and data caches on the order of about 4kbytes each. Further, the MIPS core 128 may provide standard EJTAG support with debug mode, run control, single step and software breakpoint instruction as well as additional optional EJTAG features.
- the MIPS core 128 controls the upstream modulator 102 and the downstream demodulator 100 via a serial interface that is compatible with a subset ofthe Motorola M-Bus and the Philips I 2 C bus.
- the interface consists of two signals, serial data (SDA) and serial clock (SCL), which may control a plurality of devices on a common bus.
- SDA serial data
- SCL serial clock
- the addressing ofthe different devices may be accomplished in accordance with an established protocol on the two wire interface.
- the described exemplary embodiment ofthe network gateway includes a full-speed universal serial bus (USB) transceiver 104 and USB MAC 122 that is compliant with the USB 1.1 specification.
- the USB MAC 122 and USB transceiver 104 provide two way communication of information to a device operating on a USB, such as for example a PC on a USB 1.1 compliant twisted pair.
- the USB MAC 122 provides concurrent operation of control, bulk, isochronous and interrupt endpoints.
- the USB MAC 122 may also support standard USB commands as well as class/vendor specific commands.
- the USB MAC 122 includes integrated RAM that allows flexible configuration ofthe device.
- the USB MAC 122 can be arranged for hardware fragmentation of higher layer packets from USB packets with automatic generation and detection of zero length USB packets.
- the USB MAC 122 may include DMA channels which are used to communicate received data to the system memory 114 via the internal system bus 118. Data stored in system memory 114 may then be processed and communicated to the cable modem termination system (not shown) via the DOCSIS MAC 112 and the upstream modulator 102. Similarly data received from the cable modem termination system and processed by the downstream demodulator 100 and stored in system memory as higher layer packets can be retrieved by the USB MAC 122 via the ISB 118 and assembled into USB packets with automatic generation of zero length USB packets. USB packets may then be communicated to the external device operating on the USB via the USB transceiver 104.
- the media independent interface (Mil) 110 and the Ethernet MAC 134 provide bi-directional communication with devices, such as, for example a personal computer (PC) operating on an Ethernet.
- the media independent interface 110 forwards data to and receives information from the Ethernet MAC 134.
- the Ethernet MAC 134 can also perform all the physical layer interface (PHY) functions for 100BASE-TX full duplex or half- duplex Ethernet as well as 10BBASE-T full or half duplex.
- the Ethernet MAC 134 may also decode the received data in accordance with a variety of standards such as for example 4B5b, MLT3, and Manchester decoding.
- the Ethernet MAC can perform clock and data recovery, stream cipher de-scrambling, and digital adaptive equalization.
- the Ethernet MAC 134 may include DMA channels which are used for fast data communication of processed data to the system memory 114 via the internal system bus 118. Processed data stored in system memory 114 may then be communicated to the cable modem termination system (not shown) via the DOCSIS MAC 112 and the upstream modulator 102. Similarly, data received from the cable modem termination system is processed by the downstream demodulator 100 and stored in system memory as higher layer packets that are retrieved by the Ethernet MAC 134 via the ISB 118 and encoded into Ethernet packets for communication to the external device operating on the Ethernet via the Mil 110. The Ethernet MAC 134 may also perform additional management functions such as link integrity monitoring, etc.
- HPNA controller 124 is a fully integrated MAC / PHY device that provides bi-directional communication with devices such as for example a HPNA phone, computer etc., operating on a HPNA network.
- the HPNA controller 124 may include DMA channels which are used for fast data communication of processed data to the system memory 114 via the internal system bus 118.
- the HPNA controller 124 includes a digital PHY having a FDQAM / QAM transmitter and receiver coupled between an analog front end 126 and HPNA MAC:.
- the HPNA PHY uses 4 MBaud QAM modulation and 2 MBaud Frequency Diverse QAM (FDQAM), with two to eight bits-per-Baud constellation encoding.
- the PHY- layer payload modulation rate therefore ranges from 4 Mb/s to 32 Mb/s.
- the modulation techniques are set forth in U.S. Patent Application No. 09/169,552 entitled "Frequency Diverse Single Carrier Modulation For Robust Communication Over In-Premises Wiring", which is incorporated herein by reference.
- Information is transmitted on the transmission medium / channel in bursts. Each burst or physical layer frame consists of PHY-layer payload .
- the PHY- layer payload in each physical frame is that part ofthe Ethernet link level frame that follows the Ethertype field through the frame check sequence (FCS), plus a CRC- 16 and a pad field for the 4 Mbaud rate.
- FCS frame check sequence
- payload refers to the PHY-layer payload unless otherwise specified.
- the HPNA MAC is modeled after the carrier-sense multiple-access with collision detection (CSMA/CD) MAC function of Ethernet (IEEE Std 802.3, 1998 Edition), adapted to the V2 PHY and enhanced with quality-of-service (QoS) features.
- CSMA/CD carrier-sense multiple-access with collision detection
- the Carrier Sense Multiple Access / Collision Detect (CSMA/CD) media access method is the means by which two or more stations share a common transmission channel. To transmit, a station waits (defers) for a quiet period on the channel (that is, no other station is transmitting) and then sends the intended message modulated as per the PHY characteristics.
- the transmission deferral is ordered by up to eight priority levels, implementing absolute priority among stations contending for access. If, after initiating a transmission, the message collides with that of another station, each transmitting station ceases transmission and resolves the collision by choosing a backoff level and defers to other stations that have chosen a lower backoff level.
- the distributed algorithm for choosing a backoff level tightly bounds the access latency.
- An exemplary HPNA MAC therefore includes carrier sense logic, collision detection logic, and CSMA/CD collision resolution/rx frame synchronization logic.
- Carrier sense logic detects the starting and ending times of a valid frame transmission on the wire. This is used to determine when frames are present on the channel/transmission medium, as well to detect the presence of a backoff signal in a signal slot.
- Collision detection logic detects the presence of a valid frame transmission from some other station during an active transmission, and for all stations, including non-transmitting stations, detects the received fragment that represents a transmission truncated by a collision.
- Collision resolution logic implements the distributed algorithm that controls backoff. In the downstream direction the HPNA controller 124 interfaces with the
- the HPNA MAC encapsulates messages with a data layer header and start of frame (SOF) indicator.
- SOF start of frame
- the HPNA MAC may also add data trailer and end of frame indicators.
- the MAC header may include a source address (SA) to identify the node sending the message, and may also include a destination address (DA) to identify the intended recipient or group of recipients.
- SA source address
- DA destination address
- the reverse process occurs wherein the HPNA MAC receives messages from the Physical layer and the HPNA MAC strips off the header and/or trailer information and places the message in system memory (SDRAM) via the ISB 118 for transmission upstream to the CMTS.
- SDRAM system memory
- the described exemplary embodiment ofthe network gateway includes an external bus interface (EBI) 140 that supports connection to flash memoiy 142, external SRAM 144 or EPROMS 146. Additionally, the EBI 140 may be used to interface the described exemplary network gateway with additional external peripherals.
- the EBI 140 can provide a 24 bit address bus and a 16-bit bi-directional data bus. Separate read and write strobes can be provided along with multiple firmware configurable chip select signals. Each chip select can be fully programmable, supporting block sizes between about 4 K-bytes and 8 M-bytes, extended clock cycle access control and 8 or 16-bit selection of peripheral data bus width.
- the EBI 140 can support both synchronous and asynchronous transfers.
- the EBI 140 can include DMA access capability to or from the SDRAM interface 116.
- the DMA operation may take one or more forms.
- an EBI bridge can act as the DMA controller, and perform all pointer and buffer management tasks during DMA operations.
- an external mode an external device can act as the DMA controller and the EBI 140 can serve as a simple bridge.
- the MIPS core 128 can be responsible for DMA setup.
- the network gateway may be vulnerable to network breaches due to peripheral devices such as PCs employing windows or network Macintosh computers. Therefore the exemplary embodiment of the gateway includes IP security module 148thatinterfaceswiththeISB 118.
- the MIPS core 128 can set-up and maintain all security associations.
- the MIPS core 128 can also filter all IP traffic and route any messages requiring security processing to the security module via the ISB 118.
- the IP security module 148 may support single DES (CBC and ECB modes) triple DES (CBC and ECB modes) MD-5 and SHA authentication in hardware to provide support for virtual private networks.
- the IP security module 148 can implement the basic building blocks ofthe developing IP Security Standard (IPsec).
- IPsec IP Security Standard
- the IP security module 148 may also implement other security schemes that use the same basic two protocol technique as IPsec to provide traffic security.
- a first protocol, IP encapsulating security payload (ESP), provides private data privacy with encryption and limited traffic flow confidentiality.
- ESP may also provide connectionless integrity, data source authentication and an anti-replay service.
- a second format, IP authentication header (AH), provides connectionless integrity, data source authentication and an optical anti-replay service.
- Both protocols may be used to provide access based on the distribution of cryptographic keys and the management of traffic flows. The protocols may be used alone or in combination to satisfy the security requirements of a particular system.
- the security module 148 can support multiple modes of operation depending on a security association to the traffic carried by a simplex connection. For example, transport mode security association between two hosts primarily protects protocols above the IP layer while tunnel mode security association provides security and control to a tunnel of IP packets.
- An exemplary security module 148 addresses possible differences in packet format between IPsec and future security applications with a generalized scheme to determine where the authentication / encryption algorithms are applied within a data packet.
- the authentication / encryption algorithms consider each packet to consist of three parts, a header, body and trailer. The appropriate algorithm can be applied, using any specified parameters to the body section only.
- the security module 148 can add and initialize any necessary headers, determine necessary parameters, generate the associated control message and add the control and data message.
- the control fields of the received data packets are parsed, the parameters are determined via a security association lookup table, a control message is created and the control and data messages are enqueued.
- An exemplary embodiment ofthe network gateway also includes a DMA controller 150 having anumber of channels that enable direct access over the ISB 118 between peripherals and the system memory 114.
- packets received by the network gateway cause DMA transfers from a peripheral to memory, which is referred to as a receive operation.
- a DMA transfer from memory to a peripheral is referred to as a transmit operation.
- Programmable features in each channel allow DMA controller 150 to manage maximum ISB burst lengths for each channel, enable interrupts, halt operation in each channel, and save power when certain modules are not operational.
- the maximum ISB burst length may be programmed independently for each channel preferably up to sixty four 32 bit words.
- each channel may include maskable interrupts connected to the MIPS core 128 that indicate buffer complete, packet complete and or invalid descriptor detected.
- Busy DMA channels may be stalled or completely disabled by the MIPS corel28.
- Source clocks (not shown) for each channel can be connected to the channels based on the internal peripheral they service. For power reduction, these clocks may be turned off and on coincident with the respective peripheral's clock.
- the DMA controller 150 can be operable in both non-chaining and chaining mode.
- the DMA channel refers to its internal registers for the pertinent information related to a scheduled DMA burst transfer.
- the DMA controller can set-up the buffer start address, byte count, and status word registers before initiating the DMA channel for each allocated buffer.
- the DMA channels can send the specified number of bytes (preferably up to 4095) from the specified byte address.
- the DMA channels can insert data into a specified memory location until a buffer has been completely filled or the end of a packet is detected.
- the system memory can be partitioned as shown in FIG.4 preferably using descriptor rings containing pointers to memory buffers as well as status information for each memory buffer.
- the MIPS corel28 can write the descriptor pointers while the DMA controller 150 follows by inserting/taking data into/from the location designated by the descriptor. Upon completion of he transfer of a buffer, the DMA controller 150 effectively clears the descriptor by updating the status to indicate that the data has been inserted/taken. Specific information may be added to the descriptor to indicate, for example, the length of data in the block, or to specify whether the data is the first or last block of a packet.
- the MIPS core 128 can fill or recognize a data block for a particular DMA channel, then write the next unused descriptor in the ring indicating that the block is filled and where the downstream data exists in memory.
- the DMA controller 150 can follow the DSP write to the descriptor ring, sending out data and clearing the descriptor when the transfer is complete.
- the DMA controller 150 reads a descriptor that does not contain valid data, it can go idle until initiated by the MIPS core.
- the MIPS core 128 allocates memory space for incoming data, then writes the descriptor with the start address for that buffer.
- the DMA controller 150 reads the base address and inserts data until either the buffer is full or an end of packet has been detected.
- the DMA controller 150 can update the descriptor, communicating to the MIPS corel28 that the block is full, indicating the length of the data on the block, and/or asserted first and or last buffer flags.
- the described exemplary network gateway includes the voice and data processor 160 for processing and transporting voice over packet based networks such as PCs running network on a USB (Universal Serial Bus) or an asynchronous serial interface, Local Area Networks (LAN) such as Ethernet, Wide Area Networks (WAN) such as Internet Protocol (IP), Frame Relay (FR), Asynchronous Transfer Mode (ATM), Public Digital Cellular Network such as TDMA (IS-13x), CDMA (IS-9x) or GSM for terrestrial wireless applications, or any other packet based system.
- the described embodiment ofthe voice and data processor 160 also supports the exchange of voice, as well as fax and modem, between a traditional circuit switched network or any number of telephony devices and the CMTS (not shown).
- the voice and data processor may be implemented with a variety of technologies including, by way of example, embedded communications software that enables transmission of voice over packet based networks.
- the embedded communications software is preferably run on a programmable digital signal processor (DSP).
- DSP programmable digital signal processor
- the voice and data processor 160 utilizes a ZSP core from LSI Logic Coreware library for mid to high end telecommunications applications.
- the DSP core includes internal instruction RAM 162 and internal data RAM 164.
- the voice and data processor 160 interfaces with the internal system bus 118 via a DSP/ISB interface 166 and the peripheral bus 132 via the DSP/PB interface 168.
- the voice and data processor 160 may include a grant synchronizer that ensures timely delivery of voice signals to the MIPS core 128 for upstream transmission.
- a PCM interface 169 provides the voice and data processor 160 with an interface to an internal audio processor 170 as well as external audio processing circuits (not shown) to support constant bit rate (CBR) services such as telephony.
- CBR constant bit rate
- the PCM interface 169 provides multiple PCM channel controllers to support multiple voice channels . In the described exemplary embodiment ofthe network gateway, there are four sets of transmit and receive FIFO registers, one for each ofthe four PCM controllers. However, the actual number of channels that may be processed may vary and is limited only by the performance ofthe DSP.
- the internal system bus 118 is used to transfer data, control and status messages between the voice and data processor 160 and the
- MIPS core 128 MIPS core 128.
- FIFO registers are preferably used in each direction to store data packets.
- the described exemplary embodiment ofthe gateway includes the internal audio processor 170 with an analog front end 172 that interface the voice and data processor 160 with external subscriber line interface circuits (SLICs) for bidirectional exchange of voice signals.
- the audio processor 170 may include programable elements that implement filters and other interface components for a plurality of voice channels.
- the analog front end 172 accepts an analog voice signal and digitizes the signal and forwards the digitized signal to the audio processor 170.
- the audio processor 170 decimates the digitized signal and conditions the decimated signal to remove far end echos. As the name implies, echo in telephone systems is the return of the talker's voice resulting from the operation ofthe hybrid with its two-four wire conversion.
- the audio processor can apply a fixed gain / attenuation to the conditioned signal and forwards a gain adjusted signal to the voice and data processor 160 via the PCM interface 169.
- the audio processor 170 accepts a voice signal from the PCM interface and preferably applies a fixed gain/attenuation to the received signal. The gain adjusted signal is then interpolated from 8kHz to 96 kHz before being D/A converted for communication via a SLIC interface to a telephony device.
- each audio channel can be routed to a PCM port to allow for system level PCM testing.
- the PCM system tests may require compliance with ITU G.711 for A-law and ⁇ -law encoding/decoding .
- the described exemplary embodiment of the network gateway further includes integrated peripherals including independent periodic interval timers 180, a dual universal asynchronous receiver-transmitter (UART) 182 that handles asynchronous serial communication, a number of internal interrupt sources 184, and a GPIO module 186 that provides multiple, individually configurable input/output ports.
- multiple GPIO ports can be provided to drive various light emitting diodes (LEDs) and to control a number of external SLICs.
- a peripheral bus bridge 186 can be used to interface the low speed peripheral to the internal system bus 118.
- the DOCSIS downstream demodulator 100 can support 64/256 QAM.
- the downstream demodulator accepts an analog IF input signal 198, amplifies and digitizes the input signal with an integrated programable gain amplifier (PGA) 200, and an A/D converter 202.
- An on chip gain recovery loop 204 circuit controls the PGA 200 to provide an on chip automatic gain control (AGC) function.
- AGC on chip automatic gain control
- Timing recovery and clock generation includes an on chip voltage controlled oscillator (not shown) that can be locked to an off chip crystal, to control the sampling of he A/D converter 202. The stability of the crystal reference allows for accurate sub-sampling ofthe IF signal to produce a digital data stream centered on a lower IF center frequency.
- a digital demodulator demodulates the digitized output 202(a) ofthe A/D converter 202, with recovered clock and carrier timing.
- the digital demodulator includes digital mixers 210, 212 that mix a complex data stream generated by a direct digital frequency synthesizer (DDFS) 211 with the digitized signal 202(a).
- the timing recovery loop controls the timing of the DDFS 211.
- Matched interpolation filters 214,216 convert mixer outputs to in-phase (I) and quadrature- phase ⁇ ) baseband signals correctly sampled in both frequency and phase.
- Dual square root Nyquist filters 218, 220 which may accommodate 11-18% roll-off factors, filter the I & Q baseband signals to reduce inter-symbol interference.
- notch filters 222, 224 may be used to substantially reduce narrowband, co-channel interference caused by intermodulation products from analog CATV channels. The notch filters 222, 224 preferably place notches in the frequency spectrum at the frequencies of these subcarrier.
- the downstream demodulator preferably includes a configurable multi-tap decision directed equalizer 226.
- a 40 tap equalizer is used to remove inter symbol interference generated by worst case coaxial cable channels witli multipath spreads of up to 4.5 ⁇ sec at 5.26 Mbaud. Blind convergence algorithms facilitate equalizer acquisition.
- the configurable multi-tap decision directed equalizer 226 performs phase recovery on the equalized constellation points using a quadrature synthesizer and complex mixer under the control ofthe carrier recovery loop to track out residual carrier offsets and instantaneous phase offsets such as those caused by tuner microphonics.
- the output ofthe adaptive equalizer phase recovery block is coupled to a forward error correction (FEC) decoder 228.
- the FEC decoder 228 can support numerous decoders including ITU-T J.83 Annex A/B/C compatible decoders.
- the Annex A/C decoder consists of four major functions, frame synchronization, convolution de-interleaving, Reed-Solomon error correction and de-randomization. Hard decisions are preferably input into the frame synchronization block which locks onto the inverted sync bit pattern.
- the MIPS core 128 sets the characteristics of the frame synchronization acquisition and retention via a CPU interface 230. Once synchronized, data interleaving is removed by the convolution de-interleaver.
- the Annex B decoder includes five layers, trellis decoding, de- randomization, convolution de-interleaving, Reed-Solomon decoding and checksum decoding.
- the Annex B concatenated coding scheme along with interleaving provides good coding gain to combat Gaston noise while still protecting against burst errors.
- Soft decisions from the adaptative equalizer 226 are input to the trellis decoder which estimates the maximum likelihood of a sequence.
- the output sequences are forwarded to a frame synchronization and de-randomization block similar to those described for the Annex A/C decoders.
- a Reed - Solomon decoder preferably corrects up to three symbol errors per RS block.
- the checksum decoder accurately identifies block containing uiicorrectable errors.
- the downstream demodulator outputs MPEG-2 serial or parallel data, packet sync and a data clock to the DOCSIS MAC:.
- the downstream demodulator also includes two AGC loops which provide control for both RF and IF variable gain amplifiers (GAS).
- the gain control allocated to each loop may be established via a CPU interface 230.
- the RF gain control loop 234 may be closed at the tuner AGC 236 while the IF loop 204 may be completed with either an off chip VGA (not shown) or preferably with the internal PGA 200.
- the power ofthe internal IF signal is estimated and compared to a programmable threshold. If the estimated power exceeds the threshold, the appropriate AGC integrator is incremented by a programmable value. If the estimated power is less than the threshold, the appropriate AGC integrator is decremented by a comparable amount.
- the timing recovery loop 206 may include a timing error discriminant, a loop filter, and a digital timing recovery block which controls the digital re-sampler.
- the carrier frequency/phase recovery and tracking loops are all digital loops which simultaneously offer a wide acquisition range and a large phase noise tracking ability.
- the loops may use decision directed techniques to estimate the angle and direction for phase/frequency compensation.
- the loops can be filtered by integral-plus-proportional filters, in which the integrator and linear coefficients of the filter are programmable to provide the means for setting the loop bandwidths.
- the upper bits of the loop filter can control the direct frequency synthesizer 211, providing both accurate frequency generation and fine phase resolution.
- the downstream demodulator uses an on chip VCO (not shown) referenced to a single off chip crystal which can provide all required chip clocks.
- a spare D/A demodulator provides a 1 -bit pulse- width modulated signal which may be used with an off chip RC filter.
- the downstream demodulator may provide tuner control ports 238 that may be used to program two serially controlled tuner phase locked loop (PLL) frequency synthesizers.
- PLL phase locked loop
- the upstream modulator 102 can support QPSK and 16-QAM processing of burst or continuous data signals 102(a) received from the DOCSIS MAC.
- Burst encoding logic 240 includes FIFO registers and a FEC encoder, preamble prepend and symbol mapper.
- the burst FIFO register decouples the input data rate from the transmission data rate and allows data to be input while a burst is being actively transmitted.
- the FEC encoder processes data stored in the FIFO.
- the FEC encoder may be a Reed-Solomon encoder with data randomization.
- the parallel to serial conversion of bytes entering the randomizer and serial to parallel conversion of bits leaving the randomize may be programmed to be most significant bit (MSB) or least significant bit (LSB) first.
- the encoder may be programmed to correct from zero to ten symbol errors per RS block.
- the FEC encoder may also be configured to integrate the randomize before or after the RS encoder. A programmable preamble of up to 1024 bits may then be added to the data burst and the completed data burst can then be mapped into 90 degree DQPSK, QPSK or 16-QAM.
- the output ofthe burst encoding logic 240 is coupled to a pre-equalizer 244 that may be selectively enabled to pre-distort the transmitted waveform to offset the effects of inter-symbol interference (ISI) .
- the data burst is then shaped by square root Nyquist filters 246, 248.
- the square root Nyquist filters 246, 248 may have a selectable excess bandwidth factor in the range of about 25% to 50 %.
- the maximum passband ripple of these filters is preferably less than about 0.05 dB and the minimum stopband attenuation is preferably greater than about 60 dB.
- the shaped signals are forwarded to interpolation filter banks 250, 252 which interpolate the signal to the sample rate.
- a digitally tunable frequency synthesizer 258 by mixers 254, 256.
- the I and Q components are then combined by summer 260.
- the summer 260 outputs a digital waveform carrying a data burst whose spectrum is preferably centered on the desired RF frequency to a D/A converter 262.
- the D/A converter converts the digital, shaped output burst to an analog waveform.
- a programmable gain attenuator 264 can be used to provide up to about 25 dB attenuation in incremental steps, on the order of about 0.4 dB.
- the DOCSIS media access controller includes baseline privacy encryption and decryption, transmission convergence support, a TDM/TDMA framer, and a scatter/gather
- the transmission convergence sub-layer supports robust frame acquisition and multiplexing with MPEG-TS compliant video and audio streams.
- the TDM/TDMA preferably handles time synchronization with the cable modem termination system, upstream MAP decoding, bandwidth request generation and contention resolution.
- the DOCSIS MAC may be divided into four major functions, downstream functions, upstream functions, DMA interface and miscellaneous control.
- the downstream functions ofthe DOCSIS MAC include receiving MPEG frames from the downstream demodulator, extracting the DOCSIS MAC frames from the MPEG frames, processing the MAC header, filtering messages and data, processing MAP and SYNC messages, decrypting data packets if necessary and providing cyclic redundancy checks (CRCs) on the MAC payloads.
- CRCs cyclic redundancy checks
- an exemplary DOCSIS MAC may include a downstream processor 280 having a physical layer (PHY) interface that provides the interface to the downstream demodulator (not shown).
- the downstream processor receives the incoming MPEG stream, filters on the predefined PID, and uses the offset value contained in the MPEG frame to locate and extract the MAC frames.
- the extracted MAC frames are passed to a MAC header processing block in a message processor 282 and through a rate conversion FIFO (not shown) to a MAC header processing block in a downstream data encryption security (DES) processor 284 that provides baseline security by decrypting QAM downstream traffic.
- DES data encryption security
- the MAC header processing blocks (not shown) examine the MAC header for type, wherein the MAC header processor in the message processor 282 processes only MAC messages while the MAC header processor in the downstream DES 284 processes packets that are not MAC messages.
- the incoming MAC header is parsed for the presence of an extended header field. If the extended header field is present, the MAC header processor block parses the extended header type-length-value (TLV) fields, and searches for a baseline privacy header. Once the baseline privacy header has been located, the MAC header processor forwards the associated value data to the downstream
- Both MAC header processing blocks determine the length of the extended header, calculate the header check sequence (HCS) over the MAC header and compare the calculated HCS with that contained in the MAC header.
- HCS header check sequence
- the MAC processor if the calculated HCS values do not match the HCS values contained in the MAC header, the MAC processor preferably discards the packets and signals the PHY interface requesting re- synchronization. Those packets where the calculated HCS values match the values contained in the MAC header, the MAC header processor preferably generates control signals to flag the type of packet, the beginning ofthe extended header, the beginning ofthe protocol data unit (PDU) and the length ofthe PDU. The MAC header processor routes all PDUs matching the network gateway extended header type to the downstream DES 284 for decryption. The message processor 282 calculates the CRC over the message payload in accordance with the control signals generated by the MAC header processor and supplies data to the downstream DMA controller 290.
- PDU protocol data unit
- the message processor 282 preferably examines the type field ofthe message. The message processor 282 extracts the time stamp from SYNC messages and passes these to a timing regeneration circuit 286. The timing regeneration circuit 286 provides timing recovery using the time stamp values from the sync messages. In addition, the message processor 282 forwards messages that match the upstream channel ID and UCD change count to a MAP processor 288. The remaining messages with valid CRC are passed to a downstream message DMA 290 through a rate adjustment FIFO (not shown) .
- the downstream DES 284 receives data packets and control signals from the header processor in the downstream processor 280. The downstream DES 284 determines what type of filtering should be applied to the packet based on information contained in the MAC header. If a packet supports baseline privacy the downstream DES filters the packet based on the service flow identifier (SID). The DES 284 preferably deciypts packets using the key corresponding to the SID and even/odd key bit in the baseline privacy header. The DOCSIS MAC does not perform decryption on packets that do not contain a baseline privacy header.
- the DES 284 preferably filters packets based upon the destination address and forwards the filtered packets to a CRC processor (not shown) which calculates a CRC over the entire PDU payload. If the calculated CRC does not match the value stored in the packet, a CRC error flag is set and the packet is marked as erred in the downstream DMA buffer.
- the downstream DMA 290 is used to transfer data to system memory (not shown).
- the downstream DMA 290 may have two channels, one of which is used to transfer data into system memory, the other is used to transfer message packets into memory.
- the two channels can be substantially identical in function.
- the downstream DMA can use structures in the memory to control transfer of information.
- the structures can be established and maintained by firmware.
- Data can be stored in regions of memory called particles.
- One structure contains a ring of buffer descriptors with each buffer descriptor describing particles in the shared memory.
- the DMA can store received downstream data in the particles and update the status and length in the buffer descriptor.
- the other structure is an additional ring of descriptors used to refer to single packets. Where a packet may be contained in any number of particles described by a like number of buffer descriptors, there is only one packet descriptor associated with the packet.
- the upstream DMA 292 includes a plurality of upstream channels that read upstream packet headers and protocol data units (PDUs) from system memory.
- the upstream DMA 292 inserts the HCS, CRC and piggyback fields when transferring packets to an upstream DES 294.
- the upstream DES 294 examines the extended header to determine if encryption is enabled. If encryption is not enabled, the upstream DES 294 forwards the packet to the upstream processor 296, otherwise if encryption is enabled the upstream DES 294 preferably uses the SID and the even/odd key bit in the extended header to perform a key lookup. The upstream DES 294 then encrypts the packet and forwards the packet to the upstream processor 296.
- the upstream processor 296 extracts MAP information elements (IEs) from the MAP FIFO and compares the elements to a next upstream minislot count. If the counts match, the upstream processor 296 evaluates the type of slot described by the MAP information element. If the network gateway needs to respond to the information element, the upstream processor 296 preferably loads the appropriate physical layer parameters to the upstream modulator 102 (see FIG. 3) and forwards the appropriate message or data packet. This operation depends on the slot type and status ofthe network gateway. The upstream processor 296 preferably responds to initial maintenance slots and will ignore all station maintenance slots and requests until the MIPS core 128 (see FIG. 3) signals that the network gateway has been initially ranged and assigned a SID (temporary or permanent).
- IEs MAP information elements
- the upstream processor 296 responds to initial maintenance slots by extracting the ranging request message from internal memory that is programmed by the MIPS core. Once the network gateway has been initially ranged, the upstream processor 296. responds to station messages, requests, request/data regions, and grants and not to initial maintenance messages.
- the upstream processor 296, monitors the upstream DMA queues.
- the upstream processor randomly selects one ofthe available requests slots.
- the upstream processor 296 then waits to receive a grant, an acknowledgment (grant with length zero) or an ACK time past the time it sent its request upstream. If the upstream processor 296 does not receive an acknowledgment or grant before the ACK time has past, the upstream processor 296 preferably uses truncated binary exponential back-off to select another request slot to resend its request.
- the upstream processor 296 signals the upstream DMA 292 to begin extracting the packet from memory and forwarding the packet to the upstream DES for processing as described above.
- the upstream processor 296 then forwards the packet to the upstream modulator (not shown) at the appropriate transmission time.
- the integrated Ethernet MAC performs all the physical layer interface functions for 100B ASE-TX full duplex or half duplex Ethernet on
- the Ethernet MAC 134 may be coupled directly to the Ethernet network via the media independent interface 110. In 100B ASE-TX mode, the Ethernet MAC 134 preferably monitors the twisted pair for transitions in the energy level ofthe received signal. Signals can be qualified using squelch detect circuits. The Ethernet MAC enters and remains in a "link fail" state when valid signals are not detected on the receive twisted pair. In the link fail state, the Ethernet MAC 134 preferably transmits only idle codes. When the Ethernet MAC 134 detects a valid signal for a predetermined period, the Ethernet MAC 134 enters a link pass state and the appropriate transmit and receive functions are enabled.
- the Ethernet MAC 134 preferably provides the ability to negotiate its mode of operation over the twisted pair link using the auto negotiation mechanisms defined in the IEEE 802.3u specifications, the contents of which are incorporated herein by reference as if set forth in full. Auto-negotiation should be selectively enabled by the Ethernet MAC. When enabled, the Ethernet MAC 134 preferably chooses a mode of operation by advertising its abilities and comparing those abilities to those received from its link partner.
- FIG.8 shows the physical interface portion ofthe Ethernet MAC 134.
- the Ethernet MAC 134 may perform 4B5B, MLT3, and Manchester encoding and decoding.
- the Ethernet MAC enables a 4B5B encoder 316.
- the transmit packet is encapsulated by replacing the first two nibbles with a start of stream delimiter and appending an end of stream delimiter to the end of the packet.
- the transmitter will repeatedly send the idle code group between packets. When the Mil transmit enable is asserted, data is inserted into the transmit data stream.
- the encoded data stream is scrambled by a stream cipher scrambler 318 to reduce radiated emissions on the twisted pair, serialized by serializer 320 and encoded into MLT3 signal levels.
- a multimode digital to analog converter (DAC) 322 drives the MLT3 data onto the twisted pair cable.
- the multi-mode DAC 322 can transmit MLT3-coded symbols in 100Base-TX mode and Manchester coded symbols in 10BASE-TX mode. Further, in the described exemplary embodiment, the DAC 322 can perform programmable edge rate control in transmit mode, which decreases unwanted high frequency signal components. High frequency pre-emphasis is preferably performed in 10BASE- TX mode.
- the Ethernet MAC 134 can receive a continuous data stream on twisted pair.
- a 100BASE-TX data stream is not always DC balanced, because the receive signal must pass through a transformer, and therefore, the DC offset of the differential receive input may wander.
- Baseline wander may reduce the noise immunity ofthe receiver.
- Wander correction logic 300 can be used to compensate for baseline wander by removing the DC offset from the input signal, thereby reducing the receive symbol error rate.
- Each receive channel ofthe Ethernet MAC 134 can include an analog to digital converter (ADC) 302 coupled to the output ofthe wander correction logic.
- the ADC output is forwarded to a digital adaptive equalizer 304 that removes interzonal interference created by the transmission channel media.
- the described exemplary Ethernet MAC 134 combines feed forward equalization and decision feedback equalization to achieve an optimal signal to noise ratio.
- the digital design increases tolerances to on chip noise and the filter coefficients preferably self adapt to any quality of cable or cable length.
- the adaptive equalizer can be bypassed in 10B ASE-TX mode which includes transmit pre-equalization capability.
- the Ethernet MAC 134 may include a digital clock recovery / generator system 306 that creates all internal transmit and receive clocks.
- the transmit clocks can be synched to a 50 MHz clock input while the receive clocks are locked to the incoming data streams.
- Clock recovery circuits optimized to MLT3 , and Manchester encoding schemes can be included for use with each of three different operating modes.
- the input data streams can be sampled by the recovered clock from each port and fed synchronously to the respective digital adaptive equalizer.
- a data converter 308 converts the received data stream from MLT3 to NRZ data.
- the NRZ data is descrambled by a stream cipher de-scrambler 310.
- a de-serializer 312 is coupled to the output ofthe stream cipher descrambler and de-serializes and aligns the data into 5-bit code groups.
- the 5-bit code groups are decoded into 4-bit data nibbles by a decoder 314.
- the start of stream delimiter is replaced with preamble nibbles and the end of stream delimiter and idle codes are replaced with zeros.
- the Ethernet MAC 134 When an invalid code group is detected in the data stream, the Ethernet MAC 134 asserts the Mil receive error RXER signal which asserts several error conditions which can be used to improperly terminate the data stream. While RXER is asserted, the receive data can be driven with "01 " for an invalid data reception and "10" for a false carrier.
- FIG. 9 shows the controller portion of the Ethernet MAC.
- the MAC receiver routes nibble wide Mil data through cyclic redundancy checker 332 to a buffer 330 where it can be assembled into 32-bit long words.
- the data is forwarded to a FIFO register 334 that is coupled to the ISB 118 by ISB interface 336.
- Ethernet packet data is moved from the FIFO 334 to system memory by the system DMA controller (not shown).
- the MAC transmitter contains a FIFO register 338 that is coupled to the ISB 118 via the ISB interface 336.
- An Ethernet packet is moved from system memory (not shown) into the FIFO 338 by the system DMA controller (not shown).
- the data can be forwarded through data buffer 340 to the Mil (not shown) by a transmit state machine (not shown).
- the transmit state machine initiates transmission ofthe packet to the Mil when a FIFO watermark is reached or an end of packet is received.
- the transmit state machine also ensures that the correct inter-packet gap (IPG) duration has expired before initiating packet transmission to the Mil (not shown) from the data buffer 340.
- IPG inter-packet gap
- the preamble and start of frame delimiter can be initially transmitted over the Mil, followed by transmission of actual data. If the packet is less than 64 bytes long, all zero pad bytes can be appended to the frame. CRC generator 342 automatically generates CRC which is appended if the packet is less than 64 bytes long. 5. Universal Serial Bus Transceiver and MAC
- An exemplary network gateway includes a USB 1.1 compliant, full speed (12 M b/sec) device interface.
- the USB 1.1 specification defines an industry- standard USB.
- the specification describes the bus attributes, the protocol definition, types of transactions, bus management, and the programming interface required to design and build systems and peripherals that are compliant with this standard.
- the USB 1.1 specification is incorporated herein by reference as if set forth in full.
- the (USB) can provide a ubiquitous linlc that can be used across a wide range of PC-to-telephone interconnects.
- the USB interface in the described embodiment, supports sixteen configurations, four concurrent interfaces per configuration, four alternative interfaces per interface and six concurrent endpoints.
- An endpoint is a uniquely identifiable portion of a USB device that is the termination of a data path between the host (e.g. MIPS core) and device.
- Each USB logical device is composed of a collection of independent endpoints. Each logical device has a unique address assigned by the system at device attachment time. Each endpoint on a device is assigned a unique device-determined identifier called the endpoint number. Each endpoint has a device-determined direction of data flow. The combination ofthe device address, endpoint number, and direction allows each endpoint to be uniquely referenced.
- Each endpoint is a simplex connection that supports data flow in one direction: either input (from device to host) or output (from host to device) .
- An endpoint has characteristics that determine the type of transfer service required between the endpoint and the client software.
- FIG. 10 shows an exemplary USB transceiver.
- the USB transceiver uses a differential output driver 370 to drive the USB data signal onto the USB cable in accordance with the USB 1.1 specification.
- the driver can be a CMOS driver with an impedance that is less than the resistance specified in the USB 1.1 specification so that a discrete series resistor may be included to make up the balance as required.
- a differential input receiver 372 can accept the USB data signal.
- the receiver sensitivity complies with the USB 1.1 specification with an input sensitivity (VDI) of at least about 200mV when both differential data inputs are in the differential common.
- the described exemplary USB transceiver may include a single-ended receiver 374, 376 for each of the two data lines.
- the transceiver can support both full- and low-speed data rates such that any type of device may be coupled to these ports. When the transceiver is in full-speed mode it can use full-speed signaling conventions and edge rates. In low-speed it can use low-speed signaling conventions and edge rates.
- the described exemplary transceiver preferably utilizes two logical levels, J and K data states, to communicate differential data in the system. Differential signaling complies with the crossover voltage requirements of Section 7.1.2 ofthe USB 1.1 specification.
- FIG. 11 shows an exemplary USB MAC.
- the USB MAC includes aUSB packet processor 380 that supports bulk in/out endpoints with packet sizes of eight, sixteen, thirty two or sixty four bytes.
- the USB packet processor 380 fragments USB packets and reassembles them into higher level packets with automatic detection of zero length USB packets.
- Internal USB configuration RAM 381 allows flexible configuration ofthe USB interface.
- the configuration RAM 381 can provide on the order of at least about 512 bytes of storage space for USB configuration descriptors.
- the MIPS core programs the configuration RAM 381 with a USB descriptor sequence.
- the MIPS core reads the values back from the configuration RAM and verifies the accuracy ofthe descriptors in RAM.
- the MIPS core enables USB operation.
- the USB MAC can support multiple configurations, interfaces, alternative interfaces and endpoints.
- the size of the configuration RAM limits the total length ofthe descriptor sequence. Therefore, the size ofthe configuration RAM may be optimized for integration into various applications that may require more than the described 512 bytes of storage space.
- a descriptor sequence contains one device descriptor and one or more configurations, interface and endpoint descriptors.
- the length of a device/configuration interface descriptor is nine bytes and the length of an endpoint descriptor is seven bytes .
- string descriptors are not stored in the configuration RAM.
- the USB MAC processes all required USB standard device requests in hardware, including the clear_feature, get_configuration, get_descriptor, get_interface, get_status, set address, set_configuration, set_feature, and set_interface commands.
- the USB MAC extracts optional and class/vendor commands such as, for example, set_descriptor, synch_frame, and get_string_descriptor and forwards those commands to the MIPS core for processing.
- the USB MAC Upon receipt of such device requests the USB MAC preferably issues an interrupt to the MIPS core which then extracts the setup command and processes it.
- USB endpoints there are preferably six physical USB endpoints: one bulk RX endpoint, one bulk TX endpoint, one isochronous RX endpoint, one isochronous TX endpoint, and one interrupt RX endpoints.
- An isochronous transfer can provide guaranteed access to USB bandwidth with bounded latency and guaranteed constant data rate through the pipe as long as data is provided to the pipe.
- the endpoint can be a given configuration and specifies the maximum size data payload that it can transmitted or received.
- the USB uses this information during configuration to ensure that there is sufficient bus time to accommodate the maximum data payload in each frame. If there is sufficient bus time for the maximum data payload, the configuration is established; if not, the configuration is not established.
- the inteixupt transfer type endpoint supports those devices that send or receive small amounts of data infrequently, but with bounded service periods.
- An interrupt transfer preferably provides a guaranteed maximum service period for the pipe as well as an attempt to re- transfer the data at the next period, in the case of occasional delivery failure due to error on the bus.
- the endpoint description identifies whether a given interrupt pipe' s communication flow is into or out ofthe host.
- Bulk transfers can support the exchange of relatively large amounts of data at highly variable times where the transfer can use any available bandwidth. Bulk transfers preferably provide access to the USB on a bandwidth-available basis, with guaranteed delivery of data, but no guarantee of bandwidth or latency. In addition, bulk transfers preferably attempt to re-transmit in the case of delivery failure.
- the bulk endpoint specifies the maximum data payload size that the endpoint can accept from or transmit to the bus. This maximum applies to the data payloads of the data packets; i.e., the size specified is for the data field of the packet not including other protocol-required information.
- the bulk endpoint is designed to support a maximum data payload size. The bulk endpoint preferably reports in its configuration information the value for its maximum data payload size.
- both RX/TX bulk endpoints can support a maximum USB packet size of eight, sixteen, thirty two, or sixty four bytes.
- Both RX/TX isochronous endpoints 382, 383 can support a maximum USB packet size of eight, sixteen, thirty two, sixty four, one hundred and twenty eight, two hundred and fifty six or five hundred and twelve bytes.
- the control endpoints can support a maximum packet size of thirty two bytes and the interrupt RX endpoint can support a maximum USB packet size of eight bytes.
- Both the bulk and isochronous endpoints 382, 383 can support hardware fragmentation of higher layer packets (such as Ethernet packets) into USB packets in the transmit direction and the reassembly of higher layer packets from USB packets in the receive direction.
- An end of packet flag can be used to signal when a USB packet is shorter than the maximum packet size defined by the endpoint.
- the USB MAC inserts a zero length packet as an end of packet signal when the length ofthe higher layer packet is exactly an integer multiple ofthe maximum USB packet size.
- the USB MAC supports the generation of zero length packets in the transmit direction and the detection of zero length packets in the receive direction.
- the USB MAC may include internal RX and TX RAM 384, 385 for temporary data buffering among the bulk, isochronous and control endpoints. The endpoints are then forwarded to system memory.
- the USB preferably includes four direct memory access (DMA) channels for fast access to and from system memory through a system bus interface 386 coupled to the ISB. Preferably, two DMA channels are used for bulk RX/TX endpoints and two are used for isochronous RX TX endpoints.
- DMA direct memory access
- the Physical layer ofthe HPNA controller is concerned with transmission and reception of bit stream traffic to and from the transmission medium.
- An exemplary HPNA PHY includes a FDQAM / QAM transmitter and receiver coupled to an analog front.
- FIG. 12a shows in block diagram form the controller aspects ofthe embodiment, while FIG. 12b shows the analog front end aspects of the embodiment.
- HPNA controller.124 is a fully integrated MAC / PHY that transmits and receives data over an HPNA network.
- HPNA controller 124 includes a bus interface 388, such as a PCI or MSI bus interface for communication in accordance with well-known PC-based and/or peripheral/internet appliance architectures.
- HPNA controller 124 also includes digital PHY 390 having a FDQAM / QAM transmitter and receiver interfacing with the HPNA analog front end 126 and MAC 392.
- HPNA MAC 392 is coupled to bus interface 388 through transmit (TX) FIFO 394 and receive (RX) FIFO 396.
- HPNA packet data is moved from the (RX) FIFO 396 to system memory by the ISB 118 via the bus interface 388. Similarly, HPNA data packets are moved from system memory (not shown) via the ISB and bus interface into the (TX) FIFO 394.
- a transmit state machine initiates transmission of the packet to the MAC/PHY when a FIFO watermark is reached or an end of packet is received.
- Bus interface 388 also has the capability of similarly communicating with other devices, such as a v.90 modem through v.90 modem interface 397 and its respective transmit (TX) FIFO 398 and receive (RX) FIFO 399.
- analog front end 126 couples HPNA controller to a transmission medium such as a premises UTP wiring.
- Analog front end 126 includes digital input/output (I/O) circuit 410 for transferring samples to and receiving samples from the HPNA controller.
- Digital I/O 410 includes clock 412 for driving HPNA controller 124 with a 64MHz +/- lOOppm clock generated by 64Mhz crystal 414.
- a transmit path ofthe analog front end includes digital-to-analog converter
- the transmit path may further include an automatic gain controller 425 that adjust the gain ofthe analog signal in accordance with an input received by digital I/O 410.
- Filter 430 and transmit-off switch 435 are coupled to phone line connector 450, such as a UTP wiring RJ11 connector, through electronic hybrid 440 for buffering signals and filter / transformer / electronic protection circuit 445.
- the receive path includes analog-to-digital converter 460 for sending valid sample data, variable gain amplifier (VGA) 470, filter 480 for low-pass anti-aliasing, VGA 490, and is similarly coupled to phone line connector 450 through electronic hybrid 440 and filter / transformer / electronic protection circuit 445.
- Electronic hybrid 440 and filter / transformer / electronic protection circuit 445 are connected there between by a plurality of transmit and receive lines (e.g.,TX, RX1, RX2) 495.
- the operations ofthe analog front end are well known in the art.
- Transmitter 500 includes frame processor 510, data scrambler 520, bit-to-symbol mapper (constellation encoder) 530, and QAM / FDQAM modulator 540.
- An exemplary frame format is illustrated in Fig.14.
- Frame format 600 consists of low-rate header section 610, a variable-rate payload section 620, and a low-rate trailer 630. Some parts of the frame are not scrambled, as described below.
- Header 610 includes apreamble (PREAMBLE64)
- Header 610 also includes frame control field 614.
- frame control field 614 is a 32-bit field defined in the table set forth in FIG. 15.
- Frame Type (FT) 616 is an eight bit field that is intended to provide flexibility for defining other frame formats in future versions of the embodiment. Present devices transmit zero in this field, and discard any frames with FT other than zero. The FT field is intended to provide a mechanism for forward compatibility, allowing extensions to use frame formats differing from the present embodiment.
- Scrambler initialization (SI) field 622 is set to the value used to initialize scrambler 520.
- Priority (PRI) field 620 refers to a media access priority mechanism as described below.
- the three bit PHY priority value (PRI) refers to the absolute priority that a particular frame will be assigned when determining media access, and is the value used in the MAC embodiment described below.
- the priority value 620 is a field carried in the PHY-level frame transmission and is intended to indicate a three-bit PHY-level priority or class-of-service indication to the receiver link level processor for managing priority and class of service ofthe received frame.
- the priority value is not used by the receiver PHY processor. For stations that do not implement class-of- service the PRI field is ignored on receive, and is set to one for transmission.
- the described exemplary embodiment may also include a field that is reserved (RS VD) 618 for future use.
- RS VD field that is reserved
- PE Payload encoding
- HCS Header check sequence
- SA Ethernet source address
- the fields covered by the HCS are transmitted at two MBaud and two bits per Baud. Therefore, these fields may be received correctly in many cases where the payload is received in error.
- the HCS may be used in conjunction with soft-decision error statistics to determine with high probability whether the header was received correctly. This knowledge may be useful for optimizing the performance of ARQ and/or rate negotiation algorithms described below.
- bit fields starting with the destination address (DA) field 628 and ending with the FCS field 630 substantially correspond with the fields described in IEEE Std 802.3 and are referred to as a link-level Ethernet frame (packet) 632.
- the bits of aPHY-level Ethernet frame have an Ethernet preamble and start-frame-delimiter (SFD) bits prepended to the link-level frame, that are not included in the frames of the present embodiment.
- SFD start-frame-delimiter
- IEEE assigned Ethernet MAC addresses are used for destination address (DA) 628 and source address (SA) 638.
- the Ethernet frame consists of an integer number of octets.
- Ether-type field 640 is Ethernet data field 642, FCS field 630 and cyclic redundancy check (CRC) field 644.
- CRC field 644 is a 16-bit cyclic redundancy check computed as a function ofthe contents ofthe (unscrambled) Ethernet frame in transmission order, starting with the first bit ofthe DA field and ending with the last bit of the FCS field.
- the encoding is defined by the following generating polynomial.
- a variable-length PAD field 646 follows CRC field 644 and consists of an integer number of octets.
- the last octet ofthe pad field (PADJ ENGTH) specifies the number of zero octets (0x00) preceding PADJ ENGTH.
- the value of PAD_LENGTH is equal to or greater than the number of zero octets required to ensure that the minimum length ofthe transmission, from the first symbol ofthe PREAMBLE64 through the last symbol of the end of frame delimiter, is 92.5 microseconds.
- PAD field is not present in a compatibility mode frame, as described below. Turning back to FIG. 13, scrambler 520 is described in more detail.
- Scrambler 520 is the frame-synchronized scrambler shown in FIG. 16, which uses the following generating polynomial.
- scrambler 520 is bypassed during the preamble bit field and the first 16 bits of Frame Control. Scrambler 520 is initialized and enabled starting with the 17 th bit of Frame Control field 614. Scrambler 520 is bypassed after the last bit ofthe CRC- 16 644, or the last bit of the PAD field 646, if present.
- the EOF sequence is not scrambled.
- the use of a pseudo-random initial scrambler state results in a more uniform power-spectral density (PSD) measured over multiple similar frames. This eliminates the problem of tones in the PSD from highly correlated successive packets.
- PSD power-spectral density
- constellation encoder 530 performs bit to symbol mapping.
- the incoming bits are grouped into N-bit symbols, where N is the number of bits per baud specified in PE field 624.
- Complex symbols from constellation encoder 540 are input to QAM/FDQAM Modulator 540.
- QAM/FDQAM modulator implements Quadrature Amplitude Modulation (QAM).
- FIG. 17 shows an example QAM implementation.
- the carrier frequency and transmit filters are the same for Baud rates of 2 MHz and 4 MHz.
- a 2 MBaud signal is equivalent to an appropriately scaled 4 MBaud signal in which every other symbol is zero.
- the present invention may provide for a compatibility frame format that is defined for use by HPNA V2 nodes when they are sharing the phone line with HPNA VI nodes.
- the V2 transmissions masquerade as valid VI frames to provide correct carrier sense and collision detection behavior, even though VI nodes are not able to recover the data from the frame.
- frame 700 starts with a modified VI AID field 710, followed by a V2 symbol sequence modified to have periodic gaps 720 so that a V 1 receiver will detect this signal as a series of pulses.
- the frame ends with a trailer that includes 4-symbol V2 EOF 740 and a single pulse, EOP 750, generated by passing a QPSK symbol through the transmit path.
- Transmitter 800 includes framing logic 810 implementing the compatibility mode framing described above.
- Scrambler 820 is responsive to framing 810 and is identical to scrambler 520 described above in conjunction with FIG. 13.
- Scrambler 820 is initialized at the same point in the frame control field.
- Constellation Encoder 830 is coupled to scrambler 820 and is substantially the same as the constellation encoder 530 described above in conjunction with Fig. 13.
- a modified AID Generator 850 prepends a modified VI AID to every frame.
- the modified AID is defined as a V 1 AID in which each pulse in the AID is replaced by a pulse defined below.
- the AID number is one chosen by the sending station and conflicts are resolved by selecting a new AID nmnber.
- the control word indicates high-speed and low- power transmission.
- the use ofthe AID mechanism for collision detection implies that V2 has the same limitation on the maximum number of nodes as V 1 when in compatibility mode.
- the modified AID pulse is generated by passing the first symbol ofthe PREAMBLE48 through the QAM/FDQAM modulator with the same initial modulator phase as the first symbol ofthe PREAMBLE48.
- the modified AID pulse may also be used for the JAM sequence.
- receiver functionality 900 is shown in block diagram form.
- Receiver functionality 900 performs the reverse of that described above for transmitter 500, namely, upon receiving a signal from 2-4 wire hybrid and performing front end processing, the following occurs: QAM/FDQAM Demodulator Gap Removal, Constellation Decoding, De-scrambling and De- framing, as is well-known in the art given the above-defined transmitter functionality.
- the station media access control (MAC) function as seen at the wire interface is described in more detail.
- the HPNA V2 MAC is modeled after the carrier-sense multiple-access with collision detection (CSMA/CD) MAC function of Ethernet (IEEE Std 802.3, 1998 Edition).
- the HPNA MAC is adapted to the V2 PHY and enhanced with quality-of-service (QoS) features.
- FIG.21 depicts the MAC logical layers and functions.
- the MAC function is an essential part of the wire interface characteristics, the system partitioning of PHY and MAC functions is implementation dependent. In particular, it is intended that the present embodiment can be implemented in an integrated PHY+MAC chip.
- a PHY-only chip may be interfaced with a standard "MAC chip" using the Media Independent Interface (Mil) described in IEEE Std 802.3-1998, clause 22.
- Mo Media Independent Interface
- V2 devices When in compatibility mode V2 devices transmit either V 1 format frames or V2 compatibility format frames depending on the destination station type.
- the MAC operation in this mode is as specified in IEEE Std 802.3-1998 CSMA/CD
- An implementation may have different individual CAR_SENS/MAC timing parameters provided the overall timing at the wire interface is the same as
- the Carrier Sense Multiple Access / Collision Detect (CSMA/CD) media access method is the means by which two or more stations share a common transmission channel. To transmit, a station waits (defers) for a quiet period on the channel (that is, no other station is transmitting) and then sends the intended message modulated as per the PHY characteristics.
- the transmission deferral is ordered by up to eight priority levels, implementing absolute priority among stations contending for access.
- a transceiver functional block diagram of an embodiment ofthe present invention includes transmit functionality portion 500, counterpart receive functionality portion 900, VI compatibility transmit and receive functionality portions 910, 920, MAC functionality portion 1000 for both VI and V2 modes, and 2 -4 wire hybrid portion 930. Included in
- MAC 1000 is carrier sense functionality portion 1100, collision detection functionality portion 1200, and CSMA/CD collision resolution/rx frame synchrorrization functionality portion 1300.
- Carrier Sense 1100 detects the starting and ending times of a valid frame transmission on the wire. This is used to determine when frames are present on the channel/transmission medium, as well as to determine the presence of a backoff signal in a signal slot.
- Collision detection 1200 detects the presence of a valid frame transmission from some other station during an active transmission, and for all stations, including non-transmitting stations, detects the received fragment that represents a transmission truncated by a collision.
- Collision Resolution 1300 implements the distributed algorithm that controls backoff. Although the performance of the blocks in the MAC function are implementation dependent, certain minimum performance requirements are needed to ensure interoperability and compatible sharing ofthe channel and are now described in more detail. Referring to FIGS. 22 and 23, the time following a transmission TX is divided into a plurality of slots: (1) an Interframe Gap (IFG)1400; (2) three backoff signal slots 1500 (following collisions 1600); and (3) eight priority slots 1700.
- IFG Interframe Gap
- the MAC is synchronized and the slot timing is defined by the rules for valid transmissions as set forth above. After priority slot zero there may be an arbitrarily long period with no transmissions followed by one or more stations attempting transmission. In this latter case the MAC is unsynchronized.
- stations commence any transmission no earlier than zero and no later than four microseconds (TX_ON) after a slot origin, measured at the transmitter wire interface.
- TX_ON microseconds
- the V2 embodiment can be used for carrying media streams, such as video and audio (as described in more detail below).
- a priority mechanism is implemented to allow higher layers to label outgoing frames with priority to ensure that those frames have preferential access to the channel over lower priority frames.
- transmissions may be delayed to a slot beyond the minimum interframe gap, based on the priority level ofthe frame waiting to be transmitted.
- slots are numbered in decreasing priority, starting at priority seven. Higher priority transmissions commence transmission in earlier slots and acquire the channel without contending with the lower priority traffic.
- a station's Priority Slot may be based on the PHY priority number associated with the frame ready for transmission (TX_PRI), as determined by the network stack and communicated to the MAC.
- the TX_PRI value is the priority the MAC uses to schedule transmission and is the value present in the PRI field of the frame header. This value is determined by a higher layer in the network stack.
- the PRI field is used to transport the priority label from source to destination, to assist the destination in managing the receive queue.
- the Network layer or Application layer will determine what policy is used to map traffic onto Link Layer priorities. For instance, IETF
- the PHY priority mechanism is strict priority (as opposed to schemes which allocate lower priorities some minimum percentage of network capacity) - higher priority traffic never defers to lower priority traffic.
- higher priority traffic will be limited by admission control or other Link Layer policy mechanism to prevent oversubscription.
- Two or more stations may begin transmitting in the same Priority Slot following the IFG period. All stations monitor the channel to detect the colliding transmissions of other stations. Colliding frame(s) will be received over a channel with impairments.
- a Valid CS Frame is guaranteed to have a unique symbol sequence witliin the first 128 symbols (which are transmitted at Base Rate).
- the Ethernet MAC Source Address (SA) is used to guarantee uniqueness. That field is scrambled, but the scrambled S A, SI tuple will be unique. SI is the 4-bit scrambler initialization field, as described above. After detecting a collision a station continues to transmit through the Ethertype field followed by an EOF sequence (symbol 139) and then ceases transmission.
- a collision occurs when two or more stations are active with ready frames and are contending for access to the channel at approximately the same time. Generally, collisions are between frames at the same priority level.
- a distributed collision resolution (CR) algorithm is run which results in stations becoming ordered into backoff Levels where only one station is at backoff Level zero and can therefore acquire the channel. After the winning station completes its transmission, all stations reduce their backoff Level by one if it is greater than zero, and the new station(s) at backoff Level zero attempt transmission. All stations, even those with no frame to transmit, monitor the activity on the medium.
- CR distributed collision resolution
- the collision resolution cycle is closed, so that stations that did not collide are not allowed to contend for access to the medium until all stations that collided have transmitted one frame successfully or have forgone the right to transmit their waiting frame. Ultimately all stations that were contending for access in the initial collision gain access to the wire and the collision resolution cycle is ended. This results in access latency being tightly bounded.
- This mechanism differs from binary exponential backoff (BEB) used in other versions of Ethernet in that the backoff level does not determine the contention slot chosen by a station - all stations at a given priority always contend in the slot corresponding to the access priority. Instead stations at non-zero Backoff Levels defer contending until stations that are at zero Backoff Level transmit.
- BEB binary exponential backoff
- DFPQ Distributed Fair Priority Queuing
- Each active station pseudo-randomly chooses one of the slots, and transmits a backoff signal. More than one station can transmit a backoff signal in the same slot.
- the active stations transmit backoff signals to indicate ordering information that determines the new backoff levels to be used. All stations (even those without a frame ready to transmit) monitor collision events and the backoff signal slots to compute the backoff level. If an active station sees a backoff signal in a slot prior to the one it chose, it increases its backoff level.
- the BACKOFF20 signal is a symbol sequence consisting of 16 symbols of the preamble sequence (TRN16) transmitted, followed by the 4 symbol EOF sequence. Detection of the B ACKOFF20 signal(s) in a backoff signal slot must be possible even if more than one station selects the same slot.
- Stations implement saturating 4-bit BL and MBL counters. The width ofthe Signal Slot is 32 microseconds (SIG_SLOT). Stations implement the MAC function with collision resolution whose behavior matches the procedural model described below.
- the procedural model uses a pseudo-code modeled after concurrent Pascal. IEEE Std 802.3 1998 Clause 4.2.2 provides an overview of this pseudocode.
- the code set forth below models three independent concurrent processes (Deference, Transmitter, Receiver), which interact through shared variables .
- the code set forth below models three independent concurrent processes (Deference, Transmitter, Receiver), which interact through shared variables .
- Deference process is driven by the detection of transmissions on the channel, and times the boundaries for Signal Slots and Priority Slots.
- the shared variable current Priority signals the Transmitter process when a transmission slot exists.
- HPNA V2 includes a standardized mechanism for Linlc Layer network control and encapsulation.
- the link layer provides for the reliable transfer of information across the physical link. It is concerned with sending frames, or blocks of data, with the necessary synchronization, error control, and flow control.
- control frames are data link layer frames that are identified by IEEE assigned Ethertype value (0x886c designated for the Assignee ofthe present application) in the Type/Length field of the frame, and further distinguished by individual sub-types.
- the linlc control entities may be implemented in hardware or driver software.
- Link Control frames are not seen by layer three (IP) of the network stack, and are not bridged between network segments.
- IP layer three
- An exemplary method for implementing Link Control frames is further disclosed in U. S. Patent Application No. 09/825,851 , entitled "METHOD FOR
- the quality of a voice call is affected by at least two metrics namely audio fidelity and audio delay.
- Audio fidelity of packetized voice is affected by several parameters such as, for example, the choice of codec. In general, the lower the compression rate in the codec, the higher the mean opinion score (MO S) of the resulting playback, and the better the perceived speech quality. Similarly, audio quality may be affected by lost samples due to congestion and transmission errors and excessive path latency.
- the audio quality may also be degraded by frame slips that may occur if the receiving system's clock is not correlated with the transmitter's clock.
- frame slip means that, if samples are taken at slightly higher than at 8kHz rate and played out at the 8kHz rate, eventually there will be more samples than time to play them out, necessitating a drop in samples in order to catch up, such droppage being termed frame slip, a frame being one sample at 8kHz.
- Audio delay in a VoIP system is determined by the summation of the individual delays that occur within the total communication path for the call.
- the path includes codec delay, packetization delay, LAN queuing and transmission delay, IP network queuing delay, processing and transmission delays, far-end LAN delay and finally, de-packetization delay.
- this total delay exceeds about 150msec one-way, the perceived response time ofthe party at the other end tends to exceed the normally expected human response time .
- speakers tend to become impatient and repeat themselves and inadvertently interrupt the other speaker.
- Standard Ethernet protocol might be one choice for a home LAN, if it were to be adapted to a home-friendly medium, such as a phone line or a wireless carrier.
- HPNAVl protocol was built in just this fashion.
- HPNA VI protocol is the IEEE 802.3 MAC protocol operating on home phone lines with a novel PHY implementation.
- the IEEE 802.3 protocol's collision resolution algorithm delivers very unsatisfactory latency performance when the aggregate network load is moderate to high.
- One ofthe most often-cited problems arising from high offered load on the IEEE 802.3 protocol is the network capture effect, where competing stations take turns at virtual dominance over the network for relatively long periods of time. Overall, the network behavior is fair, but for short periods of time, the network is very unfair.
- the HPNA V2 protocol solves the problem of network capture by employing a simple, yet tightly-bounded collision resolution mechanism which does not rely on a central arbiter to resolve network sharing issues, known as DFPQ, as described above.
- the key to the protocol is the employment of a RX based collision detection scheme that allows all network nodes to maintain consistent knowledge ofthe network condition. Based on the network condition, each node can determine whether it may take its turn to transmit a packet. Once a node has transmitted, it must wait until all other nodes wishing to transmit have also taken a turn before it can get a new turn.
- DFPQ again provides a solution.
- the solution is to allow for multiple instances ofthe MAC protocol to operate in parallel, with one instance for each of 8 different priority levels.
- Each MAC instance (priority level) operates with a successively longer inter-frame space (IFS).
- IFS inter-frame space
- Packets from lower levels of priority are only allowed access to the network when no packets exist at higher levels. This mechanism prevents time-insensitive traffic from affecting the delivery latency of packets from higher levels of priority .
- VoIP traffic is assigned to the highest level of priority because it has the tightest performance targets of all network traffic. Therefore, VoIP traffic always gets to "cut in line" ahead of lower priority traffic.
- a MAC controller In order to take full advantage ofthe multiple priority levels ofthe HPNA V2 protocol, a MAC controller includes multiple transmission queues. If only one transmission queue exists, then it is possible for the device driver to load a low- priority frame into the queue, not knowing that a short time later, a high priority frame may need to be queued. When the high priority frame does arrive at the device driver, this frame must wait until the low-priority frame is transmitted by the MAC.
- the described exemplary embodiment therefore includes a single physical queue under queue management control that allows re-ordering of previously queued frames to permit the highest priority frame to appear at the head ofthe queue.
- DOCSIS network for cable modems allocates a fixed amount of bandwidth to the upstream portion of each voice call.
- the bandwidth is allocated in periodic intervals that match the framing rate ofthe VoIP frames.
- a call utilizing a 10msec VoIP packet rate will receive a DOCSIS upstream bandwidth allocation allowing it to transmit one frame every
- the initial timing ofthe upstream transmission opportunities is random, relative to the potential framing of a set of samples at the handset. If the handset creates a VoIP frame and sends it to the cable modem, with the arrival just missing an upstream transmission slot, then the VoIP frame will have to wait 10msec to be forwarded to the headend. Previous to arriving at the cable modem, the VoIP frame may have already experienced the 5msec allotted LAN latency.
- this timing relationship is illustrated, where the packet arrival at the cable modem is too late for the current upstream transmission slot, resulting in an additional 10msec of latency for delivery of all VoIP frames in this stream.
- the total latency from packetization at the handset to delivery on the DOCSIS network for this example is about 15msec.
- the packetization at the handset can be synchronized to accommodate the HPNA LAN delivery latency and the cable modem processing delay such that the VoIP frame is ready for transmission on the next upstream slot, then the additional 10msec latency penalty can be avoided.
- the mechanism for coordinating the handset framing is accomplished through a protocol to communicate the upstream slot timing from the network gateway to the handset. Such coordination is provided via a clock synchronization mechanism between the network gateway and the handset.
- the clock synchronization mechanism includes a timing circuit within the HPNA MAC controller and an
- HPNA LAN protocol for the exchange of timing information.
- the handset discovers when the next upstream transmission opportunity will occur. It assembles the initial VoIP packet at such a time that, accounting for HPNA LAN delivery latency and cable modem processing latency, the packet will arrive in time for the next available upstream transmission slot.
- signaling frames and procedures are defined to permit time synchronization between network gateway 2018 and representative HPNA - POTS converter 2017 as depicted in Fig. 27.
- the time synchronization procedures enable two types of time synchronization.
- an exemplary embodiment of the present invention provides a method for synchronizing the
- the generation of encoded voice packets at the HPNA - POTS converter is synchronized to the arrival of the assigned upstream time slot at the Home gateway from the digital carrier network, accounting for any processing delays or jitter introduced by HPNA network access. In the DOCSIS/PacketCable system, this is the arrival of an upstream grant sync for the service flow allocated for the specific voice stream.
- an exemplary network gateway 2018 in accordance with the present invention implements a counter/timer that is sync-locked to the network stratum reference source.
- the HPNA MAC transmitter in the network gateway implements a function to read and latch the value ofthe counter/timer into Master Timestamp Register 3011 at the exact time of transmission of a frame marked with the "Latch Timestamp" (LTS) descriptor bit.
- the HPNA - POTS converter implements a counter/timer which is subdivided to derive the Codec clock.
- the HPNA MAC receiver in the HPNA - POTS converter implements a function to read and latch the value ofthe counter/timer into Receive Timestamp Register 3013 upon the receipt of a frame.
- Receive Timestamp Register 3013 is logically part ofthe receive status word of each received frame.
- the timing information is conveyed to the HPNA - POTS converter via a pair of messages.
- the Home gateway periodically transmits a Timestamp Sync (TSM) frame with the LTS descriptor set, then reads and transmits the latched Master Timestamp register value in a subsequent Timestamp Report (TRM) frame.
- TSM Timestamp Sync
- TRM Timestamp Report
- the HPNA - POTS converter reads and saves the Receive Timestamp register values of Timestamp Sync frames, and builds a database of corresponding Receive and Master timestamp pairs from the received TSM and TRM frames.
- the frequency error adjustment is then applied to the HPNA -
- An exemplary network gateway implements a function to read and latch the value ofthe reference counter/timer into Grant Timestamp register 3030 upon the occurrence of a selected time slot grant sync signal from the upstream network (i.e. SID match and Grant sync).
- the described exemplary network gateway is aware of the mapping of upstream time slot grant to specific HPNA - POTS converter and line ID.
- the HPNA - POTS converter implements a timer that generates a local frame sync signal at the expected voice frame rate. This timer is derived from the local codec clock.
- the relative timing ofthe upstream grant sync signal is conveyed to the HPNA - POTS converter prior to enabling the voice encoder, but after the establishment of the upstream service flow.
- the timing offset is adjusted to account for internal processing cycles needed each by the network gateway and the HPNA - POTS converter, and allowing for worst case voice frame latency on the HPNA media.
- the network gateway needs to send the time slot grant sync timing information, it will latch the grant timestamp value and adjust the value to account for internal processing time to receive and forward voice frames to the upstream network interface.
- the adjusted grant timestamp is transmitted to the HPNA - POTS converter in a Timestamp Report (TRM) frame.
- TRM Timestamp Report
- the HPNA - POTS converter calculates an absolute time offset from the difference in the Receive and
- the network gateway transmits time synchronization frames (Timestamp Sync Message and Timestamp Report Message) on a periodic rate continuously. Time sync messages are always transmitted in pairs, according to the following procedure. In the described exemplary embodiment, the network gateway maintains a Time Sync timer and a sequence number counter, SeqNum.
- the Home gateway then:(l)reads the value ofthe Master Timestamp register; (2)formats a Timestamp Report Message frame with the current values of S eqNum and Master Timestamp, and (3)transmits the TRM frame.
- the Home gateway Upon the establishment or re- establishment of an upstream service flow for a media stream, the Home gateway:(l)obtains the grant timestamp for the service flow from the Grant
- Timestamp register (2) adjusts the grant timestamp by a known constant equal to the internal processing time to receive and forward an upstream voice packet; (3) formats a Timestamp Report Message frame as above, including the additional Grant Timestamp and associated Line ID and Call ID fields; and (4) transmits three copies ofthe TRM frame.
- TRM frames containing a Grant Timestamp are transmitted immediately (without waiting for the Time Sync timer to expire).
- An HPNA - POTS converter derives clock and grant timing information from received Timestamp Sync and Timestamp Report message frames. Frames which are received with a MAC source address (S A field) that do not match the expected Home gateway are discarded.
- the HPNA - POTS converter maintains an information base of ⁇ SeqNum, Receive timestamp, Master timestamp ⁇ tuples. The most recent two tuples are retained; older tuples are discarded.
- the HPNA - POTS converter Upon receipt of a Timestamp Sync Message frame, the HPNA - POTS converter reads the Receive Timestamp receive status word, and enters the
- a solution to the problem of synchronization of clocks between the Network gateway and the handset in a VoIP network that includes an HPNA LAN as the link between the handset and the Network gateway is provided.
- the clock in the network gateway is used to synchronize transmissions of upstream packets to the DOCSIS MAC. Upstream transmission times are generally dictated by the DOCSIS head end equipment.
- the periodicity of the transmission of packets is directly related to the upstream clock.
- the data samples in the packets are acquired at a rate which is a derivative of the system master clock. Therefore in the described exemplary embodiment the network gateway clock is synchronized to the clock in the cable modem head end.
- a local clock that is related to the head end clock is used to sample the analog voice channel.
- VoIP handsets and network gateways is necessary for two reasons.
- the sample rate ofthe analog voice signal at the handset should match the transmission rate (e.g. 8 kHz) that is established for the entire voice transmission path in order to avoid frame slips (lost samples or sample gaps) which compromise the quality of voice traffic and significantly reduce the throughput of voice-band data flows.
- the framing of samples into an RTP voice packet preferably occurs synchronously with the arrival of an upstream grant at the DOCSIS MAC in order to minimize the latency ofthe upstream path.
- Variation in the A/D sample clock from a nominal 8kHz frequency can be modeled as noise in the coded signal. Therefore, a poorly tracking sample clock in the handset can cause the handset to fall out of compliance with signal to noise ration (SNR) of ITU-T G.712 that typically govern communication across a PSTN line.
- SNR signal to noise ration
- the performance limits of G.712 translate directly into a jitter performance objective for the timing synchronization circuit of the HPNA VoIP system.
- a voice sample loss rate of 0.25 samples lost per minute must be maintained to support a toll-quality VoIP call. This requirement translates into a long-term average tracking error of 0.52ppm between the handset and the network gateway.
- the overall latency that can be experienced by a real-time interactive voice call before user-reported degradation of call quality occurs has been determined, through experimentation, to be no more than 150msec according to ITU-T recommendation G.114. Therefore, the one-way latency limit of 150msec from ITU-T G.l 14 sets the performance goal for the latency requirement to be met by the HPNA VoIP system.
- the largest potential customer ofthe systems to be built using the HPNA LAN for VoIP traffic has stated their desire for the final system to be capable of meeting the G.114 goal.
- the network gateways employ a digital phase lock loop (DPLL) to track the reference clock which is located in the cable modem head end equipment.
- DPLL digital phase lock loop
- the performance ofthe DPLL is sufficient to comply with the requirements for digitized voice transmission set forth in ITU- T recommendation G.712.
- ITU-T recommendation G.712 gives an SNR of 35dB to be maintained for PCM signals. This value cannot be met with PCM ⁇ -law encoding (beginning with 12-bit linear samples) in the presence of more than about -70dB noise.
- the Network gateway DOCSIS clock maintains synchronization with the headend DOCSIS clock through the exchange of ranging messages and SYNC messages with the DOCSIS head end equipment.
- the timestamp in these messages are inserted and extracted as the messages leave or enter the DOCSIS MAC devices.
- the synchronization ofthe Network gateway clock is maintained by a circuit within the DOCSIS MAC called the Timing Regeneration Circuit (TRC).
- TRC Timing Regeneration Circuit
- the network gateway extracts the timestamp from the SYNC message as the bits are arriving off of the wire. This timestamp is passed to the TRC, where a comparison to the local timestamp is made. Any difference is used to adjust a DPLL which controls the local clock frequency of the network gateway.
- a ranging message is used to determine the time-distance between the network gateway and the head end. The local clock is adjusted for this offset.
- the local clock in the network gateway is used to time network gateway DOCSIS operations, such as upstream transmissions.
- a product implementation includes two functions which allow for POTS/VoIP conversion devices (i.e. A/D and codec functions) to operate in synchronization with the DOCSIS clock.
- the first VoIP support function of a product implementation is the export of a clock (TIC_CLK_OUT), which is a derivative ofthe local DOCSIS clock.
- TIC_CLK_OUT is used to drive the A/D sampling ofthe voice channel. This clock is used in order to insure that the sample rate ofthe A/D is locked in frequency to the DOCSIS clock.
- the second VoIP support function of a product implementation is the export of a set of grant signals which indicate the arrival time of an upstream grant which corresponds to the desired framing interval ofthe collected voice samples.
- This grant signal indicates the framing boundary for a Voice over IP RTP data packet, which is a collection of A/D compressed and coded samples.
- the network gateway exports an equivalent of these two functions to an HPNA LAN-attached handsets, in order to allow the analog portion ofthe handset to maintain a proper sample rate and to allow a remote DSP to packetize a set of samples in a timely manner, to avoid additional path latency .
- the HPNA device does not need to duplicate the exact mechanism ofthe DOCSIS MAC device because the HPNA MAC at the network gateway has direct access to the TICK-CLK-OUT clock. Therefore, a subset of the DOCSIS synchronization mechanism is implemented for the HPNA LAN MAC device.
- the HPNA LAN MAC mimics both the DOCSIS head end behavior and the DOCSIS CPE behavior.
- the HPNA LAN MAC device located at the network gateway will provide a timing reference to the HPNA LAN MAC devices located in handsets.
- the Network gateway' s HPNA MAC will mimic the functionality of the head end equipment with respect to clock sourcing. That is, there will be a master/slave relationship between HPNA MAC ' s in network gateways and HPNA
- the master dictates the current time to the slaves. This relationship only slightly complicates the HPNA MAC time synchronization solution, as the same circuit can easily be made to operate in either capacity.
- the basic solution is similar to the DOCSIS MAC solution.
- a DPLL is incorporated within the HPNA MAC device. The DPLL is easily provided as a complete circuit
- the Smoothed TICK Clock Generator circuit is needed to produce the A/D sample clock at the handset side.
- the HPNA MAC includes a grant timing indication circuit. This circuit is basically a timestamp function that operates whenever a grant is signaled by the network gateway. In practice, it is simply a modification to the existing network gateway DPLL circuit. A few registers are added to the HPNA MAC to support the TRC operation, and a few more for supporting the Grant Timing Indication circuit.
- the transfer of the network gateway HPNA MAC timestamp to the handset HPNA MAC timers is effected as follows. Instead of transferring DOCSIS SYNC-like messages with timestamp inserted/extracted on the fly, the HPNA synchronization mechanism relies on an internal MAC indication of frame movement to latch the current time into a timestamp register. The value in the register is read and then delivered in a subsequent frame to the handset which uses it to adjust its clock.
- the network gateway HPNA MAC device is set up (through a register bit) to be a timing master, such that only transmit activity is timestamped.
- only frames marked with the timestamp transmit descriptor bit cause the HPNA MAC timestamp to be latched.
- Software in the network gateway reads the timestamp following the sending of a frame that had the Timestamp descriptor bit set to TRUE.
- TRM Timestamp Report Message
- the receiver at the handset is configured to act as a timing slave, such that only receive activity is timestamped.
- Each received frame triggers a timestamp to occur at the same relative position within a frame.
- positioning the timestamp sample at an earlier location in the frame yields a fixed offset from the beginning ofthe frame and results in the elimination of an offset correction.
- the earlier timestamp allows less time for the handset's logic to read the latched timestamp before a new frame possibly overwrites the latched value.
- a preferred method causes the latched timestamp to be incorporated within the RX status word of each received frame, thereby eliminating any race condition.
- the timestamp for each received frame is stored in memory. Associated with each timestamp is a TRM sequence number.
- the receiver may eliminate all RX status word timestamp that do not correspond to TRM packets. What remains is a database of TRM sequence numbers and their corresponding RX timestamp.
- the handset searches its local database for the referenced sequence number and compares the received timestamp with the stored timestamp. The difference between the two values is used to determine the DPLL error.
- the handset performs a filtering function on the error, adds the DPLL bias value and then writes the resulting value into NCO_INC register 3014.
- TRM packets be sent in pairs. The rate of transmission is suggested at about 1 pair per second. From the DPLL, an output can be fed to the pin output that will drive the codec of the handset and ultimately, the A/D sampling circuit.
- Initialization of the handset timer is achieved by accepting two TIMESTAMP REPORT messages, the second one of which refers to the first.
- the receiver adopts the error indicated as an OFFSET value. This value is always added to received timestamp in order to calculate DPLL error.
- the DPLL counter is never modified. Since part ofthe DPLL loop is performed in software, the offset correction can easily be performed there.
- the network gateway HPNA clock is sampled as DOCSIS upstream grants arrive. The grant arrival time is then communicated to individual handsets through HPNA packets, in order to allow the assembly and queuing of RTP voice packets to be scheduled to insure that the packets will arrive at the network gateway just in time for the next upstream grant. Packet assembly overhead, queuing latency, transmission time, and network gateway packet processing time is subtracted from the grant time in order to generate a packet assembly start time that insures that the packet meets the next upstream grant at the network gateway
- DOCSIS upstream grants are signaled by the network gateway through the GrantRcv[4:0] interface.
- GrantRcv[4] is used to indicate the arrival of a grant from the head end.
- GrantRcv[3 :0] are used to signal the SID which corresponds to the current grant.
- Each SID corresponds to a particular connection flow, such as an individual call flow. The timing of the arrival of each grant needs to be communicated to the appropriate handset.
- the 5 GrantRcv signals are fed to the network gateway HPNA MAC, and the HPNA MAC's internal timestamp value is latched whenever the GrantRcv[4] signal becomes active, provided that the GrantRcv [3:0] signals match the value set up in the tscSID register o the HPNA MAC.
- the MIPS core of the network gateway programs the tscSID register to match the SID corresponding to the call in progress for a given handset.
- the MIPS core reads the latched timestamp and subtracts worst case queuing latency, transmission time, and network gateway packet processing time. It then sends a GRANT_TIMESTAMP message to the appropriate handset.
- a SID to MAC address mapping exists at the network gateway in order to allow for proper grant timing signaling. This map is constructed and maintained by the MIPS core.
- the handset receives the GRANT TIMESTAMP message (an extended version ofthe TIMESTAMP REPORT message).
- the GrantRcv[4] signal is asserted for one clock pulse duration and GRANTJTIME register 3030 is automatically incremented by the value in GRANT_PERIOD register 3017.
- a register bit exists to disable the generation of grant pulses on GrantRcv[4].
- a safety bit is used to indicate that the grant time has been indicated, in order to prevent the case of a grant time having been passed before it was programmed, and hence, no grant signals ever being generated.
- the safety bit would be a register bit that changes from a zero to a one when the grant time is signaled on the output pin, and which can only be reset to zero by software.
- the timing master must switch between transmit and grant-arrival timestamp latching operations.
- the implementation may include either one latch that is switchable between the two functions, or two latches to satisfy both requirements.
- the receive frame timestamp latching operation may share one ofthe latches mentioned, or it may be separate.
- Fig. 28 which, depicts components of an exemplary embodiment of an HPNA TRC circuit in accordance with the present invention, is now described in more detail.
- Adder 3010, reference clock signal 3012 and NCO 3014 are provided.
- An output from the NCO 3014 is fed into integer divider 3016.
- This clock in the slave device gets divided down to 8kHz (V_CLK_OUT) 3018 since it is running at much higher speed to maintain an accuracy.
- the V_CLK_OUT feeds the sampling circuitry of the CODEC.
- the software determines whether the clock is running fast or slow via SNOOP_BUS 3020 which is located inside the transceiver which allows the software to communicate with the hardware.
- the PCI bus writes a value to register 3022.
- Synchronizer 3024 is provided to make sure that the change in register 3022 is synchronous to the NCO 3014.
- the output clock gets speeded up or slowed down depending on the value loaded into register 3022.
- the software looks at the timestamp that are received at the slave and determines if the slave clock is running slow or fast. It makes an adjustment to the register 3022 value which adjusts the speed ofthe NCO 3014. It does this typically every one second, or whatever time is necessary for a defined accuracy.
- Every packet creates a signal which samples the current value of the timestamp clock which is running based upon the DPLL.
- the sampled clock is put into a structure that is associated with the receive packets. Every received packet has clock timestamp associated with it.
- the software that has the responsibility of identifying the special packets that contain timing information from the master and from those it can look to see what the time it received those packets was and it can see what time the master sent them.
- the master will have sent a packet that will, when it gets sent, get a timestamp associated with it.
- the software goes and reads the timestamp and puts it into a follow-up packet.
- the protocol involves the sending of two packets.
- the first packet from the master gets a timestamp stored locally and the packet goes out without having a timestamp included in it. It makes it across to the converter.
- the converter takes a timestamp on the same packet. Both the master and slave have taken a timestamp. However, neither knows what the other's timestamp is.
- the master then reads the timestamp out ofthe register and puts it into a follow-up packet and sends it along.
- the follow-up packet doesn't get timestamped by anybody.
- the follow-up packet arrives at the slave device.
- the slave device now has the time that the first packet was sent out and the time that the first packet was received. Once that information the slave can then see the difference between them.
- the grant timing that is determined from the DOCSIS network is delivered directly to the transceiver for the HPNA. That information is gathered by the timestamp circuit on the master and input to the circuit via Grant(4)timing signal, with S_GRANT enabling the path. Grant [3:0] allows multiple different grant identifiers (one of sixteen) to be selected. When the interested in grant identifier sees it's grant, that latches the timestamp. Therefore, when a grant occurs there is a timestamp associated with the grant at the master.
- the master then reads that timestamp information, puts it into a packet and delivers that packet with the grant timestamp identifiers associated with it to all the nodes.
- the node associated with that particular grant identifier picks up the information and now it knows when its grant occured. It will have been able to relate its time to the master's time by looking at the offset between the time it received according to its clock and the master's time.
- the network gateway uses human time differentials to determine whether the master indicates that it sent a packet at 12:00 o'clock, and the slave indicates that it received the packet at 3:30 am. Therefore, when the described exemplary network gateway delivers a grant time to the slave the network gateway adjusts the time by 3 Vz hours to correlate the grant to the local time ofthe slave. Once it knows the local time ofthe grant, then it adjusts that backwards by the time it needs to assemble the packet and deliver it on the HPNA network. It works backwards to figure out what the latest time is that it should send that packet out ofthe network.
- the HPNA slave device puts that time into a GRANT TIME register 3030.
- an exclusive-OR comparator 3032 an output signal Frame[0] is created that is forwarded to the voice CODEC instructing the voice CODEC to deliver eighty samples.
- the signal Frame[0] can be sent to any portion of the circuit which is making the actual decision as to when to call a set of 80 samples a frame.
- the circuit also automatically updates the grant time period rate, e.g., 10 msec, such that when the grant time matches the current local time, 10 msec is automatically added to the grant time and 10 msec later another match ofthe grant time with the current local time and the framing signal will be created again.
- the grant time period rate e.g. 10 msec
- the audio processor module provides an interface between the voice and data processor and external subscriber line circuits (SLICs).
- SLICs subscriber line circuits
- the audio processor includes an analog front end 172 that provides bidirectional exchange of signals over the voice bandwidth, including voice or fax/modem data signals modulated with a voice band carrier.
- the analog front end 172 can support four separate voice channels with an analog front end 172 having four pairs of analog to digital converters (ADCs) and digital to analog converters (DACs).
- FIG. 29 shows a block diagram of the analog front end of the audio processor.
- the digital input/output data ofthe D AC/ADC can be interpolated / decimated to provide 8 kHz input/output data for the audio processor 170.
- a pair of resistors 3391a, 3391b at the output of each DAC 3390 convert the current output signal to a voltage.
- a switch 3393 can be provided between the output of the DAC and the input ofthe ADC to provide analog loopback test capability.
- the analog front end may include a common mode voltage level generator
- a voltage reference 3396 can be used to provide signals and bias currents for each ofthe ADC / DAC pairs and provide a bias current for the common mode voltage level generator 3394. The reference may be overdriven with an external reference or may be left disconnected externally, allowing the internal bandgap to set the reference voltage.
- a clock generator 3398 can be used to divide the 98.304 MHz PLL clock down to 49.152 MHz, 24.576 MHz and 12.288 MHz. The clock generator 3398 provides a sample clock for the ADC 3392 and DAC 3390.
- FIG. 30 The external analog interface between each channel ofthe audio analog front end and an external SLIC is shown in FIG. 30.
- resistors 3391a and 3391b convert the current output signal of DAC 3390 to a voltage signal.
- Capacitors 3402a, 3402b and 3402c provide low pass filtering to smooth the output signal from DAC 3390.
- Op-amp 3404 provides single ended differential conversion and amplification of the DAC output which can then be forwarded to the SLIC 3406.
- an RC network at the input of the ADC 3392 provides balanced impedances at both ADC input pins and provides attenuation ofthe transmit signal at the positive input.
- the balanced impedance interface ensures that power supply and digital substrate noise affect both ADC inputs equally.
- the ADC 3392 samples the difference between the voltages at the inputs 3408, 3410 so that common noise can be rejected.
- the passive components fix the ADC input 3410 at a constant DC level equal to the common mode level 3412 output by the common mode voltage generator 3394.
- the ADC input 3408 varies in direct proportion to the transmit signal 3414 from the SLIC 3406.
- a voice synchronizer 3419 synchronizes the digitizing ofthe near end voice signal by the ADC 3392 to the average timing regeneration circuit clock to ensure voice exchange between the network gateway and CMTS does not introduce jitter due to data underflow or overflow.
- a decimator 3420 downsamples the synchronized output ofthe voice synchronizer 3419 from 96 kHz to a 8 kHz rate.
- the decimated signal can be filtered by a 60 Hz high pass filter 3422.
- the filter 3422 reduces the 60 Hz interference induced on the transmit line due to proximity to power lines.
- the filter provides on the order of about 20 dB attenuation at 60 Hz relative to the transmission path loss at 1004 Hz.
- the filtered signal can be conditioned by a network echo canceller 3424.
- the network echo canceller may interface with ITU-T G711, G726, G728 and G729 encoders.
- Double talk logic 3423 can provide control functions including voice detection, automatic signal level control, transmit/receive gain switching balance, noise level estimation and double talk detection.
- the adaptive cancellation processes the receive side signal samples through an adaptive model ofthe hybrid coupling and subtracts the result from the transmit side in difference operator 3426.
- a high pass filter 3425 is coupled to the echo canceller input to match the echo path impulse response.
- Programmable gain adjuster 3428 applies a fixed gain or attenuation to an output of the difference operator 3426.
- Gain adjuster 3428 can provide programmable gain/ attenuation adjustments of+/- 20 dB with step size of 1 dB.
- a fixed gain or attenuation adjuster 3429 is applied to the gain adjusted signal.
- a multiplexer 3427 coupled to the output ofthe fixed gain adjuster 3429 allows the signal to be routed to a A-law / ⁇ -law (G.711 compatible) encoder 3430 which is coupled to an external PCM port that allows for external testing of the audio processor module.
- Multiplexer 3429 also forwards the gain adjusted output signal to the voice processor 160 via the DSP interface 168 (see FIG. 3).
- the described exemplary embodiment of the audio processor includes multiplexer 3431 coupled to the data interface in the receive mode.
- Multiplexer 3431 may couple decoded samples to a A-law / ⁇ -law decoder 3432 that is also coupled to an external PCM port to allow for external testing of the audio processor module.
- the multiplexer 3431 may also forward decoded samples from the data interface to a gain adjuster 3433 which applies a fixed gain or attenuation to the decoded signal.
- Programmable gain adjuster 3435 compensates for system level gain adjustments and may provide programmable gain/attenuation adjustments on the order of about +/- 20dB with a step size of .0006 dB.
- the described exemplary audio processor may include a 1 kHz test tone generator 3434 that provides a digital representation of a 1004 Hz test tone at a level of 0 dBm.
- the test tone may be optionally injected into the data stream by summer 3436 to debug and verify the audio processor.
- the test tone may be configurable in both frequency and amplitude, although it is preferably limited by the 8 kHz sample rate such that only 0-4 kHz may be allowed.
- An interpolator 3438 modifies the sample rate from 8 to 96 kHz.
- the interpolator 3438 can be implemented with a FIR filter which may be either minimum phase or linear phase.
- a minimum phase filter is preferred for voice applications which require low group delay but may tolerate group delay distortion which may be introduced by the minimum phase filter.
- a linear phase filter is preferred for fax and or modem applications.
- a metering pulse generator 3440 can be used to generate 12/16 kHz metering pulses that are summed with the interpolated signal by summer 3442. The metering pulses allow a user to monitor the cost of the call as it progresses. The rate at which the metering pulse generator 3440 transmits the metering pulses varies depending on the rate per minute ofthe call.
- the minimum gap between pulses is, by way of example, on the order of about 100 msec but may be much greater for inexpensive local calls.
- the amplitude of the metered pulses can be adjustable to accommodate impedance changes during the on hook, off hook and ringing states .
- the interpolated signals are forwarded to a voice synchronizer 3441 that synchronizes the far end voice signal to the average timing regeneration circuit clock to ensure voice exchange between the network gateway and CMTS does not introduce jitter due to data underflow or overflow.
- the synchronized signal is forwarded to DAC 3390 for communication to a telephony device via the SLIC
- a two-stage filtering process may be used to implement both the interpolator 3438 and the decimator 3420, thereby reducing the required processing power and permitting the same size filter to be utilized for both audio and modem applications.
- an impedance matching algorithm may be performed (for example, at 96 kHz) to reduce the reflection on the 2-wire interface for different countries that have different load impedance characteristics.
- the algorithm acts as a Y filter that is used to control the reflection coming off the 2 wire interface.
- the described exemplary embodiment ofthe audio processor includes the capability to enter a power saving/sleep mode wherein only those functions that are required for wake up are active. All circuits should be capable of reaching active steady state within about a 10 msec activation period.
- the described exemplary embodiment ofthe preferred audio processor 170 further includes a ring generator which synthesizes reference waveforms which are forwarded to the SLIC to ring telephony devices.
- the ring generator can be used to support sinusoidal, trapezoidal and square waves.
- the ring generator frequency, amplitude and DC offset can be configurable.
- FIG. 32 A block diagram of a preferred ring generator 3450 is shown in FIG. 32.
- the ring generator 3450 includes a digital oscillator 3452 which generates a sinusoid at a given frequency and amplitude determined by instructions 3454, 3456 from the MIPS core 128 via the DSP/PB interface 168 (see FIG. 3).
- the sample rate ofthe sinusoid can be, by way of example, on the order of about 1000 Hz, divided down from the 24.576 MHz system clock input 3458.
- a variable clipper 3460 symmetrically clips the sinusoid about zero such that the sinusoid may be converted into either a trapezoid or into a square wave.
- the MIPS core 128 (see FIG. 3) can be used to define the thresholds 3462 with which the sinusoidal waveform is clipped.
- a multiplier 3464 scales the clipped waveform by applying a signal attenuation 3466 defined by the voice processor 160.
- Summer 3468 provides a configurable DC offset by adding a DC bias 3470 as established by the voice processor. The offset may vary from negative full scale to positive full scale.
- a converter 3472 can be used to convert the ring waveform 3468(a) into a single bit representation.
- a single pole analog filter may be included on the output ofthe converter to reduce the quantization noise generated by the converter 3472. The filtered signal is then forwarded to the analog front end for communication to a telephony device via the SLIC.
- the described exemplary audio processor 170 may include an audio co-processor.
- the audio co-processor comprises a programmable engine that augments the processing capability ofthe voice and data processor 160 by performing various low level or front-end signal processing tasks such as for example, sample rate conversion or echo cancellation.
- the described exemplary audio co-processor is a highly configurable multiply and accumulate engine controlled by a central processing unit (CPU).
- the CPU preferably includes a restricted set of instructions in program memory. Access to audio co-processor memory is preferably optimized for burst access by the multiply and accumulate engine.
- the audio co-processor instruction set preferably incorporates simple load and ALU-based instructions to augment the multiply, multiply and accumulate and divide macro-instructions.
- audio co-processor 4000 is substantially self contained, having a basic asynchronous memory interface 4004 for each peripheral coupled to the audio co- processor.
- the audio co-processor preferably interfaces with four audio channels on the analog front end.
- the total number of memory interfaces may be scaled by duplicating the memory access ports and scaling the memory arbitrator 4002.
- the host MIPS core 128 may have access to a limited set of registers to control the enabling and disabling ofthe audio co-processor and clock control.
- the host may download filter coefficients, the audio co-processor program, etc., to this set of registers.
- power efficiency is often important for telephony applications.
- the MIPS core may instruct the audio co-processor to activate a power saving/sleep mode wherein only those functions that are required to initiate a return to full power operation are active.
- all circuits are capable of reaching active steady state within about a 10 msec activation period.
- the audio co-processor may also transmit interrupts to the MIPS core 128 and the voice and data processor 160 (see FIG. 3).
- interfaces for all peripherals other than the host only have access to SRAM0 4022.
- An interface sync 4008 may provide pulses that mark important events, such as 8 kHz, 48kHz, and 96 kHz clock pulses in a voice processing application, or enable/disable signals for the audio co-processor.
- Audio co-processor CPU 4010 operates with a reduced set of instructions.
- the audio co-processor CPU 4010 is designed to maximize the number of multiplies that may be performed in real time applications.
- the audio co-processor CPU 4010 has minimal exception handling capability with high visibility access to the MIPS core 128 via interrupts, shared memory and mailbox registers.
- the audio co-processor CPU 4010 preferably includes complex NOOPS for synchronizing with the surrounding system, as well as advanced macro- instructions, such as, for example, multiply and accumulate, DIV, ABS and TWOS.
- the audio co-processor CPU 4010 interfaces with a divide unit 4012 that provides fixed point divide capability.
- the divide unit 4012 preferably provides auto saturation wherein if the absolute value of divisor/dividend is greater than one, the divide unit preferably forces the result to either one or negative one.
- the divide unit preferably provides signed or unsigned 16 bit results with a 16 bit remainder.
- the described exemplary audio co-processor also includes a highly programmable multiply-accumulate datapath 4014.
- the multiply and accumulate engine within the multiply-accumulate datapath is part of a pipeline that incorporates memory structures controlled by configurable pointer logic.
- the datapath preferably includes a dual port RAM (DPRAM) structure 4020 and two SRAM structures 4022 and 4024. Data exiting the memory structures 4020, 4022 and 4024 streams through the data path to a store block 4026, with the end result being fed back into the in-line memory structures 4020, 4022 and 4024.
- the store block 4026 performs 16 bit or 32 bit stores, adjusts for
- the store block 4026 may also provide rounding and saturation results when needed.
- Pointer controllers 4030, 4032, and 4034 may be programmed to use variable- sized ring buffers for functions that require FIFO like data storage.
- the pointer controllers may also be independently configured for many permutations of increment/decrement modes and are preferably capable of zero- overhead looping for matrix operations.
- the described exemplary embodiment provides configurable connections between the memory structures 4020, 4022 and 4024 and the datapath. In operation the memory structures 4020, 4022 and 4024 may output to any one of the three datapaths via multiplexers 4040, 4042 and 4044.
- a signed/unsigned multiplier 4046 preferably includes shift and add logic to provide real number 16x16, 32x32 or 16x32 multiplies ofthe outputs of multiplexers 4042 and 4044.
- a FIFO may also be installed to carry data for optionally adding an offset to the multiply result.
- An exemplary multiply-accumulate datapath preferably includes a programmable shifter 4048 that provides semi or block floating point capability.
- the programmable shifter 4048 may apply prescaled coefficients to the output of the multiplier 4046 or translate the decimal point of the multiplier output to generate multiplies by values greater than one, thereby providing the ability to selectively amplify the multiplier output.
- the datapath preferably includes an accumulator loop having an adder 4052 that adds the shifted multiply result to either the current value 4054 accumulated in accumulator block 4050 or data pipelined 4056 from DPRAM 4020 through multiplexer 4058.
- the accumulator preferably includes saturation so that if the accumulator 4050 overflows the accumulator 4050 defaults to the largest positive or negative number.
- the described multiply-accumulate datapath may perform a plurality of operations including for example (AXB) + C where A and B are the outputs of memory structures 4022 and 4024 respectively and C is the output of memory . structure 4020.
- the described exemplary multiply-accumulate datapath may also support the processing of a plurality of inputs to provide a plurality of accumulated results.
- an exemplary multiply-accumulate datapath may perform the following operation:
- the audio co-processor CPU 4010 performs basic processing and memory management tasks, programs datapath registers and initiates multiply and accumulate and divide operations.
- a datapath control pipeline 4060 operates independently from the CPU once a command is executed.
- the audio co-processor instruction set incorporates a number of simple load and ALU-based instructions to augment the multiply, multiply-accumulate, and divide macro-instructions.
- the audio co-processor preferably contains 16 general-purpose registers (GPRs) connected to the ALU, with desired modifications to the special-purpose registers (SPRs) being performed either by performing a load immediate instruction or by first modifying a GPR, then moving that value into the SPR.
- GPRs general-purpose registers
- SPRs special-purpose registers
- the GPRs and SPRs may be merged into one register file so that SPRs may share the same load, store, and ALU instructions with the GPRs.
- Table 1 illustrates a set of audio-coprocessor Assembly Instructions in accordance with the described exemplary embodiment.
- the latency of an instruction is defined as the number of instructions that will execute immediately after a jump or branch command, regardless ofthe jump or branch address location. For instance, if a branch instruction is immediately followed in instruction memory by an add instructions, the add will execute even if the branch is taken.
- the execution time for load and store instructions is affected by the fact that, in the described exemplary embodiment, other interfaces have higher priority for memory acceses than the audio co-processor CPU. As a result, load and store instructions must wait if memory requests are coincident.
- the execution time of a multiply-accumulate instruction is affected by the fact that, in the described exemplary embodiment, where a multiply-accumulate instruction has been initiated and then another is ready to execute, the CPU will stall until the first multiply-accumulate instruction has read its last data value from memory.
- the audio processor 170 may perform signal processing functions with the aid of the described audio co-processor, such as, for example, sample rate conversion on a plurality of audio channels.
- An exemplary audio processor 170 may include a decimator 3420 that downsamples the digitized output of the analog to digital converter in the analog front end from 96 kHz to a 8 kHz rate.
- the decimator 3420 may be implemented with a FIR filter that may be either minimum phase or linear phase.
- a minimum phase filter is preferred for application such as voice which need low group delay but may tolerate group delay distortion introduced by the minimum phase filter.
- the linear phase filter is preferred for fax and data modem applications.
- the decimator may be used to attenuate signals which can not be represented by the lower sampling rate, and then drop eleven out of every twelve samples. If a sample is not used at the output, there is no need to calculate its value. Therefore the FIR realization of the decimator may be set up so that only the one sample out of twelve that is needed is calculated, and then the data set is advanced by twelve samples and the next output is calculated, thereby forgoing the intervening eleven samples. Further, in an exemplary embodiment of the present invention the decimator 3420 may be dynamically switched between a minimum phase or linear phase implementation in accordance with the information be communicated. In the described exemplary embodiment the voice and data processor 160 (see FIG. 3) discriminates between voice and data packets.
- the voice and data processor may then alert the MIP S core when the type of information being received changes from voice to data or vice versa.
- the MIPS core may then dynamically adjust decimator implementation in accordance with the information being transmitted.
- the audio processor 170 may perform the previously described processing functions ofthe 60 Hz high pass filter
- the audio processor 170 may also provide double talk (not shown) control functions such as, for example, voice detection, automatic signal level control, transmit/receive gain switching balance, noise level estimation and double talk detection.
- the audio processor 170 may further include high pass filter 3408 coupled to the echo canceller input to match the echo path impulse response.
- the audio processor 170 may also perform the functions ofthe programmable gain adjuster 3428 and 3435 as well as interpolater 3438 that modifies the sample rate from 8 to 96 kHz.
- a. Voice Synchronization Digitizing and transmitting voice data via packets in a network system is a common telephony problem.
- PCM Pulse Code Modulation
- the exemplary network gateway may transparently exchange data without modification (other than packetization) between a near end telephony device (or circuit switched network) and the packet based network. This is typically used for the exchange of fax and modem data when bandwidth concerns are minimal.
- the problem that arises is that the receiving system's clock may not be correlated with the transmitter's clock.
- sample buffer in the receiving unit may underflow or overflow.
- samples are extracted from a sample buffer faster than samples are written to the buffer so that the system may collapse from data starvation.
- voice signals transmitted from one communication port enter the sample buffer in the receiving unit faster than they are extracted.
- the resulting overflow of data signals may result in artifacts in a voice call or data in voiceband data mode.
- network gateway 4480 supports the exchange of voice between a hybrid fiber coaxial (HFC) network 4482 and a traditional circuit switched 4484 or a packet based network 4486.
- telephony device 4490 is connected to the PSTN over PSTN telephone gateway 4492.
- the PSTN telephone gateway 4492 may be clocked by a telephony network clock signal 4494(a) from network clock reference 4494 which is also coupled to CMTS 4496 such that the PSTN telephone gateway 4492 may be synchronized with the CMTS clock for the transfer of PCM voice packets between the CMTS 4496 and the PSTN telephone gateway 4492.
- the telephony network clock reference is preferably a conventional Building Integrated Timing Supply (BITS) clock.
- BIOS Building Integrated Timing Supply
- CMTS clock is synchronized with the telephony network clock signal 4494(b) via CMTS clock synchronizer 4498 which utilizes headend reference tick clock 4500, as described in U.S. Pat. Application No. 09/501,850, the contents of which is incorporated herein by reference as if set forth in full.
- a timebase message generator 4502 generates time messages or stamps which provide the network gateway 4480 an absolute time reference which is representative of the frequency of the crystal oscillator timing reference (not shown) of the CMTS 4496, which is in turn synchronized to the telephone network clock 4494.
- the network gateway 4480 preferably includes a digital tracking loop 4504 that provides a substantially stable clock output 4510(a).
- This frequency error value is filtered by loop averaging filter 4511 which prevents undesirable deviations in the frequency error value from affecting the numerically controlled oscillator 4508 in a manner which would decrease the stability thereof or cause the numerically controlled oscillator 4508 to operate at other than the desired frequency.
- the loop filter 4511 can be configured so as to facilitate the rapid acquisition ofthe frequency error value, despite the frequency error value being large, and then to reject comparatively large frequency error values as the digital tracking loop 4504 converges, i.e., as the output ofthe local timing reference becomes nearly equal to the absolute time reference, thereby causing the frequency error value to approach zero.
- voice or voiceband data packets are received by the network gateway 4480, demodulated and re-formatted by the downstream demodulator / DOCSIS MAC 4512 and forwarded to system memory 4514.
- the voice data is forwarded to a decoder system (not shown) within the voice processor 4516.
- the decoder system preferably provides delay compensation, voice decoding, DTMF generation, call progress tone generation, comfort noise generation and lost frame recovery.
- Processed voice sample are then forwarded to a first voice queue 4518.
- a voice synchronizer 4520 is coupled to the output of the first voice queue 4518.
- the voice synchronizer 4520 resamples the voice frames stored in the first voice queue 4518 in accordance with an error signal and forwards re-sampled voice signals to a second voice queue 4522 so that the rate at which samples are removed from the second voice queue 4522 by a DAC 4524 matches the rate at which they are inserted into the second voice queue 4522 by the voice synchronizer 4520.
- a sample can be removed from the second voice queue 4522 and transmitted to the near end telephony device 4526 via a subscriber line interface circuit 4525.
- the DAC 4524 is preferably driven by sampled
- the DAC 4528 removes frames from the second voice queue 4522 at the exact same rate at which frames are inserted into the first voice queue 4518 by the voice processor 4516.
- the voice processor 4516 may not be correlated to the far end sample clock that generated the received data.
- the DAC clock 4528 in the network gateway 4480 leads the far end sample clock so that if left uncorrected samples would be removed from the second voice queue 4522 faster than they are being inserted in the first voice queue 4518, so that the system may collapse from data starvation.
- the DAC clock 4528 in the network gateway lags the far end sample clock so that samples are inserted into the voice queue faster than they are removed.
- the resulting overflow may result in artifacts in a voice call or data in voiceband data mode.
- a lost frame recovery engine in the voice and data processor is implemented whereby missing voice is filled with synthesized voice during data underflow conditions using the linear predictive coding model of speech.
- the voice is modelled using the pitch and spectral information from digital voice samples received prior to the lost packets.
- the voice and data processor preferably performs frame deletions to substantially eliminate the overflow condition.
- lost data may not be readily tolerated or recreated. Therefore, in voiceband data mode, the described exemplary voice synchronizer fractionally decimates the received voice signal
- voice synchronization is described in the context of an audio processor for voice and voice band data exchange over network gateway, those skilled in the art will appreciate that the techniques described for signal synchronization are likewise suitable for various applications requiring the synchronization of a signal in a system having two uncorrelated clocks. Accordingly, the described exemplary embodiment for voice and voiceband data synchronization in a signal processing system is by way of example only and not by way of limitation. For example, referring to FIG. 39 a given input voice signal may be represented by a series of samples 4516(a-i) shown with arrow terminations.
- samples 4516(a-i) satisfy Nyquist sampling criteria so that input voice signal 4516 may be completely reconstructed from the series of samples 4516(a-i). Therefore, the input voice signal may be over sampled as represented by the dashed lines.
- the input voice signal 4516(a-i) may be sampled at a slightly higher frequency 4530(a-i) shown with circles, so as to substantially eliminate the data underflow condition, by generating additional samples as a function of time.
- the input voice signal may be downsampled with a slightly lower frequency, shown with "x" terminations, so as to substantially eliminate the data overflow condition by generating fewer samples as a function of time.
- the described exemplary embodiment generates an error signal as a function ofthe ratio between the rate at which frames arrive or are placed into the first voice queue 4518 and the rate at which frames are removed from the second voice queue 4522 so that only those samples that are required to fractionally decimate or interpolate the input voice signal need be computed.
- the near end telephony device 4526 transmits an analog voice signal to the network gateway
- An analog to digital converter 4527 converts the incoming analog signal to digital samples with an ADC sample clock 4529. If the TRC clock and the ADC clock are correlated, the ADC output is forwarded to the audio processor 170 for decimation, echo cancellation and other processing as previously described, prior to being forwarded to the encoder system of the voice processor 4516.
- the voice processor encoder system can provide, among other things, DTMF and call progress tone detection, voice activity detection, voice compression, and comfort noise estimation. Encoded voice sample are then forwarded to system memory 4514 for transmission to the far end telephony device 4490 by the upstream modulator and MAC 4515. However, if the ADC clock 4529 and the TRC clock are uncorrelated, voice synchronizer 4520 should synchronize the digital voice samples to the TRC clock.
- the voice synchronizer preferably includes an error generation unit 4532, a sampling rate tracker 4534 and a voice queue or FIFO 4535.
- the error generation unit 4532 includes two counters each of which may be clocked by a locally generated reference clock at 24.576 MHz 4533.
- the ADC forwards digital -samples to the sample rate tracker 4534.
- an ADC 8 kHz clock 4536 drives a first counter 4537 and a TRC 8 kHz clock 4538 drives a second counter 4539.
- Counter outputs 4537(a) and 4539(a) are forwarded to low pass filters 4543, 4543' that average the output count (see FIG. 46).
- the sample rate tracker 4534 fractionally decimates or interpolates the incoming signal 4534(a) in accordance with the ratio of count A to count B. Thus if count A is larger than count B the sample rate tracker up-samples the incoming signal 4534(a) by the ratio count A to count B. Otherwise the sample rate tracker 4534 downsamples the incoming signal 4534(a) by the ratio count A to count B.
- the sample rate tracker 4534 forwards the resampled signal 4534(b) to the FIFO 4535 wherein the samples are assembled into a frame. The assembled frame is then forwarded to an encoder system ofthe voice and data processor (not shown) for voice compression, such as for example G.729.
- an exemplary sample rate tracker may be best demonstrated by an example.
- the input sample count shown as samples 1, 2, 3, and 4
- the output sample count shown as samples A, B, C and D
- samples A, B, C and D is 65536 thereby creating a slight overflow condition.
- the distance between for example, sample 2 and B is equal to 1/65536 of one input sample period. Therefore, an incoming 8 kHz signal would have to be resampled at the rate of (65536)(8 kHz) or 524.288 MHz to generate the additional samples required to eliminate the overflow condition.
- zeros would be placed between each individual data sample ofthe input signal stored in a data buffer. In a typical application eighteen data points would be used to compute the resampling. The number of data points represents a trade between the quality ofthe conversion and computational complexity.
- Low pass filter coefficients Coef-1 through Coef-
- the generation ofthe error signal facilitates the regeneration of the desired resampled output with a reduced number of filter coefficients.
- the error signal defined as the output count divided by the input count.
- to compute output B we shift 655357 inputs with 65535 zeros, so that sample 65536 is not equal to zero and sample number 65537 is equal to zero. Therefore, only eighteen filter coefficients multiply non zero data and only those eighteen coefficients need be calculated for each sample. They are 2, 2 + 65536, 2 + (2*65536), ... 2 + (17*65536).
- the process is then repeated to compute output sample C.
- the first 65534 samples are zeros, sample number 65536 is non zero and sample 65537 is equal to zero.
- incoming PCM voice data is forwarded to the sample rate tracker 4534.
- the voice data may not be synchronized to the local DAC sample clock that converts the received voice samples to an analog format prior to transmission to the near end telephony device.
- the first counter 4537 is driven by an adjustable frame clock 4540.
- the speed ofthe frame clock is negotiated between the network gateway and the CMTS and is assumed to be 10 msec.
- the frame clock 4540 may be generated by the MIPS core, or the DSP of the voice processor as a function of frame arrival time.
- the second counter 4539 is preferably driven by a 100 Hz DAC clock 4541 that is generated by a clock division counter as shown in FIG. 41.
- the sample rate tracker 4534 preferably fractionally decimates or interpolates the incoming signal 4534(a) in accordance with the ratio of count A to count B. Thus if count A is larger than count B the sample rate tracker up-samples the incoming signal 4534(a) by the ratio count A to count B. Otherwise the sample rate tracker 4534 downsamples the incoming signal 4534(a) by the ratio count A to count B.
- the sample rate tracker 4534 forwards the resampled signal 4534(b) to the FIFO 4535 (second voice queue 4522 of FIG. 38). The resampled signal is then converted to an analog signal via a DAC that may use 24.576 MHz DAC clock.
- FIG. 45 shows an alternative approach to voice synchronization.
- the ADC 4527 again digitizes analog voice data received from the near end telephony device 4526 via the SLIC 4525.
- the ADC 4527 then forwards the digital samples to a sample rate tracker 4548.
- the error generation unit utilizes a single counter to derive the offset between the ADC and TRC clocks.
- the TRC 8 kHz clock 4544 drives a counter 4546 that utilizes an ADC 24.576 MHz clock 4547 as a reference to count the number of periods within one 8 kHz TRC cycle.
- the counter forwards this count 4546(a) to the low pass filter 4543.
- the low pass filter as shown in
- FIG.46 is preferably a single pole 4550 filter that smooths the transitions between different sampling rates.
- the described exemplary single pole filter includes a first gain adjuster 4551 that applies a fixed gain (b) to the count out signal and a second gain adjuster 4552 applies a fixed (a) that is the time constant ofthe filter.
- the duration ofthe time constant represents a tradeoff between tracking accuracy and jitter and is preferably in the range of about 1-20 msec.
- the sample rate tracker 4548 fractionally decimates or interpolates the incoming signal 4548(a) in accordance with the filtered counter output 4543(a) as compared to 3072.
- ADC clock are perfectly correlated the counter would output 3072 and the incoming signal 4548(a) would not be resampled.
- the filtered counter output 4543(a) is greater than 3072, the incoming signal is upsampled by the filtered counter output 4543(a) divided by 3072 (A/3072).
- the incoming signal is down-sampled by the filtered counter output 4543(a) divided by 3072 (A/3072).
- the MIPS core 4513 increments a counter 4553 when the network gateway 4480 receives a new voice frame from the CMTS (not shown).
- the counter 4553 preferably utilizes the DAC 24.576 MHz clock 4528 as a reference.
- the counter output 4553(a) provides the difference between the frame clock and the DAC clock.
- a low pass filter 4543' again smooths or averages the difference in various frame arrival rates as previously described.
- the sample rate tracker 4548 fractionally decimates or interpolates the incoming signal 4548(a) in accordance with the output of filtered counter count 4543(a) as compared to 24576.
- the counter 4553 would output 24576 and the incoming signal would not be resampled.
- the sample tracker 4548 upsamples the incoming signal by the output 4543(a) ofthe lowpass filter divided by 24576 (i.e. A/24576).
- the sample rate tracker 4548 down-samples the incoming signal by the output 4543(a) ofthe low pass filter divided by 24576 (A/24576).
- an alternate error generation unit utilizes packet control information 4554 to generate a far end clock error signal 4555 representing the difference between the far end sampling rate and the near end voice play out sampling rate.
- the clock error signal may then be used to fractionally resample the received data packets 4556.
- the DSP ofthe voice processor module may read from and write to data packet control registers within local memory ofthe DSP to monitor and control the flow of downstream data. For example, the DSP may write a packet arrival indication to the packet control register when a downstream packet has arrived and been placed in a jitter buffer.
- the j itter buffer may be part ofthe voice processor' s local memory or may be external memory accessed via the internal system bus and DSP/ISB interface.
- the voice processor then processes voice samples and forwards the processed samples to the first voice queue 4518.
- the voice queue 4518 writes a packet buffer ready indication to the packet control registers, that produces a maskable interrupt that is transmitted to the DSP ofthe voice processor module.
- the D SP may write a packet complete indication to the packet control registers indicating that the next packet has been delivered and clearing the packet buffer ready status.
- the period ofthe packet complete indication is negotiated between the network gateway and the CMTS and may be for example 10 msec.
- the packet complete indication is generated by the DSP ofthe voice processor in accordance with the reference clock locally generated at the network gateway.
- the average far end sampling rate may be obtained from the packet arrival control signal and the near end voice playout sampling rate may be obtained from the packet complete control signal.
- the present invention may utilize other control signals to obtain the average far end sampling rate and the near end playout rate.
- the control signals may be generated by, for example, the MIPS core ofthe network gateway. .
- the voice synchronizer preferably includes an error generation unit 4557, the sampling rate tracker 4534 and the voice queue or FIFO 4535.
- the error generation unit 4557 includes two counters 4558, 4559 each of which may be driven by the locally generated TRC clock 4536.
- the TRC clock may range in frequency from about 8 kHz to 24.576 MHz. However, one of skill in the art will appreciate that increasing the frequency ofthe
- TRC clock 4536 will provide increasingly accurate error estimates.
- the first and second latches 4560, 4561 coupled to counters 4558, 4559 respectively are responsive to packet arrival control signals 4562 and packet complete control signals 4563 respectively.
- Latch 4560 therefore outputs the count value between successive packet arrival control signals, i.e. last count 4560(a) and current count 4560(b) and latch 4561 outputs the count value between successive packet complete control signals, i.e. last count 4561(a) and current count 4561(b).
- Difference operator 4564 is coupled to latch 4560 and outputs the difference between the current and the last packet arrival counts, i.e. the count between successive packet arrival control signals output by latch 4560.
- difference operator 4564a is coupled to latch 4561 and outputs the difference between the current and the last packet complete counts, i.e. the count between successive packet complete control signals output by latch 4561.
- Low pass filters 4543 and 4543' are coupled to difference operators 4564, 4564arespectively.
- the low pass filters 4543 and 4543' as previously described may be single pole filters that smooth the transitions between different sampling rates.
- a difference operator 4565 is coupled to the output of low pass filters 4543 and 4543' and forwards an estimate of the difference between the packet arrival period and packet complete period to the sample rate tracker 4534.
- the sample rate tracker also receives the incoming PCM voice data.
- the sample rate tracker 4534 fractionally decimates or interpolates the incoming signal 4534(a) in accordance with the ratio of the packet arrival count and the packet complete count. Thus if in operation the packet arrival count is larger than the packet complete count, the sample rate tracker up-samples the incoming signal 4534(a) by the ratio ofthe packet arrival count to the packet complete count. Otherwise the sample rate tracker 4534 downsamples the incoming signal 4534(a) by the ratio ofthe packet arrival count to the packet complete count.
- the sampling rate tracker 4534 forwards the resampled signal 4534(b) to the FIFO 4535.
- the resampled signal is then converted to an analog signal via a DAC that may use the 24.576
- voice synchronizer is not limited to DOCSIS compatible VOIP systems. Rather the present invention may be utilized to synchronize VOIP data in for example digital subscriber line (DSL) or other packet based networks. Therefore, the disclosed network gateway embodiment is by way of example only and not by way of limitation. b. Echo Cancellation
- a DAC 5570 forwards decoded voice signals to a local telephony device 5571 and a ADC 5572 receives signals from a local telephony device via a SLIC 5573.
- SLIC 5573 contains a hybrid 5574 that converts from two-four wires. Ideally the hybrid gain would be zero to eliminate coupling between the far end and near end transmission paths. However, the operation ofthe hybrid 5574 typically results in a frequency dependent gain of less than about one-half. Hybrid gain commonly results in a telephony problem known as line echos, such as the reflection ofthe talker's voice at the mismatch created by the two-four wire conversion. If there is low end-to-end delay, echo from the far end is equivalent to side-tone (echo from the near-end), and therefore, not a problem. Side-tone gives users feedback as to how loud they are talking, and indeed, without side-tone, users tend to talk too loud. However, far end echo delays of more than about 10 to 30 msec significantly degrade the voice quality and are a major annoyance to the user. Therefore echo cancellers are typically used to remove far end echo.
- a reference signal 5575(a) is input into an adaptive filter 5575 that models the transfer characteristics ofthe dialed telephone line (i.e. the hybrid plus the tail circuit which is the telephone line from DAC to ADC) so that the unwanted echo may preferably be canceled by subtracting filtered reference signal 5575(b) from the near end digital input signal 5572(a) in a difference operator 5576.
- the adaptive filter 5575 converges or adapts only in the absence of near end speech. Therefore, near end speech and/or noise present on the near end digital input signal 5572(a), typically referred to as the double talk condition, may cause the adaptive filter 5575 to diverge.
- echo cancellers utilize energy estimators 5577a,5577b to estimate the energy (E near ) of the near end signal 5572(a)and the energy (E far ) ofthe far end 5575(a) signal.
- a typical double talk algorithm 5568 then declares near end speech active, disabling adaptation ofthe adaptive filter 5575, when the energy ofthe near end signal is greater than the energy of the far end signal times the hybrid gain(H), (E near >H*E far ).
- a primary disadvantage of conventional approaches which utilize energy estimates is the delay introduced into the detection of near end speech by the energy estimators (typically low pass filters) that may significantly corrupt the output of difference operator 5576, which is typically used as a the feedback error for filter adaptation.
- the described exemplary echo canceller includes a double talk algorithm that provides rapid detection of near end speech in the presence of far end speech along with a look ahead capability so that the adaptive filter may halt adaptation (i.e. freeze the filter taps or coefficients) before the near end speech reaches the difference operator:
- echo cancellation is described in the context of an audio processor for voice exchange via a network gateway, those skilled in the art will appreciate that the techniques described for echo cancellation are likewise suitable for various applications requiring the cancellation of reflections, or other undesirable signals, from a transmission line. Accordingly, the described exemplary embodiment for echo cancellation in a signal processing system is by way of example only and not by way of limitation.
- a high pass filter 5587 receives a reference signal.
- the high pass filter 5587 matches the echo path impulse response of the Rx data line.
- the output ofthe high pass filter 5587 is input into the adaptive filter 5575 that models the transfer characteristics ofthe dialed telephone line circuit.
- the adaptive filter 5575 may be a linear transversal filter or other suitable finite impulse response filter.
- Rx data from the far end 5581(a) is coupled to double talk logic 5580 before the interpolator 5581 ofthe audio processor (not shown) and the DAC 5588 ofthe analog front end (not shown).
- the double talk logic 5580 therefore receives a far end reference signal F(n) 5581(a) with an 8 kHz sampling rate.
- the double talk logic 5580 is preferably coupled between the ADC 5589 of the analog front end and the decimator 5582 ofthe audio processor (not shown).
- a downsampler 5583 performs 12:1 sample decimation ofthe 96kHz near end Tx data 5589(a) and forwards the decimated near end data samples 5583(a) to the double talk logic at an 8 kHz sample rate. To minimize delay, the downsampler does not low pass filter the near end samples 5589(a) prior to decimation. Aliasing components which may be created are insignificant in that the output of the downsampler 5583 (a) simply drives the double talk detection logic 5580 and is not transmitted to the far end.
- An energy estimator 5584 estimates the background noise level of the decimated near end signal 5583(a) and forwards the estimated level to the double talk logic 5580.
- the energy estimator 5584 is preferably a low pass filter with a long time constant, on the order of about 10 seconds. With a long time constant the energy estimator tends to track the minimum energy level ofthe decimated near end signal 5583 (a) .
- Energy estimator 5585 estimates the short term energy of the far end TX data F(n).
- the adaptive filter 5575 can be based upon a normalized least mean square algorithm (NLMS) as described in S. Haykin, Adaptive Filter Theory, and T.
- NLMS normalized least mean square algorithm
- An error signal 5576(a) at the output of the difference operator 5576 for the filter adaptation may be characterized as follows:
- e(n) is the error signal at time n
- F(n) is the reference signal 5587(a) at time n
- Tx(n) is the Tx data signal 5586(a) input into the difference operator 5576 at time n
- w(j) - w(j) + ⁇ * e ⁇ ri)* F(n - j) wherein w(j) is preferably initialized to a reasonable value such as for example zero.
- the short term average energy ofthe reference signal E ref is the sum ofthe last 32 reference samples so that the convergence gain may be given by:
- ⁇ is the adaptation step size and E ref is the energy estimate ofthe far end data sample F(n).
- ⁇ is set to zero when near end voice is detected so that the convergence gain ⁇ is equal to zero and the filter coefficients are not updated. Otherwise ⁇ is set to a constant of less than one and preferably in the range of 0.8-0.95.
- the adaptive filter may be implemented in a variety of ways, including fixed point rather than the described floating point realization. Accordingly, the described exemplary adaptation logic is by way of example only and not by way of limitation.
- the 96 kHz near end Tx data samples 5589(a) are also decimated by a second 12:1 decimator 5582.
- decimator 5582 does include a low pass filter capability to prevent aliasing ofthe decimated signal .
- the decimated output is forwarded to a 60 Hz high pass filter 5586 which reduces the 60 Hz interference induced on the transmit line due to proximity to power lines.
- Filtered output 5586(a) is input to the difference operator 5576 that preferably cancels unwanted echo by subtracting filtered reference signal 5575(b) from the filter output signal 5586(a).
- the adaptive filter 5575 models the transfer characteristics ofthe hybrid and the tail circuit ofthe telephone circuit.
- the tail length supported should preferably be at least 8 msec.
- the adaptive filter 5575 may be a linear transversal filter or other suitable finite impulse response filter.
- the echo canceller preferably converges or adapts only in the absence of near end speech. Therefore, near end speech and/or noise present on the input signal 5589(a) may cause the adaptive filter 5575 to diverge.
- the adaptive filter 5575 can be selectively enabled by the double talk logic 5580.
- the double talklogic 5580 utilizes asample based algorithm to detect the presence of near end speech without incurring the delays associated with conventional systems in accordance with the following equation:
- the double talk logic 5580 is used to declare near end speech active when the absolute value ofthe decimated near end signal 5589(a) is greater than the product of the hybrid gain (H) and a peak statistic ofthe far end data samples 5581(a) summed with the estimated background noise of the transmit data samples.
- the hybrid gain is generally a constant preferably less than about one- half.
- the background noise for a typical voice channel is on the order of about - 70 dBm which is far less than average active speech levels, which are typically in the order of about -25 dBm.
- the background noise estimate is therefore initialized to a value of about -70 dBm and thereafter periodically updated 5584(a) by the energy estimator 5584.
- the peak statistic ofthe far end data samples is defined by the following logic:
- Peak(n) max ⁇ A [
- Peak(n) d * Peak(n-l);
- A is a weighting function that is greater than zero and less than or equal to one.
- the parameter L is the number samples over which the maximum is determined, typically in the range of zero to one hundred and twenty eight samples and preferably on the order of about 64 samples.
- the parameter d is preferably a constant that is also greater than zero and less than or equal to one and preferably on the order of about 0.99. Therefore, to determined the peak statistic ofthe far end, the double talk logic applies a weighting factor A to the absolute value of the current sample (F(n)) and previous L samples (F(n-L)). If the maximum product is greater than the previous peak statistic Peak(n-1) then the current peak statistic Peak(n) • is set at the maximum of the product of the weighting factor and far end samples.
- A, L and d are empirically determined to optimize performance and computational load for a given application. For example, double logic 5580 can more accurately detect near end speech if the maximum is determined over a larger number of samples L. However, computational intensity also increases with increasing number of samples L . A and d can be inversely related to the number of sample L, so that A and d are smaller for larger number of samples and vice versa.
- the delay associated with the high-pass filter 5586 and the decimator 5582 there is a delay associated with the high-pass filter 5586 and the decimator 5582.
- the double talk logic 5580 which has negligible delays, can receive and process near end data samples prior to their arrival at the difference operator 5576.
- the delay associated with the high-pass filter 5586 and the second decimator 5582 provide a look-ahead of M samples allowing the double talk logic 5580 to preferably disable adaptation of the adaptive filter 5575 M samples before the near-end signal reaches the difference operator 5576.
- the look ahead capability M is the sum of the equivalent delays associated with the high pass filter 5586 and the second decimator 5582 and is typically two-three 8kHz samples for a ITU-T G712 compliant system.
- FIG. 52 shows another approach for echo cancellation where a decimated near end digital signal after decimation to an 8 kHz signal 5582(a) is input to the double talk logic 5580.
- This approach can be utilized in systems where the echo canceller and codec are not integrated so that the near end data samples have previously been decimated.
- a look ahead buffer 5588 receives, buffers, and forwards decimated near end signals 5582(a) to the difference operator 5576, providing a look ahead capability of M samples where M may be optimized for a given application to balance performance, computational intensity and delay.
- the approach shown in FIG.52 also utilizes a digital hybrid balancer 5592 coupled between the interpolator 5581 and the decimator 5582.
- the digital hybrid balancer 5592 takes the output ofthe interpolator 5581 and uses it to generate a signal which is summed with the output ofthe ADC 5589 before presentation to the decimator 5582.
- the digital hybrid balancer 5592 operates to reduce echo in the digital domain as opposed to in the analog domain for improved operation of the adaptive echo cancelled.
- the approach shown in FIG. 52 also utilizes a Y filter 5593 coupled between the ADC 5589 and the DAC 5588.
- the Y filter 5593 takes the output ofthe ADC 5589 and uses it to generate a signal which is summed with the output ofthe interpolator 5581 before presentation to the DAC 5588.
- the function of the Y filter is to reduce reflections on the two wire interface.
- a short adaptive filter 5590 is integrated into the preferred double talk detection algorithm.
- the adaptive filter 5590 models the transfer characteristics of the dialed telephone line circuit.
- e 0 (n) is the error signal at time n 5591(a)
- F(n) is the reference signal 5580(a) at time n
- T xo (n) is the Tx data signal 5591(b) input into difference operator 5591 at time n
- wo(j) wo(j) + ⁇ * eo(ri)* F ⁇ n - j)
- w 0 (j) is preferably initialized to a reasonable value such as for example zero.
- the short term average energy ofthe reference signal E ref is the sum ofthe last eight samples so that the convergence gain may be given by:
- the double talk logic 5580 does not selectively enable / disable adaptation of the filter 5590 in accordance with the detection of near end speech so that filter 5590 continuously adapts. Therefore, to reduce the computational burden placed upon the system and to prevent the filter from diverging the adaptive filter 5590 can be figured to adapt very slowly so that ⁇ is preferably in the range of about 0.01 - 0.0001.
- the adaptive filter 5590 again filters the far end reference signal 5581 (a) so that the echo level is can be reduced by subtracting filtered reference signal 5590(b) from the Tx data samples 5591(b) in a difference operator 5591.
- the adaptive filter 5590 can be reduce line echos about 6-12 dB so as to improve the performance ofthe double talk logic.
- the output 5591 (a) ofthe difference operator 5591 (i . e. Tx data samples with reduced echo) is then forwarded to double talk logic 5580 which then detects near end speech and selectively enables/disables adaptation ofthe adaptive filter 5575(see FIG. 51).
- IP Internet Protocol
- a cable modem provides users with high-speed Internet access through a cable television network at data rates as high as 56 Mbps.
- traditional cable modem service has been limited to data applications so that the realization of diverse communications services at increased data rates requires the development of a common broadband cable access network with integrated voice and data services. Cable Television Laboratories, Inc.
- PacketCable 1.0 which defines interface specifications for interoperable equipment capable of providing packet-based voice, video and other high-speed multimedia services over hybrid fiber coax (HFC) cable systems utilizing the DOCSIS protocol.
- the described exemplary network gateway includes a voice and data processor that supports the exchange of voice and data between a traditional circuit switched and a packet based network via a DOCSIS HFC network.
- the exemplary voice and data processor may be implemented with a programmable DSP software architecture as shown in FIG. 54.
- This architecture includes a high speed DSP 6000 with program memory 6002, and data memory 6004.
- a PCM highway 6006 provides the voice and data processor 160 access to the audio processor and optional external audio processing circuits.
- a grant synchronizer 6008 ensures delivery of samples to the network gateway for upstream transmission.
- the grant synchronizer signals the DSP 6000 that a pending grant is about to arrive at the network gateway so as to allow the DSP 6000 to synchronize itself to scheduled grants at the network gateway.
- a host interface 6100 transfers data, control and status messages between the DSP 6000 and the MIPS core 128.
- many voice applications often require simultaneous support of multiple telephony devices. Conventionally, multiple devices could only be supported with additional telephone wires.
- multiple POTS service terminations may be multiplexed over a HPNA network utilizing existing in home telephone wiring and communicated to an upstream telephony service.
- Voice over home networks may therefore be utilized to reduce the installation costs normally associated with providmg simultaneous support of multiple telephony or other network devices.
- the described exemplary network gateway supports the bidirectional exchange of packetized voice and call signaling between a HPNA local area network and a wide area network such as the Internet.
- a network gateway 6104 translates between the upstream telephony service and a local HPNA network segment 6110.
- a remote HPNA media adapter 6120 provides a subscriber side interface equivalent to the standard analog phone interface and a network side interface defined by HPNA 2.0.
- HPNA 2.0 One of skill in the art will appreciate that the partition of functionality between the remote HPNA media adapter and the network gateway may vary.
- An exemplary network gateway includes an embedded media terminal adapter (MTA) in compliance with PacketCable 1.0 to support bidirectional exchange of packetized voice or voice band data.
- An exemplary embedded MTA may be implemented with programmable DSP software architecture to provide a subscriber side interface to a subscriber's telephony device via the voice and data processor or the HPNA MAC/PHY and remote HPNA media adapter. The embedded MTA further provides a network side interface to the DOCSIS cable modem. Referring to FIG.
- the preferred embedded MTA 6200 includes a host application programming interface (HAPI) 6210 that provides a software messaging interface between the MIPS host and the voice and data processor DSP.
- the HAPI 6210 facilitates the issuing of commands from the MIPS host to the voice and data processor DSP as well the sending of events from the DSP to the MIPS core host.
- the MTA further includes a VOHN interface 6150 that provides a software messaging interface between the MIPS core host and the remote HPNA media adapter via the HPNA MAC/PHY.
- the VOHN interface also facilitates the issuing of commands from the MIPS host to the remote media adapter as well the sending of events from the remote media adapter to the MIPS core host.
- the MTA 6200 may provide all signaling and encapsulation elements required to support telephony service over a DOCSIS HFC network 6220 including media transport and call signaling via quality service logic 6230.
- gateway control protocol (GCP) logic 6240 receives and mediates call-signaling information between the PacketCable network and the PSTN.
- the GCP logic 6240 maintains and controls the overall call state for calls requiring PSTN interconnection.
- the GCP logic 6240 controls the voice and data processor, via the MTA 6200 and HAPI interface 6210, as well as the remote HPNA media adapter via the MTA and VOHN interface by instructing it to create, modify, and delete connections that support the media stream over the IP network.
- the GCP logic 6240 also instructs the voice and data processor and the remote HPNA mediate adapter to detect and generate events and signals.
- the GCP logic 6240 also exercises attribute control over the voice and data processor and the remote HPNA media adapter, providing instructions as to which attributes to apply to a connection, such as, for example, encoding method, use of echo cancellation, security parameters, etc.
- the GCP logic 6240 also interfaces with an external control element, such as, for example, a call agent or call management server (CMS) 6280 to terminate and generate the call signaling from and to the PacketCable side ofthe network in accordance with the network-based call signaling (NCS) protocol specification.
- CMS call agent or call management server
- NCS network-based call signaling
- the PacketCable 1.0 NCS architecture places call state and feature implementation in the centralized CMS 6280, and places telephony device controls in the MTA 6200.
- the MTA 6200 passes device events to the CMS 6280, and responds to commands issued from the CMS.
- the CMS is responsible for setting up and tearing down calls, providing advanced services such as custom calling features, performing call authorization, and generating billing event records, etc.
- the CMS 6280 instructs the MTA 6200 to inform the CMS 6280 when a phone goes off hook, and seven dual tone multi frequency (DTMF) digits have been entered.
- the CMS 6280 instructs the MTA 6200 to create a connection, reserve quality of service (QoS) resources through the access network for the pending voice connection, and to play a locally generated ringback tone.
- QoS quality of service
- the CMS in turn communicates with a remote CMS (or MGC) to setup the call.
- MGC remote CMS
- the CMS detects answer from the far end, it instructs the MTA to stop the ringback tone, activate the media connection between the MTA and the far-end MTA, and begin sending and receiving media stream packets.
- RTP real time transport protocol
- RTP resides right above the transport layer.
- the described exemplary embedded MTA 6200 preferably includes RTP logic 6300 that converts RTP packets (headers) to a protocol independent format utilized by the HAPI and VOHN interfaces and vice versa.
- the described exemplary embedded MTA preferably includes channel associated signaling (CAS) logic 6320 resident on the MIPS core that interfaces with the subscriber line interface circuits 6340 via the GPIO interface 184 (see FIG. 3) to provide ring generation, hookswitch detection, and battery voltage control.
- the CAS logic 6320 preferably supports custom calling features such as for example distinctive ringing.
- the described exemplary embedded MTA 6200 preferably includes MTA device provisioning logic 6360 that enables the embedded MTA 6200 to register and provide subscriber services over the HFC network 6220. Provisioning logic 6360 provides initialization, authentication, and registration functions. The Provisioning logic 6360 also provides attribute definitions required in the MTA configuration file.
- the provisioning logic 6360 includes SNMP logic 6380 that exchanges device information and endpoint information between the MTA 6200 and an external control element called a provisioning server (not shown). The MTA also sends notification to the provisioning server that provisioning has been completed along with a pass/fail status using the SNMP protocol.
- the Provisioning logic 6360 also includes DHCP logic 6400 that interfaces with an external dynamic host configuration protocol (DHCP) server to assign an IP address to the MTA.
- DHCP server (not shown) is a back office network element used during the MTA device provisioning process to dynamically allocate IP addresses and other client configuration information.
- Further provisioning logic preferably includes domain name server (DNS) logic 6420 wliich interfaces with an external DNS server (not shown) to obtain the IP address of a PacketCable server given its fully ⁇ qualified domain name.
- DNS domain name server
- the MTA configuration file is downloaded to the MTA from an external trivial file transfer protocol (TFTP) server (not shown) through TFTP logic 6440.
- TFTP trivial file transfer protocol
- the TFTP server is a back office network element used during the MTA device provisioning process to download configuration files to the MTA.
- An HTTP Server may be used instead of a TFTP server to download configuration files to the MTA.
- PacketCable's protocol interfaces is subject to threats that could pose security risks to both the subscriber and service provider.
- the PacketCable architecture addresses these threats by specifying, for each defined protocol interface, the underlying security mechanisms (such as IP Sec) that provide the protocol interface with the security services it requires, e.g., authentication, integrity, confidentiality.
- Security logic 6460 is PacketCable compliant and provides end-to-end encryption of RTP media streams and signaling messages, to reduce the threat of unauthorized interception of communications.
- the security logic 6460 preferably provides additional security services such as, for example, authentication, access control, integrity, confidentiality and non-repudiation.
- DOCSIS service logic 6230 preferably provides the primary interface between the MTA 6200 and the DOCSIS cable modem (i.e. DOCSIS MAC and modulator / demodulator) of the network gateway.
- the DOCIS service logic 6230 provides multiple sub-interfaces such as, for example, a control sub-interface that manages DOCSIS service-flows and associated QoS traffic parameters and classification rules.
- the DOCIS service logic 6230 also provides a synchronization interface that is used to synchronize packet and scheduling prioritization for minimization of latency and jitter with guaranteed minimum constant bit rate scheduling.
- the DOCSIS service logic is used to request bandwidth and QoS resources related to the bandwidth.
- the DOCIS cable modem features ofthe network gateway then negotiate reserve bandwidth, guaranteed minimum bit rate etc, utilizing DOCSIS 1.1 quality of service feature.
- DOCSIS service logic 6230 preferably includes a transport interface that is used to process packets in the media stream and perform appropriate per-packet QoS processing.
- the GCP logic implements the NCS features ofthe PacketCable 1.0 specification including protocol transaction management, parsing, verification and formatting of protocol data units (PDUs) and other utility functions.
- the PacketCable protocol typically requires an acknowledgment that a request has been received. Therefore, the GCP logic includes transmitter queue 6700 that registers all requests sent from the GCP logic to the call management server via a transmitter scheduler 6720 and the MTA.
- a receive router 6740 analyzes packets received from the call management seiver via the MTA call client to determine if the received message is an acknowledgment or a new request.
- the receiver router 6740 forwards new requests to a transaction queue 6760. If the received packet is an aclcnowledgment of a request previously sent from the GCP logic to the call management server, the receive router 6740 clears that request by forwarding the acknowledgment 6740(a) to the transmitter queue 6700.
- the transmitter queue 6700 periodically retransmits buffered requests until an acknowledgment from the call management server is received.
- the transaction queue 6760 registers the receipt of a given request from the call management server as well as the transmission of an aclcnowledgment of that request from the GCP logic to the call management server. Further, in the described exemplary embodiment the transaction queue 6760 detects retransmitted requests from the call management server for which an acknowledgment has already been sent. In addition, the transaction queue 6760 parses the incoming requests according to the type of requests. The transaction queue 6760 routes connection messages to a connection message parser 6780.
- Connections messages are used to create or terminate a connection.
- the connection message parser generates and forwards connection controls (including connection attributes) 6780(a) to the MTA which are then communicated to the voice and data processor via the HAPI interface or the remote HPNA media adapter via the VOHN interface.
- the transaction queue 6760 routes request / notify messages to a request / notify message parser 6800.
- Request / notify messages may be signal requests such as play dial tone, busy tone etc. or requests to detect events such as for example, detect DTMF digits, fax tone, modem tone etc.
- the request / notify message parser 6800 preferably generates and forwards signal requests 6800(a) to the voice and data processor via the MTA and HAPI interface or the remote HPNA media adapter via the MTA and VOHN interface.
- the request / notify message parser 6800 flags event detection requests 6800(b) to an event filter 6820.
- Actual events detected by the voice and data processor and the remote HPNA media adapter (such as, for example, fax tone) or channel associated signaling (such as, for example, off hook detected) are forwarded to the event filter via the MTA call client.
- the event filter 6820 filters the events and only transmits those detected events that the call management server requested, as indicted by flags 6800(b) communicated to the event filter by the request / notify message parser 6800.
- the event filter 6820 preferably forwards detected events of interest to the call management server to a message formatter 6840.
- the message formatter 6840 formats the detected event into the appropriate protocol and forwards the detected event message to transmitter queue 6700, which registers the message and will retransmit the message if an acknowledgment is not received in atimely manner via the receive router 6740(a).
- the transmitter queue 6700 which registers the message and will retransmit the message if an acknowledgment is not received in atimely manner via the receive router 6740(a).
- the PacketCable 1.0 specification provides for the use of a digit map which is designed to reduce the number of messages communicated between the call management server and the MTA call agent when a user is dialing a number.
- the dialing of long distance number involves the use often digits (i.e. the area code and number) which would require ten requests and acknowledgments, i.e., one per digit.
- the call management server may provide a digit map to the MTA call client wliich instruct digit map logic 6860 to collect detected digits from the voice and data processor according to a specified format, for example ten digits for long distance call.
- the digit map logic 6860 then forwards for example all ten digits to the event filter which filters the digit detection, and forwards events of interest to the message parser 6840 for communication to the call management server as previously described through transmitter queue 6700 and transmitter scheduler 6720.
- Event quarantine logic 6880 buffers detected events received from the CAS, or the remote HPNA media adapter or voice and data processor via the MTA call client for which the event filter has not received a detect event request from the call server manager via the request / notify message parser flag 6800(b).
- Responses or the result 6900(a) of a connection or signal request are forwarded from the MTA call client to a response formatter 6900 within the GCP logic that formats the result into the proper protocol.
- the response formatter then forwards that result to the transmitter scheduler 6720 for communication to the call management server via the MTA call client.
- the response formatter
- RTP logic 6300 preferably converts RTP packets to the protocol independent packet format utilized by the VOHN interface 6150 and the HAPI interface 6210 and vice versa.
- the protocol independent packet payload is preferably identical to the RTP packet payload so that the RTP logic 6300 need only convert between the RTP headers and the headers used in the independent protocol.
- a RTP shim 7000 provides two way exchange of protocol independent packets with the MTA call client 6200.
- the RTP shim 7000 accepts these packets from the MTA call client 6200, converts the packet header to a RTP header and forwards the RTP packet to a RTP stack 7020.
- the RTP stack 7020 provides the statistical monitoring function required by the RTP protocol such as, for example, collecting statistics on the number of bytes sent and received, the number of packets lost as well as how much jitter was present.
- the RTP stack 7020 provides the statistical monitoring function required by the RTP protocol such as, for example, collecting statistics on the number of bytes sent and received, the number of packets lost as well as how much jitter was present.
- the RTP stack 7020 provides the statistical monitoring function required by the RTP protocol such as,
- RTP 7020 provides two way exchange of RTP packet between the MTA call client and the RTP logic 6300, receiving RTP packets from the RTP shim 7000 and forwarding them to the MTA call client 6200 and vice versa.
- the described exemplary VOHN interface provides a software messaging interface between the MTA call client 6200 and the remote
- the VOHN interface 6150 facilitates the issuing of commands from the MIPS core via the MTA call client 6200 to the remote HPNA media adapter 6120 as well the sending of events from the remote HPNA media adapter to the MTA call client 6200.
- the VOHN interface 6150 may be scalable to support multiple channels as well as multiple media adapters. In addition the
- VOHN interface is a thread safe environment, providing multi-threading capability to support multiple channels. Multi-threading provides multiple, simultaneously executing "threads" within a single application. The benefit of a multi-threaded application is similar to that of a multi-tasked operating system, the application may perform multiple tasks by using separate threads.
- the described exemplary VOHN interface 6150 receives commands from and issues responses to the MTA call client 6200.
- the VOHN interface 6150 processes incoming packets to identify the channel that should process the packet as well as other processing parameters such as for example, packet type (i.e. voice or fax), packet length, etc.
- VOHN signaling messages are data linlc layer frames that are identified by a unique IEEE assigned Ethertype value in the frame header.
- the frame header may also include one or more payload element fields. Each payload element may be variable length and multiple payload types such as for example voice, channel associated signaling, etc., may be concatenated in a single frame in any order.
- voice payload fields transfer packetized voice encoded to ITU standards such as, for example, G.711 a-law, G.711 u-law, G.728 or G.729A B/E.
- the size ofthe frame depends on the vocoder frame rate selected for the media stream, normally a multiple of 10ms.
- Voice payload fields are transmitted at the selected frame rate while a voice path is established to the line temrination.
- Some vocoder algorithms incorporate voice activity detection (VAD) and reduce packet rate significantly during periods of silence.
- VAD voice activity detection
- voice-band data traffic (such as, for example, G.711 u/a-law data) may be treated as a special case.
- Voice-band data is less sensitive to delay, but more sensitive to frame loss than voice traffic. Therefore, in operation, frames containing voice-band data contain two payload fields to increase delivery reliability over the HPNA segment.
- the first payload field contains voice samples from the current frame period
- a second payload field contains a repeat ofthe voice samples from the most recent previous frame period.
- signaling and voice payloads are encoded in frames that are transported as a Link Layer Protocol according to the formats and procedures for HPNA 2.0 Linlc Layer Framing.
- the VOHN interface 6150 forwards processed messages 6150(a) to the HPNA MAC layer 6160 to provide access to the physical media and transparent transfer of link layer frames between the network gateway and remote HPNA media adapters 6120.
- individual line terminations are identified by single pre-defined/well-known MAC station addresses. Frames destined for a specific line termination are transmitted to the destination MAC address assigned for that line, rather than using the unique unicast MAC address ofthe network gateway or remote media adapter.
- the line termination or "station” addresses are actually multicast MAC addresses allowing multiple HPNA media adapters to share the same line termination and thus transmit/receive using the same station address.
- This addressing model permits implementation of distributed conferencing.
- the sender of a communication may be identified from its unique unicast MAC station source address.
- the MAC layer may also perform error detection on received frames and silently discard frames with errors.
- frames may be transmitted at one of two rates. For example, during static or quiescent periods when no state transitions are occurring, frames may be transmitted at a background rate on the order of about one frame every five seconds. However, when state information changes, frames may be transmitted at a foreground rate of one every 10msec. In the described exemplary embodiment, frames are transmitted at the foreground rate until a quiescent period of at least about 50msec has elapsed.
- the remote HPNA media adapter forwards processed packets, such as, for example, encoded voice packets, to the HPNA PHY/MAC of the network gateway.
- the HPNA MAC 6160 preferably reformats the response into a VOHN message and forwards the VOHN message to system memory.
- the MIPS core interrupts a
- VOHN Task Thread 7050 that retrieves the processed VOHN message from the memory.
- the VOHN Task Thread 7050 determines whether the message is an event such as, for example, a voice or fax packet or a DTMF detection which are forwarded directly to the MTA call client 6200, or a response to a command/request from the MTA call client.
- the MTA call client For example, the MTA call client
- the 6200 may command the remote HPNA media adapter 6120 to turn off echo cancellation. Such a command is preferably processed by the VOHN interface 6150 into the appropriate link layer format and forwarded to the HPNA MAC/PHY 6160.
- the MAC formats the message in accordance with HPNA V.2 protocol and forwards the command over the HPNA network to the remote
- HPNA media adapter
- the remote HPNA media adapter 6120 When the command has been complied with, the remote HPNA media adapter 6120 returns an acknowledgment to the HPNA PHY/MAC 6160 ofthe network gateway via the HPNA network.
- the HPNA MAC formats the response into a VOHN message and forwards it to the VOHN Task thread 7050 which then forwards it as a VOHN response to the VOHN interface 6150.
- the VOHN interface 6150 correlates the VOHN responses received from the VOHN Task thread 7050 to the corresponding command/request that prompted the response and forwards a VOHN response to the MTA call client 6200.
- the interaction of an exemplary embedded MTA and remote HPNA media adapter may best be illustrated in the context of a typical voice communication across the DOCSIS HFC network. The table set forth in FIG.
- the network is initially in an idle state.
- the MTA and CAS of the network gateway transmit a loop current feed (LCF) state indication to the remote media adapter that returns a loop open or on hook indication.
- the user initiates a communication by going off hook.
- the remote HPNA media adapter performs hook-switch monitoring on the local subscriber line interface (SLIC) and relays a loop closed, offhook state indication to the network gateway.
- the CAS logic detects an offhook state and forwards a detection event to the MTA.
- the MTA call client then instructs the
- the GCP logic to generate an offhook signal.
- the GCP logic generates an offhook signal which is forwarded to the MTA call client and transmitted out the QoS service logic to the call management server via the DOCSIS MAC and upstream modulator ofthe network gateway and the CMTS.
- the call management server typically would transmit a return signal via the CMTS, DOCSIS MAC and downstream demodulator ofthe network gateway to the MTA call client via the QoS service logic.
- the MTA call client preferably forwards that signal to the GCP logic that decodes the signal, typically play dial tone.
- the GCP logic would then signal the MTA call client to play dial tone.
- the MTA call client then sends a command to the remote media adapter via the VOHN interface and HPNA
- MAC/PHY to play dial tone. The user then hears a dial tone.
- the remote HPNA media adapter includes a DTMF detector that detects the dialed digits and generates DTMF tone on and tone off events that are forwarded to the MTA call client as events via the HPNA PHY/MAC and the VOHN interface.
- the MTA call client forwards the event to the GCP logic that encodes the dialed digits into a signaling message which is returned to the MTA call client.
- the MTA call client transmits the signaling message out the QoS service logic to the call management server via the DOCSIS MAC and upstream modulator of the network gateway and the CMTS .
- the call management server would then instruct a called party MTA to generate a ring to the called number.
- the CAS ofthe called MTA would detect an offhook condition and signal the call management server.
- the call management server then instructs the MTA call client via the CMTS, and downstream demodulator, DOCSIS MAC and QoS service logic ofthe network gateway to establish a voice connection with a given set of features, i.e. use echo cancellation, and silence suppression, use given coder etc.
- the MTA call client is given the IP address ofthe called party, to which the RTP voice packets should be sent.
- the MTA call client forwards the received message to the GCP logic that decodes the received message.
- the GCP logic generates attribute instructions for the remote HPNA media adapter such as, for example, encoding method, use of echo cancellation, security parameters, etc. which are communicated to the remote media adapter via the MTA call client, the VOHN interface and the HPNA MAC/PHY.
- Voice packets are then exchanged. For example, if the calling party speaks, the remote HPNA media adapter would process the voice and forward voice packets to the MTA call client via HPNA PHY/MAC and the VOHN interface.
- the MTA call client forwards those voice packets to the RTP logic that converts the packet from a protocol independent packet format to the RTP format.
- the RTP voice packets are then returned to the MTA which transmits the RTP voice packet to the CMTS via the QoS service logic and the DOCSIS MAC and upstream demodulator ofthe network gateway.
- the voice packets are then routed to the called party.
- voice packets from the called party are communicated to the MTA ofthe call client via the QoS service logic.
- the MTA call client forwards the RTP voice packets to the RTP logic that converts the packet from the RTP format to the protocol independent packet format.
- the protocol independent voice packets are returned to the MTA call client that forwards them to the VOHN interface.
- the remote HPNA media adapter decodes the packets and communicates a digital stream to the called party .Voice exchange would continue in a similar manner until an on hook condition is detected by either the calling or called party.
- the CAS would then forward an on hook detection event to its respective MTA.
- the MTA instructs the GCP logic to generate a hook detection signaling message that is returned to the MTA and forwarded to the call management server.
- the call management server generates a request to each MTA to terminate the voice comiection.
- Each MTA would forward the request to their respective GCP logic that instructs the remote HPNA media adapters to disable their respective voice encoders via the MTA, VOHN interface and HPNA MAC/PHY.
- Telephony calls in the other direction are similarly processed.
- the call management server instructs the MTA called client to ring a dialed number.
- the MTA called client instructs the GCP logic to generate a command to ring the dialed number.
- the command is then forwarded to the CAS via the MTA called client.
- the CAS generates a ring signal and forwards that signal to the VOHN interface for communication across the network to the remote HPNA media adapter.
- the MTA called client may also instruct the GCP logic to present call ID that preferably generates a command for the remote HPNA media adapter to present caller ID. If the user picks up the phone the CAS would detect an offhook condition and signal an offhook event back to the MTA.
- the MTA called client then instructs the GCP logic to create an offhook detection signaling message, which when created is returned to the MTA and forwarded to the external call management server via the QoS service logic, DOCSIS MAC and upstream modulator ofthe network gateway and the CMTS.
- a communication channel would again be established with a given set of attributes as previously described.
- the network gateway transmits CAS and CL AS S payload frames to a multicast MAC destination address that is associated with the line termination. In this way, ringing and caller ID messages are distributed to each remote HPNA media adapter bound to the line.
- the network gateway is responsible for timing of state transitions on the remote HPNA media adapter loop interface. The network gateway generates ring signal cadence and by timing ringer on and ringer off events and manages ring-trip removal. It is responsible for managing the timing between CAS state events and CLASS messages for on-hook and off-hook CLASS services, according to Bellcore GR-30. It is responsible for meeting for the ring-trip removal delay requirement.
- the Proxy Gateway performs hoolc- switch event detection based on the timing of hook-switch, events reported from the Media Adapter according to Bellcore GR-506.
- the Proxy Gateway is able to determine off-hook, on-hook and hook-flash events and report those events to the upstream telephony service.
- the network gateway may also transmit test payloads to remote HPNA media adapters to perform loop test and diagnostic functions on the line termination handled by the remote media adapter.
- a ping request payload requests that the receiving media adapter respond with a ping response payload containing the same payload data field as the request.
- An analog loopback payload requests that the receiving remote media adapter perform an analog loopback (i.e. as close to the SLIC interface as possible).
- subsequent voice payloads received should be played out (D/A conversion) andre-encoded (A/D conversion) for transmission upstream.
- a digital loopback payload requests that the receiving remote media adapter perform a digital loopback. Subsequent voice payloads received should be echoed back unchanged for transmission upstream.
- the described exemplary host application programming interface provides a software messaging interface between the MTA call client 6200 and the voice and data processor DSP.
- the HAPI 6210 facilitates the issuing of commands from the MIPS core via the MTA call client to the voice and data processor DSP as well the sending of events from the DSP to the MTA call client 6200.
- the HAPI interface 6210 can be scalable to support multiple channels as well as multiple DSPs.
- the HAPI interface 6210 is a thread safe environment, providing multi-threading capability to support multiple channels. Multi-threading provides multiple, simultaneously executing "threads" within a single application. The benefit of a multi-threaded application is similar to that of a multi-tasked operating system, the application may perform multiple tasks by using separate threads.
- an application programming interface (API) 7060 receives commands from and issues responses to the MTA call client 6200.
- the API 7060 processes incoming packets adding an additional header word to identify the channel that should process the packet as well as other processing parameters such as for example, packet type (i.e. voice or fax), packet length, etc.
- the API forwards processed API messages 7060(a) to a physical interface (firmware layer) 7080 that interfaces with the host port of the DSP underlying the voice and data processor so as to isolate the MTA call client software and the signal processing software from the underlying hardware.
- This methodology allows the software to be ported to various hardware platforms by porting only the hardware interface portions of the HAPI interface to the target hardware.
- the physical interface 7080 formats the message in accordance with the underlying DSP and forwards or transmits the message to the telephony algorithms executing on the DSP.
- the underlying DSP forwards processed packets, such as, for example, encoded voice packets, to the physical interface 7080.
- the physical interface 7080 preferably reformats the response into an API message.
- the underlying DSP also interrupts an APITask Thread 7100 that retrieves the processed API messages from the physical interface 7080.
- the APITask Thread 7100 determines whether the API message is an event such as, for example, a voice or fax packet or a DTMF detection which are forwarded directly to the MTA call client 7100(a), or a response to a command/request from the MTA call client.
- the MTA call client may command the voice and data processor to turn off the echo canceller.
- Such a command is preferably processed by the API interface 7060 to add the appropriate header word and forwarded to the physical interface 7080.
- the physical interface 7080 formats the message in accordance with the underlying DSP and issues the command to the underlying voice channel to turn off the echo canceller.
- a response is returned from the underlying DSP to the physical interface 7080.
- the physical interface 7080 formats the response into an API message and forwards it to the APITask thread 7100 which then forwards it as an API response to the API interface 7060.
- API interface 7060 correlates the API responses received from the APITask thread 7100 to the corresponding command/request that prompted the response and forwards a HAPI response to the MTA call client 6200.
- an exemplary embedded MTA and the voice and data processor may best be illustrated in the context of a typical voice communication across the DOCSIS HFC network.
- the user initiates a communication by going offhook.
- the CAS detects the offhook condition from the SLIC and sends an offhook event to the MTA call client.
- the MTA call client then instructs the GCP logic to generate a offhook signal.
- the GCP logic generates an offhook signal which is forwarded to the MTA call client and transmitted out the QoS service logic to the call management server via the DOCSIS MAC and upstream modulator ofthe network gateway and the CMTS.
- the call management server typically would transmit a return signal via the CMTS, DOCSIS MAC and downstream demodulator ofthe network gateway to the MTA call client via the QoS service logic.
- the MTA call client preferably forwards that signal to the
- the GCP logic that decodes the signal, typically play dial tone.
- the GCP logic would then signal the MTA call client to play dial tone.
- the MTA call client then sends a command to the voice and data processor via the HAPI interface to play dial tone.
- the user then hears a dial tone.
- a dial tone Upon hearing a dial tone a user will typically dial a number.
- the voice and data processor includes a DTMF detector which detects the dialed digits and forwards the detected digits to the MTA call client as events via the HAPI interface.
- the MTA call client forwards the event to the GCP logic that encodes the dialed digits into a signaling message that is returned to the MTA call client.
- the MTA call client transmits the signaling message out the QoS service logic to the call management server via the DOCSIS MAC and upstream modulator ofthe network gateway and the CMTS.
- the call management server would then instruct a called party MTA to generate a ring to the called number. If the called number answers by going offhook, the CAS ofthe called MTA would detect an offhook condition and signal the call management server.
- the call management server then instructs the MTA call client via the CMTS, and downstream demodulator, DOCSIS MAC and QoS service logic ofthe network gateway, to establish a voice connection with a given set of features, i.e. use echo cancellation, and silence suppression, use given coder etc.
- the MTA call client is given the IP address ofthe called party to which the RTP voice packets should be sent.
- the MTA call client forwards the received message to the GCP logic that decodes the received message.
- the GCP logic generates attribute instructions for the voice and data processor such as, for example, encoding method, use of echo cancellation, security parameters, etc. that are communicated to the voice and data processor via the MTA call client and the HAPI interface.
- Voice packets are then exchanged. For example, if the calling party speaks, the voice and data processor would process the voice and forward voice packets to the MTA call client via the HAPI interface.
- the MTA call client forwards the voice packet to the RTP logic that converts the packet from a protocol independent packet format to the RTP format.
- the RTP voice packets are then returned to the MTA which transmits the RTP voice packet to the CMTS via the QoS service logic and the DOCSIS MAC and upstream demodulator ofthe network gateway.
- the voice packets are then routed to the called party.
- voice packets from the called party are communicated to the MTA of the call client via the QoS service logic.
- the MTA call client forwards the RTP voice packets to the RTP logic that converts the packet from the RTP format to the protocol independent packet format.
- the protocol independent voice packets are returned to the MTA call client that forwards them to the voice and data processor via the HAPI interface.
- the voice and data processor decodes the packets and communicates a digital stream to the called party. Voice exchange would continue in a similar manner until an on hook condition is detected by either the calling or called party.
- the CAS would then forward an on hook detection event to its respective MTA.
- the MTA instructs the GCP logic to generate a hook detection signaling message which is returned to the MTA and forwarded to the call management server.
- the call management server generates a request to play (dial tone, silence or receiver offhook) which is forwarded to the opposite MTA.
- the MTA would forward the request to the GCP logic which would then instruct the voice and data processor to play dial tone via the MTA and HAPI interface.
- Telephony calls in the other direction are similarly processed.
- the call management server instructs the MTA called client to ring a dialed number.
- the MTA called client instructs the GCP logic to generate a command to ring the dialed number.
- the command is then forwarded to the CAS via the MTA called client.
- the CAS generates a ring signal and forwards that signal to the SLIC that then rings the called telephony device.
- the MTA called client may also instruct the GCP logic to present call ID that preferably generates a command for the voice and data processor to present caller ID. If the user picks up the phone, the CAS would detect an offhook condition and signal an offhook event back to the MTA. The MTA called client instructs the GCP logic to create an offhook detection signaling message, which when created is returned to the
- the described exemplary channel associated signaling (CAS) logic 6320 utilizes a foreign exchange office (FXO) interface to provide exchange of commands and detection of events between the MTA call client 6200 and standard commercial analog loop/ground start devices such as, for example, plain old telephone sets (POTS), group three facsimiles, modems, answering machine or other similar devices.
- the CAS logic 6320 can operate in switch mode, such that ABCD bits 7120 are terminated within the CAS logic.
- the MTA call client interfaces with the CAS logic through high level commands 7140 and events 7160. For example, if the CAS logic detects a phone going off the hook, a detection event is forwarded to the MTA call client 6200 which may then notify the call management server as previously described.
- the MTA call client is also able to issue high level commands to the CAS logic.
- the MTA call client 6200 sends a ring generation profile to the CAS logic.
- the CAS logic reformats the command into raw CAS bits by FXO termination logic 7200 to control the external interface via a hardware abstraction layer (HAL) 7220.
- the HAL 7220 provides a physical interface to the connected SLIC.
- the HAL 7220 formats message signals in accordance with the underlying SLIC and forwards or transmits the message signal to the connected telephony device via the SLIC 7240.
- Ringing a telephony device via the HPNA network proceeds similarly, wherein raw CAS bits generated by the FXO termination logic are forwarded to the remote HPNA media adapter 6120 via the HPNA MAC/PHY 6160. Further, detected events, signaled from the hardware SLIC 7240 or the remote HPNA media adapter 6120, including on/off hook, flash hook and potentially pulse dial, are returned to the FXO termination logic 7200 from the hardware abstraction layer or HPNA MAC/PHY 6160 respectively as raw CAS bits.
- the FXO termination logic 7200 preferably verifies the integrity of the detected event and forwards a detected event message to the MTA call client.
- the FXO termination logic 7200 includes a state machine that monitors detected events signaled from the SLIC 7240 via the hardware abstraction layer 7220 or the HPNA remote media adapter 6120 via the HPNA MAC/PHY 6160.
- the FXO termination logic 7200 qualifies detected events to determine if a valid on/off hook, flash hook or pulse dial has been detected.
- the FXO termination logic analyzes the period ofthe received signal to determine valid flash hook or pulse dial conditions.
- the FXO termination logic 7200 includes a state machine that is associated with the ringing of connected phones. When the MTA call client issues a command to ring a connected phone with a pre-defined cadence, the associated FXO termination "state machine will ring the connected phone in accordance with the MTA command.
- the described exemplary voice and data processor is preferably implemented with a programmable DSP software architecture (see FIG. 54).
- the programmable DSP 6000 is effectively hidden within the embedded communications software layer.
- the software layer binds all core DSP algorithms together, interfaces the DSP hardware to the host, and provides low level services such as the allocation of resources to allow higher level software programs to run.
- the MTA call client 6200 provides overall executive control and system management, and directly interfaces a DSP seiver 7300 to the host MIPS core (see to FIG. 3).
- the DSP server 7300 provides DSP resource management and telecommunications signal processing.
- Operating below the DSP server layer are a number of physical devices (PXD) 7320a, 7320b, 7320c. Each PXD provides an interface between the DSP server 7300 and an external telephony device (not shown) via a hardware abstraction layer (HAL) 7340.
- HAL hardware abstraction layer
- the DSP server 7300 includes a resource manager 7360 which receives commands from, forwards events to, and exchanges data with the MTA call client 6200.
- An application programming interface 7380 provides a software interface between the user MTA call client 6200 and the resource manager 7360.
- the resource manager 7360 manages the internal / external program and data memory ofthe DSP 6000. In addition the resource manager dynamically allocates DSP resources, performs command routing as well as other general purpose functions.
- the DSP server 7300 also includes virtual device drivers (VHDs) 7400a, 7400b, 7400c.
- the VHDs are a collection of software objects that control the operation of and provide the facility for real time signal processing.
- Each VHD 7400a, 7400b, 7400c includes an inbound and outbound media queue (not shown) and a library of signal processing services specific to that VHD 7400a, 7400b, 7400c.
- each VHD 7400a, 7400b, 7400c is a complete self-contained software module for processing a single channel with a number of different telephony devices. Multiple channel capability can be achieved by adding VHDs to the DSP server 7300.
- the resource manager 7360 dynamically controls the creation and deletion of VHDs and services.
- a switchboard 7420 in the DSP server 7300 dynamically inter-comiects the PXDs 7320a, 7320b, 7320c with the VHDs 7400a, 7400b, 7400c.
- Each PXD 7320a, 7320b, 7320c is a collection of software objects which provide signal conditioning for one external telephony device.
- a PXD may provide volume and gain control for signals from a telephony device prior to communication with the switchboard 7420.
- Multiple telephony functionalities can be supported on a single channel by connecting multiple PXDs, one for each telephony device, to a single VHD via the switchboard 7420. Connections within the switchboard 7420 are managed by the user application layer 7380 via a set of
- API commands to the resource manager 7360 The number of PXDs and VHDs is expandable, and limited only by the memory size and the MIPS (millions instructions per second) ofthe underlying hardware.
- a hardware abstraction layer (HAL) 7340 interfaces directly with the underlying DSP 6000 hardware (see FIG. 55) and exchanges telephony signals between the external telephony devices and the PXDs.
- the HAL 7340 includes basic hardware interface routines, including DSP initialization, target hardware control, codec sampling, and hardware control interface routines.
- the DSP initialization routine is invoked by the user application layer 7380 to initiate the initialization ofthe signal processing system.
- the DSP initialization sets up the internal registers of the signal processing system for memory organization, interrupt handling, timer initialization, and DSP configuration.
- Target hardware initialization involves the initialization of all hardware devices and circuits external to the signal processing system.
- the HAL 7340 is a physical firmware layer that isolates the communications software from the underlying hardware. This methodology allows the communications software to be ported to various hardware platforms by porting only the affected portions ofthe HAL 7340 to the target hardware.
- the exemplary software architecture described above can be integrated into numerous telecommunications products.
- the software architecture is designed to support telephony signals between telephony devices (and/or circuit switched networks) and packet based networks.
- a network VHD (NetVHD) is used to provide a single channel of operation and provide the signal processing services for transparently managing voice, fax, and modem data across a variety of packet based networks. More particularly, the
- NetVHD encodes and packetizes DTMF, voice, fax, and modem data received from various telephony devices and/or circuit switched networks and transmits the packets to the user application layer.
- the NetVHD disassembles DTMF, voice, fax, and modem data from the user application layer, decodes the packets into signals, and transmits the signals to the circuit switched network or device.
- the NetVHD includes four operational modes, namely voice mode 7500, voiceband data mode 7520, fax relay mode 7540, and data relay mode 7560.
- voice mode 7500 voiceband data mode 7520
- fax relay mode 7540 voiceband data mode 7540
- data relay mode 7560 data relay mode 7560
- the resource manager invokes various services. For example, in the voice mode 7500, the resource manager invokes call discrimination 7580, packet voice exchange 7600, and packet tone exchange 7620.
- the packet voice exchange 7600 may employ numerous voice compression algorithms, including, among others, Linear 128 kbps, G.711 u-law/A-law 64 kbps (ITU Recommendation G.711 (1988) - Pulse code modulation (PCM) of voice frequencies), G.726 16/24/32/40 kbps (ITU Recommendation G.726 (12/90) - 40, 32, 24, 16 kbit/s Adaptive Differential Pulse Code Modulation (ADPCM)), G.729A 8 kbps (Annex A (11/96) to ITU Recommendation G.729 - Coding of speech at 8 kbit/s using conjugate structure algebraic-code-excited linear-prediction (CS-ACELP) - Annex A: Reduced complexity 8 kbit/s CS-ACELP speech codec), and G.723 5.3/6.3 kbps (ITU Recommendation G.723.1 (03/96) - Dual rate code
- the packet voice exchange 7600 is common to both the voice mode 7500 and the voiceband data mode 7520.
- the resource manager invokes the packet voice exchange 7600 for transparently exchanging data without modification (other than packetization) between the telephony device (or circuit switched network) and the packet based network.
- the human speech detector service 7680 is also invoked by the resource manager.
- the human speech detector 7680 monitors the signal from the near end telephony device for speech.
- an event is forwarded to the resource manager which, in turn, causes the resource manager to terminate the human speech detector service 7680 and invoke the appropriate services for the voice mode 7500 (i.e., the call discriminator, the packet tone exchange, and the packet voice exchange).
- the resource manager invoices a packet fax data exchange 7640 service.
- the packet fax exchange 7640 may employ various data pumps including, among others, V.17 which can operate up to 14,400 bits per second, V.29 which uses a 1700-Hz carrier that is varied in both phase and amplitude, resulting in 16 combinations of 8 phases and 4 amplitudes which can operate up to 9600 bits per second, and V.27ter which can operate up to 4800 bits per second.
- the resource manager invokes a packet modem data exchange 7660 service in the data relay mode 7560.
- the packet modem data exchange 7660 may employ various data pumps including, among others, V.22bis/V.22 with data rates up to 2400 bits per second, V.32bis/V.32 which enables full-duplex transmission at 14,400 bits per second, and V.34 which operates up to 33,600 bits per second.
- V.22bis/V.22 with data rates up to 2400 bits per second
- V.32bis/V.32 which enables full-duplex transmission at 14,400 bits per second
- V.34 which operates up to 33,600 bits per second.
- the ITU Recommendations setting forth the standards for the foregoing data pumps are incorporated herein by reference as if set forth in full.
- the user application layer does not need to manage any service directly.
- the user application layer manages the session using high-level commands directed to the NetVHD, which in turn directly runs the services.
- the user application layer can access more detailed parameters of any service if necessary to change, by way of example, default functions for any particular application.
- the user application layer opens the NetVHD and connects it to the appropriate PXD.
- the user application then may configure various operational parameters ofthe NetVHD, including, among others, default voice compression (Linear, G.711, G.726, G.723.1, G.723.1A, G.729A, G.729B), fax data pump (Binary, V.17, V.29, V.27ter), and modem data pump (Binary,
- the user application layer then loads an appropriate signaling service (not shown) into the NetVHD, configures it and sets the NetVHD to the On-hook state.
- the user application In response to events from the signaling service (not shown) via a near end telephony device (hookswitch), or signal packets from the far end, the user application will set the NetVHD to the appropriate off-hook state, typically voice mode.
- the packet tone exchange will generate dial tone. Once a DTMF tone is detected, the dial tone is terminated.
- the DTMF tones are packetized and forwarded to the user application layer for transmission on the packet based network.
- the packet tone exchange could also play ringing tone back to the near end telephony device (when a far end telephony device is being rung), and a busy tone if the far end telephony device is unavailable.
- Other tones may also be supported to indicate all circuits are busy, or an invalid sequence of DTMF digits were entered on the near end telephony device.
- the call discriminator is responsible for differentiating between a voice and machine call by detecting the presence of a 2100 Hz. tone (as in the case when the telephony device is a fax or a modem), a 1100 Hz. tone or V.21 modulated high level data link control (HDLC) flags (as in the case when the telephony device is a fax). If a 1100 Hz. tone, or V.21 modulated HDLC flags are detected, a calling fax machine is recognized. The NetVHD then terminates the voice mode and invokes the packet fax exchange to process the call. If however, 2100 Hz tone is detected, the NetVHD terminates voice mode and invokes the packet data exchange.
- a 2100 Hz. tone as in the case when the telephony device is a fax or a modem
- V.21 modulated high level data link control (HDLC) flags as in the case when the telephony device is a fax.
- the packet data exchange service further differentiates between a fax and modem by continuing to monitor the incoming signal for V.21 modulated HDLC flags, which if present, indicate that a fax connection is in progress . If HDLC flags are detected, the NetVHD terminates packet data exchange service and initiates packet fax exchange service. Otherwise, the packet data exchange service remains operative. In the absence of an 1100 or 2100 Hz. tone, or V.21 modulated HDLC flags the voice mode remains operative.
- Voice Mode Voice mode provides signal processing of voice signals.
- Voice mode enables the transmission of voice over a packet based system such as Voice over IP (VoIP, H.323), Voice over Frame Relay (VoFR, FRF-11), Voice Telephony over ATM (VTOA), or any other proprietary network.
- VoIP Voice over IP
- VoIPFR Voice over Frame Relay
- VTOA Voice Telephony over ATM
- the voice mode should also permit voice to be carried over traditional media such as time division multiplex (TDM) networks and voice storage and playback systems.
- TDM time division multiplex
- the PXDs for the voice mode provide echo cancellation, gain, and automatic gain control.
- the network VHD invokes numerous services in the voice mode including call discrimination, packet voice exchange, and packet tone exchange. These network VHD services operate together to provide: (1) an encoder system with DTMF detection, call progress tone detection, voice activity detection, voice compression, and comfort noise estimation, and (2) a decoder system with delay compensation, voice decoding, DTMF generation, comfort noise generation and lost frame recoveiy.
- the services invoked by the network VHD in the voice mode and the associated PXD are shown schematically in FIG. 65.
- the PXD 8060 provides two way communication with a telephone or a circuit switched network, such as a PSTN line (e.g.
- PCM pulse code modulated
- the incoming PCM signal 8060a is initially processed by the PXD 8060 to remove far end echos.
- echo in telephone systems is the return ofthe talker' s voice resulting from the operation ofthe hybrid with its two- four wire conversion. If there is low end-to-end delay, echo from the far end is equivalent to side-tone (echo from the near-end), and therefore, not a problem.
- Side-tone gives users feedback as to how loud they are talking, and indeed, without side-tone, users tend to talk too loud.
- far end echo delays of more than about 10 to 30 msec significantly degrade the voice quality and are a major annoyance to the user.
- An echo canceller 8070 is used to remove echos from far end speech present on the incoming PCM signal 8060a before routing the incoming PCM signal 8060a back to the far end user.
- the echo canceller 8070 samples an outgoing PCM signal 8060b from the far end user, filters it, and combines it with the incoming PCM signal 8060a.
- the echo canceller 8070 is followed by a non-linear processor (NLP) 8072 which may mute the digital voice samples when far end speech is detected in the absence of near end speech.
- NLP non-linear processor
- the echo canceller 8070 may also inject comfort noise which in the absence of near end speech may be roughly at the same level as the true background noise or at a fixed level.
- the power level ofthe digital voice samples is normalized by an automatic gain control (AGC) 8074 to ensure that the conversation is of an acceptable loudness.
- AGC automatic gain control
- the AGC 8074 is designed to adapt slowly, although it should adapt fairly quickly if overflow or clipping is detected. The AGC adaptation should be held fixed if the NLP 8072 is activated.
- the digital voice samples are placed in the media queue 8066 in the network VHD 8062 via the switchboard 8032'.
- the network VHD 8062 invokes three services, namely call discrimination, packet voice exchange, and packet tone exchange.
- the call discriminator 8068 analyzes the digital voice samples from the media queue to determine whether a 2100 Hz, a 1100 Hz. tone or V.21 modulated HDLC flags are present. As described above with reference to FIG. 64, if either tone or HDLC flags are detected, the voice mode services are terminated and the appropriate service for fax or modem operation is initiated. In the absence of a 2100 Hz, a 1100 Hz.
- the digital voice samples are coupled to the encoder system which includes a voice encoder 8082, a voice activity detector (VAD) 8080, a comfort noise estimator 8081, a DTMF detector 8076, a call progress tone detector 8077 and a packetization engine 8078.
- Typical telephone conversations have as much as sixty percent silence or inactive content. Therefore, high bandwidth savings can be realized if digital voice samples are suppressed during these periods.
- the VAD 8080 operating under the packet voice exchange, is used to accomplish this function.
- the VAD 8080 attempts to detect digital voice samples that do not contain active speech.
- the comfort noise estimator 8081 couples silence identifier (SID) packets to the packetization engine 8078.
- SID silence identifier
- the SID packets contain voice parameters that allow the reconstruction ofthe background noise at the far end.
- the VAD 8080 may be sensitive to the change in the NLP 8072. For example, when the NLP 8072 is activated, the VAD 8080 may immediately declare that voice is inactive. In that instance, the VAD 8080 may have problems tracking the true background noise level. If the echo canceller 8070 generates comfort noise during periods of inactive speech, it may have a different spectral characteristic from the true background noise .
- the VAD 8080 may detect a change in noise character when the NLP 8072 is activated (or deactivated) and declare the comfort noise as active speech. For these reasons, the VAD 8080 should be disabled when the NLP 8072 is activated. This is accomplished by a "NLP on" message 8072a passed from the NLP 8072 to the VAD 8080.
- the voice encoder 8082 operating under the packet voice exchange, can be a straight 16 bit PCM encoder or any voice encoder which supports one or more ofthe standards promulgated by ITU.
- the encoded digital voice samples are formatted into a voice packet (or packets) by the packetization engine 8078. These voice packets are formatted according to an applications protocol and output to the host (not shown).
- the voice encoder 8082 is invoked when digital voice samples with speech are detected by the VAD 8080. Since the packetization interval may be a multiple of an encoding interval, both the VAD 8080 and the packetization engine 8078 preferably cooperate to decide whether or not the voice encoder 8082 is invoked.
- the packetization interval is 10 msec and the encoder interval is 5 msec (a frame of digital voice samples is 5 ms)
- a frame containing active speech should cause the subsequent frame to be placed in the 10 ms packet regardless of the VAD state during that subsequent frame.
- This interaction can be accomplished by the VAD 8080 passing an "active" flag 8080a to the packetization engine 8078, and the packetization engine 8078 controlling whether or not the voice encoder 8082 is invoked.
- the VAD 8080 is applied after the AGC 8074.
- a DTMF detector 8076 determines whether or not there is a DTMF signal present at the near end.
- the DTMF detector 8076 also provides a pre-detection flag 8076a which indicates whether or not it is likely that the digital voice sample might be a portion of a
- the pre-detection flag 8076a is relayed to the packetization engine 8078 instructing it to begin holding voice packets. If the DTMF detector 8076 ultimately detects a DTMF signal, the voice packets are discarded, and the DTMF signal is coupled to the packetization engine 8078. Otherwise the voice packets are ultimately released from the packetization engine 8078 to the host (not shown).
- the benefit of this method is that there is only a temporary impact on voice packet delay when a DTMF signal is pre-detected in error, and not a constant buffering delay.
- the user application layer can adaptively control whether voice packets are held while the pre-detection flag 8076a is active.
- a call progress tone detector 8077 also operates under the packet tone exchange to determine whether a precise signaling tone is present at the near end.
- Call progress tones are those which indicate what is happening to dialed phone calls. Conditions like busy line, ringing called party, bad number, and others each have distinctive tone frequencies and cadences assigned them.
- the call progress tone detector 8077 monitors the call progress state, and forwards a call progress tone signal to the packetization engine to be packetized and transmitted across the packet based network.
- the call progress tone detector may also provide information regarding the near end hook status which is relevant to the signal processing tasks. If the hook status is on hook, the VAD should preferably mark all frames as inactive, DTMF detection should be disabled, and SID packets should only be transferred if they are required to keep the connection alive.
- the decoding system ofthe network VHD 8062 essentially performs the inverse operation ofthe encoding system.
- the decoding system ofthe network VHD 8062 comprises a depacketizing engine 8084, a voice queue 8086, a DTMF queue 8088, a call progress tone queue 8087, avoice synchronizer 8090, aDTMF synchronizer 8102, a precision tone synchronizer 8103, a voice decoder 8096, a VAD 8098, a comfort noise estimator 8100, a comfort noise generator 8092, a lost packet recovery engine 8094, a tone generator 8104, and a call progress tone generator 8105.
- the depacketizing engine 8084 identifies the type of packets received from the host (i.e., voice packet, DTMF packet, call progress tone packet, SID packet), transforms them into frames which are protocol independent. The depacketizing engine 8084 then transfers the voice frames (or voice parameters in the case of SID packets) into the voice queue 8086, transfers the DTMF frames into the
- DTMF queue 8088 and transfers the call progress tones into the call progress tone queue 8087. In this manner, the remaining tasks are, by and large, protocol independent.
- a jitter buffer is utilized to compensate for network impairments such as delay jitter caused by packets not arriving at the same time or in the same order in which they were transmitted.
- the j itter buffer compensates for lost packets that occur on occasion when the network is heavily congested.
- the jitter buffer for voice includes a voice synchronizer 8090 that operates in conjunction with a voice queue 8086 to provide an isochronous stream of voice frames to the voice decoder 8096.
- Sequence numbers embedded into the voice packets at the far end can be used to detect lost packets, packets arriving out of order, and short silence periods.
- the voice synchronizer 8090 can analyze the sequence numbers, enabling the comfort noise generator 8092 during short silence periods and performing voice frame repeats via the lost packet recovery engine 8094 when voice packets are lost. SID packets can also be used as an indicator of silent periods causing the voice synchronizer 8090 to enable the comfort noise generator 8092. Otherwise, during far end active speech, the voice synchronizer 8090 couples voice frames from the voice queue 8086 in an isochronous stream to the voice decoder 8096.
- the voice decoder 8096 decodes the voice frames into digital voice samples suitable for transmission on a circuit switched network, such as a 64kb/s PCM signal for a PSTN line.
- the output of the voice decoder 8096 (or the comfort noise generator 8092 or lost packet recovery engine 8094 if enabled) is written into a media queue 8106 for transmission to the PXD 8060.
- the comfort noise generator 8092 provides background noise to the near end user during silent periods. If the protocol supports SID packets, (and these are supported for example by VTOA, and VoIP), the comfort noise estimator at the far end encoding system should transmit SID packets.
- the background noise can be reconstructed by the near end comfort noise generator 8092 from the voice parameters in the SID packets buffered in the voice queue 8086.
- the SID packets are optional, and other far end users may not support SID packets at all. In these systems, the voice synchronizer 8090 must continue to operate properly.
- the voice parameters of the background noise at the far end can be determined by running the VAD 8098 at the voice decoder 8096 in series with a comfort noise estimator 8100.
- the voice synchronizer 8090 is not dependent upon sequence numbers embedded in the voice packet.
- the voice synchronizer 8090 can invoke a number of mechanisms to compensate for delay jitter in these systems.
- the voice synchronizer 8090 can assume that the voice queue 8086 is in an underflow condition due to excess j itter and perform packet repeats by enabling the lost frame recovery engine 8094.
- the VAD 8098 at the voice decoder 8096 can be used to estimate whether or not the underflow ofthe voice queue 8086 was due to the onset of a silence period or due to packet loss. In this instance, the spectrum and/or the energy of the digital voice samples can be estimated and the result 8098a fed back to the voice synchronizer 8090.
- the voice synchronizer 8090 can then invoke the lost packet recovery engine 8094 during voice packet losses and the comfort noise generator 8092 during silent periods.
- DTMF packets When DTMF packets arrive, they are depacketized by the depacketizing engine 8084. DTMF frames at the output ofthe depacketizing engine 8084 are written into the DTMF queue 8088.
- the DTMF synchronizer 8102 couples the DTMF frames from the DTMF queue 8088 to the tone generator 8104. Much like the voice synchronizer, the DTMF synchronizer 8102 is employed to provide an isochronous stream of DTMF frames to the tone generator 8104.
- voice frames should be suppressed. To some extent, this is protocol dependent. However, the capability to flush the voice queue 8086 to ensure that the voice frames do not interfere with DTMF generation is desirable.
- old voice frames that may be queued are discarded when DTMF packets arrive. This ensures that there is a significant inter-digit gap before DTMF tones are generated. This is achieved by a "tone present" message 8088a passed between the DTMF queue and the voice synchronizer 8090.
- the tone generator 8104 converts the DTMF signals into a DTMF tone suitable for a standard digital or analog telephone. The tone generator 8104 overwrites the media queue 8106 to prevent leakage through the voice path and to ensure that the DTMF tones are not too noisy. There is also apossibility that DTMF tone may be fed back as an echo into the DTMF detector 8076.
- the DTMF detector 8076 can be disabled entirely (or disabled only for the digit being generated) during DTMF tone generation. This is achieved by a "tone on" message 8104a passed between the tone generator 8104 and the DTMF detector 8076.
- the NLP 8072 can be activated while generating DTMF tones.
- call progress tone packets When call progress tone packets arrive, they are depacketized by the depacketizing engine 8084. Call progress tone frames at the output of the depacketizing engine 8084 are written into the call progress tone queue 8087.
- the call progress tone synchronizer 8103 couples the call progress tone frames from the call progress tone queue 8087 to a call progress tone generator 8105.
- the call progress tone synchronizer 8103 is employed to provide an isochronous stream of call progress tone frames to the call progress tone generator 8105.
- voice frames should be suppressed. To some extent, this is protocol dependent. However, the capability to flush the voice queue 8086 to ensure that the voice frames do not interfere with call progress tone generation is desirable. Essentially, old voice frames which may be queued are discarded when call progress tone packets arrive to ensure that there is a significant inter-digit gap before call progress tones are generated. This is achieved by a "tone present" message 8087a passed between the call progress tone queue 8087 and the voice synchronizer 8090.
- the call progress tone generator 8105 converts the call progress tone signals into a call progress tone suitable for a standard digital or analog telephone.
- the call progress tone generator 8105 overwrites the media queue 8106 to prevent leakage through the voice path and to ensure that the call progress tones are not too noisy.
- the outgoing PCM signal in the media queue 8106 is coupled to the PXD 8060 via the switchboard 8032'.
- the outgoing PCM signal is coupled to an amplifier 8108 before being outputted on the PCM output line 8060b.
- Fax relay mode provides signal processing of fax signals. Fax relay mode enables the transmission of fax signals over a packet based system such as VoIP, VoFR, FRF-11, VTOA, or any other proprietary network.
- a first fax machine is called a sending fax that is connected to the sending network gateway through a PSTN.
- the sending network gateway is connected to a CMTS via a HFC network. Additional fax machines may be on line connections coupled to the other end ofthe CMTS via a network gateway and a HFC network, or offline connections, coupled to the CMTS for example by a telephone network gateway and a PSTN.
- the transfer of fax signals over packet based networks may be accomplished by at least three alternative methods.
- fax data signals are exchanged in real time.
- the sending and receiving fax machines are spoofed to allow transmission delays plus jitter of up to about 1.2 seconds.
- the second, store and forward mode is a non real time method of transferring fax data signals.
- the fax communication is transacted locally, stored into memoiy and transmitted to the destination fax machine at a subsequent time.
- the third mode is a combination of store and forward mode with minimal spoofing to provide an approximate emulation of a typical fax connection.
- the network VHD invokes the packet fax data exchange.
- the packet fax data exchange provides demodulation and re- modulation of fax data signals. This approach results in considerable bandwidth savings since only the underlying unmodulated data signals are transmitted across the packet based network.
- the packet fax data exchange also provides compensation for network jitter with a jitter buffer similar to that invoked in the packet voice exchange. Additionally, the packet fax data exchange compensates for lost data packets with error correction processing. Spoofing may also be provided during various stages ofthe procedure between the fax machines to keep the connection alive.
- the packet fax data exchange is divided into two basic functional units, a demodulation system and a re-modulation system.
- the network VHD couples fax data signals from a circuit switched network, or a fax machine, to the packet based network.
- the network VHD couples fax data signals from the packet network to the switched circuit network, or a fax machine directly.
- the sending and receiving fax machines are spoofed to accommodate network delays plus j itter.
- the packet fax data exchange can accommodate a total delay of up to about 1.2 seconds.
- the packet fax data exchange supports error correction mode (ECM) relay functionality, although a full ECM implementation is typically not required.
- ECM error correction mode
- the packet fax data exchange should preferably preserve the typical call duration required for a fax session over a PSTN/ISDN when exchanging fax data signals between two terminals.
- the packet fax data exchange for the real time exchange of fax data signals between a circuit switched network and a packet based network is shown schematically in FIG.66.
- a connecting PXD (not shown) connecting the fax machine to the switch board 8032' is transparent, although those skilled in the art will appreciate that various signal conditioning algorithms could be programmed into PXD such as echo cancellation and gain.
- the incoming fax data signal 8390a is coupled to the demodulation system of the packet fax data exchange operating in the network VHD via the switchboard 8032'.
- the incoming fax data signal 8390a is received and buffered in an ingress media queue 8390.
- a V.21 data pump 8392 demodulates incoming T.30 message so that T.30 relay logic 8394 can decode the received T.30 messages 8394a.
- Local T.30 indications 8394b are packetized by a packetization engine 8396 and if required, translated into T.38 packets via a T.38 shim 8398 for transmission to a T.38 compliant remote network gateway
- the V.21 data pump 8392 is selectively enabled/disabled 8394c by the T.30 relay logic 8394 in accordance with the reception/ transmission ofthe T.30 messages or fax data signals.
- the V.21 data pump 8392 is common to the demodulation and re-modulation system.
- the V.21 data pump 8392 communicates T.30 messages such as for example called station tone (CED) and calling station tone (CNG) to support fax setup between a local fax device (not shown) and a remote fax device (not shown) via the remote network gateway.
- CED station tone
- CNG calling station tone
- the demodulation system further includes a receive fax data pump 8400 which demodulates the fax data signals during the data transfer phase.
- the receive fax data pump 8400 supports the V.27ter standard for fax data signal transfer at 2400/4800 bps, the V.29 standard for fax data signal transfer at 7200/9600 bps, as well as the V.17 standard for fax data signal transfer at 7200/9600/12000/14400 bps.
- the V.34 fax standard, once approved, may also be supported.
- the T.30 relay logic 8394 enables / disables
- receive ECM relay logic 8402 performs high level data link control( HDLC )de-framing, including bit de-stuffing and preamble removal on ECM frames contained in the data packets .
- the resulting fax data signals are then packetized by the packetization engine 8396 and communicated across the packet based network.
- the T.30 relay logic 8394 selectively enables / disables 8394e the receive ECM relay logic 8402 in accordance with the error correction mode of operation.
- incoming data packets are first translated from a T.38 packet format to aprotocol independent format by the T.38 packet shim 8398.
- the data packets are then de-packetized by a depacketizing engine 8406.
- the data packets may contain T.30 messages or fax data signals.
- the T.30 relay logic 8394 reformats the remote T.30 indications 8394f and forwards the resulting T.30 indications to the V.21 data pump 8392.
- the modulated output ofthe V.21 data pump 8392 is forwarded to an egress media queue 8408 for transmission in either analog format or after suitable conversion, as 64 kbps PCM samples to the local fax device over a circuit switched network, such as for example a PSTN line.
- De-packetized fax data signals are transferred from the depacketizing engine 8406 to a jitter buffer 8410.
- ECM relay logic 8412 performs HDLC de-framing, including bit stuffing and preamble addition on ECM frames.
- the transmitting ECM relay logic 8412 forwards the fax data signals, (in the appropriate format) to a transmit fax data pump 8414 which modulates the fax data signals and outputs 8 KHz digital samples to the egress media queue 8408.
- the T.30 relay logic 8394 selectively enables/disables (8394g) the transmit ECM relay logic 8412 in accordance with the error correction mode of operation.
- the transmit fax data pump 8414 supports the V.27ter standard for fax data signal transfer at 2400/4800 bps, the
- the T.30 relay logic selectively enables/disables (8394h) the transmit fax data pump 8414 in accordance with the transmission ofthe fax data signals or the T.30 message samples. If the jitter buffer 8410 underflows, a buffer low indication 8410a is coupled to spoofing logic 8416.
- the spoofing logic 8416 Upon receipt of a buffer low indication during the transmission of a fax data signal, the spoofing logic 8416 inserts "spoofed data" at the appropriate place in the fax data signals via the transmit fax data pump 8414 until the jitter buffer 8410 is filled to a pre-determined level, at which time the fax data signals are transferred out of the jitter buffer 8410. Similarly, during the transmission of T.30 message indications, the spoofing logic 8416 can insert "spoofed data" at the appropriate place in the T.30 message samples via the V.21 data pump 8392.
- An exemplary fax relay is disclosed U.S. Patent Application No.
- Data relay mode provides full duplex signal processing of data signals.
- Data relay mode enables the transmission of data signals over a packet based system such as VoIP, VoFR, FRF-11 , VTOA, or any other proprietary network.
- the data relay mode should also permit data signals to be carried over traditional media such as TDM.
- Network gateways support the exchange of data signals other network gateways via a HFC network and CMTS or offline devices via for example a circuit switched network such as the PSTN.
- the first modem is referred to as a call modem.
- Far end modems are typically called answer modems.
- a local modem connection is established on each end of the packet based network.
- the call modem and the call network gateway establish a local modem connection, as does the destination answer modem and its respective answer network gateway.
- data signals are relayed across the packet based network.
- the call network gateway demodulates the data signal and formats the demodulated data signal for the particular packet based network.
- the answer network gateway compensates for network impairments and remodulates the encoded data in a format suitable for the destination answer modem. This approach results in considerable bandwidth savings since only the underlying demodulated data signals are transmitted across the packet based network.
- the packet data modem exchange In the data relay mode, the packet data modem exchange provides demodulation and modulation of data signals. With full duplex capability, both modulation and demodulation of data signals can be performed simultaneously.
- the packet data modem exchange also provides compensation for network jitter with a jitter buffer similar to that invoked in the packet voice exchange.
- the packet data modem exchange compensates for system clockjitter between modems with a dynamic phase adjustment and resampling mechanism. Spoofing may also be provided during various stages of the call negotiation procedure between the modems to keep the connection alive.
- the packet data modem exchange invoked by the network VHD in the data relay mode is shown schematically in FIG. 67.
- a connecting PXD (not shown) connecting a modem to the switch board 8032' is transparent, although those skilled in the art will appreciate that various signal conditioning algorithms could be. programmed into the PXD such as filtering, echo cancellation and gain.
- the packet data modem exchange provides two way communication between a circuit switched network and packet based network with two basic functional units, a demodulation system and aremodulation system.
- the network VHD exchanges data signals from a circuit switched network, or a telephony device directly, to a packet based network.
- the network VHD exchanges data signals from the packet based network to the PSTN line, or the telephony device.
- the data signals are received and buffered in an ingress media queue 8500.
- a data pump receiver 8504 demodulates the data signals from the ingress media queue 8500.
- the data pump receiver 8504 supports the V.22bis standard for the demodulation of data signals at 1200/2400 bps; the V.32bis standard for the demodulation of data signals at 4800/7200/9600/12000/14400 bps, as well as the V.34 standard for the demodulation of data signals up to 33600 bps.
- the V.90 standard may also be supported.
- the demodulated data signals are then packetized by a packetization engine 8506 and transmitted across the packet based network.
- packets of data signals from the packet based network are first depacketized by a depacketizing engine 8508 and stored in a jitter buffer 8510.
- a data pump transmitter 8512 modulates the buffered data signals with a voiceband carrier.
- the modulated data signals are in turn stored in an egress media queue 8514 before being output to the PXD (not shown) via the switchboard 8032'.
- the data pump transmitter 8512 supports the V.22bis standard for the transfer of data signals at
- the jitter buffer 8510 sends a buffer low indication 8510a to spoofing logic 8516.
- the spoofing logic 8516 receives the buffer low signal indicating that the jitter buffer 8510 is operating below a predetermined threshold level, it inserts spoofed data at the appropriate place in the data signal via the data pump transmitter 8512. Spoofing continues until the jitter buffer 8510 is filled to the predetermined threshold level, at which time data signals are again transferred from the jitter buffer 8510 to the data pump transmitter 8512.
- End to end clock synchronization logic 8518 also monitors the state ofthe jitter buffer 8510.
- the clock synchronization logic 8518 controls the data transmission rate of the data pump transmitter 8512 in correspondence with the state of the jitter buffer 8510.
- the clock synchronization logic 8518 reduces the transmission rate ofthe data pump transmitter 8512.
- the clock synchronization logic 8518 increases the transmission rate ofthe data pump transmitter 8512.
- a call negotiator 8502 determines the type of modem (i.e., V.22, V.32bis, V.34, V.90, etc.) connected to each end of the packet based network.
- a rate negotiator 8502 determines the rate of the modem (i.e., V.22, V.32bis, V.34, V.90, etc.) connected to each end of the packet based network.
- 8520 negotiates the data signal transmission rate between the two modems.
- the call negotiator 8502 determines the type of modem connected locally, as well as the type of modem connected remotely via the packet based network. In the described exemplary embodiment the call negotiator 8502 utilizes V.25 automatic answering procedures and V.8 auto-baud software to automatically detect modem capability.
- the call negotiator 8502 receives protocol indication signals 8502a (ANSam and V.8 menus) from the ingress media queue 8500, as well as AA, AC and other message indications 8502b from the local modem via a data pump state machine 8522, to determine the type of modem in use locally.
- the call negotiator 8502 relays the ANSam answer tones and other indications
- the call negotiator 8502 from the data pump state machine 8522 to the remote modem via a packetization engine 8506.
- the call negotiator also receives ANSam, AA, AC and other indications 8502c from a remote modem (not shown) located on the opposite end ofthe packet based network via a depacketizing engine 8508.
- the call negotiator 8502 relays ANSam answer tones and other indications 8502d to a local modem (not shown) via an egress media queue 8514 ofthe modulation system.
- the call negotiator 8502 can then negotiate a common standard (i.e., V.22, V.32bis, V.34, V.90, etc.) in which the data pumps must communicate with the local modem and the remote modems.
- the packet data modem exchange preferably utilizes indication packets as a means for communicating answer tones, AA, AC and other indication signals across the packet based network.
- the packet data modem exchange supports data pumps such as V.22bis and V.32bis which do not include a well defined error recovery mechanism, so that the modem connection may be terminated whenever indication packets are lost.
- the packet data modem exchange or the application layer should ensure proper delivery of indication packets when operating in a network environment that does not guarantee packet delivery.
- the packet data modem exchange can ensure delivery of the indication packets by periodically retransmitting the indication packet until some expected packets are received. For example, in V.32bis relay, the call negotiator operating under the packet data modem exchange on the answer network gateway periodically retransmits ANSam answer tones from the answer modem to the call modem, until the calling modem connects to the line and transmits carrier state AA.
- the packetization engine can embed the indication information directly into the packet header.
- an alternate packet format is utilized to include the indication information.
- indication packets transmitted across the packet based network include the indication information, so that the system does not rely on the successful transmission of individual indication packets. Rather, if a given packet is lost, the next arriving packet contains the indication information in the packet header. Both methods increase the traffic across the network. However, it is preferable to periodically retransmit the indication packets because it has less of a detrimental impact on network traffic.
- the rate negotiator 8520 synchronizes the connection rates at the network gateways.
- the rate negotiator receives rate control codes 8520a from the local modem via the data pump state machine 8522 and rate control codes 8520b from the remote modem via the depacketizing engine 8508.
- the rate negotiator 8520 also forwards the remote rate control codes 8520a received from the remote modem to the local modem via commands sent to the data pump state machine 8522.
- the rate negotiator 8520 forwards the local rate control codes 8520c received from the local modem to the remote modem via the packetization engine 8506. Based on the exchanged rate codes the rate negotiator 8520 establishes a common data rate between the calling and answering modems.
- Error control logic 8524 receives local error control messages 8524a from the data pump receiver 8504 and forwards those V.14/N.42 negotiation messages 8524d to the remote modem via the packetization engine 8506. In addition, error control logic 8524 receives remote V.14/V.42 indications 8524b from the depacketizing engine
- the error control logic 8524 can negotiate a common standard to ensure that the network gateways utilize a common error protocol.
- error control logic 8524 communicates the negotiated error control protocol 8524(e) to the spoofing logic
- V.42 is a standard error correction technique using advanced cyclical redundancy checks and the principle of automatic repeat requests (ARQ).
- transmitted data signals are grouped into blocks and cyclical redundancy calculations add error checking words to the transmitted data signal stream.
- the receiving modem calculates new error check information for the data signal block and compares the calculated information to the received error check information. If the codes match, the received data signals are valid and another transfer takes place. If the codes do not match, a transmission error has occurred and the receiving modem requests a repeat ofthe last data block. This repeat cycle continues until the entire data block has been received without error.
- V.42bis and MNP5 are examples of data compression standards.
- the handshaking sequence for every modem standard is different so that the packet data modem exchange should support numerous data transmission standards as well as numerous error correction and data compression techniques.
- the described exemplary network gateway provides a method for combining the functionality of these electronic devices into a single device that is capable of delivering both services at a reduced cost. For example, because the described exemplary network gateway combines many functions on a single device, a significant reduction in the number of required inputs/outputs (I/Os) may be achieved, which dramatically reduces the amount of power consumed.
- I/Os inputs/outputs
- coaxial cable in a HFC network may significantly attenuate a transmitted signal.
- amplifiers are spaced along the coaxial cable
- standby power systems are typically utilized to provide auxiliary power to active network components as well as to certain customer premise equipment in the event of failure ofthe primary source of power. Standby power system typically utilize a mix of local power generators and batteries to provide lifeline services during commercial power outages. Following failure ofthe primary source, the standby system delivers power immediately to avoid disruption of service over the CATV network.
- An exemplary embodiment ofthe present invention therefore, includes a method to manage the power in a population of network gateways for the purpose of minimizing the total aggregate power requirement ofthe supplemental power source.
- the specific details of managing a single unit are presented.
- the described exemplary power management technique is not limited to a single network gateway. Rather the described exemplary power management method may be used to manage the power of a plurality of network gateways so as to further reduce the supplemental power requirements ofthe network.
- individual network gateways may operate in any of a plurality of operational states. For example, a network gateway may be ready to deliver voice or data service but have no subscriber activity at a particular time, i.e.
- a network gateway may be delivering data services but no voice services or voice services but no data services.
- the power consumed by the network gateway when delivering voice services is proportional to the number of telephony circuits in use.
- the network gateway may also deliver both data and voice service simultaneously. The power consumed in this power state is also dependent upon the number of telephony circuits in use.
- the operational states ofthe network gateway are listed in Table 2 in the order of increasing power consumption such that the simultaneous delivery of voice and data services results in the greatest power consumption.
- the total power delivered to the network is the sum of the power consumed by each element in the network. In the described exemplary power management system and method it is assumed that at any give time many ofthe units within a gateway population are in the lowest power active but idle state.
- the described exemplary power management solution is transparent to the service management systems that control the operational behavior ofthe network gateway.
- information delivered by these systems may be used to mmimize the total power consumed by the network gateway.
- the DOCSIS registration process may identify the active ports used to deliver service to the subscriber.
- the information that identifies the active ports also identifies by inference which ports are not active.
- the inactive ports may be placed in a low power state.
- the DOCSIS protocol specifically requires that the network gateway be available at all times to respond to control messages issued by the CMTS.
- the PacketCable protocol also includes numerous performance standards for responding to control messages.
- the described exemplary power management method preferably complies with the PacketCable performance requirements.
- the described exemplary power management method models the network gateway as a combination of its component parts.
- an exemplary power management system may dynamically control the power consumption of each component part of the power management model.
- the power consumption ofthe component parts may be modified in accordance with the occurrence of events that change the existing power state ofthe system and hence each part.
- the power management behavior of each of the component parts may be described in terms of one or more ofthe following:
- the MIPS core may interpret messages such as for example, simple network management protocol (SNMP) messages, DOCSIS registration TLVs or other information to derive the appropriate power state for a particular interface.
- messages such as for example, simple network management protocol (SNMP) messages, DOCSIS registration TLVs or other information to derive the appropriate power state for a particular interface.
- the network gateway may receive a message such as, for example, activate the HPNA interface. Conventionally the message does not provide a direct indication ofthe appropriate power state for that device.
- the MIPS core may interpret this message to determine that a communication for a device coupled to the HPNA interface is forthcoming and that the HPNA interface needs to be in an active or high power state.
- the MIPS core may communicate a signal to the HPNA interface to return it to full power.
- the power management system may determine that the interface may be placed into a low power state.
- some power states may have sub states.
- the power level ofthe voice and data processor, the audio processor and the analog front end depend upon the actual number of telephony circuits that are active. For example, referring to Table 2 below the hook state ofthe individual telephony lines coupled to the network gateway, (four in this embodiment) dictate, in part at least, the power state ofthe voice and data processor, the audio processor and each ofthe ADC/DAC pairs in the analog front end.
- each ofthe telephony lines coupled to the network gateway are on hook the voice and data processor, audio processor and each ofthe ADC/DAC coupled to the individual lines may be in a low power state.
- the voice and data processor and audio processor are placed into an active state if any one of the lines goes off hook.
- the ADC/DAC pair coupled to an individual lines is commanded into an active state when its corresponding line goes offhook.
- Cyclical - Recurring behavior may or may not be dependent on state.
- the MIPS core includes the ability to enter a low power state when all listed processing tasks are completed or a low processing load is occurring. This behavior is cyclical or recurring but at an irregular interval or cycle.
- the component part transitions to a low power state each time the cyclical condition exists, regardless of external activity.
- management ofthe system's clock rate may be utilized to implement one or more of the power management techniques described herein.
- the clock rate of each component of a network gateway in accordance with embodiments of the present invention may be adjusted for the performance required. For instance, when a phone conversation is initiated, the clock rate of the necessary components may be increased to meet the processing demands, but when the phone service is terminated, the clock rate can be minimized.
- the network gateway manages the low power mode or sleep state ofthe network gateway.
- the MIPS core 9000 monitors the activity ofthe network gateway peripherals such as for example the USB MAC, Ethernet or hook detection circuitry (not shown). Activity monitoring procedures vary in accordance with the interface at issue.
- packet interfaces such as, Ethernet or USB simply reset a timer each time a packet is received or transmitted via the interface. If the timer expires, and remains expired because no packets have arrived, the interface is said to be inactive.
- Traditional telephony interfaces on the other hand are in the active state when the handset is offhook or not in the cradle. If the handset is on hook or in the cradle, the interface is in the inactive or idle state.
- the CPU and memory component part 9000 includes the MIPS core 128 (see FIG. 3) and its internal CACHE memory and external FLASH and SDRAM memories. In the described exemplary embodiment there is no provisioned behavior for this part, i.e. the power requirements for the CPU and memory are based solely on an internal knowledge ofthe current processing load.
- the MIPS core may include one or more clock rates for each ofthe power states. In operation the lowest clock rate is set in the active but idle clock state and the highest clock rate is set in power state four when the network gateway is simultaneously delivering both data and voice service.
- the CPU and memory include an idle process loop that is entered when all processing tasks are completed.
- the CPU and memory component includes a sleep instruction that may be used to place the CPU into a low power state when in the idle process loop. When no tasks are ready to run, the CPU is not permitted to poll or monitor continuously at this priority.
- each ofthe periodically polled functions are scheduled by a timer for execution at the low priority.
- the forward tuning path and demodulation circuits of the network gateway are disabled in the low power state and two way communications are suspended.
- the described exemplary network gateway utilizes a secondary, low power out of band receiver 9004 to receive and process asynchronous wake-up commands from an out of band generator in the CMTS (not shown). In one embodiment, the network gateway sets a wake up timer prior to entering the low power state.
- the duration ofthe wake up timer may be designed to provide on the order of about a 90% sleep interval and a 10% active interval.
- a low power sleep interval may be in the range of about 1-4 seconds.
- network gateway reduces its average power by continuously establishing a low power state.
- Network gateway returns to an active state when the sleep timer expires.
- network gateway monitors the downstream traffic for local commands as well as the activity level of locally attached devices.
- the out of band receiver may communicate interrupts to MIPS core when service is needed.
- the MIPS core stores the operating frequency, equalization coefficients, data rate and modulation format under use by the upstream modulator and demodulation circuits at the time the low power state was initiated.
- the state information may be used to reduce the time required to reacquire synchronization when the network gateway returns to normal power operation.
- the MIPS core transmits write control register values via the ISB to each peripheral that place the DOCSIS interface into a low power mode.
- the MIPS core deactivates the following downstream demodulator components the AGC, carrier loop, baud loop and equalizer. Further details of an exemplary, method for reducing the power requirements ofthe DOCSIS interface without introducing significant latency into the system is described in commonly owned co-pending U.S. Patent No. 09/654,109; entitled "METHOD AND APPARATUS FOR LATENCY
- the Ethernet MAC/PHY interface includes an intermediate power state that is entered when a low traffic rate, defined as a predetermined traffic threshold or period of inactivity, is detected.
- the MIPS core monitors the activity level of the Ethernet interface and when the traffic level falls below a predetermined threshold commands the Ethernet interface into the intermediate power state.
- the MIPS core transmits write control register values via the ISB to the Ethernet MAC/PHY to command it into a low power mode.
- the interface state may be recovered using the wake on LAN protocol.
- the HPNA MAC and PHY 9010 may be provisioned to the OFF state when the subscriber contract does not allow its use.
- the interface and all associated equipment are set to the low power mode without regard for fast recovery.
- the interface is available for use for subscriber traffic.
- the HPNA MAC/PHY interface includes an intermediate power state that is entered when a low traffic rate, defined as a predetermined traffic threshold or period of inactivity, is detected.
- the MIPS core transmits write control register values via the ISB to the HPNA MAC/PHY to command it into a low power mode.
- the interface state may be recovered using the wake on LAN protocol. e. USB MAC and Transceiver
- the USB MAC 9012 and transceiver 9014 may be provisioned to the OFF state when the subscriber contract does not allow its use.
- the interface and all associated equipment are set to the low power mode without regard for fast recovery.
- the off line times mandated by a particular subscriber contract may be locally stored.
- the MIPS core transmits write control register values via the ISB to the USB MAC and transceiver to command them into a low power mode.
- the interface is available to process subscriber traffic. The interface state may be recovered using the wake on LAN protocol.
- the described exemplary power management system utilizes multiple methods to control the power consumption ofthe voice and data processor 9020.
- the clock rate ofthe voice and data processor may be used to control the power consumption of the voice and data processor.
- the described exemplary power management system includes means to disable the entire block and establish the minimum operating power mode for the block.
- the described exemplary power management system sets the clock rate of the voice and data processor as a function ofthe Hook State ofthe phone lines connected to the local SLICs.
- there are four clock rates defined these rates correspond to the number of off hook telephone lines.
- the slowest rate is defined for one line offhook and the fastest rate is defined for four lines offhook. Further, a minimum power state is set when all lines are on hook.
- the DSP clock rate may be further adjusted in accordance with the type of compression algorithm used for each offhook line.
- the call connection algorithm monitors and tracks the compression algorithm used of each call.
- the described exemplary power management system may then assign a line weight factor for each offhook line in accordance with the compression algorithm associated with each call.
- the power management system then sums the line weight factor for each active call to determine the clock rate for the voice and data processor.
- the power management system assigns a line weight factor of one to each G.728 channel and a line weight factor of 0.25 for each G.711 channel.
- the sum ofthe line weight factors for all channels equals the clock rate. Therefore, in the described exemplary embodiment, a sum of one is quarter clock rate a sum of two is half clock rate and a sum of three or four is a full clock rate. Thus, if there are one, two, three or four G.711 channels operating simultaneously, the sum ofthe channel weights is rounded to one and the voice and data clock rate is set to quarter rate. If there is one G.728 channel and one G.711 channel, the sum is 1.25 rounded to 2 and the clock rate ofthe voice and data processor is set to half rate. In the described exemplary embodiment, all channels are on hook, the sum ofthe weighting factors is zero and the voice and data processor can be disabled, maximizing the power savings.
- the voice and data processor may be run at the maximum clock rate, allowing the processor to complete a given task with the same number of instruction but in a shorter period of time.
- the voice and data processor includes an idle process loop that is entered when all processing tasks are completed.
- the voice and data processor includes a sleep instruction that may be used to place the CPU into a low power state when in the idle process loop.
- the MIPS core detects the occurrence of an event such as for example, a line going offhook, the MIPS core issues an interrupt to the voice and data processor to return it to a full power operating state.
- the audio processor 9022 is a common processing element for any active voice channel.
- the audio processor has two power states, namely on and off.
- the audio processor is on when any voice channel is active.
- the audio processor may be off when all the voice channels are on hook.
- the audio processor state may follow the state ofthe voice and data processor module.
- the MIPS core monitors activity state ofthe voice and data processor. When all voice channels are inactive the MIPS core transmits write control register values via the ISB to the audio processor commanding it into a low power mode.
- the MIPS core detects the occurrence of an event such as for example, a line going offhook, the MIPS core issues an interrupt to the audio processor to return it to a full power operating state.
- the analog front end interfaces the voice and data processor with external telephony devices via external SLICs 9026(a-d) .
- the analog front end includes an ADC/DAC 9024(a-d) pair for each voice channel.
- the ADC/DAC pair has two power states, namely on and off. In the described exemplary embodiment, the ADC/DAC pair is active or in the on state when the associated voice channel is active. The ADC/DAC pair ay be off when the associated voice circuit is in the on hook state or when the associated SLIC is provisioned in the off state.
- the MIP S core monitors the hook state of each ofthe local telephony lines.
- the MIPS core transmits write control register values via the ISB to a particular ADC/DAC pair when the associated voice circuit is in the on hook state, commanding it into a low power mode.
- the MIPS core detects that the associated voice circuit goes off hook the MIPS core issues an interrupt to the particular ADC/DAC pair to return it to a full power operating state.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Telephonic Communication Services (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
Claims
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP08001177A EP1942607A3 (en) | 2000-09-11 | 2001-09-12 | Cable modem with voice processing capability |
Applications Claiming Priority (9)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US23218100P | 2000-09-11 | 2000-09-11 | |
US232181P | 2000-09-11 | ||
US24265700P | 2000-10-23 | 2000-10-23 | |
US242657P | 2000-10-23 | ||
US737175 | 2000-12-13 | ||
US09/737,175 US7023868B2 (en) | 1999-04-13 | 2000-12-13 | Voice gateway with downstream voice synchronization |
US29689501P | 2001-06-08 | 2001-06-08 | |
US296895P | 2001-06-08 | ||
PCT/US2001/028323 WO2002023824A2 (en) | 2000-09-11 | 2001-09-12 | Cable modem with voice processing capability |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP08001177A Division EP1942607A3 (en) | 2000-09-11 | 2001-09-12 | Cable modem with voice processing capability |
Publications (1)
Publication Number | Publication Date |
---|---|
EP1356633A2 true EP1356633A2 (en) | 2003-10-29 |
Family
ID=27499642
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP01970768A Withdrawn EP1356633A2 (en) | 2000-09-11 | 2001-09-12 | Cable modem with voice processing capability |
Country Status (2)
Country | Link |
---|---|
EP (1) | EP1356633A2 (en) |
WO (1) | WO2002023824A2 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7030883B2 (en) | 2004-03-10 | 2006-04-18 | Evans & Sutherland Computer Corporation | System and method for filtering a synchronization signal from a remote computer |
US8265712B2 (en) * | 2007-04-13 | 2012-09-11 | Nokia Corporation | Multiradio power aware traffic management |
US9641826B1 (en) | 2011-10-06 | 2017-05-02 | Evans & Sutherland Computer Corporation | System and method for displaying distant 3-D stereo on a dome surface |
US10911013B2 (en) | 2018-07-05 | 2021-02-02 | Comcast Cable Communications, Llc | Dynamic audio normalization process |
CN113848701B (en) * | 2021-06-11 | 2023-11-14 | 东北大学秦皇岛分校 | Distributed average tracking method for uncertainty directional network |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4453259A (en) * | 1982-04-20 | 1984-06-05 | Trw Inc. | Digital synchronization technique |
JPH06338829A (en) * | 1993-05-28 | 1994-12-06 | American Teleph & Telegr Co <Att> | Echo removing method and device in communication system |
JP2538176B2 (en) * | 1993-05-28 | 1996-09-25 | 松下電器産業株式会社 | Eco-control device |
US5581555A (en) * | 1993-09-17 | 1996-12-03 | Scientific-Atlanta, Inc. | Reverse path allocation and contention resolution scheme for a broadband communications system |
US5555244A (en) * | 1994-05-19 | 1996-09-10 | Integrated Network Corporation | Scalable multimedia network |
US5631899A (en) * | 1995-05-31 | 1997-05-20 | Lucent Technologies Inc. | Acoustic echo canceler |
US5790538A (en) * | 1996-01-26 | 1998-08-04 | Telogy Networks, Inc. | System and method for voice Playout in an asynchronous packet network |
WO1997044947A1 (en) * | 1996-05-21 | 1997-11-27 | Integrated Network Corporation | Multimedia over voice communication system |
US5752229A (en) * | 1996-06-28 | 1998-05-12 | Lucent Technologies Inc. | Intelligent near-end speech detection |
US6236653B1 (en) * | 1996-12-23 | 2001-05-22 | Lucent Technologies Inc. | Local telephone service over a cable network using packet voice |
US5896443A (en) * | 1997-01-10 | 1999-04-20 | Intel Corporation | Phone line computer networking |
WO1999039541A2 (en) * | 1998-01-30 | 1999-08-05 | At & T Corp. | A method and system for telephony and high speed data access on a broadband access network |
EP1153497B1 (en) * | 1999-02-12 | 2006-07-12 | Broadcom Corporation | Cable modem system with sample and packet synchronization |
-
2001
- 2001-09-12 EP EP01970768A patent/EP1356633A2/en not_active Withdrawn
- 2001-09-12 WO PCT/US2001/028323 patent/WO2002023824A2/en active Application Filing
Non-Patent Citations (1)
Title |
---|
See references of WO0223824A3 * |
Also Published As
Publication number | Publication date |
---|---|
WO2002023824A3 (en) | 2003-09-04 |
WO2002023824A2 (en) | 2002-03-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
USRE46142E1 (en) | Modem with voice processing capability | |
US6912209B1 (en) | Voice gateway with echo cancellation | |
EP1238489B1 (en) | Voice gateway with downstream voice synchronization | |
US7023868B2 (en) | Voice gateway with downstream voice synchronization | |
US6765931B1 (en) | Gateway with voice | |
US7961712B2 (en) | System and method for supporting multiple voice channels | |
EP1188285B1 (en) | Gateway with voice | |
US6747996B2 (en) | Synchronized transport across non-synchronous networks | |
EP1273120B1 (en) | Frame-based communication with variable rate payload | |
WO2001019005A1 (en) | System and method for the synchronization and distribution of telephony timing information in a cable modem network | |
US20060133358A1 (en) | Voice and data exchange over a packet based network | |
US20040163120A1 (en) | Cable modem system with sample and packet synchronization | |
US20060050689A1 (en) | Cable modem system with sample and packet synchronization | |
US20070127711A1 (en) | Adaptive gain control based on echo canceller performance information | |
EP1232642A1 (en) | Voice and data exchange over a packet network | |
KR20030070585A (en) | Method and apparatus for reducing end-to-end delay when providing internet telephony over a catv cable network | |
EP1942607A2 (en) | Cable modem with voice processing capability | |
EP1356633A2 (en) | Cable modem with voice processing capability | |
ATM | NATIONAL COMMUNICATIONS SYSTEM |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
AK | Designated contracting states |
Kind code of ref document: A2 Designated state(s): AT BE CH CY DE DK ES FI FR GB GR IE IT LI LU MC NL PT SE TR |
|
17P | Request for examination filed |
Effective date: 20040304 |
|
RAP1 | Party data changed (applicant data changed or rights of an application transferred) |
Owner name: BROADCOM CORPORATION |
|
17Q | First examination report despatched |
Effective date: 20070511 |
|
APBN | Date of receipt of notice of appeal recorded |
Free format text: ORIGINAL CODE: EPIDOSNNOA2E |
|
APBR | Date of receipt of statement of grounds of appeal recorded |
Free format text: ORIGINAL CODE: EPIDOSNNOA3E |
|
APAV | Appeal reference deleted |
Free format text: ORIGINAL CODE: EPIDOSDREFNE |
|
APBT | Appeal procedure closed |
Free format text: ORIGINAL CODE: EPIDOSNNOA9E |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN |
|
18D | Application deemed to be withdrawn |
Effective date: 20120403 |