cn3201cs.files.wordpress.com · web viewcomputer networks (final exam) question # 1: the two main...

14
Computer Networks (Final Exam) Question # 1: a) The two main allocation channel categories are: 1- Static Channel Allocation: The traditional way of allocating a single channel, such as a telephone trunk, among multiple competing users is Frequency Division Multiplexing (FDM). If there are N users, the bandwidth is divided into N equal-sized portions, each user being assigned one portion. Since each user has a private frequency band, there is no interference between users. When there is only a small and constant number of users each of which has a heavy (buffered) load of traffic (e.g., carriers' switching offices), FDM is a simple and efficient allocation mechanism. 2- Dynamic Channel Allocation: Station Model: The model consists of N independent stations (e.g., computers, telephones, or personal communicators), each with a program or user that generates frames for transmission. Stations are sometimes called terminals. Once a frame has been generated, the station is blocked and does nothing until the frame has been successfully transmitted. Single Channel Assumption: A single channel is available for all communication. All stations can transmit on it and all can receive from it. Collision Assumption: If two frames are transmitted simultaneously, they overlap in time and the resulting signal is garbled. This event is called a collision. All stations can detect collisions. A collided frame must be transmitted again later. 1

Upload: phunganh

Post on 24-Apr-2018

225 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: cn3201cs.files.wordpress.com · Web viewComputer Networks (Final Exam) Question # 1: The two main allocation channel categories are: Static Channel Allocation: The traditional way

Computer Networks (Final Exam)

Question # 1:

a) The two main allocation channel categories are:

1- Static Channel Allocation: The traditional way of allocating a single channel, such as a telephone trunk, among multiple competing users is Frequency Division Multiplexing (FDM). If there are N users, the bandwidth is divided into N equal-sized portions, each user being assigned one portion. Since each user has a private frequency band, there is no interference between users. When there is only a small and constant number of users each of which has a heavy (buffered) load of traffic (e.g., carriers' switching offices), FDM is a simple and efficient allocation mechanism.

2- Dynamic Channel Allocation: Station Model: The model consists of N independent stations (e.g., computers, telephones, or personal communicators), each with a program or user that generates frames for transmission. Stations are sometimes called terminals. Once a frame has been generated, the station is blocked and does nothing until the frame has been successfully transmitted.

Single Channel Assumption: A single channel is available for all communication. All stations can transmit on it and all can receive from it.

Collision Assumption: If two frames are transmitted simultaneously, they overlap in time and the resulting signal is garbled. This event is called a collision. All stations can detect collisions. A collided frame must be transmitted again later.

4a. Continuous Time: Frame transmission can begin at any instant. There is no master clock dividing time into discrete intervals.

4b. Slotted Time: Time is divided into discrete intervals (slots). Frame transmissions always begin at the start of a slot. A slot may contain 0, 1, or more frames,

1

Page 2: cn3201cs.files.wordpress.com · Web viewComputer Networks (Final Exam) Question # 1: The two main allocation channel categories are: Static Channel Allocation: The traditional way

corresponding to an idle slot, a successful transmission, or a collision, respectively.

5a. Carrier Sense: Stations can tell if the channel is in use before trying to use it. If the channel is sensed as busy, no station will attempt to use it until it goes idle.

5b. No Carrier Sense: Stations cannot sense the channel before trying to use it. They just go ahead and transmit. Only later can they determine whether the transmission was successful.

b) The Two ALOHA Protocols:

1- Pure ALOHA: - The basic idea of an ALOHA system is simple:

let users transmit whenever they have data to be sent. There will be collisions, of course, and the colliding frames will be damaged. However, due to the feedback property of broadcasting, a sender can always find out whether its frame was destroyed by listening to the channel, the same way other users do.

- Frames are transmitted at completely arbitrary times.

2- Slotted ALOHA: - Divide time into discrete intervals, each

interval corresponding to one frame. This approach requires the users to agree on slot boundaries. One way to achieve synchronization would be to have one special station emit a pip at the start of each interval, like a clock.

- A computer is not permitted to send whenever a carriage return is typed. Instead, it is required to wait for the beginning of the next slot.

2

Page 3: cn3201cs.files.wordpress.com · Web viewComputer Networks (Final Exam) Question # 1: The two main allocation channel categories are: Static Channel Allocation: The traditional way

Question # 2:

a)

- CSMA Carrier Sense Multiple Access Protocols

Protocol in which stations listen for a carrier (i.e., a transmission) and act accordingly

- CSMA / CD CSMA with Collision Detection

if two stations sense the channel to be idle and begin transmitting simultaneously, they will both detect the collision almost immediately. Rather than finish transmitting their frames, which are irretrievably garbled anyway, they should abruptly stop transmitting as soon as the collision is detected. Quickly terminating damaged frames saves time and bandwidth.

- T Time of Transmission

- a normalized delay

3

Page 4: cn3201cs.files.wordpress.com · Web viewComputer Networks (Final Exam) Question # 1: The two main allocation channel categories are: Static Channel Allocation: The traditional way

is the normalized delay of the packet which is the ratio of the propagation delay of the packet to all its transmission time.

b) CSMA / CD Protocol:

if two stations sense the channel to be idle and begin transmitting simultaneously, they will both detect the collision almost immediately. Rather than finish transmitting their frames, which are irretrievably garbled anyway, they should abruptly stop transmitting as soon as the collision is detected. Quickly terminating damaged frames saves time and bandwidth.

At the point marked t0, a station has finished transmitting its frame. Any other station having a frame to send may now attempt to do so. If two or more stations decide to transmit simultaneously, there will be a collision. Collisions can be detected by looking at the power or pulse width of the received signal and comparing it to the transmitted signal.

