SlideShare a Scribd company logo
1 of 3
Download to read offline
EE 333, Communication Networks
Quiz-II (2013-14S)
Maximum Marks = 10 Time=45 minutes
1. For the network shown (with
costs of individual segments as
indicated), find the spanning tree
that will be obtained by applying
the standard spanning tree
algorithm. Clearly indicate the root
port of each bridge and the
designated port for each LAN
segment. [4]
Solution
P1
P3
Bridge B1
P2
P1
P3
Bridge B2
P2
P1
P3
Bridge B3
P2
P1
Bridge B4
P2
P1
Bridge B5
P2
P1
Bridge B6
P2
Cost=3 Cost=5
Cost=3
Cost=1
Cost=4
Cost=2
Cost=2
Root
Bridge
D
D D R
R
R
R
R
D
D
D
2.
(a) Apply Dijkstraโ€™s Algorithm to the network
shown to find the least cost paths from Node 1 to
all the other nodes of the network. Show all the
steps of the procedure in detail (cost and path at
each step) and draw the corresponding tree from
Node 1 to the other nodes of the network. Give
the forwarding table that Node 1 will use to send
packets to the other nodes. [4]
(b) If Node 1 wants to multicast to all the other nodes, what would be the cost of doing this
using the router set up of (a)? [1]
(c) We would like to find the two best paths from a source S to a destination D (in any general
network) so that the two paths do not share any common link. Suggest a way to do this. [1]
Solution
(a)
{N} D2 D3 D4 D5 D6 D7
{1} 3
[1-2]
1
[1-3]
5
[1-4]
โˆž 2
[1-6]
โˆž
{1,3} 2
[1-3-2]
1
[1-3]
2
[1-3-4]
5
[1-3-5]
2
[1-6]
โˆž
{1,3,2} 2
[1-3-2]
1
[1-3]
2
[1-3-4]
5
[1-3-5]
2
[1-6]
4
[1-3-2-7]
{1,3,2,4} 2
[1-3-2]
1
[1-3]
2
[1-3-4]
3
[1-3-4-5]
2
[1-6]
4
[1-3-2-7]
{1,3,2,4,6} 2
[1-3-2]
1
[1-3]
2
[1-3-4]
3
[1-3-4-5]
2
[1-6]
4
[1-3-2-7]
{1,3,2,4,6,5} 2
[1-3-2]
1
[1-3]
2
[1-3-4]
3
[1-3-4-5]
2
[1-6]
4
[1-3-2-7]
{1,3,2,4,6,5,7} 2
[1-3-2]
1
[1-3]
2
[1-3-4]
3
[1-3-4-5]
2
[1-6]
4
[1-3-2-7]
Forwarding Table in Node 1
Destination 2 3 4 5 6 7
Next Node 3 3 3 3 6 3
Routing Tree
(b) Multicasting Cost: Sum of the costs of all the links of the routing tree = 8
(c) First find the lowest cost path between S to D in the given graph. This will be one path.
Now remove all the links of this path from the network graph and find the lowest cost path
in the modified graph. This will be the link-disjoint second best path

More Related Content

What's hot

