SlideShare a Scribd company logo
1 of 23
Computer Networks (CIE 447)
Problem set – Chapter 5
Dr. / Samy Soliman
T. A. :Eng. Menna Mohamed
:Eng. Nourhan Tarek
CIE 447- SPRING 2020
Chapter 1 - Additional problem 2
In a network, a host sends bits at a rate of 100 Kbps. The host’s modem uses 4-FSK.
1) Find the signaling rate and the required bandwidth
Bit rate = signaling rate * bits per signal element
100000 = 𝑆 ∗ log2 4
∴ 𝑆 = 50000 𝑠𝑖𝑔𝑛𝑎𝑙𝑠 𝑝𝑒𝑟 𝑠𝑒𝑐𝑜𝑛𝑑
2) Find the channel capacity if it is noise-free
∵ 𝐵 =
𝑀
2𝑇𝑠
=
𝑀
2
∗ 𝑆 =
4
2
∗ 50000 = 100000 𝑏𝑝𝑠
𝐶 = 2 𝐵 log2 𝑀 = 2 ∗ 100000 ∗ log2 4 = 400000 bps
CIE 447- SPRING 2020 2
Chapter 1 - Additional problem 2
In a network, a host sends bits at a rate of 100 Kbps. The host’s modem uses 4-FSK.
3) Find the channel capacity if the SNR = 20 dB
∵ 𝑆𝑁𝑅𝑑𝐵 = 10 log 𝑆𝑁𝑅
∵ 20 = 10 log 𝑆𝑁𝑅
∴ 𝑆𝑁𝑅 = 102
= 100
𝐶 = 𝐵 log2(1 + SNR) = 100000 ∗ log2(1 + 100) = 665821 bps
CIE 447- SPRING 2020 3
Chapter 1 - Additional problem 3
Consider a communication link with a length of 10 Km, attenuation of 2.5 dB/Km, bandwidth of
10 MHz, propagation speed of 200m/µs and noise PSD of 10−8
Watt/Hz. A signal of power 1
Watt was transmitted over the link. Find:
1) The maximum bit rate of the signal
i. ∵ 𝑃𝑠 = 10 log
𝑃𝑡𝑥
𝑃𝑟𝑥
2.5 ∗ 10 = 10 ∗ log
1
𝑃𝑟𝑥
∴ 𝑃𝑟𝑥 = 3.16 ∗ 10−3 𝑊𝑎𝑡𝑡
ii. ∵ 𝑃𝑛𝑜𝑖𝑠𝑒 = 10−8
∗ 10 ∗ 1000 = 10−4
Watt
iii. ∵ 𝑆𝑁𝑅 =
𝑃𝑟𝑥
𝑃𝑛𝑜𝑖𝑠𝑒
=
3.16 ∗10−3
10−4 = 31.6
∴ 𝐶 = 𝐵 log2 1 + SNR = 10 ∗ 1000 ∗ log2 1 + 31.6 = 50268 𝑏𝑝𝑠
CIE 447- SPRING 2020 4
Chapter 1 - Additional problem 3
Consider a communication link with a length of 10 Km, attenuation of 2.5 dB/Km, bandwidth of
10 MHz, propagation speed of 200m/µs and noise PSD of 10−8
Watt/Hz. A signal of power 1
Watt was transmitted over the link. Find:
2) The propagation delay for one-way trip
𝑑𝑝𝑟𝑜𝑝 =
𝑙𝑒𝑛𝑔𝑡ℎ
𝑠𝑝𝑒𝑒𝑑
=
10 ∗1000
200 ∗1∗106 = 5 ∗ 10−5𝑠𝑒𝑐𝑜𝑛𝑑𝑠.
CIE 447- SPRING 2020 5
Chapter 1 - Additional problem 3
Consider a communication link with a length of 10 Km, attenuation of 2.5 dB/Km, bandwidth of
10 MHz, propagation speed of 200m/µs and noise PSD of 10−8
Watt/Hz. A signal of power 1
Watt was transmitted over the link. Find:
3) The transmission delay of a 20 MByte message
𝑑𝑡𝑟𝑎𝑛𝑠 =
𝑠𝑖𝑧𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑝𝑎𝑐𝑘𝑒𝑡
𝑡𝑟𝑎𝑛𝑠𝑚𝑖𝑠𝑠𝑖𝑜𝑛 𝑟𝑎𝑡𝑒
=
20 ∗1024 ∗1024 ∗8
𝐶
= 3337.5 𝑠𝑒𝑐𝑜𝑛𝑑𝑠
4) The total delay that the previous message experiences
𝑑𝑡𝑜𝑡𝑎𝑙 = 𝑑𝑝𝑟𝑜𝑐 + 𝑑𝑞𝑢𝑒𝑢𝑒 + 𝑑𝑡𝑟𝑎𝑛𝑠 + 𝑑𝑝𝑟𝑜𝑝 = 0 + 0 + 5 ∗ 10−5 + 3337.5 = 3337.5 seconds
CIE 447- SPRING 2020 6
Chapter 5
CIE 447- SPRING 2020 7
Problem 2
 Show (give an example other than the one in Figure 5.5) that two-dimensional parity checks
