CSIT340 HW05

docx

School

Montclair State University *

*We aren’t endorsed by this school

Course

340

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

3

Uploaded by BarristerOxide13259

Report
HW 5 1. True or false: When an OSPF router sends its link state information, it sends only to its direct neighbors. Explain. False. It sends the link state information to all all routers in the entire AS. 2. True or false: When a RIP router sends its distance vector, it sends only to its direct neighbors. Explain. True. Every node sends its routes to its neighbors. Route information gradually spreads through the network. 3. Consider the following network. With the indicated link costs, use Dijkstra’s shortest-path algorithm to compute the shortest path from y to all network nodes. Show how the algorithm works by computing a table similar to Table 5.1 (in the 7 th edition of the textbook; if you are using the 6 th edition, that is Table 4.3). Step N’ D(t), p(t) D(u), p(u) D(v), p(v) D(w), p(w) D(y), p(y) D(z), p(z) 0 x 3,v 6,w 6,y 8,z 1 xv 7,t 6,u 3,v 6,w 6,y 8,z 2 xvu 7,t 6,u 3,v 6,w 6,y 8,z 3 xvuw 7,t 6,u 3,v 6,w 6,y 8,z 4 xvuwy 7,t 6,u 3,v 6,w 6,y 8,z 5 xvuwyt 7,t 6,u 3,v 6,w 6,y 8,z 6 xvuwyz 7,t 6,u 3,v 6,w 6,y 8,z 4. Consider the network shown below, and assume that each node initially knows the costs to each of its neighbors. Consider the distance-vector algorithm.
HW 5 a. What are the distances from y to all other nodes after y receives one message from each of its direct neighbors (assuming that these messages are the only messages that have been sent and received so far in the entire system)? u -> y = 2 steps v -> y = 3 steps x -> y = 3 steps z -> y = 5 steps b. What are the distances from x to all other nodes after x receives one message from each of its neighbors? u -> x = 4 steps v -> x = 3 steps y -> x = 3 steps z -> x = 2 steps 5. Consider the network shown below. Suppose AS3 and AS2 are running RIP for their intra-AS routing protocol. Suppose AS1 and AS4 are running OSPF for their intra-AS routing protocol. Suppose eBGP and iBGP are used for the inter-AS routing protocol. Initially suppose there is no physical link between AS2 and AS4. a. Router 4c learns about prefix x from which routing protocol: OSPF, RIP, eBGP, or iBGP? OSPF b. Router 3b learns about x from which routing protocol? iBGP. Router 3a is not connected directly to AS4, only AS3. eBPG is used by 3c. The remaining all the router is AS3 will use IBGP with AS4 to connect.
HW 5 c. Router 1a learns about x from which routing protocol? eBGP. The AS3 will send every of its prefix information using AS1 due to router 1c is connected directly with AS3. d. Router 1c learns about x from which routing protocol? iBGP. All the remaining routers except 1d will use iBGP to connect with ‘AS4’. AS3 is connected to AS4 and router 1c is connected with AS4 using eBGP. AS3 will provide prefix info to ‘AS1’. Router 1d learns about 'x' from 'iBGP'. 6. Questions on ICMP. a. What ICMP messages are used in the ping program? Please give the ICMP message type, code, and the description of the message. Echo Reply and Echo Request are the two ICMP messages that are used in the ping program. Both of them are used as a ping reply where Type 8 is known as a ping request. Echo Reply is code 0 and Echo Request is code 8 b. What ICMP messages are used in the traceroute program on a unix-like operating system? Please give the ICMP message type, code and description of the message. ICMP echo requests send in the traceroute programs. Hops between destinations where it can exploit the behavior of sending the TTL that exceeds the messages by routers/hops. TTL is expired and detination port unreachable
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help