100% found this document useful (3 votes)
2K views5 pages

Data Communication and Networks

The document contains an assignment for a Data Communication and Networks course. It includes 8 questions asking the student to: 1. Explain protocol layering using the example of airport travel. 2. Discuss the advantages and disadvantages of combining layers in the OSI and TCP/IP models. 3. Draw packet and frame contents at different layers for two computers communicating over multiple hops. 4. Calculate theoretical channel capacity for different bandwidths and SNR values. 5. Calculate minimum required bandwidth for a digitized system operating at a given bit rate. 6. Calculate the bit rate of a signal encoded over a given time period. 7. Calculate the required SNR to achieve

Uploaded by

Nusrat Ullah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
2K views5 pages

Data Communication and Networks

The document contains an assignment for a Data Communication and Networks course. It includes 8 questions asking the student to: 1. Explain protocol layering using the example of airport travel. 2. Discuss the advantages and disadvantages of combining layers in the OSI and TCP/IP models. 3. Draw packet and frame contents at different layers for two computers communicating over multiple hops. 4. Calculate theoretical channel capacity for different bandwidths and SNR values. 5. Calculate minimum required bandwidth for a digitized system operating at a given bit rate. 6. Calculate the bit rate of a signal encoded over a given time period. 7. Calculate the required SNR to achieve

Uploaded by

Nusrat Ullah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

DATA COMMUNICATION AND NETWORKS

MID SEMESTER ASSIGNMENT

Course code: 102002090 ID: 13002


Course Title: Data Communication and Networks Name: Nusratullah
Instructor: Engr. Ghassan Husnain
Program: BS Computer Science
____________________________________________________________________________________

1. Protocol layering can be found in many aspects of our lives such as air travelling.
Imagine you make a round-trip to spend some time on vacation at resort. You need
to go through some processes at your city airport before flying. You also need to
go through some process at your city airport before flying. You also need to go
through some processes when you arrive at the resort airport. Show the protocol
layering for the round trip using some layers such as baggage checking/claiming,
boarding/off-boarding, takeoff/landing.

Ans: Protocol is defined as the set of rules. In protocol performs different functions as pre-
requisite. The following diagram explains the protocol layering in airport that include baggage
checking/claiming, boarding/off-boarding, and takeoff/landing.

Baggage checking Baggage checking

Boarding/ un boarding Boarding/ un boarding

Take off/landing Take off/landing


2. Give some advantages and disadvantages of combining the session, presentation
and application layer in the OSI model into one signal application layer in the TCP/IP
protocol suite (Internet mood).

Ans: Advantages and disadvantages of incorporating the OSI approach into TCP/IP:

OSI Model vs TCP/IP Model


OSI Model
I. In the OSI model, the transport layer is only connection-oriented.
II. OSI model provides a clear distinction between interfaces, services, and protocols.
III. Session and presentation layers are a part of the OSI model.
IV. It is defined after the advent of the Internet.

Advantage:
• It helps you to standardize router, switch, motherboard, and other hardware
• Reduces complexity and standardizes interfaces
• Facilitates modular engineering
• Helps you to ensure interoperable technology
• Helps you to accelerate the evolution
• Protocols can be replaced by new protocols when technology changes.
• Provide support for connection-oriented services as well as connectionless service.
• It is a standard model in computer networking.
• Supports connectionless and connection-oriented services.
Disadvantage:
• Fitting of protocols is a tedious task.
• You can only use it as a reference model.
• It doesn't define any specific protocol.
• In the OSI network layer model, some services are duplicated in many layers such as
the transport and data link layers

3. In figure below, assume that the communication is between a process running at


computer A with port address m and a process running at computer D with port
address n. Show the content of packet and frames at the network, data link, and
transport layer for each hop.

Ans: A/40 LAN1 LAN2

R1 D/80

Sender B/42 C/82

Sender
From above figure shows two computers communicating. Assume the
communication is between a process running at computer A with port
address m and a process running at computer D with port address n.

The sending computer is running one process at this time with port
address m and another computer running one process at this time with
port address m. The packet from the transport layer is then encapsulated
in another packet at the network layer with local source and destination
addresses (A and D). Given physical address from figure 40 sends a
frame to anode with physical address 42. The two nodes are connected
by a link. At the data link layer, this frame contains physical address in
the header. Similarly, this way applies to 80 and 82 from computer B.
Finally, this packet is encapsulated in a frame with the physical source
and destination addresses for the next hop.

4. What is the theoretical capacity of a channel in each of the following cases:


a) Bandwidth: 15 KHz SNRdb = 30
b) Bandwidth: 100 KHz SNRdb = 2
c) Bandwidth: 0.5 MHz SNRdb = 10
Ans: Formula:
The theoretical channel capacity (C)= B* SNRdB / 3
Here, C = channel capacity
B = Bandwidth
SNRdB = Signal-to-noise ratio in decibel units

a) Given data:
B = 15KHz
SNRdB = 30
Therefore, the theoretical channel capacity C = 15* 30/3
= 150 Kbps

a) Given data:
B = 100KHz
SNRdB = 2
Therefore, the theoretical channel capacity C = 100* 2/3
= 66.67 Kbps

a) Given data:
B = 500KHz
SNRdB = 10
Therefore, the theoretical channel capacity C = 500* 10/3
= 1666.67 Kbps
5. A digitized system is operated at 4800 bps. If a signal element encodes an 8-bit
word, what is the minimum required bandwidth of the channel?
Sol: Formula:

In Signal Processing for a noise-free channel, Nyquist's equation is expressed as follows:


C = 2B log2 M

Where, C is upper bound for the data rate of a transmission system, B is the bandwidth (in Hz),
and M denotes the number of signal levels.

Given data:
Now for this problem, we know C = 4800 bps
And log2 M = 8, as the signal element encodes an 8-bit word

So, 2B log2 M = 4800


2B * 8 = 4800
B = 4800 / 8*2
B = 300 Hz

6. What is the bit rate for the signal given below?

Ans: The total number of bits = 8


The time = 8 nanosecond
The bit rate = 8 = 8 x 109 = 1 x 109 b/s
-9
8 x 10 8

7. A capacity of the channel is given as 40 Mbps, the bandwidth of the channel is 6


Mhz. Assuming white thermal noise, what signal-to-noise ratio is required to
achieve this capacity?
Ans: Given data:
Bandwidth (B) = 6 MHz
Intended capacity of the channel (C) = 40 Mbps
Solution: As we know that,
C= B log2 (1+SNR)
40 x 106 = 6 x 106 x log2(1+SNR)
Log2(1+SNR) = 40/6
Log2(1+SNR) = 6.6667
1+SNR = 26.6667
= 101.82
SNR = 101.82 - 1
SNR = 100.82
8. A composite signal that is non-periodic contains frequencies from 20 to 40 KHz. The peak
amplitude is 10V for the lowest and highest signals and is 30V for the 30Khz signal.
Assuming that the amplitudes changes from the minimum to the maximum, draw the
frequency spectrum.

Sol: frequencies = 20 to 40Khz


Bandwidth = highest frequency – lowest frequency
= 40 – 20
= 20 Khz
Amplitude = 10v for the lowest and the highest signals 30v for the 30Khz

Frequency spectrum: Amplitude (v)

30

20

10

Frequencies (f)
10 20 30 40

You might also like