can correct and detect a single bit error. Show (give an example of) a double-bit error that can be
detected but not corrected.
CIE 447- SPRING 2020 8
Problem 3
Suppose the information portion of a packet (D in
Figure 5.3) contains 10 bytes consisting of the 8-bit
unsigned binary ASCII representation of string
“Networking.” Compute the Internet checksum for this
data.
CIE 447- SPRING 2020 9
N e t w o r k i n g
078 101 116 119 111 114 107 105 110 103
0100 1110 0110 0101 0111 0100 0111 0111 0110 1111 0111 0010 0110 1011 0110 1001 0110 1110 01100111
Problem 3
Suppose the information portion of a packet (D in
Figure 5.3) contains 10 bytes consisting of the 8-bit
unsigned binary ASCII representation of string
“Networking.” Compute the Internet checksum for this
data.
CIE 447- SPRING 2020 10
078 101 116 119 111 114 107 105 110 103
0100 1110 0110 0101 0111 0100 0111 0111 0110 1111 0111 0010 0110 1011 0110 1001 0110 1110 01100111
Problem 3
Suppose the information portion of a packet (D in
Figure 5.3) contains 10 bytes consisting of the 8-bit
unsigned binary ASCII representation of string
“Networking.” Compute the Internet checksum for this
data.
CIE 447- SPRING 2020 11
078 101 116 119 111 114 107 105 110 103
0100 1110 0110 0101 0111 0100 0111 0111 0110 1111 0111 0010 0110 1011 0110 1001 0110 1110 01100111
Problem 4 (*)
Consider the previous problem, but instead suppose these 10 bytes contain
a. the binary representation of the numbers 1 through 10.
b. the ASCII representation of the letters B through K (uppercase).
c. the ASCII representation of the letters b through k (lowercase).
Compute the Internet checksum for this data.
CIE 447- SPRING 2020 12
Problem 5(*)
Consider the 7-bit generator, G=10011, and suppose that D has the value 1010101010. What is
the value of R?
CIE 447- SPRING 2020 13
Problem 6(*)
Consider the previous problem, but suppose that D has the value
a. 1001010101.
b. 0101101010.
c. 1010100000.
CIE 447- SPRING 2020 14
Problem 8
a. Recall that when there are N active nodes, the efficiency of slotted ALOHA 𝑁𝑝(1 – 𝑝)𝑁−1 . Find
the value of p that maximizes this expression.
b. Using the value of p found in (a), find the efficiency of slotted ALOHA by letting N approach
infinity.
Hint: (1 – 1/𝑁)𝑁 approaches 1/e as N approaches infinity
CIE 447- SPRING 2020 15
Problem 9(*)
Show that the maximum efficiency of pure ALOHA is 1/(2e).
Note: the efficiency of pure ALOHA 𝑁𝑝(1 – 𝑝)2(𝑁−1)
CIE 447- SPRING 2020 16
Problem 10
Consider two nodes, A and B, that use the slotted ALOHA protocol to contend for a channel.
Suppose node A has more data to transmit than node B, and node A’s retransmission probability
𝑝𝐴 is greater than node B’s retransmission probability, 𝑝𝐵 .
a. Provide a formula for node A’s average throughput. What is the total efficiency of the protocol
with these two nodes?
b. If 𝑝𝐴 = 2 𝑝𝐵, is node A’s average throughput twice as large as that of node B?
Why or why not? If not, how can you choose 𝑝𝐴 and 𝑝𝐵 to make that happen?
c. In general, suppose there are N nodes, among which node A has retransmission probability 2p
and all other nodes have retransmission probability
Provide expressions to compute the average throughputs of node A and of any other node.
CIE 447- SPRING 2020 17
Problem 11(*)
Suppose four active nodes—nodes A, B, C and D—are competing for access to a channel using
slotted ALOHA. Assume each node has an infinite number of packets to send. Each node
attempts to transmit in each slot with probability p. The first slot is numbered slot 1, the second
slot is numbered slot 2, and so on.
a. What is the probability that node A succeeds for the first time in slot 5?
b. What is the probability that some node (either A, B, C or D) succeeds in slot 4?
c. What is the probability that the first success occurs in slot 3?
d. What is the efficiency of this four-node system?
CIE 447- SPRING 2020 18
Problem 12(*)
Graph the efficiency of slotted ALOHA and pure ALOHA as a function of p for the following
values of N:
a. N = 15.
b. N = 25.
c. N = 35.
CIE 447- SPRING 2020 19
Problem 14
Consider three LANs interconnected by two routers.
a. Assign IP addresses to all of the interfaces. For Subnet 1 use addresses of the form
192.168.1.xxx; for Subnet 2 uses addresses of the form 192.168.2.xxx; and for Subnet 3 use
addresses of the form 192.168.3.xxx.
b. Assign MAC addresses to all of the adapters.
CIE 447- SPRING 2020 20
Problem 14
CIE 447- SPRING 2020 21
Problem 14
Consider three LANs interconnected by two routers.
c. Consider sending an IP datagram from Host E to Host B. Suppose all of the ARP tables are up
to date. Enumerate all the steps.
d. Repeat (c), now assuming that the ARP table in the sending host is empty
(and the other tables are up to date).
CIE 447- SPRING 2020 22
Problem 17
Recall that with the CSMA/CD protocol, the adapter waits K * 512 bit times after a collision,
where K is drawn randomly. For K = 100,
how long does the adapter wait until returning to Step 2 for a 10 Mbps broadcast channel?
For a 100 Mbps broadcast channel?
CIE 447- SPRING 2020 23

