Consider this road network with six cities. Single lines represent 1 lane in each direction, and double lines represent 2 lanes in each direction. 6 mi 3 mi 3 mi 9 mi A 5 mi 5 mi 8 mi F

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
**Vehicular Traffic Networks**

Recall that *latency* is the time it takes to get from one place to another (measured in seconds, minutes, or hours), and *bandwidth* is the amount of something that can pass through a point in a given amount of time (measured in cars per minute, bits per second, etc.).

Consider this road network with six cities. Single lines represent one lane in each direction, and double lines represent two lanes in each direction.

[Diagram Description: A network graph connects the following points, representing cities]
- A to B through four possible routes: ACDB, AEFB, ADB, AEB.
- Distances: A to C = 3 mi, C to D = 6 mi, D to B = 3 mi, A to E = 5 mi, E to F = 8 mi, F to B = 5 mi, A to D = 9 mi, E to D = 9 mi.

1. **There are four different routes to get from A to B (without going in circles). What are the four routes?**
   (In graph theory language, you would say there are four distinct paths that go from A to B without cycles.)

2. **What is the total length of the shortest route?**

3. Assume all the roads have a speed limit of 30 miles per hour.
   - a. **What is the latency of a car traveling from A to B along route ACDB?**
   - b. **What is the latency of a car traveling from A to B along route AEDB?**
   
4. Assume everyone follows the 2-second rule for following distance.
   - a. **What is the bandwidth of the route ACDB?** 
   *(Hint: the bandwidth of a route is limited by the lowest bandwidth of any link in the path.)*
   - b. **What is the bandwidth of the route AEDB?**

5. **Challenge problem:** Now suppose we want to build a house in city B using materials in city A. We have 10,000 bricks that we have to get from A to B as fast as possible. Assume a car can carry 10 bricks, cars always follow the 2-second rule, and there is no other traffic on the road. What is the total time it will take to get all the bricks from A to B? You will have to consider both latency and bandwidth
Transcribed Image Text:**Vehicular Traffic Networks** Recall that *latency* is the time it takes to get from one place to another (measured in seconds, minutes, or hours), and *bandwidth* is the amount of something that can pass through a point in a given amount of time (measured in cars per minute, bits per second, etc.). Consider this road network with six cities. Single lines represent one lane in each direction, and double lines represent two lanes in each direction. [Diagram Description: A network graph connects the following points, representing cities] - A to B through four possible routes: ACDB, AEFB, ADB, AEB. - Distances: A to C = 3 mi, C to D = 6 mi, D to B = 3 mi, A to E = 5 mi, E to F = 8 mi, F to B = 5 mi, A to D = 9 mi, E to D = 9 mi. 1. **There are four different routes to get from A to B (without going in circles). What are the four routes?** (In graph theory language, you would say there are four distinct paths that go from A to B without cycles.) 2. **What is the total length of the shortest route?** 3. Assume all the roads have a speed limit of 30 miles per hour. - a. **What is the latency of a car traveling from A to B along route ACDB?** - b. **What is the latency of a car traveling from A to B along route AEDB?** 4. Assume everyone follows the 2-second rule for following distance. - a. **What is the bandwidth of the route ACDB?** *(Hint: the bandwidth of a route is limited by the lowest bandwidth of any link in the path.)* - b. **What is the bandwidth of the route AEDB?** 5. **Challenge problem:** Now suppose we want to build a house in city B using materials in city A. We have 10,000 bricks that we have to get from A to B as fast as possible. Assume a car can carry 10 bricks, cars always follow the 2-second rule, and there is no other traffic on the road. What is the total time it will take to get all the bricks from A to B? You will have to consider both latency and bandwidth
**Data Networks**

Latency and bandwidth are used to measure speed in computer networks. The latency (sometimes called the ping) is how long it takes one bit to get across the network. The bandwidth is how many bits can go by in a second. The bandwidth is analogous to the 2-second rule in the vehicular traffic example.

Suppose two computers (A and B) are connected in a network.  
- The latency of the connection is 20 ms (0.020 seconds), and the bandwidth of the connection is 40 kbps (40000 bits per second). (This is a pretty typical latency, but it’s a very low bandwidth these days. It’s like dial-up rate.)

   6. How long does it take 1 bit to get from A to B?
   
   7. How long does it take 2 bits to get from A to B? Hint: The second bit can follow right after the first bit. You don’t have to wait for the first bit to reach B before A sends the second bit.

The formula to find the total amount of time it takes to get a file across the network is:   

For example, if you are sending an 80000 bit file across the network described above, the formula says the time required is 2.02 seconds:   

This formula works because it takes 0.02 seconds for the first bit to get across the network (the latency). Then all the other bits are following right after it, one after the other as fast as the bandwidth allows. Since the bandwidth is 40 kbps, 40000 bits are arriving at computer B every second. In this example, it takes 2 full seconds to get all the bits into computer B.

**Diagram Explanation:**  
A diagram is shown with two icons representing a computer network and numbers representing latency and bandwidth.  

- **Latency:** 10 ms
- **Bandwidth:**  
  - 1 MB file   
  - 80 kbps

Now suppose you want to send a 1-megabyte file across the computer network above.  
   8. How many bytes are in the file?  
   
   9. How many bits are in the file?  
   
   10. Use the formula to find the total amount of time it will take to send the file over the network. Make sure the units are consistent.
Transcribed Image Text:**Data Networks** Latency and bandwidth are used to measure speed in computer networks. The latency (sometimes called the ping) is how long it takes one bit to get across the network. The bandwidth is how many bits can go by in a second. The bandwidth is analogous to the 2-second rule in the vehicular traffic example. Suppose two computers (A and B) are connected in a network. - The latency of the connection is 20 ms (0.020 seconds), and the bandwidth of the connection is 40 kbps (40000 bits per second). (This is a pretty typical latency, but it’s a very low bandwidth these days. It’s like dial-up rate.) 6. How long does it take 1 bit to get from A to B? 7. How long does it take 2 bits to get from A to B? Hint: The second bit can follow right after the first bit. You don’t have to wait for the first bit to reach B before A sends the second bit. The formula to find the total amount of time it takes to get a file across the network is: For example, if you are sending an 80000 bit file across the network described above, the formula says the time required is 2.02 seconds: This formula works because it takes 0.02 seconds for the first bit to get across the network (the latency). Then all the other bits are following right after it, one after the other as fast as the bandwidth allows. Since the bandwidth is 40 kbps, 40000 bits are arriving at computer B every second. In this example, it takes 2 full seconds to get all the bits into computer B. **Diagram Explanation:** A diagram is shown with two icons representing a computer network and numbers representing latency and bandwidth. - **Latency:** 10 ms - **Bandwidth:** - 1 MB file - 80 kbps Now suppose you want to send a 1-megabyte file across the computer network above. 8. How many bytes are in the file? 9. How many bits are in the file? 10. Use the formula to find the total amount of time it will take to send the file over the network. Make sure the units are consistent.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Network Transmission Cabling
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education