Double Patterning
Double PatterningDouble Patterning
Double PatterningDanny Luk
ย 
Algebraic data types: Semilattices
Algebraic data types: SemilatticesAlgebraic data types: Semilattices
Algebraic data types: SemilatticesBernhard Huemer
ย 
Dijkstra's algorithm presentation
Dijkstra's algorithm presentationDijkstra's algorithm presentation
Dijkstra's algorithm presentationSubid Biswas
ย 
Double Patterning (4/2 update)
Double Patterning (4/2 update)Double Patterning (4/2 update)
Double Patterning (4/2 update)Danny Luk
ย 
Dynamic clustering algorithm using fuzzy c means
Dynamic clustering algorithm using fuzzy c meansDynamic clustering algorithm using fuzzy c means
Dynamic clustering algorithm using fuzzy c meansWrishin Bhattacharya
ย 
2021 01-04-learning filter-basis
2021 01-04-learning filter-basis2021 01-04-learning filter-basis
2021 01-04-learning filter-basisJAEMINJEONG5
ย 
Double Patterning
Double PatterningDouble Patterning
Double PatterningDanny Luk
ย 
Dijkstra's Algorithm
Dijkstra's AlgorithmDijkstra's Algorithm
Dijkstra's Algorithmguest862df4e
ย 
Fast and Lossless Graph Division Method for Layout Decomposition Using SPQR-Tree
Fast and Lossless Graph Division Method for Layout Decomposition Using SPQR-TreeFast and Lossless Graph Division Method for Layout Decomposition Using SPQR-Tree
Fast and Lossless Graph Division Method for Layout Decomposition Using SPQR-TreeDanny Luk
ย 
2021 03-02-transformer interpretability
2021 03-02-transformer interpretability2021 03-02-transformer interpretability
2021 03-02-transformer interpretabilityJAEMINJEONG5
ย 
Fuzzy c-Means Clustering Algorithms
Fuzzy c-Means Clustering AlgorithmsFuzzy c-Means Clustering Algorithms
Fuzzy c-Means Clustering AlgorithmsJustin Cletus
ย 
Introduction To Advanced Image Processing
Introduction To Advanced Image ProcessingIntroduction To Advanced Image Processing
Introduction To Advanced Image ProcessingSuren Kumar
ย 
Discrete Mathematics Presentation
Discrete Mathematics PresentationDiscrete Mathematics Presentation
Discrete Mathematics PresentationSalman Elahi
ย 
Analysis of CANADAIR CL-215 retractable landing gear.
Analysis of CANADAIR CL-215 retractable landing gear.Analysis of CANADAIR CL-215 retractable landing gear.
Analysis of CANADAIR CL-215 retractable landing gear.Nagesh NARASIMHA PRASAD
ย 
Lecture 5 Relationship between pixel-2
Lecture 5 Relationship between pixel-2Lecture 5 Relationship between pixel-2
Lecture 5 Relationship between pixel-2VARUN KUMAR
ย 
Understand Manifolds using MATLAB
Understand Manifolds using MATLAB Understand Manifolds using MATLAB
Understand Manifolds using MATLAB Pranav Challa
ย 
Survey onhpcs languages
Survey onhpcs languagesSurvey onhpcs languages
Survey onhpcs languagesSaliya Ekanayake
ย 

What's hot (20)

Double Patterning
Double PatterningDouble Patterning
Double Patterning
ย 
Algebraic data types: Semilattices
Algebraic data types: SemilatticesAlgebraic data types: Semilattices
Algebraic data types: Semilattices
ย 
Dijkstra's algorithm presentation
Dijkstra's algorithm presentationDijkstra's algorithm presentation
Dijkstra's algorithm presentation
ย 
Double Patterning (4/2 update)
Double Patterning (4/2 update)Double Patterning (4/2 update)
Double Patterning (4/2 update)
ย 
Dynamic clustering algorithm using fuzzy c means
Dynamic clustering algorithm using fuzzy c meansDynamic clustering algorithm using fuzzy c means
Dynamic clustering algorithm using fuzzy c means
ย 
2021 01-04-learning filter-basis
2021 01-04-learning filter-basis2021 01-04-learning filter-basis
2021 01-04-learning filter-basis
ย 
Double Patterning
Double PatterningDouble Patterning
Double Patterning
ย 
1
11
1
ย 
Clustering tutorial
Clustering tutorialClustering tutorial
Clustering tutorial
ย 
Dijkstra's Algorithm
Dijkstra's AlgorithmDijkstra's Algorithm
Dijkstra's Algorithm
ย 
Fast and Lossless Graph Division Method for Layout Decomposition Using SPQR-Tree
Fast and Lossless Graph Division Method for Layout Decomposition Using SPQR-TreeFast and Lossless Graph Division Method for Layout Decomposition Using SPQR-Tree
Fast and Lossless Graph Division Method for Layout Decomposition Using SPQR-Tree
ย 
2021 03-02-transformer interpretability
2021 03-02-transformer interpretability2021 03-02-transformer interpretability
2021 03-02-transformer interpretability
ย 
Fuzzy c-Means Clustering Algorithms
Fuzzy c-Means Clustering AlgorithmsFuzzy c-Means Clustering Algorithms
Fuzzy c-Means Clustering Algorithms
ย 
d
dd
d
ย 
Introduction To Advanced Image Processing
Introduction To Advanced Image ProcessingIntroduction To Advanced Image Processing
Introduction To Advanced Image Processing
ย 
Discrete Mathematics Presentation
Discrete Mathematics PresentationDiscrete Mathematics Presentation
Discrete Mathematics Presentation
ย 
Analysis of CANADAIR CL-215 retractable landing gear.
Analysis of CANADAIR CL-215 retractable landing gear.Analysis of CANADAIR CL-215 retractable landing gear.
Analysis of CANADAIR CL-215 retractable landing gear.
ย 
Lecture 5 Relationship between pixel-2
Lecture 5 Relationship between pixel-2Lecture 5 Relationship between pixel-2
Lecture 5 Relationship between pixel-2
ย 
Understand Manifolds using MATLAB
Understand Manifolds using MATLAB Understand Manifolds using MATLAB
Understand Manifolds using MATLAB
ย 
Survey onhpcs languages
Survey onhpcs languagesSurvey onhpcs languages
Survey onhpcs languages
ย 