More Related Content

Similar to tutorial 3.pptx

BTCL Assistant Manager Previous Year Question by Stack IT Job Solution
BTCL Assistant Manager Previous Year Question by Stack IT Job SolutionBTCL Assistant Manager Previous Year Question by Stack IT Job Solution
BTCL Assistant Manager Previous Year Question by Stack IT Job SolutionEngr. Md. Jamal Uddin Rayhan
 
Chapter 8 switching -computer_network
Chapter 8   switching -computer_networkChapter 8   switching -computer_network
Chapter 8 switching -computer_networkDhairya Joshi
 
Dccn solution
Dccn solutionDccn solution
Dccn solutionsukla
 
CCNAX 200 120 dumps
CCNAX 200 120 dumpsCCNAX 200 120 dumps
CCNAX 200 120 dumpsabdulquyyum
 
Assignment #4-Ch5-6-7-8-Data Communications.pdf
Assignment #4-Ch5-6-7-8-Data Communications.pdfAssignment #4-Ch5-6-7-8-Data Communications.pdf
Assignment #4-Ch5-6-7-8-Data Communications.pdfSoyallRobi
 
Assignment 4 Ch5 6 7 8 Data Communications
Assignment  4 Ch5 6 7 8 Data CommunicationsAssignment  4 Ch5 6 7 8 Data Communications
Assignment 4 Ch5 6 7 8 Data CommunicationsJim Jimenez
 
