Computer Science 308-435B Basics of Computer Networks
Computer Science 308-435B
Basics of Computer Networks
McGill University, Winter 2001
Assignment 1: Encoding (Physical Layer)
Due date
Thursday 1 February, before 23:59 (hard deadline)
Submission medium
VisualCM
Assignment
The deliverable for this assignment is one ASCII text file,
to be submitted via VisualCM.
This assignment will be graded by a program, so using the correct format
is essential.
The file must contain, in exactly the following format:
- One line with your first name.
- One line with your last name. If your last name is less than
3 characters long, pad with blanks (before the newline).
- One line with your student ID.
- Four times two lines (8 in total).
Each line is 40 characters long and consists of only '+', '-', and '0'
characters. Each pair of lines consists of an encoding of the same
string formed by:
- The first letter of your first name.
- The binary '\0' (8 zero bits) byte.
- The first three letters of your last name (possibly padded
with blanks if not long enough).
The encoding (80 characters) is spread over 2 lines of 40
characters to avoid problems during file transfer.
The characters are interpreted as ASCII code, with the first bit
(high order bit, bit nr. 8) 0 (ASCII is only a 7 bit code).
The four times two lines correspond to four different encodings
of the string described above:
- Unipolar.
- NRZ-I.
- Differential Manchester.
- Bipolar B8ZS.
- One line with your first name.
- One line with your last name.
Miscellaneous information:
- On all lines, information must start in the first column.
- If your first or last name contains spaces (blanks), that is
acceptable.
- Letters may be lower case or upper case (or mixed).
As long as your encoding
corresponds to what you wrote on lines 1 and 2 of course.
- You assume the last signal (before starting on your string)
was positive (+). You should not represent this.
- A '+', '-', or '0' must be written for each half bit interval
(for each of the 4 encodings, even for the ones where both parts of the bit interval have the same signal value) !
- '+' denotes a positive signal, '-' a negative signal,
and '0' a zero signal.
Hans Vangheluwe