Viewers also liked

Os melhores Sons com certeza tocam aqui, Mit Fm
Os melhores Sons com certeza tocam aqui, Mit FmOs melhores Sons com certeza tocam aqui, Mit Fm
Os melhores Sons com certeza tocam aqui, Mit FmMateus Teles
ย 
2012-04-24 Intacct Cloud Solutions
2012-04-24 Intacct Cloud Solutions2012-04-24 Intacct Cloud Solutions
2012-04-24 Intacct Cloud SolutionsRaffa Learning Community
ย 
Copy of Logo_First HSE World_CMYK
Copy of Logo_First HSE World_CMYKCopy of Logo_First HSE World_CMYK
Copy of Logo_First HSE World_CMYKMartin Tremblay MSc
ย 
Chapitre 1: III. Expiation et miracles.
Chapitre 1: III. Expiation et miracles.Chapitre 1: III. Expiation et miracles.
Chapitre 1: III. Expiation et miracles.Pierrot Caron
ย 
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
2/15/2012 - Wrapping Your Head Around the SharePoint Beast2/15/2012 - Wrapping Your Head Around the SharePoint Beast
2/15/2012 - Wrapping Your Head Around the SharePoint BeastMark Rackley
ย 
Bringing the strongman to open shame
Bringing the strongman to open shameBringing the strongman to open shame
Bringing the strongman to open shameTolulope Ilori
ย 
Enterprise service bus part 2
Enterprise service bus part 2Enterprise service bus part 2
Enterprise service bus part 2Return on Intelligence
ย 
Plan de Negocios y Marketing - Aula Empresa
Plan de Negocios y Marketing - Aula EmpresaPlan de Negocios y Marketing - Aula Empresa
Plan de Negocios y Marketing - Aula EmpresaAula Empresa
ย 
Virtual Reality
Virtual RealityVirtual Reality
Virtual RealityIpsos UK
ย 
Topic-Hoarseness Part1
Topic-Hoarseness Part1Topic-Hoarseness Part1
Topic-Hoarseness Part1Nuuni Numnim
ย 
Esquema prog. anual cta.2016
Esquema prog. anual cta.2016Esquema prog. anual cta.2016
Esquema prog. anual cta.2016Wilmer Flores Castro
ย 
Presentaciรณn ciclo emergencias sanitarias
Presentaciรณn ciclo emergencias sanitariasPresentaciรณn ciclo emergencias sanitarias
Presentaciรณn ciclo emergencias sanitariasEASO Politeknikoa
ย 
Introduction aฬ€ AngularJS dans un contexte Office365
Introduction aฬ€ AngularJS dans un contexte Office365Introduction aฬ€ AngularJS dans un contexte Office365
Introduction aฬ€ AngularJS dans un contexte Office365Sรฉbastien Levert
ย 
Collaboration Stories: How One Tool Doesn't Fit All Anymore
Collaboration Stories: How One Tool Doesn't Fit All AnymoreCollaboration Stories: How One Tool Doesn't Fit All Anymore
Collaboration Stories: How One Tool Doesn't Fit All AnymoreShareGate
ย 
Atenciรณn Sanitaria Especial en Situaciones de Emergencia
Atenciรณn Sanitaria Especial en Situaciones de EmergenciaAtenciรณn Sanitaria Especial en Situaciones de Emergencia
Atenciรณn Sanitaria Especial en Situaciones de EmergenciaUniversity of Alicante
ย 
[Webinar] SharePoint is About to Skyrocket to the Top... Get Ready!
[Webinar] SharePoint is About to Skyrocket to the Top... Get Ready![Webinar] SharePoint is About to Skyrocket to the Top... Get Ready!
[Webinar] SharePoint is About to Skyrocket to the Top... Get Ready!ShareGate
ย 