Software-defined IoT: 6TiSCH Centralized Scheduling and Multipath Construction
Software-defined IoT: 6TiSCH Centralized Scheduling and Multipath ConstructionSoftware-defined IoT: 6TiSCH Centralized Scheduling and Multipath Construction
Software-defined IoT: 6TiSCH Centralized Scheduling and Multipath ConstructionHao Jiang
 

Similar to tutorial 3.pptx (20)

BTCL Assistant Manager Previous Year Question by Stack IT Job Solution
BTCL Assistant Manager Previous Year Question by Stack IT Job SolutionBTCL Assistant Manager Previous Year Question by Stack IT Job Solution
BTCL Assistant Manager Previous Year Question by Stack IT Job Solution
 
Ch08
Ch08Ch08
Ch08
 
Ch08
Ch08Ch08
Ch08
 
Chapter 8 switching -computer_network
Chapter 8   switching -computer_networkChapter 8   switching -computer_network
Chapter 8 switching -computer_network
 
08 Switching
08 Switching08 Switching
08 Switching
 
Dccn solution
Dccn solutionDccn solution
Dccn solution
 
CCNA DUMPS 200-120
CCNA DUMPS 200-120CCNA DUMPS 200-120
CCNA DUMPS 200-120
 
CCNAX 200 120 dumps
CCNAX 200 120 dumpsCCNAX 200 120 dumps
CCNAX 200 120 dumps
 
Assignment #4-Ch5-6-7-8-Data Communications.pdf
Assignment #4-Ch5-6-7-8-Data Communications.pdfAssignment #4-Ch5-6-7-8-Data Communications.pdf
Assignment #4-Ch5-6-7-8-Data Communications.pdf
 
Assignment 4 Ch5 6 7 8 Data Communications
Assignment  4 Ch5 6 7 8 Data CommunicationsAssignment  4 Ch5 6 7 8 Data Communications
Assignment 4 Ch5 6 7 8 Data Communications
 
Lecture 03 networking
Lecture 03 networkingLecture 03 networking
Lecture 03 networking
 
Ip addressing classful
Ip addressing classfulIp addressing classful
Ip addressing classful
 
Ip addressing classful
Ip addressing classfulIp addressing classful
Ip addressing classful
 
Cs8591 Computer Networks
Cs8591 Computer NetworksCs8591 Computer Networks
Cs8591 Computer Networks
 
Data linklayer
Data linklayerData linklayer
Data linklayer
 
6th Semester Electronic and Communication Engineering (2013-December) Questio...
6th Semester Electronic and Communication Engineering (2013-December) Questio...6th Semester Electronic and Communication Engineering (2013-December) Questio...
6th Semester Electronic and Communication Engineering (2013-December) Questio...
 
2013-June: 7th Semester E & C Question Papers
2013-June: 7th Semester E & C Question Papers2013-June: 7th Semester E & C Question Papers
2013-June: 7th Semester E & C Question Papers
 
7th Semester Electronic and Communication Engineering (2013-June) Question Pa...
7th Semester Electronic and Communication Engineering (2013-June) Question Pa...7th Semester Electronic and Communication Engineering (2013-June) Question Pa...
7th Semester Electronic and Communication Engineering (2013-June) Question Pa...
 
3c ethernet
3c ethernet3c ethernet
3c ethernet
 
Software-defined IoT: 6TiSCH Centralized Scheduling and Multipath Construction
Software-defined IoT: 6TiSCH Centralized Scheduling and Multipath ConstructionSoftware-defined IoT: 6TiSCH Centralized Scheduling and Multipath Construction
Software-defined IoT: 6TiSCH Centralized Scheduling and Multipath Construction
 

