CS330: Computer Networks

Announcements

Textbook

Attendance
Password: Your Student Number
Use UTF-8 Encoding
Best Viewed with Mozilla Firefox

Grades
Password: Your Student Number
Use UTF-8 Encoding
Best Viewed with Mozilla Firefox
Grades from 60 are available
Last day for objections is Monday 04/07/1432 12:00
If you cannot have your grade, send an email to: miled at softmote.com with your student id, I will reset your password to your student id.

Course Schedule

 WeekChaptersExams
11432/03/09 - 1432/03/13  
21432/03/16 - 1432/03/20Chap. 1: Basic Concepts 
31432/03/23 - 1432/03/27Chap. 1: Basic Concepts 
41432/03/30 - 1432/04/04Chap. 1: Basic Concepts 
51432/04/07 - 1432/04/11Chap. 2: OSI Model 
61432/04/14 - 1432/04/18Chap. 3: Data-Link Layer 
71432/04/21 - 1432/04/25Chap. 3: Data-Link Layer 
81432/04/28 - 1432/05/02Chap. 3: Data-Link Layer 
91432/05/05 - 1432/05/09 Holidays
101432/05/12 - 1432/05/16Chap. 4: Local Area NetworksProject Proposal
111432/05/19 - 1432/05/23Chap. 4: Local Area Networks
Midterm - Wednesday 23/05/1432 - 16:00
121432/05/26 - 1432/06/01Chap. 5: TCP/IP Networks 
131432/06/04 - 1432/06/08Chap. 5: TCP/IP Networks 
141432/06/11 - 1432/06/15Chap. 5: TCP/IP Networks 
151432/06/18 - 1432/06/22Chap. 5: TCP/IP Networks
Lab Exam
161432/06/25 - 1432/06/29Chap. 5: TCP/IP NetworksProject Validation - Wednesday 29/06/1432
171432/07/02 - 1432/07/06 Finals
181432/07/09 - 1432/07/13 Finals

Grading

Slides



Past Exams


Midterm 1       [ Solution ]

Midterm 2       [ Solution ]

Labs


Lab

Exercises

Chapter 1

Homework (7 exercises) [ Here [doc] ]
[Due Date: 04/04/1432]

Problem P3

Consider an application which transmits data at a steady rate (e.g., the sender generates a
N
bit unit of data every
k
time units, where
k
is small and fixed). Also, when such an application starts, it will stay on for relatively long period of time. Answer the following questions, briefly justifying your answer:
  1. Would a packet-switched network or a circuit-switched network be more appropriate for this application? Why?
  2. Suppose that a packet-switching network is used and the only traffic in this network comes from such applications as described above. Furthermore, assume that the sum of the application data rates is less that the capacities of each and every link. Is some form of congestion control needed? Why?

Problem P5

This elementary problem begins to explore propagation delay and transmission delay, two central concepts in data networking. Consider two hosts, Hosts A and B, connected by a single link of rate
R
bps. Suppose that the two hosts are separted by
m
meters, and suppose the propagation speed along the link is
s
meters/sec. Host A is to send a packet of size
L
bits to Host B.
  1. Express the propagation delay,
    dprop
    in terms of
    m
    and
    s
    .
  2. Determine the transmission time of the packet,
    dtrans
    in terms of
    L
    and
    R
    .
  3. Ignoring processing and queing delays, obtain an expression for the end-to-end delay.
  4. Suppose Host A begins to transmit the packet at time
    t=0
    . At time
    t=dtrans
    , where is the last bit of the packet?
  5. Suppose
    dprop
    is greater than
    dtrans
    . At time
    t=dtrans
    , where is the first bit of the packet?
  6. Suppose
    dprop
    is less than
    dtrans
    . At time
    t=dtrans
    , where is the first bit of the packet?
  7. Suppose
    s
    =2.5*108,
    L
    =100bits and
    R
    =28 kbps. Find the distance
    m
    so that
    dprop
    equals
    dtrans
    .