Viewers also liked (17)

Os melhores Sons com certeza tocam aqui, Mit Fm
Os melhores Sons com certeza tocam aqui, Mit FmOs melhores Sons com certeza tocam aqui, Mit Fm
Os melhores Sons com certeza tocam aqui, Mit Fm
ย 
2012-04-24 Intacct Cloud Solutions
2012-04-24 Intacct Cloud Solutions2012-04-24 Intacct Cloud Solutions
2012-04-24 Intacct Cloud Solutions
ย 
Copy of Logo_First HSE World_CMYK
Copy of Logo_First HSE World_CMYKCopy of Logo_First HSE World_CMYK
Copy of Logo_First HSE World_CMYK
ย 
Chapitre 1: III. Expiation et miracles.
Chapitre 1: III. Expiation et miracles.Chapitre 1: III. Expiation et miracles.
Chapitre 1: III. Expiation et miracles.
ย 
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
2/15/2012 - Wrapping Your Head Around the SharePoint Beast2/15/2012 - Wrapping Your Head Around the SharePoint Beast
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
ย 
Bringing the strongman to open shame
Bringing the strongman to open shameBringing the strongman to open shame
Bringing the strongman to open shame
ย 
Enterprise service bus part 2
Enterprise service bus part 2Enterprise service bus part 2
Enterprise service bus part 2
ย 
Plan de Negocios y Marketing - Aula Empresa
Plan de Negocios y Marketing - Aula EmpresaPlan de Negocios y Marketing - Aula Empresa
Plan de Negocios y Marketing - Aula Empresa
ย 
5th year table quiz
5th year table quiz5th year table quiz
5th year table quiz
ย 
Virtual Reality
Virtual RealityVirtual Reality
Virtual Reality
ย 
Topic-Hoarseness Part1
Topic-Hoarseness Part1Topic-Hoarseness Part1
Topic-Hoarseness Part1
ย 
Esquema prog. anual cta.2016
Esquema prog. anual cta.2016Esquema prog. anual cta.2016
Esquema prog. anual cta.2016
ย 
Presentaciรณn ciclo emergencias sanitarias
Presentaciรณn ciclo emergencias sanitariasPresentaciรณn ciclo emergencias sanitarias
Presentaciรณn ciclo emergencias sanitarias
ย 
Introduction aฬ€ AngularJS dans un contexte Office365
Introduction aฬ€ AngularJS dans un contexte Office365Introduction aฬ€ AngularJS dans un contexte Office365
Introduction aฬ€ AngularJS dans un contexte Office365
ย 
Collaboration Stories: How One Tool Doesn't Fit All Anymore
Collaboration Stories: How One Tool Doesn't Fit All AnymoreCollaboration Stories: How One Tool Doesn't Fit All Anymore
Collaboration Stories: How One Tool Doesn't Fit All Anymore
ย 
Atenciรณn Sanitaria Especial en Situaciones de Emergencia
Atenciรณn Sanitaria Especial en Situaciones de EmergenciaAtenciรณn Sanitaria Especial en Situaciones de Emergencia
Atenciรณn Sanitaria Especial en Situaciones de Emergencia
ย 
[Webinar] SharePoint is About to Skyrocket to the Top... Get Ready!
[Webinar] SharePoint is About to Skyrocket to the Top... Get Ready![Webinar] SharePoint is About to Skyrocket to the Top... Get Ready!
[Webinar] SharePoint is About to Skyrocket to the Top... Get Ready!
ย 

