Lab 1 - Mathematics in Computer Networking PDF
Lab 1 - Mathematics in Computer Networking PDF
By the end of this section of the practical, the student should be able to:
1.1 Introduction
A numbering system such as binary, decimal and hexadecimal numbers are
important to many computer network aspects. Bits normally represent in binary
operations base 2 for most basic operation in computer network. Meanwhile,
hexadecimal numbers can aid easily for some number representation to
overcome some difficulty in binary number operation. As we are human normally
corresponding with decimal numbers base 10.
Preparation
The following workout will be required. Please work in groups of two people.
A computer device such as RAM, CPU and network card normally works well in
binary digit because they consist of several chips that can be placed into either
an on or off state. A computer stores combination 8 bits, normally named as 8-
bit byte. Units for data rates which a network sends data from one device to
another device can be represented in bits and bytes. Figure 1.1 shows the
relationships between bits and bytes.
1
Figure 1.1: Relationship between Bits and Bytes
Table illustrated term and units in transmission rates in bits and bytes.
8 000 000 (8*1 000 000) 1 000 000 MegaByte per second (MBps)
2
Decimal number (base 10)
Consider the number 2139 for example, the associated values with digits in
decimal numbering are shown in Table 1.3.
Digits 2 1 3 9
Binary number consist only two digits 0 and 1. The weighted structure of binary
number is:
Binary Points
5 4 3 2 1 0
... 2 2 2 2 2 2 (positive value)
To represent the binary number, we have to look at the least significant bit (LSB)
and most significant bits (MSB).
MSB LSB
1000001110
3
Consider the number 139 for example, the associated values with digits in binary
numbering are shown in Table 1.4.
Powers of 10 27 26 25 24 23 22 21 20
Binary 1 0 0 0 1 0 1 1
The composed number starts from 0 until F. In Table 1.5, it is best practice to
represent the hexadecimal number in four bit numbers.
4
The associated values with digits in hexadecimal numbering are shown in Table
1.6.
Table 1.6: Hexadecimal Numbering Associated Value
Hexadecimal 1 A 1 C
The popular values in decimal numbers are 0, 128, 192, 224, 240, 248, 252, 254,
and 255 when working with IP address. The decimal value might be a good
practice in conversion process from decimal to binary and hexadecimal IP
address.
There are three step of simple practice to convert IP Address from decimal octet
to binary and hexadecimal octet. For example, Table 1.7 shows a simple
conversion of an IP address 10.1.132.255.
5
1.3 Self-Review Questions
1. Convert the following IP address to binary and hexadecimal equivalent.
i. 255.255.255.0
ii. 12.14.236.187
iii. 19.15.45.3
iv. 10.7.8.199
v. 128.11.3.31
vi. 175.12.219.244
vii. 253.231.2.2
2. MAC addresses are 12-digit hexadecimal numbers (48 bits in length). Convert
the following MAC address to binary equivalent.
i. 00:A0:C9:14:C8:29
ii. 11:12:FF:0A:AB:CD
iii. 00-1D-60-2F-4B