Sicsophone: A Low-Delay Internet Telephony Tool

Authors: Olof Hagsand, Ian Marsh and Kjell Hanson (SICS)
Venue: 29th Euromicro Conference, Belek-Antalya, September 2003, pp. 189–195
DOI: 10.1109/EURMIC.2003.1231587
Year: 2003
Topic: Real time voice (over IP)

Paper (IEEE Xplore) · VoIP project overview

Summary

In a phone call, delay is what makes conversation awkward: people talk over each other or wait for replies. The ITU rates one-way delay under about 150–180 ms as good, and over 400 ms as unacceptable. Once delay is in the system it cannot be removed. Network researchers often blame the network, but in 2003 much of the delay came from the end systems: sound cards, operating-system audio buffers and conservative software.

Sicsophone is a complete VoIP system built to keep end-system delay low. It couples the low-level features of the audio hardware with a standard jitter-buffer playout algorithm:

  • Direct sound-card access removes intermediate buffering in the operating system and gives fine control over the timers a soft real-time application needs.
  • Statistical packet insertion: packets are written into the audio buffer at positions chosen from the measured network jitter.
  • Damping: a scheme to stop unnecessary fluctuations in buffer length.

Prototypes ran on both UNIX and Windows, and adapted to network conditions while keeping delay low.

End-system adaptation to network jitter
The receiver adapts its playout to network jitter. The end systems are a large and controllable part of the delay budget.

Playout through the sound card

On Windows, Sicsophone used Microsoft's DirectSound interface. The sound card's ring buffer is used directly as the jitter buffer: talkspurts are written contiguously, the playout pointer follows them round the ring, and the effective buffer length is adjusted during silences, where a change is not audible.

The DirectSound ring buffer as a jitter buffer
Talkspurts are written ahead of the playout pointer in the DirectSound ring buffer; the playout length adapts between talkspurts with a safety margin.

Results: mouth-to-ear delay

The team measured mouth-to-ear delay for several VoIP tools on Windows 98/NT with SoundBlaster cards, using a square wave (easier to time than speech):

ToolMouth-to-ear delay (ms)
Sicsophone prototype25–100
Vocal Internet Phone 4.5450–550
Microsoft NetMeeting 2.1620
VAT 3.4 (Solaris)1,200
RAT 3 (Solaris)1,500

Several hundred milliseconds can be saved in the end systems alone, more than many wide-area networks add.

Discussion

The point was that end systems should not be neglected, and unlike the network they can be changed relatively easily. The lesson recurs in every generation of real-time media: audio pipelines in phones, browsers and conferencing apps accumulate buffering at each layer, and low latency comes from removing it end to end.

Future work

  • Push the same design into mobile handsets and embedded devices.
  • Combine with loss concealment and adaptive codecs, so smaller buffers do not cost quality.
  • Measure conversational quality (not only delay) with users.

Modern descendants of this approach include low-latency audio APIs (WASAPI exclusive mode on Windows, AAudio on Android, Core Audio on Apple devices) and the adaptive jitter buffer ("NetEQ") in WebRTC.

The EU perspective

  • Low latency matters for accessibility: the European Accessibility Act (Directive (EU) 2019/882) and the EECC require real-time text alongside voice for emergency communications, and both depend on interactive, low-delay media.
  • The European Electronic Communications Code (Directive (EU) 2018/1972) brought over-the-top calling apps under EU rules as number-independent interpersonal communications services.
  • ETSI standards for terminal speech performance (for example ETSI ES 202 737 to ES 202 740 on VoIP terminal transmission requirements) set delay and quality limits for handsets and headsets, which are the end-system budget this paper addresses.

References

  1. O. Hagsand, I. Marsh and K. Hanson, "Sicsophone: a low-delay Internet telephony tool," Euromicro, 2003, pp. 189–195.
  2. ITU-T Recommendation G.114, One-way transmission time, 2003.
  3. R. Ramjee, J. Kurose, D. Towsley and H. Schulzrinne, "Adaptive playout mechanisms for packetized audio applications in wide-area networks," IEEE INFOCOM, 1994.
  4. S. B. Moon, J. Kurose and D. Towsley, "Packet audio playout delay adjustment: performance bounds and algorithms," Multimedia Systems 6(1), 1998.
  5. O. Hagsand, K. Hanson and I. Marsh, Measuring Internet telephony quality: where are we today?, IEEE Globecom, 1999.

Citation

Olof Hagsand, Ian Marsh and Kjell Hanson, Sicsophone: A Low-Delay Internet Telephony Tool, Euromicro, 2003, Paper.

BibTeX

@inproceedings{hagsand2003sicsophone,
  author    = {Hagsand, Olof and Marsh, Ian and Hanson, Kjell},
  title     = {Sicsophone: a low-delay {Internet} telephony tool},
  booktitle = {Proceedings of the 29th Euromicro Conference},
  pages     = {189--195},
  year      = {2003},
  doi       = {10.1109/EURMIC.2003.1231587}
}

More in Real time voice (over IP): ← Wide Area Measurements of VoIP Quality | Early Estimation of VoIP Quality →

← All publications