Module 01
Module 01
1
Acknowledgement
The following slides are reproduced from online materials (links are provided)
2
Session Learning Outcomes
3
Session Overview
• This class delivers an introduction to computer networks. An overview of the
computer networks and related technologies are discussed.
• In this class you will learn the fundamental concepts of computer networks,
evolution of computer networks, the network layers, and their components.
• At the end of this session, you will be able to explain the major functions of network
hardware with respect to the OSI seven-layer model.
• In addition to above, number systems (conversions from decimal to binary and vice
versa) are explained. Various number systems are used in Network addressing and
calculating and converting numbers from one to another is crucial.
4
Introduction
5
What is a Computer Network?
6
Sneakernet
7
Evolution of Computer Networks
• via Terminals
https://en.wikipedia.org/wiki/Mainframe_computer
8
Evolution of Computer Networks 1
Client Server
https://en.wikipedia.org/wiki/Client%E2%80%93server_model
9
Evolution of Computer Networks 2
Peer-to-peer
https://en.wikipedia.org/wiki/Peer-to-peer
10
Evolution of Computer Networks 3
The Internet
https://en.wikipedia.org/wiki/Client%E2%80%93server_model
11
Network Connections
• Wired Technologies
– i.e. Twisted Pair, Coaxial, Fiberoptic, …
• Wireless Technologies
– i.e. Radio, Satellite, Terrestrial Microwave, …
12
Network Topologies
• Computer networks can be broken down historically
into topologies, which is a technique of connecting computers.
• “Network topology is the arrangement of the elements (links,
nodes, etc.) of a communication network.” -- wikipedia
– Examples:
• Point-to-Point
• Daisy-Chain
• Bus
• Ring
• Star
• Mesh Example of Network Topologies: Ring, Mesh, Star,
Fully Connected, Line, Tree, and Bus
• Hybrid …
https://en.wikipedia.org/wiki/Network_topology
13
Network Interface
14
Network Interface 1
https://en.wikipedia.org/wiki/Wireless_network_interface_controller
15
Network Model
https://www.computernetworkingnotes.com/ccna-study-guide/osi-seven-layers-model-explained-with-examples.html
16
Network Protocol
• A communication protocol is a system of rules that allows two or
more entities of a communications system to transmit information
via any kind of variation of a physical quantity.
17
Network Models
18
Early Days of Networking Software
• Several competing standards
• Protocols: individual rules used by software
• Protocol suites: many protocols lumped together
– Novell Netware: IPX/SPX
– Microsoft: NetBIOS/NetBEUI
– Apple: AppleTalk
– UNIX: TCP/IP
19
TCP/IP , OSI, The Layers and Protocols
https://www.researchgate.net/figure/The-logical-mapping-between-OSI-basic-reference-model-and-the-TCP-IP-stack_fig2_327483011
20
Ethernet
• Ethernet is a family of wired computer networking technologies
commonly used in local area networks (LAN), metropolitan area
networks (MAN) and wide area networks (WAN).
– Has since been refined to support higher bit rates, a greater number of nodes, and longer link
distances, but retains much backward compatibility.
– Over time, Ethernet has largely replaced competing wired LAN technologies such as Token Ring,
FDDI and ARCNET.
https://en.wikipedia.org/wiki/Ethernet
21
Break
22
Number Systems
Representations, and
Basic Arithmetic
23
Number Systems
• Binary numbers
– 0’s and 1’s
• Base conversion
– i.e. decimal, hex, etc.; we need to know how to convert from one to
another.
• Number systems
– There are more than one way to express a number even in binary.
i.e. 1010 could be -2, -5 or -6; we need to know which one.
https://courses.cs.washington.edu/courses/cse370/08au/Lecture%20Slides/Lec2_NumberSystems.ppt
24
Number Systems
• Bases we will use • Addition and subtraction
– Binary: Base 2
1011 1011
– Octal: Base 8
+ 1010 – 0110
– Decimal: Base 10 10101 0101
– Hexadecimal: Base 16
https://courses.cs.washington.edu/courses/cse370/08au/Lecture%20Slides/Lec2_NumberSystems.ppt
25
Binary vs. Octal
N=5610=1110002
26
Binary, Octal, and Hexadecimal Conversions
https://courses.cs.washington.edu/courses/cse370/08au/Lecture%20Slides/Lec2_NumberSystems.ppt
27
Mike Meyers’ CompTIA Network+® Guide to Managing and Troubleshooting
Networks, Fifth Edition (Exam N10-007)
32
Negative Numbers
• How do we write negative binary numbers?
• Historically: 3 approaches
– Sign-and-Magnitude
– One’s Complement
– Two’s Complement
• For all 3, the most-significant bit (MSB) is the sign digit
– 0 ≡ positive
– 1 ≡ negative
• Two’s-complement is the important one
– Simplifies arithmetic
– Used almost universally https://courses.cs.washington.edu/courses/cse370/08au/Lecture%20Slides/Lec2_NumberSystems.ppt
33
Sign-and-Magnitude
• The most-significant bit (MSB) is the sign digit
– 0 ≡ positive
– 1 ≡ negative
https://courses.cs.washington.edu/courses/cse370/08au/Lecture%20Slides/Lec2_NumberSystems.ppt
34
One’s Complement
• Negative number: Bitwise complement positive number
– 0011 ≡ 310
– 1100 ≡ –310
• Solves the arithmetic problem
35
Two’s Complement
• Negative number: Bitwise complement plus one
– 0011 ≡ 310
– 1101 ≡ –310
–1 0
–2 +1
• Number wheel 1111 0000
–3 1110 0001 +2
1101 0010
Only one zero! –4 +3
1100 0011
36
Two’s Complement 1
• Arithmetic is easy
– Subtraction = negation and addition
• Easy to implement in hardware
https://courses.cs.washington.edu/courses/cse370/08au/Lecture%20Slides/Lec2_NumberSystems.ppt
37
Two’s Complement 2
• Summing two positive numbers gives a negative result
6 + 4 ⇒ –6 –7 – 3 ⇒ +6
• Make sure to have enough bits to handle overflow
https://courses.cs.washington.edu/courses/cse370/08au/Lecture%20Slides/Lec2_NumberSystems.ppt
38
Two’s Complement of non-integers
https://courses.cs.washington.edu/courses/cse370/08au/Lecture%20Slides/Lec2_NumberSystems.ppt
39
Number Systems
Signal Encoding
40
What is Signal Encoding?
41
Analog and Digital Signals
42
Digital vs Analog Signal
43
ADC / DAC Conversions
– Analog-to-digital converter (A/D)
• Example: CD recording
44
ADC / DAC Conversions
• Quantization
– Conversion from analog to discrete values
• Quantizing a signal
– We sample it
45
Binary Data Requires Encoding
https://courses.cs.washington.edu/courses/cse370/08au/Lecture%20Slides/Lec2_NumberSystems.ppt
46
BCD Encoding
• Digital = discrete
– Binary codes (example: BCD) Decimal BCD
– Decimal digits 0-9 Symbols Code
0 0000
1 0001
• Binary codes 2 0010
– Represent symbols using binary digits (bits) 3 0011
4 0100
5 0101
6 0110
• Digital computers: 7 0111
– I/O is digital 8 1000
• ASCII, decimal, etc. 9 1001
– Internal representation is binary
• Process information in bits https://courses.cs.washington.edu/courses/cse370/08au/Lecture%20Slides/Lec2_NumberSystems.ppt
47
Excess-3 Encoding
• Excess-3, 3-excess or 10-excess-3 binary code (often abbreviated as XS-3, 3XS[1] or
X3), shifted binary or Stibitz code (after George Stibitz, who built a relay-based
adding machine in 1937) is a self-complementary binary-coded decimal (BCD) code
and numeral system.
– Excess-3 code was used on some older computers as well as in cash registers and hand-held
portable electronic calculators of the 1970s, among other uses.
– It is a biased representation.
https://en.wikipedia.org/wiki/Excess-3
48
Gray System
• The reflected binary code (RBC), also known just as reflected binary (RB) or Gray
code after Frank Gray, is an ordering of the binary numeral system such that two
successive values differ in only one bit (binary digit).
Decimal Gray Decimal BCD
Symbols Code Symbols Code
0 0000 0 0000
1 0001 1 0001
2 0011 2 0010
3 0010 3 0011
4 0110 4 0100
5 0111 5 0101
6 0101 6 0110
7 0100 7 0111
8 1100 8 1000
9 1101 9 1001
https://courses.cs.washington.edu/courses/cse370/08au/Lecture%20Slides/Lec2_NumberSystems.ppt
49
Break
50
Software
Wireshark,
Cisco Packet Tracer,
GNS3
51
Session Summary
• In this class an overview of a computer networks and related concepts
was presented. The fundamental concepts such as connections,
topology, layers and protocols, interfaces, and models were discussed.
Two important network models (OSI vs. TCP/IP were presented.
• In addition to above, you were introduced to various number systems
that are used in computer networks.
• In the next class, we will review a detailed overview of the functions of
each individual layer. Below are a few questions that may be answered
in the next module:
– Why using different number systems are used in Computer Networks?
– What are the similarities and differences between the OSI and TCP/IP models?
– Why Network Topology is important?
53
Acknowledgements
• https://courses.cs.washington.edu/courses/cse370/
• https://en.wikipedia.org/wiki/Mainframe_computer
• https://en.wikipedia.org/wiki/Peer-to-peer
• https://en.wikipedia.org/wiki/Client%E2%80%93server_model
• https://en.wikipedia.org/wiki/Network_topology
• https://en.wikipedia.org/wiki/Network_topology
• https://en.wikipedia.org/wiki/OSI_model
• https://www.computernetworkingnotes.com/ccna-study-guide/osi-seven-layers-model-explained-
with-examples.html
• https://www.researchgate.net/figure/The-logical-mapping-between-OSI-basic-reference-model-and-
the-TCP-IP-stack_fig2_327483011
• See also:
– https://en.wikipedia.org/wiki/Hexadecimal
54
Next - Network Models, A Detailed Overview
55