Voice over IP
- PowerPoint slides
- Partition students into groups. Each group consists of two
students. One student is responsible for developing the sender program.
The other develops the receiver program.
- The sender will record an audio message from the microphone, save
it in a memory buffer, and send it the the receiver via a TCP socket.
- For simplicity, we may assume the longest length is 1 minute,
but the user may press a key to indicate that the recording is
stopped earlier.
- The receiver runs an infinite loop to await for connections.
It receives data from a TCP connection, save it in a memory buffer, and
play out the audio data in the memory buffer.
Interoperability Test
- After all groups have developed their sender/reciever programs,
let's try to run interoperability test between each group.
- Run each receiver (in turn) on the teacher's computer.
- Each sender (in turn) records and sends voices to it.
- If it does not work well, let each group capture the data
with Wireshark, and explain what they expect to receive/send.
- Let students discuss how they should modify to make these two
versions compatible with each other.
- After all groups have tested with each other, students should have
some ideas about how to improve their own versions. Use RCS for version
control, and modify their programs according to the previous discussion.
- Run the interoperability test again to see how many groups become
compatible.