Computer Network and Communication.pdf
Computer Network and Communication.pdf
COMMUNICATION
BASIC CONCEPTS OF THE INTERNET
CHAPTER 01
Industry Standards:
● Actual standards used in practice.
● Come from patented technology developed by a manufacturer.
● Example: Ethernet.
Ethernet Standard
Ethernet is a standard for wired local area networks (LANs). It was developed by
Quanlu Corporation and later adopted as an official standard by the Institute of
Electrical and Electronics Engineers (IEEE) in the United States. The standard is
known as IEEE 802.3.
● International
Telecommunications
Union -
Telecommunications
Standards Sector (ITU-T)
is a specialized agency of
the United Nations
responsible for developing
international standards for
telecommunications,
telephone, and information
systems. Originally known
as CCITT, it was renamed
ITU-T in 1993.
○ Website: www.itu.int
● American National
Standards Institute
(ANSI): Coordinates the
development of voluntary
standards in the United
States. is a specialized
agency of the United
Nations responsible for
developing international
standards for
telecommunications,
telephone, and information
systems. Originally known
as CCITT, it was renamed
ITU-T in 1993.
○ Website:
www.ansi.org
● Electronic Industries
Association (EIA): A trade
association representing the
electronics industry. Is a
non-profit organization that
develops standards for
electronic interfaces,
signals, device functions,
and serial communication. It
focuses on issues affecting
electronics manufacturers.
○ Website:
www.eia.org
● Internet Engineering
Promotion Group (IEPG) is
a group that oversees the
technical progress and
development of the IETF. It
is managed by the Internet
Engineering Steering Group
(not official logo)
(IESG).
○ Website:
www.iesg.org
● Internet Architecture
Board (IAB) is the guiding
unit for the IESG and IETF.
It provides strategic
direction for the internet.
○ Website:
www.iab.org
● Internet Assigned
Numbers Authority (IANA)
is an international
organization responsible for
coordinating the allocation
of IP addresses.
○ Website:
www.iana.org
Network Type
Network: A system where at least two computers (or hosts) are connected in a specific
topological structure within a certain area, allowing users to share resources provided
by the internet.
Early computers were used independently. Later, people used network cables to
connect two computers, creating the simplest type of short-distance network.
Network Types
Networks are interconnected using various technologies, such as wireless
communications and public switching networks (circuit switching or packet switching).
This interconnectedness creates a dense information highway, which is the Internet.
Architecture:
➔ PCs or workstations
➔ Transmission media (coaxial cables, twisted pairs, Network cards, hubs,
switches, and routers)
➔ Network operating system (NOS) for communication, coordination, and
management between hosts on the network. Examples include Windows
XP, Windows Vista, Windows 7/8/10, Windows NT, and UNIX.
➔ File Server: Provides data access to the hard disk, allowing users to
share and access files centrally.
➔ Print Server: Manages printing tasks from computers or workstations,
providing centralized printing capabilities.
● Metropolitan Area Network (MAN):
A network that connects devices within a city or metropolitan area. A large
network formed by connecting multiple regional networks together.
"Transparent LAN" local area network, the transmission distance of this kind of
LAN is getting farther and farther, and the development technology is constantly
improving, making the role of MAN increasingly blurred.
● Wide Area Network (WAN):
A network that connects devices over a large geographic area, such as a country
or between countries.
Leased Lines
Leased lines are dedicated communication circuits leased from a service provider.
They offer guaranteed bandwidth and quality of service, making them suitable for
applications that require reliable and consistent connectivity.
Leased lines are often used for businesses that require a dedicated connection for
critical applications, such as voice and data communications. NOT USED IN MODERN
ERA
ADSL Internet connections typically use twisted pairs as the transmission medium. An
example is Chunghwa Telecom ADSL, which uses DMT (Discrete Multi-Tone)
modulation technology to transmit voice and data separately through an ADSL modem.
The low-frequency part transmits voice, while the high-frequency part transmits
higher-speed data. The highest downlink and uplink transmission rates currently
provided are 8 Mbps and 640 Kbps, respectively.
● Optical fiber: FTTB utilizes optical fiber as the transmission medium, also known
as the optical generation network.
● Flexible bandwidth: The two-way transmission rate can be adjusted to meet
customer bandwidth requirements.
● High-speed transmission: Chunghwa Telecom's HiNet Optical Generation
(2018) offers a maximum downlink transmission rate of 1 Gbps and an uplink
transmission rate of 600 Mbps.
● Technology: FTTB utilizes various optical network equipment and Ethernet or
VDSL technology to provide high-speed broadband data transmission services to
customers.
Cable Modem
● Internet connection device: Cable modems are used to connect to the internet
through cable TV networks.
● Comparison to ADSL: Both ADSL and cable modems have their own
advantages and disadvantages. Cable modems generally have a larger
theoretical bandwidth, but this bandwidth is shared among multiple users.
● Bandwidth management: When the number of users on a cable network
increases, the operator may need to increase the transmission bandwidth to
maintain adequate speeds for all users.
ATM
● To be Introduced
WIRELESS NETWORK
Wireless Network
● Transmission medium: Uses radio waves for data transmission instead of
physical cables.
● Flexibility: Offers more flexibility compared to wired networks due to the lack of
physical constraints.
Wireless Wide Area Networks (WWAN)
WWANs can be divided into two main categories:
INTERNET
Interconnection Network
What is an interconnection network?
What is an intranet?
Example:
● Video conferencing: Intranets can minimize the need for in-person meetings.
2 kilometers
7 Gbps
IEEE 802.11
Yes
Internet of Things
Extranet
NETWORK TOPOLOGY
Advantages: Disadvantages:
Advantages: Disadvantages:
If one device fails, it doesn't affect the If the central device (hub or switch) fails, the
entire network. entire network will go down.
Common examples:
● Star-bus: Areas use a star topology internally, but the connection between areas
is made using a bus topology.
● Star-ring: Areas use a star topology internally, but the connection between areas
is made using a ring topology.
Master-Slave Networks:
● Direct Communication: Any pair of hosts can communicate directly with one
another.
● No Dedicated Server Needed: There is no requirement for a dedicated server to
facilitate communication.
● Management Complexity: Expanding the network can lead to management
challenges, making it difficult to oversee and maintain as it grows.
EXERCISE
1. Do the Clients communicate directly with each other in the master-slave
network?
a. No
2. Is peer to peer network suitable for larger networks?
a. No, Master-Slave
3. Does the peer to peer network need the Dedicated Server?
a. No, Master-Slave
4. What are the three types of network topology?
a. Bus topology, Ring topology, Star topology
Cloud Computer
Cloud far away, using network
SDN Components
Benefits of SDN
1. Increased Network Agility and Programmability: SDN allows for dynamic and
flexible network configuration, enabling rapid deployment of new services and
applications.
2. Improved Network Visibility and Control: SDN provides a centralized view of
the network, enabling better monitoring, troubleshooting, and optimization.
3. Enhanced Network Security and Automation: SDN can automate routine
tasks, reduce human error, and implement security policies more effectively.
By addressing the limitations of traditional networks and leveraging the benefits of SDN,
organizations can achieve significant improvements in network performance, scalability,
and security.
The network architecture of SDN is the Clean Slate solution proposed by Nick
McKeown of Stanford University in the United States.
Using the OpenFlow protocol, as shown in Figure 1-16, the control plane of the router is
separated from the data plane and implemented in software. Its characteristics are as
follows:
SDN can be controlled in a programmable manner. Once the control is shifted from
individual network devices to the SDN controller, the underlying network infrastructure
becomes abstracted. As a result, the network infrastructure becomes highly dynamic
and easier to manage
Application: The application layer sits at the top of the SDN. Determine the
direction and destination of user data flow, and record it to provide it to the next
program for application.
Hardware: the hardware layer (also known as the infrastructure layer or data
plane) is the foundational layer responsible for the actual forwarding and routing
of network traffic.
The SDN architecture created by OpenFlow technology can not only solve some
problems of today's network architecture, but also provide APIs on the controller
software to allow third-party users to develop related applications based on
corporate policies and needs, such as network security management, load
balancing, bandwidth management QoS, etc. In other words, SDN is a
programmable open network architecture.
CHAPTER 02
Transmission Signals
1. Types of Signals:
○ Analog - Continuous signal variation, often used in older
telecommunication systems.
○ Digital - Discrete signal, common in modern digital communication.
2. Transmission Medium Types:
○ Sound Waves
○ Electric Waves
○ Light Waves
3. Signal Conversion:
○ Most network systems are electronic or optoelectronic, requiring data to
be converted to electronic signals (radio waves or light waves) for
transmission.
Transmission Medium
► In addition, the time indicated by an analog watch is also a typical example of analog
data; in contrast, a watch that displays numbers is a typical example of digital data.
EXERCISE
1. The full name of DTE, DSE, DCE?
a. Data Terminal Equipment
b. Data Switching Equipment
c. Data Circuit-Terminating Equipment
2. Is the network switch a DTE?
a. No, It is Data Switching Equipment
3. Is the PC a DSE?
a. No, It is Data Terminal Equipment
4. Is the Modem a DCE?
a. Yes
5. Is the watch that displays numbers an example of digital data?
a. Yes
ANALOG SIGNAL
Periodic analog signals will be timed and repeated with a predetermined waveform.
The amplitude of the signal change represents the strength of the signal, as shown in
Figure 2-4. The larger the amplitude, the stronger the signal; on the contrary, the
weaker the signal.
The sound frequency that human ears can hear is approximately between 20Hz and
20K Hz. The higher the frequency, the sharper the sound; the lower the frequency, the
deeper the sound. Just as the frequency of the sound produced by female is higher than
that of male.
Analog signals with different phases
Phase refers to the displacement of the signal on the time axis. It is mainly used to
present the time when the signal reaches a certain fixed point, or refers to the phase
angle at a certain point in time.
Composite signal
A composite signal can be viewed as composed of many sine waves. Using Fourier
analysis, it is easy to prove that any composite signal contains sine waves of different
amplitudes, frequencies, and phases.
The changing signal amplitude is compared with the change in time. This kind of graph
is called a time domain graph, but a frequency domain graph can truly show the
relationship between amplitude and frequency.
Figure 2-9(a) represents the time domain of the signal. As for its frequency domain, it
can be represented by Figure 2-9(b). It also shows that the five sine waves in the time
domain can be used in the frequency domain, represented by pulses.
COMPOSITE SIGNAL
Time domain & Frequency Domain
A typical composite signal is shown in Figure 2-10, which indicates the time domain and
corresponding frequency domain of three waveforms.
To find bandwidth, deduct highest frequency to lowest frequency
EXERCISE
What is the name of the graph if the changing signal amplitude is compared with the
change in time?
What is the name of the graph if the changing signal amplitude is compared with the
change in frequency?
What is the bandwidth of the composite signals if the highest frequency is 3KHz and the
lowest frequency is 1KHz?
2KHz
DIGITAL SIGNAL
Computers are based on the binary system, which uses a combination of 0 and 1 to represent
the content of data, and computer network data transmission is mainly based on digital signals.
A digital signal is composed of a series of high potential (representing 1) and low potential
(representing 0) pulse waves.
● Bit: The abbreviation for binary digit. Represents a single 0 or 1 in a digital signal.
● Byte: A group of 8 bits.
● Bit Rate: The data transmission rate measured in bits per second (bps or b/s).
Represents the number of bits transmitted per second
Digital Transmission:
● Uses digital signals to send information from the sending end to the receiving end
through the network or switching equipment.
● Also known as baseband transmission.
Analog Transmission:
Signal Conversion:
● Digital to Digital: This involves converting a digital signal into a different digital
format, such as compressing an image file.
● Analog to Digital: This process converts an analog signal (like sound waves)
into a digital signal (a series of 1s and 0s). This is commonly used for storing and
transmitting audio and video.
● Digital to Analog: This is the reverse of the above process, converting a digital
signal back into an analog one. This is used for playback of digital audio and
video.
● Analog to Analog: This involves converting an analog signal into another analog
signal, often to improve the quality of the signal.
Line Encoding
● Basic form: Digital signals are represented by binary bit codes (0s and 1s).
● Interference Issues: During transmission, various interferences can occur,
causing signal waveform distortion and potentially leading to receiving errors.
● Solution: Line Coding: To address these issues, line coding techniques are
used. These techniques modify the digital signal's waveform to improve its
transmission characteristics and make it more resistant to interference.
● Purpose: To avoid receiving errors in the receiving end.
Benefits:
Signal Level: The encoded signal level is not necessarily the same as the data level.
DC Component = Voltage of all 1 bits /Bits
● Unipolar and Polar Encoding: Line encoding types can be categorized into
unipolar and polar encoding.
Unipolar Transmission:
EXERCISE
1. Which signal comprises a series of high potential (representing 1) and low
potential (representing 0) pulse waves?
Digital Signal
8 bits
To address various interferences, convert binary data into a form that can be
efficiently transmitted over a communication channel
Unipolar Encoding
Polar Encoding
Bipolar Encoding
Key Point:
• It is a polar encoding, and the signal level uses rectangular pulse waves to change the
potential. In this transmission method, 1 and O represent positive potential and
negative-potential respectively, and there is no signal synchronization function.
• Regardless of whether it is 1 or 0, it will switch in the middle of the bit range, indicating
better synchronization capabilities. I represents negative to positive potential and 0
represents positive to negative potential.
Convert digital signals into digital signals - MLT-3 encoding
• The coding rule is that 1 will be converted in the order of + (positive potential), 0 (zero
potential), - (negative potential), and 0 will not convert the potential. Figure 2-23 shows
four signal state changes.
EXERCISE
Regardless of whether the signal is 1 or 0, it will switch in the middle of the bit range,
indicating better synchronization capabilities. Is it true?
True
No
PSTN, it is assumed that digital processing technology has been extensively used in the
voice input by host.A. However, the audio signal in the PSTN system is still transmitted
as an analog signal. Due to the low-frequency digital The signal is very
disadvantageous when transmitted over long distances, so the digital signal needs to be
converted into a high-frequency analog signal before being sent out.
• Therefore, the digital signal of host A must modulate a high-frequency analog signal
(called a carrier); host B then restores the received analog signal to a digital signal. This
conversion is called demodulation. ), conversely, the call from host B to host A also
proceeds in the same way
Sampling
• In the figure, xt) represents the original signal before sampling; and the switch "SW"
automatically switches on and off every T seconds as a sampling device. That is, the
original signal xt) is only sampled at IT, 2T, 3T, etc. time intervals. Because the switch
"SW" is in the on state, there will be an output. The rest of the time, the "SW" is in the
off state and there is no output.
• After this process, the sampled output signal y(t) can be obtained.
Quantify
• The pulse signal generated after the sampling step has many possible values, and
cannot be directly encoded into a binary code. Therefore, the pulse signal needs to be
quantized into a stepped level signal.
coding
• Once the quantized signal becomes a stepped discrete signal, each level can directly
correspond to a binary code This is the so-called "encoding".
1. Sampling
2. Quantization
3. Encoding
MODULATIONS TO COVERT
The frequency of the carrier wave changing with the audio signal is called frequency
modulation.
Convert analog signal to analog signal - PM
Phase modulation (PM) means that the carrier phase changes with the sound signal.
This modulation method is often regarded as another method of frequency modulation.
EXERCISE
1. What is the full name of AM?
Amplitude Modulation
Frequency Modulation
Phase Modulation
1. Simplex:
○ Communication is one-way only.
○ Examples: Radio broadcasting, TV broadcasting, remote control.
Data can only be transmitted from one end to the other, just like a one-way street.
2. Half-duplex:
○ Communication is two-way, but only one direction at a time.
○ Examples: Walkie-talkies, CB radios.
It means that although the two ends can exchange data, they cannot transmit to each
other at the same time.
Example: Walkie-talkies.
3. Full-duplex:
○ Communication is two-way simultaneously.
○ Examples: Telephone conversations, most internet communication.
It means that both the sender and the receiver can send data to each other at the same
time.
EXERCISE
1. What are the three transmission modes of communication systems?
Simplex
Half-Duplex
Full-Duplex
Yes.
EXERCISE
Multiplexing is dividing the available bandwidth on a link among many users. We can
think of it as dividing the bandwidth of a single link (that is, a single link) into many
channels for users.
MUX (Multiplexer) is a device that combines multiple input signals into a single output
signal.
DEMUX (Demultiplexer) is a device that separates a single input signal into multiple
output signals.
FDM divides the spectrum into multiple logical channels, and each user has a dedicated
channel.
Synchronous and asynchronous TDM
Synchronous TDM
Synchronous TDM divides time into many short time periods, and each user periodically
obtains the complete bandwidth during this short time period.
Asynchronous TDM
EXERCISE
What is the full name for TDM?
Time-Division Multiplexing
Frequency-Division Multiplexing
Wave-Division Multiplexing
Asynchronous TDM
● Baseband Transmission:
○ Directly sends digital signals without modulation.
○ Used in telephone lines and optical fiber cables.
○ Example: The signal encoding mentioned in Section 2-5-2.
● Broadband Transmission:
○ Requires modulation to transmit signals.
○ Converts data into modulated signals before transmission.
Key Difference:
Error Detection
Key Point: Extra data helps identify errors during data transmission to ensure accurate
communication
Step 1: Get ASCII Binary Representation From the ASCII table, the characters in
"Hello" are encoded as:
Characte ASCII # of
r (Binary) 1's
H 01001000 2
e 01100101 4
l 01101100 4
l 01101100 4
o 01101111 6
● Even Parity means the total number of 1's (including the parity bit) should be
even.
● If the count of 1's is already even, the parity bit is 0.
● If the count of 1's is odd, the parity bit is 1.
H 01001000 2 0 001001000
e 01100101 4 0 01100101
l 01101100 4 0 01101100
l 01101100 4 0 01101100
o 01101111 6 0 01101111
Now, let's compile the complete message to be sent with the added parity bits:
● H: 0 + 01001000 → 001001000
● e: 0 + 01100101 → 01100101
● l: 0 + 01101100 → 01101100
● l: 0 + 01101100 → 01101100
● o: 0 + 01101111 → 01101111
Final Encoded Message:
Copy code
Explanation Recap
● We used even parity, meaning each 8-bit chunk should have an even number of
1's.
● In this case, all characters already had an even number of 1's, so the parity bit for
each character was 0.
In order to solve the problems of single bit errors, single 2 bit errors, odd number errors,
and serial errors (single multiple bit errors), you can use Cyclic Redundancy Check
(CRC).
How many changes in a second for a 5Hz signal (1) 0.5 (2) 10 (3) 5 (4) None of the
above.
The period is equal to 10µs, which means the frequency is? (1)0.1MHz (2)1MHz
(3)10MHz (4)None of the above.
Which of the following is a unit of network or data transmission rate? (1)byte (2) Hz
(3)bps (4) All of the above are acceptable.
If the bit transmission rate is 2000bps, what is the bit interval? (1)0.25ms (2)0.5ms
(3)0.25s (4)0.5s.
2
If the bit transmission rate is 5000bps, how many bits can be transmitted in 0.05
seconds? (1)10K (2)0.1K (3)0.25K (4)5K.
3
A composite signal can be decomposed into 4 sine waves, namely 1KHz, 1.2KHz,
1.5KHz, and 3KHz. What is the bandwidth of this composite signal? (1)1K (2)2K (3)3K
(4)4K.
How many potential levels does NRZ-I encoding have? (1)1 (2)2 (3)3 (4)4.
A signal is sampled 8000 times per second, and each sample has 16 bits. What is the
bit transmission rate? (1)64Kbps (2)96Kbps (3)112Kbps (4)128AKbps.
For a 5-minute analog speech, if the sampling frequency of telephone speech is 8KHz
and the encoding length is 16 bits, what is the amount of data after digitization?
(1)3.6MB (2)4.8MB (3)6MB (4)7.2MB.
What kind of transmission is the broadcast of radio and television programs? (1)
Full-duplex transmission (2) Half-duplex transmission (3) Simplex transmission (4) None
of the above.
The origin of the development of the Internet is (1) the needs of national defense; (2)
the needs of academia; (3) the needs of the business community; (4) none of the
above.
1
When two computers are directly connected using network cards without going through
Hub/Switch, what must be done with the network cable (1) Any network cable can be
used (2) Jumpers are required (3) This method Doesn't work (4) None of the above.
If users want to access the Internet at home, they must use whose connection service
(1) IP (2) ISP (3) Computer and operating system (4) WWW.
The equipment currently required for Internet access at home must include: (1) Internet;
(2) Telephone number and modem; (3) Computer and operating system; (4) All of the
above.
What is TCP/IP? (1) Address; (2) Transmission Control Protocol and Internet Protocol;
(3) Internet Engineering Task Force; (4) None of the above.
Regarding the description of local network, which of the following statements is incorrect
(1) A network can be composed of only 2 computers (2) A short-distance
communication network (3) Software and hardware resource sharing (4) Unable to send
email.
The highest frequency band used by 802.11ad is (1) 2.4 GHz (2) 5 GHz (3) 7 GHz (4)
60GHz.