Similar to Quiz 2-solution

Interconnection Network
Interconnection NetworkInterconnection Network
Interconnection NetworkHeman Pathak
ย 
routing algorithm
routing algorithmrouting algorithm
routing algorithmAnusuaBasu
ย 
Cnetwork
CnetworkCnetwork
CnetworkADARSHN40
ย 
Computer networking presentation
Computer networking presentationComputer networking presentation
Computer networking presentationMd. Touhidur Rahman
ย 
Radix-3 Algorithm for Realization of Type-II Discrete Sine Transform
Radix-3 Algorithm for Realization of Type-II Discrete Sine TransformRadix-3 Algorithm for Realization of Type-II Discrete Sine Transform
Radix-3 Algorithm for Realization of Type-II Discrete Sine TransformIJERA Editor
ย 
Radix-3 Algorithm for Realization of Type-II Discrete Sine Transform
Radix-3 Algorithm for Realization of Type-II Discrete Sine TransformRadix-3 Algorithm for Realization of Type-II Discrete Sine Transform
Radix-3 Algorithm for Realization of Type-II Discrete Sine TransformIJERA Editor
ย 
IAP PPT-1.pptx
IAP PPT-1.pptxIAP PPT-1.pptx
IAP PPT-1.pptxHirazNor
ย 
IAP presentation-1.pptx
IAP presentation-1.pptxIAP presentation-1.pptx
IAP presentation-1.pptxHirazNor
ย 
5.2_video_slides.pptx
5.2_video_slides.pptx5.2_video_slides.pptx
5.2_video_slides.pptxDennyHermawan15
ย 
Nov 02 P2
Nov 02 P2Nov 02 P2
Nov 02 P2Samimvez
ย 
JAVA BASED VISUALIZATION AND ANIMATION FOR TEACHING THE DIJKSTRA SHORTEST PAT...
JAVA BASED VISUALIZATION AND ANIMATION FOR TEACHING THE DIJKSTRA SHORTEST PAT...JAVA BASED VISUALIZATION AND ANIMATION FOR TEACHING THE DIJKSTRA SHORTEST PAT...
JAVA BASED VISUALIZATION AND ANIMATION FOR TEACHING THE DIJKSTRA SHORTEST PAT...ijseajournal
ย 
Ee693 sept2014midsem
Ee693 sept2014midsemEe693 sept2014midsem
Ee693 sept2014midsemGopi Saiteja
ย 
VTU 6TH SEM CSE COMPUTER NETWORKS 2 SOLVED PAPERS OF JUNE-2013 JUNE-14 & JUNE...
VTU 6TH SEM CSE COMPUTER NETWORKS 2 SOLVED PAPERS OF JUNE-2013 JUNE-14 & JUNE...VTU 6TH SEM CSE COMPUTER NETWORKS 2 SOLVED PAPERS OF JUNE-2013 JUNE-14 & JUNE...
VTU 6TH SEM CSE COMPUTER NETWORKS 2 SOLVED PAPERS OF JUNE-2013 JUNE-14 & JUNE...vtunotesbysree
ย 
Module 3- transport_layer .pptx
Module 3- transport_layer           .pptxModule 3- transport_layer           .pptx
Module 3- transport_layer .pptxhariprasad279825
ย 
GATE Computer Science Solved Paper 2004
GATE Computer Science Solved Paper 2004GATE Computer Science Solved Paper 2004
GATE Computer Science Solved Paper 2004Rohit Garg
ย 
Route1
Route1Route1
Route1Saeed
ย 
The Curious Clojurist - Neal Ford (Thoughtworks)
The Curious Clojurist - Neal Ford (Thoughtworks)The Curious Clojurist - Neal Ford (Thoughtworks)
The Curious Clojurist - Neal Ford (Thoughtworks)jaxLondonConference
ย 
K means clustering
K means clusteringK means clustering
K means clusteringAhmedasbasb
ย 
Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years PapersRahul Jain
ย 

