2. Suppose we have a 1 MB file we would like to transmit across a network from n
ID: 3598870 • Letter: 2
Question
2. Suppose we have a 1 MB file we would like to transmit across a network from node A to node D. Packets have a length of 500 kB (neglect header). The path from node A to node D passes through three links and two intermediate nodes, B and C, which are store-and-forward devices. The first link from A to B has a rate of 8 Gbps and length of 10 km, the link from B to C has a rate of 2 Gbps and length of 5 km, and the link from C to D has a rate of 4 Gbps and length of 8 km. Assume bits travel at a speed of 2 × 108 in all links. a. What is the total time it takes the first packet to reach D? b. Does the second packet experience queuing delay at B or C? If so, what is the queuing delay at th oe? c. How long does it take to transfer the entire file? d. Repeat (a)-(c) for when we send the 1 MB file from D to AExplanation / Answer
package com;
public class PlynomialDemo
{
public static void main(String[] args)
{
String s1 = "4x^14-3x^12+4x^4+78";
String s2 = "-4x^4-3x^12+4x^17-78";
PolynomialInterface exAsIndex1 = new ArrayWithExponentAsIndexPolynomial(s1);
PolynomialInterface exAsIndex2 = new ArrayWithExponentAsIndexPolynomial(s2);
PolynomialInterface exAsIndex3;
exAsIndex3 = exAsIndex1.subtract(exAsIndex2);
System.out.println("exAsIndex3 = exAsIndex1.subtract(exAsIndex2) " + exAsIndex3);
System.out.println();
}
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.