Computer Networks · TEE · papers

Q4(a) · Distance vector at z

2024-02-06 · AI-only Sem V variant

Exact historical variant. Current-syllabus questions solved; excluded topics and source limitations stated.

Q4(a). Initially each node knows only neighbor costs. For undirected edges u–v=1, u–y=2, v–x=3, y–x=3, v–z=6, x–z=2, apply distance vector and show distance-table entries at z. [10 marks]

Answer

Given

At z, neighbor costs c(z,v)=6 and c(z,x)=2; all original links are stated in the question.

To find

Distance table at z over synchronous exchanges.

Formula and why

D_z(d)=\min\{6+D_v(d),\ 2+D_x(d)\}LaTeX: D_z(d)=\min\{6+D_v(d),\ 2+D_x(d)\}

Add the local link cost to each neighbor’s advertised distance. Round0 below uses the neighbors’ initialized direct-link vectors; next rounds use their previous completed exchange.

Solution

Step 1. Evaluate both candidate routes for every destination

Exchange input roundDestinationVia vVia xMinimum
0u7∞7
0v655
0x922
0y∞55
1u766
1v655
1x922
1y955
2u766
2v655
2x922
2y955
3u766
3v655
3x922
3y955

Step 2. Read the converged routes

From z: u=6 viax→v→u; v=5 viax→v; x=2 direct; y=5 viax→y; z=0. The route to u throughx→y→u costs7 and is therefore not the minimum.