Similar to Quiz 2-solution (20)

Interconnection Network
Interconnection NetworkInterconnection Network
Interconnection Network
ย 
routing algorithm
routing algorithmrouting algorithm
routing algorithm
ย 
Cnetwork
CnetworkCnetwork
Cnetwork
ย 
Computer networking presentation
Computer networking presentationComputer networking presentation
Computer networking presentation
ย 
Radix-3 Algorithm for Realization of Type-II Discrete Sine Transform
Radix-3 Algorithm for Realization of Type-II Discrete Sine TransformRadix-3 Algorithm for Realization of Type-II Discrete Sine Transform
Radix-3 Algorithm for Realization of Type-II Discrete Sine Transform
ย 
Radix-3 Algorithm for Realization of Type-II Discrete Sine Transform
Radix-3 Algorithm for Realization of Type-II Discrete Sine TransformRadix-3 Algorithm for Realization of Type-II Discrete Sine Transform
Radix-3 Algorithm for Realization of Type-II Discrete Sine Transform
ย 
IAP PPT-1.pptx
IAP PPT-1.pptxIAP PPT-1.pptx
IAP PPT-1.pptx
ย 
IAP presentation-1.pptx
IAP presentation-1.pptxIAP presentation-1.pptx
IAP presentation-1.pptx
ย 
5.2_video_slides.pptx
5.2_video_slides.pptx5.2_video_slides.pptx
5.2_video_slides.pptx
ย 
Nov 02 P2
Nov 02 P2Nov 02 P2
Nov 02 P2
ย 
JAVA BASED VISUALIZATION AND ANIMATION FOR TEACHING THE DIJKSTRA SHORTEST PAT...
JAVA BASED VISUALIZATION AND ANIMATION FOR TEACHING THE DIJKSTRA SHORTEST PAT...JAVA BASED VISUALIZATION AND ANIMATION FOR TEACHING THE DIJKSTRA SHORTEST PAT...
JAVA BASED VISUALIZATION AND ANIMATION FOR TEACHING THE DIJKSTRA SHORTEST PAT...
ย 
Ee693 sept2014midsem
Ee693 sept2014midsemEe693 sept2014midsem
Ee693 sept2014midsem
ย 
VTU 6TH SEM CSE COMPUTER NETWORKS 2 SOLVED PAPERS OF JUNE-2013 JUNE-14 & JUNE...
VTU 6TH SEM CSE COMPUTER NETWORKS 2 SOLVED PAPERS OF JUNE-2013 JUNE-14 & JUNE...VTU 6TH SEM CSE COMPUTER NETWORKS 2 SOLVED PAPERS OF JUNE-2013 JUNE-14 & JUNE...
VTU 6TH SEM CSE COMPUTER NETWORKS 2 SOLVED PAPERS OF JUNE-2013 JUNE-14 & JUNE...
ย 
Module 3- transport_layer .pptx
Module 3- transport_layer           .pptxModule 3- transport_layer           .pptx
Module 3- transport_layer .pptx
ย 
GATE Computer Science Solved Paper 2004
GATE Computer Science Solved Paper 2004GATE Computer Science Solved Paper 2004
GATE Computer Science Solved Paper 2004
ย 
Route1
Route1Route1
Route1
ย 
The Curious Clojurist - Neal Ford (Thoughtworks)
The Curious Clojurist - Neal Ford (Thoughtworks)The Curious Clojurist - Neal Ford (Thoughtworks)
The Curious Clojurist - Neal Ford (Thoughtworks)
ย 
K means clustering
K means clusteringK means clustering
K means clustering
ย 
Branch and bounding : Data structures
Branch and bounding : Data structuresBranch and bounding : Data structures
Branch and bounding : Data structures
ย 
Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years Papers
ย 