Problem P7

Suppose users share a 1Mbps link. Also suppose each user requires 100 Kbps when transmitting, but each user transmits only 10 percent of the time.
  1. When circuit switching is used, how many users can be supported?
  2. For the remainder of this problem, suppose packet switching is used. Find the probability that a given user is transmitting.
  3. Suppose there are 40 users. Find the probability that at any given time, exactly n users are transmitting simultaneously. (Hint: Use the binomial distribution.)
  4. Find the probability that there are 11 or more users transmitting simultaneously.

Problem P9

Consider a packet of length
L
which begins at end system A, travels over one link to a packet switch, and travels from the packet switch over a second link to a destination end system. Let
di
,
si
, and
Ri
denote the length, propagation speed, and the transmission rate of link
i
, for
i
=1,2. The packet switch delays each packet by dproc.
  1. Assuming no queuing delays, in terms of
    di
    ,
    si
    ,
    Ri
    , (
    i
    =1,2), and
    L
    , what is the total end-to-end delay for the packet?
  2. Suppose now the packet length is 1000 bytes, the propagation speed on both links is 2.5 108 m/s, the transmission rates of both links is 1Mbps, the packet switch processing delay is 2 msec, the length of the first link is 6000 km, and the length of the last link is 3000 km. For these values, what is the end-to-end delay?

Problem P13

Consider the queueing delay in a router buffer (preceding an outbound link). Suppose all packets are
L
bits, the transmission rate is
R
bps and that
N
packets arrive to the buffer every
LN/R
seconds. Find the average queueing delay of a packet. (Hint: The queuing delay for the first packet is zero; for the second packet
L/R
; for the third packet
2L/R
. The
Nth
packet has already been transmitted when the second batch of packets arrives.)

Problem P18

Suppose two hosts, A and B, are separated by 10,000 kilometers and are connected by a direct link of
R
= 2 Mbps. Suppose the propagation speed over the link is 2.5.108 meters/sec.
  1. Calculate the bandwidth-delay product,
    R.dprop
    .
  2. Consider sending a file of 400,000 bits from Host A to Host B. Suppose the file is sent continuously as one large message. What is the maximum number of bits that will be in the link at any given time?
  3. Provide an interpretation of the bandwidth-delay product.
  4. What is the width (in meters) of a bit in the link?
  5. Derive a general expression for the width of a bit in terms of the propagation speed
    s
    , the transmission rate
    R
    , and the length of the link
    m
    .

Problem 28

An image is 1024 x 768 pixels with 3 bytes/pixel. Assume the image is uncompressed. How long does it take to transmit it over a 56-kbps modem channel? Over a 1-Mbps cable modem? Over a 10-Mbps Ethernet? Over a 100-Mbps Ethernet?

Chapter 3

Homework (7 exercises) [ Here [doc] ]
[Due Date: 28/04/1432]

Exercise 1

Suppose that a Data-Link connection is established between two Data-Link Layer entities A and B using HDLC Protocol. We suppose that A wants to send to B in a single frame the three following bytes: We suppose that B has nothing to send to A.
  1. What is the type of the frame used to transfer these bytes?
  2. What is the total number of bits sent from A to B including all control fields?
  3. Give the binary content of the Control field of the previous frame (sent from A to B) if A requires an immediate acknowledgement.
  4. Cite in the correct order the three tasks performed by the node B when it receives the previous frame sent by A.
  5. Give the binary content of the control field of the frame sent by node B to node A to acknowledge the frame received from node A.
  6. What are the mechanisms used by the HDLC protocol to handle both losses and duplicates?

Chapter 4

Homework (3 exercises) [ Here [doc] ]
[Due Date: 16/05/1432]

Chapter 5

Homework (6 exercises) [ Here [doc] ]
[Due Date: 04/06/1432]



Last Modified: 1432-07-03