Redes de Computadores I Gabarito da Lista de ExercÃcios 2 1 ... - UFF
Redes de Computadores I Gabarito da Lista de ExercÃcios 2 1 ... - UFF
Redes de Computadores I Gabarito da Lista de ExercÃcios 2 1 ... - UFF
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Tabela <strong>de</strong> A<br />
A<br />
0<br />
-<br />
B<br />
1<br />
B<br />
C<br />
1<br />
C<br />
A<br />
Tabela <strong>de</strong> B<br />
A<br />
1<br />
A<br />
B<br />
0<br />
-<br />
C<br />
2<br />
A<br />
B<br />
A<br />
A<br />
0<br />
B<br />
∞<br />
C<br />
1<br />
vetores<br />
C<br />
Tabela <strong>de</strong> C<br />
A<br />
1<br />
A<br />
B<br />
2<br />
A<br />
C<br />
0<br />
-<br />
B<br />
A<br />
B<br />
C<br />
∞<br />
0<br />
∞<br />
C<br />
A<br />
B<br />
C<br />
∞<br />
∞<br />
0<br />
A<br />
A<br />
B<br />
C<br />
0<br />
1<br />
∞<br />
vetores<br />
vetores<br />
2) Consi<strong>de</strong>re que, usando um algoritmo <strong>de</strong> roteamento baseado em link state, o roteador F<br />
tenha recebido LSPs (link state packets) <strong>de</strong> ca<strong>da</strong> um dos outros roteadores <strong>da</strong> re<strong>de</strong>. As<br />
informações recebi<strong>da</strong>s por F estão ilustra<strong>da</strong>s abaixo:<br />
En<strong>de</strong>reço do roteador<br />
En<strong>de</strong>reço do vizinho/custo<br />
En<strong>de</strong>reço do vizinho/custo<br />
A<br />
C 2<br />
B<br />
C 1<br />
C<br />
A 2<br />
D<br />
C 3<br />
E<br />
C 2<br />
F<br />
D 4<br />
G<br />
F 1<br />
B<br />
1<br />
F<br />
4<br />
F<br />
4<br />
E<br />
4<br />
D 3<br />
G 1<br />
E 2<br />
Desenhe o grafo que representa a topologia completa <strong>da</strong> re<strong>de</strong> (com nós e custos). Simule,<br />
passo a passo, a execução do algoritmo <strong>de</strong> Dijkstra e calcule a tabela <strong>de</strong> rotas<br />
(en<strong>de</strong>reço/custo/linha_<strong>de</strong>_saí<strong>da</strong>) do nó F, consi<strong>de</strong>rando os caminhos <strong>de</strong> menor custo.<br />
Com as informações recebi<strong>da</strong>s dos outros roteadores contendo os vizinhos <strong>de</strong> ca<strong>da</strong> um e o<br />
custo <strong>de</strong> ca<strong>da</strong> enlace para atingir ca<strong>da</strong> vizinho, po<strong>de</strong>mos montar o mapa <strong>da</strong> topologia <strong>da</strong><br />
re<strong>de</strong>:<br />
A<br />
2 3 D 4<br />
1<br />
C<br />
F G<br />
B<br />
Simulando a execução do algoritmo <strong>de</strong> Dijkstra:<br />
1<br />
2<br />
E<br />
4