More from Gopi Saiteja

Trees gt(1)
Trees gt(1)Trees gt(1)
Trees gt(1)Gopi Saiteja
ย 
Topic11 sortingandsearching
Topic11 sortingandsearchingTopic11 sortingandsearching
Topic11 sortingandsearchingGopi Saiteja
ย 
Hashing gt1
Hashing gt1Hashing gt1
Hashing gt1Gopi Saiteja
ย 
Ee693 sept2014quizgt2
Ee693 sept2014quizgt2Ee693 sept2014quizgt2
Ee693 sept2014quizgt2Gopi Saiteja
ย 
Ee693 sept2014quizgt1
Ee693 sept2014quizgt1Ee693 sept2014quizgt1
Ee693 sept2014quizgt1Gopi Saiteja
ย 
Ee693 sept2014quiz1
Ee693 sept2014quiz1Ee693 sept2014quiz1
Ee693 sept2014quiz1Gopi Saiteja
ย 
Ee693 questionshomework
Ee693 questionshomeworkEe693 questionshomework
Ee693 questionshomeworkGopi Saiteja
ย 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programmingGopi Saiteja
ย 
Cs105 l15-bucket radix
Cs105 l15-bucket radixCs105 l15-bucket radix
Cs105 l15-bucket radixGopi Saiteja
ย 
Chapter11 sorting algorithmsefficiency
Chapter11 sorting algorithmsefficiencyChapter11 sorting algorithmsefficiency
Chapter11 sorting algorithmsefficiencyGopi Saiteja
ย 
Answers withexplanations
Answers withexplanationsAnswers withexplanations
Answers withexplanationsGopi Saiteja
ย 
Solution(1)
Solution(1)Solution(1)
Solution(1)Gopi Saiteja
ย 
Introduction
IntroductionIntroduction
IntroductionGopi Saiteja
ย 
Vector space interpretation_of_random_variables
Vector space interpretation_of_random_variablesVector space interpretation_of_random_variables
Vector space interpretation_of_random_variablesGopi Saiteja
ย 
Statistical signal processing(1)
Statistical signal processing(1)Statistical signal processing(1)
Statistical signal processing(1)Gopi Saiteja
ย 

More from Gopi Saiteja (20)

Trees gt(1)
Trees gt(1)Trees gt(1)
Trees gt(1)
ย 
Topic11 sortingandsearching
Topic11 sortingandsearchingTopic11 sortingandsearching
Topic11 sortingandsearching
ย 
Heapsort
HeapsortHeapsort
Heapsort
ย 
Hashing gt1
Hashing gt1Hashing gt1
Hashing gt1
ย 
Ee693 sept2014quizgt2
Ee693 sept2014quizgt2Ee693 sept2014quizgt2
Ee693 sept2014quizgt2
ย 
Ee693 sept2014quizgt1
Ee693 sept2014quizgt1Ee693 sept2014quizgt1
Ee693 sept2014quizgt1
ย 
Ee693 sept2014quiz1
Ee693 sept2014quiz1Ee693 sept2014quiz1
Ee693 sept2014quiz1
ย 
Ee693 questionshomework
Ee693 questionshomeworkEe693 questionshomework
Ee693 questionshomework
ย 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
ย 
Cs105 l15-bucket radix
Cs105 l15-bucket radixCs105 l15-bucket radix
Cs105 l15-bucket radix
ย 
Chapter11 sorting algorithmsefficiency
Chapter11 sorting algorithmsefficiencyChapter11 sorting algorithmsefficiency
Chapter11 sorting algorithmsefficiency
ย 
Answers withexplanations
Answers withexplanationsAnswers withexplanations
Answers withexplanations
ย 
Sorting
SortingSorting
Sorting
ย 
Solution(1)
Solution(1)Solution(1)
Solution(1)
ย 
Pthread
PthreadPthread
Pthread
ย 
Open mp
Open mpOpen mp
Open mp
ย 
Introduction
IntroductionIntroduction
Introduction
ย 
Cuda
CudaCuda
Cuda
ย 
Vector space interpretation_of_random_variables
Vector space interpretation_of_random_variablesVector space interpretation_of_random_variables
Vector space interpretation_of_random_variables
ย 
Statistical signal processing(1)
Statistical signal processing(1)Statistical signal processing(1)
Statistical signal processing(1)
ย 