After a station detects a collision, it aborts its transmission, waits a random period of time, and then tries again, assuming that no other station has started transmitting in the meantime.

4

Page 5: cn3201cs.files.wordpress.com · Web viewComputer Networks (Final Exam) Question # 1: The two main allocation channel categories are: Static Channel Allocation: The traditional way

5

Page 6: cn3201cs.files.wordpress.com · Web viewComputer Networks (Final Exam) Question # 1: The two main allocation channel categories are: Static Channel Allocation: The traditional way

c) The channel capacity:

Question # 3:

a)

6

Page 7: cn3201cs.files.wordpress.com · Web viewComputer Networks (Final Exam) Question # 1: The two main allocation channel categories are: Static Channel Allocation: The traditional way

b) Design issues for the layers:

- Addressing:

Every layer needs a mechanism for identifying senders and receivers. Since a network normally has many computers, some of which have multiple processes, a means is needed for a process on one machine to specify with whom it wants to talk. As a consequence of having multiple destinations, some form of addressing is needed in order to specify a specific destination.

- Error Control:

Error control is an important issue because physical communication circuits are not perfect. Many error-detecting and error-correcting codes are known, but both ends of the connection must agree on which one is being used. In addition, the receiver must have some way of telling the sender which messages have been correctly received and which have not.

- Flow Control

how to keep a fast sender from swamping a slow receiver with data. A solution involves some kind of feedback from the receiver to the sender, either directly or indirectly, about the receiver's current situation. Others limit the sender to an agreed-on transmission rate. This subject is called flow control.

- Multiplexing

When it is inconvenient or expensive to set up a separate connection for each pair of communicating processes, the underlying layer may decide to use the same connection for multiple, unrelated conversations. As long as this multiplexing and demultiplexing is done transparently, it can be used by any layer.

- Routing

When there are multiple paths between source and destination, a route must be chosen. Sometimes this decision must be split over two or more layers.

7

Page 8: cn3201cs.files.wordpress.com · Web viewComputer Networks (Final Exam) Question # 1: The two main allocation channel categories are: Static Channel Allocation: The traditional way

c) The process of modulation:

determines the number of bits/symbol. The bit rate is the amount of information sent over the channel and is equal to the number of symbols/sec times the number of bits/symbol. As attenuation and propagation speed are frequency dependent, it is undesirable to have a wide range of frequencies in the signal.

- The different modulation techniques:

1- Amplitude Modulation: two different amplitudes are used to represent 0 and 1

2- Frequency Modulation:

8

Page 9: cn3201cs.files.wordpress.com · Web viewComputer Networks (Final Exam) Question # 1: The two main allocation channel categories are: Static Channel Allocation: The traditional way

known as frequency shift keying, two (or more) different tones are used. (The term keying is also widely used in the industry as a synonym for modulation

3- Phase Modulation: the carrier wave is systematically shifted 0 or 180 degrees at uniformly spaced intervals. A better scheme is to use shifts of 45, 135, 225, or 315 degrees to transmit 2 bits of information per time interval. Also, always requiring a phase shift at the end of every time interval, makes it is easier for the receiver to recognize the boundaries of the time intervals.

Question # 4:

a) Piggybacking:

When a data frame arrives, instead of immediately sending a separate control frame, the receiver restrains itself and waits until the network layer passes it the next packet. The acknowledgement is attached to the outgoing data frame (using the ack field in the frame header). In effect, the acknowledgement gets a free ride on the next outgoing data frame. The technique of temporarily delaying outgoing acknowledgements so that they can be hooked onto the next outgoing data frame is known as piggybacking.

b) Normal scenario:

9

Page 10: cn3201cs.files.wordpress.com · Web viewComputer Networks (Final Exam) Question # 1: The two main allocation channel categories are: Static Channel Allocation: The traditional way

c)

d) Semantic wave diagram:

10

Page 11: cn3201cs.files.wordpress.com · Web viewComputer Networks (Final Exam) Question # 1: The two main allocation channel categories are: Static Channel Allocation: The traditional way

Question # 5:

a) Different switching techniques:

- Circuit Switching:

The switching equipment within the telephone system seeks out a physical path all the way from your telephone to the receiver's telephone

- Message Switching:

When this form of switching is used, no physical path is established in advance between sender and receiver. Instead, when the sender has a block of data to be sent, it is stored in the first switching office (i.e., router) and then forwarded later, one hop at a time. Each block is received in its entirety, inspected for errors, and then retransmitted. A network using this technique is called a store-and-forward network,

- Packet Switching:

11

Page 12: cn3201cs.files.wordpress.com · Web viewComputer Networks (Final Exam) Question # 1: The two main allocation channel categories are: Static Channel Allocation: The traditional way

There is no limit at all on block size, which means that routers (in a modern system) must have disks to buffer long blocks. It also means that a single block can tie up a router-router line for minutes, rendering message switching useless for interactive traffic.

Figure. Timing of events in (a) circuit switching, (b) message switching, (c) packet switching.

- Comparison between them:

12

Page 13: cn3201cs.files.wordpress.com · Web viewComputer Networks (Final Exam) Question # 1: The two main allocation channel categories are: Static Channel Allocation: The traditional way

b)

c)

d)

PAR: Positive Acknowledgement with Retransmission, Protocols in which the sender waits for a positive acknowledgement before advancing to the next data item

13

Page 14: cn3201cs.files.wordpress.com · Web viewComputer Networks (Final Exam) Question # 1: The two main allocation channel categories are: Static Channel Allocation: The traditional way

With my best wishes

14