






























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!































































Application Transport Network Link Layer Physical
“End hosts” “Clients”, “Users” “End points” “Interior Routers” “Border Routers” “Autonomous System (AS)” or “Domain” Region of a network under a single administrative entity “Route” or “Path”
Lecture#2: Routers Forward Packets to MIT to UW
to NYU Destination Next Hop UCB 4 UW 5 MIT 2 NYU 3 Forwarding Table 111010010 MIT switch# switch# switch# switch#
A D E B C F 2 2 1 3 1 1 2 5 3 5
A D E B C F 2 2 1 3 1 1 2 5 3 5 Source
Step 0 1 2 3 4 5 set S A D(B),p(B) 2,A D(C),p(C) 5,A D(D),p(D) 1,A D(E),p(E) (^) D(F),p(F) A D E B C F 2 2 1 3 1 1 2 5 3 5
1 Initialization: 2 S = {A}; 3 for all nodes v 4 if v adjacent to A 5 then D(v) = c(A,v); 6 else D(v) = ; …
Step 0 1 2 3 4 5 set S A D(B),p(B) 2,A D(C),p(C) 5,A … 8 Loop 9 find w not in S s.t. D(w) is a minimum; 10 add w to S ; 11 update D(v) for all v adjacent to w and not in S : 12 If D(w) + c(w,v) < D(v) then 13 D(v) = D(w) + c(w,v); p(v) = w; 14 until all nodes in S; A D E B C F 2 2 1 3 1 1 2 5 3 5 D(D),p(D) 1,A D(E),p(E) (^) D(F),p(F)