Recently uploaded

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
ย 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
ย 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
ย 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
ย 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
ย 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projectssmsksolar
ย 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
ย 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsArindam Chakraborty, Ph.D., P.E. (CA, TX)
ย 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
ย 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
ย 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
ย 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
ย 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
ย 

Recently uploaded (20)

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ย 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
ย 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
ย 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
ย 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
ย 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
ย 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
ย 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
ย 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
ย 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
ย 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
ย 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
ย 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
ย 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
ย 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
ย 

Quiz 2-solution

  • 1. EE 333, Communication Networks Quiz-II (2013-14S) Maximum Marks = 10 Time=45 minutes 1. For the network shown (with costs of individual segments as indicated), find the spanning tree that will be obtained by applying the standard spanning tree algorithm. Clearly indicate the root port of each bridge and the designated port for each LAN segment. [4] Solution P1 P3 Bridge B1 P2 P1 P3 Bridge B2 P2 P1 P3 Bridge B3 P2 P1 Bridge B4 P2 P1 Bridge B5 P2 P1 Bridge B6 P2 Cost=3 Cost=5 Cost=3 Cost=1 Cost=4 Cost=2 Cost=2 Root Bridge D D D R R R R R D D D
  • 2. 2. (a) Apply Dijkstraโ€™s Algorithm to the network shown to find the least cost paths from Node 1 to all the other nodes of the network. Show all the steps of the procedure in detail (cost and path at each step) and draw the corresponding tree from Node 1 to the other nodes of the network. Give the forwarding table that Node 1 will use to send packets to the other nodes. [4] (b) If Node 1 wants to multicast to all the other nodes, what would be the cost of doing this using the router set up of (a)? [1] (c) We would like to find the two best paths from a source S to a destination D (in any general network) so that the two paths do not share any common link. Suggest a way to do this. [1] Solution (a) {N} D2 D3 D4 D5 D6 D7 {1} 3 [1-2] 1 [1-3] 5 [1-4] โˆž 2 [1-6] โˆž {1,3} 2 [1-3-2] 1 [1-3] 2 [1-3-4] 5 [1-3-5] 2 [1-6] โˆž {1,3,2} 2 [1-3-2] 1 [1-3] 2 [1-3-4] 5 [1-3-5] 2 [1-6] 4 [1-3-2-7] {1,3,2,4} 2 [1-3-2] 1 [1-3] 2 [1-3-4] 3 [1-3-4-5] 2 [1-6] 4 [1-3-2-7] {1,3,2,4,6} 2 [1-3-2] 1 [1-3] 2 [1-3-4] 3 [1-3-4-5] 2 [1-6] 4 [1-3-2-7] {1,3,2,4,6,5} 2 [1-3-2] 1 [1-3] 2 [1-3-4] 3 [1-3-4-5] 2 [1-6] 4 [1-3-2-7] {1,3,2,4,6,5,7} 2 [1-3-2] 1 [1-3] 2 [1-3-4] 3 [1-3-4-5] 2 [1-6] 4 [1-3-2-7] Forwarding Table in Node 1 Destination 2 3 4 5 6 7 Next Node 3 3 3 3 6 3
  • 3. Routing Tree (b) Multicasting Cost: Sum of the costs of all the links of the routing tree = 8 (c) First find the lowest cost path between S to D in the given graph. This will be one path. Now remove all the links of this path from the network graph and find the lowest cost path in the modified graph. This will be the link-disjoint second best path