CS 514
CS 514
1. An alternative to a LAN is simply a big timesharing system with terminals for all users. Give two advantages of a client-server system using a LAN. ANS: The advantages of client-server system using LAN are: Resource sharing can be obtained. That is data is available to anyone on the network. Information sharing can be possible where machines can communicate with each other. It simplifies network management. Many simpler machines called clients can work together and everything is controlled by a powerful system called server.
2. A disadvantage of a broadcast subnet is the capacity wasted when multiple hosts attempt to access the channel at the same time. As a simplistic example, suppose that time is divided into discrete slots, with each of the n hosts attempting to use the channel with probability p during each slot. What fractions of the slots are wasted due to collisions? ANS: The fraction of the slots wasted due to collisions = 1 (the fraction of the slots without collisions) There exist two situations without collisions: 1) Successful transmission. One station transmits and the rest of them idle. The probability is n x p x (1 - p) ^ (n - 1). 2) All stations are idle. The probability is (1 - p) ^ n. Therefore, the fraction of slots wasted due to collision = 1 - n x p x (1 - p) ^ (n - 1) - (1 - p) ^ n.
3. What are two reasons for using layered protocols? ANS: The two reasons for using layered protocol are: The design complexity is reduced. Each layer is provided with certain well defined functions to perform.
4. If the unit exchanged at the data link level is called a frame and the unit exchanged at the network level is called a packet, do frames encapsulate packets or do packets encapsulate frames? Explain your answer. Frames encapsulate packets. When the packet enters the data link layer the packet along with header is used as data field of a frame.