More from ntabdelnaiem

More from ntabdelnaiem (8)

transport.pdf
transport.pdftransport.pdf
transport.pdf
 
9108528.ppt
9108528.ppt9108528.ppt
9108528.ppt
 
8076892 (1).ppt
8076892 (1).ppt8076892 (1).ppt
8076892 (1).ppt
 
6262846.ppt
6262846.ppt6262846.ppt
6262846.ppt
 
4535092.ppt
4535092.ppt4535092.ppt
4535092.ppt
 
Nested-Loops.pptx
Nested-Loops.pptxNested-Loops.pptx
Nested-Loops.pptx
 
loops_part1.pptx
loops_part1.pptxloops_part1.pptx
loops_part1.pptx
 
If.pptx
If.pptxIf.pptx
If.pptx
 

Recently uploaded

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 

Recently uploaded (20)

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 

tutorial 3.pptx

  • 1. Computer Networks (CIE 447) Problem set – Chapter 5 Dr. / Samy Soliman T. A. :Eng. Menna Mohamed :Eng. Nourhan Tarek CIE 447- SPRING 2020
  • 2. Chapter 1 - Additional problem 2 In a network, a host sends bits at a rate of 100 Kbps. The host’s modem uses 4-FSK. 1) Find the signaling rate and the required bandwidth Bit rate = signaling rate * bits per signal element 100000 = 𝑆 ∗ log2 4 ∴ 𝑆 = 50000 𝑠𝑖𝑔𝑛𝑎𝑙𝑠 𝑝𝑒𝑟 𝑠𝑒𝑐𝑜𝑛𝑑 2) Find the channel capacity if it is noise-free ∵ 𝐵 = 𝑀 2𝑇𝑠 = 𝑀 2 ∗ 𝑆 = 4 2 ∗ 50000 = 100000 𝑏𝑝𝑠 𝐶 = 2 𝐵 log2 𝑀 = 2 ∗ 100000 ∗ log2 4 = 400000 bps CIE 447- SPRING 2020 2
  • 3. Chapter 1 - Additional problem 2 In a network, a host sends bits at a rate of 100 Kbps. The host’s modem uses 4-FSK. 3) Find the channel capacity if the SNR = 20 dB ∵ 𝑆𝑁𝑅𝑑𝐵 = 10 log 𝑆𝑁𝑅 ∵ 20 = 10 log 𝑆𝑁𝑅 ∴ 𝑆𝑁𝑅 = 102 = 100 𝐶 = 𝐵 log2(1 + SNR) = 100000 ∗ log2(1 + 100) = 665821 bps CIE 447- SPRING 2020 3
  • 4. Chapter 1 - Additional problem 3 Consider a communication link with a length of 10 Km, attenuation of 2.5 dB/Km, bandwidth of 10 MHz, propagation speed of 200m/µs and noise PSD of 10−8 Watt/Hz. A signal of power 1 Watt was transmitted over the link. Find: 1) The maximum bit rate of the signal i. ∵ 𝑃𝑠 = 10 log 𝑃𝑡𝑥 𝑃𝑟𝑥 2.5 ∗ 10 = 10 ∗ log 1 𝑃𝑟𝑥 ∴ 𝑃𝑟𝑥 = 3.16 ∗ 10−3 𝑊𝑎𝑡𝑡 ii. ∵ 𝑃𝑛𝑜𝑖𝑠𝑒 = 10−8 ∗ 10 ∗ 1000 = 10−4 Watt iii. ∵ 𝑆𝑁𝑅 = 𝑃𝑟𝑥 𝑃𝑛𝑜𝑖𝑠𝑒 = 3.16 ∗10−3 10−4 = 31.6 ∴ 𝐶 = 𝐵 log2 1 + SNR = 10 ∗ 1000 ∗ log2 1 + 31.6 = 50268 𝑏𝑝𝑠 CIE 447- SPRING 2020 4
  • 5. Chapter 1 - Additional problem 3 Consider a communication link with a length of 10 Km, attenuation of 2.5 dB/Km, bandwidth of 10 MHz, propagation speed of 200m/µs and noise PSD of 10−8 Watt/Hz. A signal of power 1 Watt was transmitted over the link. Find: 2) The propagation delay for one-way trip 𝑑𝑝𝑟𝑜𝑝 = 𝑙𝑒𝑛𝑔𝑡ℎ 𝑠𝑝𝑒𝑒𝑑 = 10 ∗1000 200 ∗1∗106 = 5 ∗ 10−5𝑠𝑒𝑐𝑜𝑛𝑑𝑠. CIE 447- SPRING 2020 5
  • 6. Chapter 1 - Additional problem 3 Consider a communication link with a length of 10 Km, attenuation of 2.5 dB/Km, bandwidth of 10 MHz, propagation speed of 200m/µs and noise PSD of 10−8 Watt/Hz. A signal of power 1 Watt was transmitted over the link. Find: 3) The transmission delay of a 20 MByte message 𝑑𝑡𝑟𝑎𝑛𝑠 = 𝑠𝑖𝑧𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑝𝑎𝑐𝑘𝑒𝑡 𝑡𝑟𝑎𝑛𝑠𝑚𝑖𝑠𝑠𝑖𝑜𝑛 𝑟𝑎𝑡𝑒 = 20 ∗1024 ∗1024 ∗8 𝐶 = 3337.5 𝑠𝑒𝑐𝑜𝑛𝑑𝑠 4) The total delay that the previous message experiences 𝑑𝑡𝑜𝑡𝑎𝑙 = 𝑑𝑝𝑟𝑜𝑐 + 𝑑𝑞𝑢𝑒𝑢𝑒 + 𝑑𝑡𝑟𝑎𝑛𝑠 + 𝑑𝑝𝑟𝑜𝑝 = 0 + 0 + 5 ∗ 10−5 + 3337.5 = 3337.5 seconds CIE 447- SPRING 2020 6
  • 7. Chapter 5 CIE 447- SPRING 2020 7
  • 8. Problem 2  Show (give an example other than the one in Figure 5.5) that two-dimensional parity checks can correct and detect a single bit error. Show (give an example of) a double-bit error that can be detected but not corrected. CIE 447- SPRING 2020 8
  • 9. Problem 3 Suppose the information portion of a packet (D in Figure 5.3) contains 10 bytes consisting of the 8-bit unsigned binary ASCII representation of string “Networking.” Compute the Internet checksum for this data. CIE 447- SPRING 2020 9 N e t w o r k i n g 078 101 116 119 111 114 107 105 110 103 0100 1110 0110 0101 0111 0100 0111 0111 0110 1111 0111 0010 0110 1011 0110 1001 0110 1110 01100111
  • 10. Problem 3 Suppose the information portion of a packet (D in Figure 5.3) contains 10 bytes consisting of the 8-bit unsigned binary ASCII representation of string “Networking.” Compute the Internet checksum for this data. CIE 447- SPRING 2020 10 078 101 116 119 111 114 107 105 110 103 0100 1110 0110 0101 0111 0100 0111 0111 0110 1111 0111 0010 0110 1011 0110 1001 0110 1110 01100111
  • 11. Problem 3 Suppose the information portion of a packet (D in Figure 5.3) contains 10 bytes consisting of the 8-bit unsigned binary ASCII representation of string “Networking.” Compute the Internet checksum for this data. CIE 447- SPRING 2020 11 078 101 116 119 111 114 107 105 110 103 0100 1110 0110 0101 0111 0100 0111 0111 0110 1111 0111 0010 0110 1011 0110 1001 0110 1110 01100111
  • 12. Problem 4 (*) Consider the previous problem, but instead suppose these 10 bytes contain a. the binary representation of the numbers 1 through 10. b. the ASCII representation of the letters B through K (uppercase). c. the ASCII representation of the letters b through k (lowercase). Compute the Internet checksum for this data. CIE 447- SPRING 2020 12
  • 13. Problem 5(*) Consider the 7-bit generator, G=10011, and suppose that D has the value 1010101010. What is the value of R? CIE 447- SPRING 2020 13
  • 14. Problem 6(*) Consider the previous problem, but suppose that D has the value a. 1001010101. b. 0101101010. c. 1010100000. CIE 447- SPRING 2020 14
  • 15. Problem 8 a. Recall that when there are N active nodes, the efficiency of slotted ALOHA 𝑁𝑝(1 – 𝑝)𝑁−1 . Find the value of p that maximizes this expression. b. Using the value of p found in (a), find the efficiency of slotted ALOHA by letting N approach infinity. Hint: (1 – 1/𝑁)𝑁 approaches 1/e as N approaches infinity CIE 447- SPRING 2020 15
  • 16. Problem 9(*) Show that the maximum efficiency of pure ALOHA is 1/(2e). Note: the efficiency of pure ALOHA 𝑁𝑝(1 – 𝑝)2(𝑁−1) CIE 447- SPRING 2020 16
  • 17. Problem 10 Consider two nodes, A and B, that use the slotted ALOHA protocol to contend for a channel. Suppose node A has more data to transmit than node B, and node A’s retransmission probability 𝑝𝐴 is greater than node B’s retransmission probability, 𝑝𝐵 . a. Provide a formula for node A’s average throughput. What is the total efficiency of the protocol with these two nodes? b. If 𝑝𝐴 = 2 𝑝𝐵, is node A’s average throughput twice as large as that of node B? Why or why not? If not, how can you choose 𝑝𝐴 and 𝑝𝐵 to make that happen? c. In general, suppose there are N nodes, among which node A has retransmission probability 2p and all other nodes have retransmission probability Provide expressions to compute the average throughputs of node A and of any other node. CIE 447- SPRING 2020 17
  • 18. Problem 11(*) Suppose four active nodes—nodes A, B, C and D—are competing for access to a channel using slotted ALOHA. Assume each node has an infinite number of packets to send. Each node attempts to transmit in each slot with probability p. The first slot is numbered slot 1, the second slot is numbered slot 2, and so on. a. What is the probability that node A succeeds for the first time in slot 5? b. What is the probability that some node (either A, B, C or D) succeeds in slot 4? c. What is the probability that the first success occurs in slot 3? d. What is the efficiency of this four-node system? CIE 447- SPRING 2020 18
  • 19. Problem 12(*) Graph the efficiency of slotted ALOHA and pure ALOHA as a function of p for the following values of N: a. N = 15. b. N = 25. c. N = 35. CIE 447- SPRING 2020 19
  • 20. Problem 14 Consider three LANs interconnected by two routers. a. Assign IP addresses to all of the interfaces. For Subnet 1 use addresses of the form 192.168.1.xxx; for Subnet 2 uses addresses of the form 192.168.2.xxx; and for Subnet 3 use addresses of the form 192.168.3.xxx. b. Assign MAC addresses to all of the adapters. CIE 447- SPRING 2020 20
  • 21. Problem 14 CIE 447- SPRING 2020 21
  • 22. Problem 14 Consider three LANs interconnected by two routers. c. Consider sending an IP datagram from Host E to Host B. Suppose all of the ARP tables are up to date. Enumerate all the steps. d. Repeat (c), now assuming that the ARP table in the sending host is empty (and the other tables are up to date). CIE 447- SPRING 2020 22
  • 23. Problem 17 Recall that with the CSMA/CD protocol, the adapter waits K * 512 bit times after a collision, where K is drawn randomly. For K = 100, how long does the adapter wait until returning to Step 2 for a 10 Mbps broadcast channel? For a 100 Mbps broadcast channel? CIE 447- SPRING 2020 23