0% found this document useful (0 votes)
67 views10 pages

MCS 218

IGNOU MCS 2018 Assignment

Uploaded by

rashiace
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
67 views10 pages

MCS 218

IGNOU MCS 2018 Assignment

Uploaded by

rashiace
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 10
ontag Ey ta aha UBLICATION?. ‘na? SUMIL POONA Course Code : MCS-218 Course Tite : Data Communication and Computer Networks Assignment Number : MCA_NEW(I}/218/Assign/2023-24 00" Maximum Marks : 100 & ei Weightage : 30% wwuw.ignousite.com —S Last Dates for Submission 3138 October, 2023 (Fr luy, 2023 Sessoms +15" April, 2024 (For January, 2024 Session) Note:-Thisassignmont only fr students, not fr soll or re-upload any media or wobsit’ Allright reserve to “IGNOU Study Helper. Itis legal to share or reupload it. F anything like this is Found, then appropriate action wil be Yeken and apply copyright ACT te you. You wil be responsible Forilegal work. So don't share and upload on any mela, 1: What is OSI model? What'is TCP/IP model? Compare them. Ans. OSI Model: The 05| (Open Systerns Interconnection) model and the TCP/IP (Transmission Control Protecol/Internet Protocol) model are two conceptual frameworks used to understand and describe how network protocols and. communication oceur in computer networks. Both models provide a layered approach to network communication, but they have some differences in their design and functionality. Sender Butd-uo packets Reciever Himes. +. Dats |-- [protean Lever] ia Freseiaion | Layer [ Session Layer | . | bata [ session Layer | | Transport Layer } seeeeeeee Data | Transport Layer | Network Layer Je l Data al) Network Layer | [Data Link Layer || owe | |---{ data Linke] | Physical Layer [> Data || Physical Layer | 051 Mode! Layers of OS! Model 1. Physical Layer 2. Data Link Layer 3. Network Layer Ignou Study Helper - Sunil Poonia Page 1 E-1+ TOMou Stu Here ons iets Sumle Paula UBLICATIONS 4. Transport Layer 5. Session Layer 6. Presentation Layer 7. Application Layer Layer 1- Physical Layer: The lowest layer of the OSI reference model is the physical layer. It is responsible for the actual physical connection between idual bits front Une devices. The pliysival layer conta ifort ip tne fur oF bilse His wespunsible for thas ne node to the next. When receiving data, this layer will get the signal received and convert it into Os and ‘1s and send them to the Data Link layer, which will put the frame back together. The Functions of the Physical Layer + Bit synchronization: The physical layer provides the synchronization ofthe bits by providing a clock, This clock controls both sender and receiver thus providing synchronization at the bit level ‘+ Bitrate control The Physical layer also defines the transmission rate Le. the number of bits Sent/per second. + Physical topologies: Physical layer specifies how the different, devices/nodes are arranged in @ networkite. bus, star, or mesh topology. + Tronsmission mode: Physical layer also defines how the dota flsws betwcen the two connected devices. The various transmission modes possible are Simplex, half-dup\ex aha full-dupiex. Layer 2- Data Link Layer (DLL): The data link layer is responsible for the node-to-node delivery of the message. The main function of this layeris to make sure data transfer I eror-ree from one node to another, over the physical layer, When a packet arivesna network, it's the responsibility of the DLL to transmit itto the Host using its MAC address. fe The Functions of the Data Link Layer Nom, o ‘+ Framing: Framing isa function ofthe data link ayer. It provides a way {or sender to transmit a set of bits that are meaningful to the receiver. This can be accomplished by attaching special bit patterns to the beginning and end of the frame, + Physical addressing: After creating Frames, the Data link layer adds physical addresses (MAC addresses) of the sender and/or receiver inthe header of each frame. * Error control: The data link layer provides the mechanism of error control in which it detects and retransmits damaged or lost frames. * Flow Control: The data rate must be constant on both sides else the data may get corrupted thus, flow control coordinates the amount of data that can be sent before receiving an acknowledgment, * Access control: When a single communication channel is shared by multiple devices, the MAC sub-layer of the data link layer helps to determine which device has control over the channel at a.given time. Layer 3- Network Layer: The network layer works for the transmission of data from one host to the other located in different networks. it also takes care of packet routing i.e. selection of the shortest path to transmit the packet, from the number of routes available. The sender & receiver's IP addresses are placed in the header by the network layer. The Functions of the Network Layer Ignou Study Helper - Sunil Poonia Page 2 gon ONIAE ‘pete Towou Stony Meee UBLICATIONS Nac? Sumie Paawia ‘© Routing: The network layer protocols determine which route is suitable from source to destination, This function of the network layer iknow a outing + Logical Adcressing: To cenit each deviee on Internetwork uniquely, the network ayer defines an adéresing scheme. The sender & receiver's IP addresses are placed in the header by the network layer. Such an address. distinguishes each device uniquely and universally. Layer 4- Transport Layer: ‘The transport layer provides services to the appilcation layer and takes services from the network layer. The data In the transport layer is referred to as Segments, It is responsible for the End to End Delivery of the complete message. The transport layer also provides the acknowledgment of the successful data transmission and re-transmits the data if an errors found. ‘The Functions of the Transport Layer ‘© Segmentation and Reassembly: This layer accepts the message from the (session) layer, and breaks the message into ‘smaller units. Each of the segments produced has a header associated with it; The transport layer at the destination station reassembles the message. + Service Point Addressing: To deliver the message to the correct process, the transport layer header includes a type of address called service point address or port address. Thus by specifying this address, the transport layer makes sure thatthe message is delivered to the correct process. Layer 5- Session Layer: This layer is responsible for the establishment of connection) maintenance of sessions, and authentication, and also ensures security. fe The Functions ofthe Session ayer os er '* Session establishment, maintenance, and termination: The layer PNR tee Nia TRANSPORT LAYER INTERNET LAYER Cre eam aiid 4 Page 4 ONIAE Touov Srvpy Henpee CATIONS Sumie Paawia ‘LApplication Layer: This is the topmost layer and defines the interface of host programs with the transport layer services. This layer includes all high-level protocols like Telnet, DNS, HTTP, FTP, SMTP, etc. 2cTransport Layer: Its responsible for error-free end-to-end delivery of data, The protocols defined here are Transmission Control Protocol (TCP) and User Datagram Protocol (UDP), 3.lnternet Layer: It defines the protocols for logical transmission of data over the network. The main protocol in this layer is Internet Protocol (IP) and itis supported by the protocols ICMP. IGMP. RARP. and ARP, 4.Host-to- Network Layer (Network Interface): tis the lowest layer that is concerned with the physical transmission of data. ‘TCP/IP does not specifically define any protocol here but supports all the standard protocols Compare TCP/IP and OS! model: TCP refers to Transmission Control Protocol (OSI refers to Open Systems Interconnection. TCP/IP uses both the session and presentation layer inthe | OSI uses different session and presentation layers. application layer itself. - | TCP/IP follows connectionless a horizontal approach (051 follows a vertical approach, “The Transport layer in TCP/IP does not provide aseurance Inthe OSi model, the transport layer provides assurance delivery of packets delivery of packets. Protocols cannot be replaced easily in TCP/IP model. ‘While in the OSI model, Protocols are better covered and are easy to repiace with the technology change: TCP/IP model network layer only provides conneetionless IP) | Connectionless and connection-oriented services are services. The transport layer (TCP) provides connections. provided by the network layer in the OS! model. Q2: What is Packet Switching? What Is Circuit Switching? Compare them. Ans. Packet switching: Packet switching is a connectionless network switching technique. Here, the message is divided and. grouped into a number of units called packets that are individually routed from the source to the destination. There is no need to establish a dedicated circuit for communication. Process: Each packet in a packet switching technique has two parts: a header and a payload. The header contains the addressing information of the packet and is used by the intermediate routers to direct it towards its destination. The payload carries the actual data, A packet is transmitted as soon as itis available in a node, based upon its header information. The packets of a message are not routed via the same path, So, the packets in the message arrives in the destination out of order. Its the responsibility of the destination to reorder the packets in order to retrieve the original message The process is diagrammatically represented in the following figure. Here the message comprises of four packets, A, 8, Cand , which may follow different routes from the sender to the receiver, Ignou Study Helper - Sunil Poonia Page 5 Fees Touu Stor MenPee Nee? Sumit Paowla ‘et fey recon Hoan = Key features of packet switching: ‘+ Packetization: Data is divided into packets before transmission. + Store-and-Forward: Each packet is stored at intermediate network nodes before + Dynamic Routing: Each packet can take a different route to reach i availability, + Shared Resources: The network resources (links and nodes) are shared among multiple users, enabling better resource utilization. + Bursty Traffic: Suitable for bursty data transmission, where data is sent intermittently. 1g Forwarded to the next hop. destination, based on network conditions and Advantages and Disadvantages of Packet Switching Advantages + Delay in delivery of packet is less, since packets are sent as soon as they are available. + Switching devices don't require massive storage, since they don’t have to store the entire messages before forwarding them to the next node, * Data delivery can continue even if some parts of the network faces link failure. Packets can be routed via other paths. # Welluws simultaneous usege of Une sen ch nel by riultiple users, * Itensures better bandwidth usage as a number of packets from multiple sources can be transferred via the same. Disadvantages '* They are unsuitable for applications that cannot afford delays in communication like high quality voice calls. Packet switching high installation costs. + They require complex protocols for delivery. Ignou Study Helper - Sunil Poonia Page 6 ONIAZ UBLICATIONS ‘+ Network problems may introduce errors in packets, delay in delivery of packets or loss of packets. If not properly handled, this may lead to loss of eritical information, Circuit Switching: Circuit Switching is @ connection-oriented service that uses a dedicated path from the sender to the receiver, Before sending any data from the source to the destination, it needs to set up an end-to-end path. Circuit switching has the minimum chance of data lass due to the dedicated circuit path, but a lot of bandwidth is wasted as a path cannot be used by other senders during a congestion. Circuit Switching Three Phases of Circuit Switching Trollowing are the three phases of circuit switching ‘+ Circuit Establishment ~ A dedicated circuit is established between the two'end-devices or from the source to the destination using the number of intermediate switching center offices. The sender from the source side and the receiver from the destination side transmit communication signals to request and ACK of circuit's establishment. The intermediate switches are connected by the physical links. * Data Transfer— After a dedicated connection is established from the source to the destination. Data and voice are traveled from the source to the destination. This connection remains till the communication is the end. * Disconnect the circuit when the data transfer is completed, the circult disconnects the connection. Advantages and Disadvantages of Circuit Switching, Following are the advantages of using circuit switching - * Circuit switching uses a dedicated path exists for the data to travel from source to destination. * thas no header overhead. * fthas no waiting time at any switch and the data is transmitted without any delay, * Data always reaches the other end in order. + Reordering is not required. Ignou Study Helper - Sunil Poonia Page 7 E-1+ TOMou Stu Here Ons iets Sumle Paula UBLICATIONS Following are the disadvantages of using circuit switching ~ * The channel is blocked after the communication is ended, ‘© Circuit switching is inefficient in terms of the utilization of system resources. + Itneeds a long time to establish the connection from the source to the destination. More * Bandwidth is required for the dedicated channels. itis more expensive than other switching techniques, ‘+ Routing decisions cannot be changed once the circuit is established. 3: Explain STOP & WAIT ARQ. Ans, STOP & WAIT ARQ: STOP & WAIT Automatic Repeat Request (ARQ| Is a flow control protocol used in data Communication to ensure reliable transmission of data between a sender and a receiver over an unreliable channel. itis a simple and straightforward mechanism where the sender sends a single packet (frame) to the receiver and waits for an acknowledgment (ACK) from the receiver before sending the next packet. If the sender does not receive an ACK within a certain time, it assumes that the packet was lost or corrupted and retransmits it, Here’s how the STOP & WAIT ARQ protocol works: L.Data Transmission: + The sender divides the data into fixed-size packets (frames) and sends the frst frame to the receiver: + After sending a frame, the sender starts a timer to wait for the ACK from the recelver. 2.Recelver's Processing: © The receiver receives the frame and checks for errors or corruption. * Ifthe frame is error-free, the receiver sends an ACK to the sender indicating successful receipt of the frame. © ifthe frame is corrupted, the receiver discards the frame and does not send an ACK. 3.ACK Reception at Sender: + The sender waits for the ACK to arrive within a specific time window (timeout period), * Ifthe ACK is received before the timeout expires, the sender knows that the frame was successfully received, and it proceeds to send the next frame, + Ifthe ACK isnot received within the timeout period, the sender assumes that the frame was lost or corrupted during ‘transmission, 4.Retransmission: + Ifthe sender does not receive an ACK within the timeout period, it assumes that the frame was lost or corrupted and retransmits the same frame. + The receiver detects the duplicate fame and discards it since it has already processed the original frame and sent an ACK. 5.Repeat Process: * The process continues with the sender sending the next frame after receiving the ACK for the previous frame, or retransmitting the same frame in case of a timeout. Ignou Study Helper - Sunil Poonia Page 8 Touou Stvey HELPER ONIAZ fey lam UBLICATION® ‘ SUNIL POONA [pe Frame st Avene fe. ont ‘ates Beards duptcate Fame Stop and Wait ARQ. a Charactristies of Stop and Walt ARQ: fest a © Ituses a link between sender and receiver as a half-duplex link Soe + Throughput = 1 Data packet/frame per ATT * Ifthe Bandwidth*Delay product is very high, then they stop and wait for protocol ifit fs not so useful. The Sender has ‘to keap waiting for acknowledgements before sending the processed next packet. + itis an example of “Closed Loop OR connection-oriented “ protocols + Itisa special category of SWP where its window size is 1 ‘+ Irrespective of the number of packets sender is having stop and wait for protocol requites only 2 sequence numbers Oand1 Constrai Stop and Wait ARQ has very less efficiency, itcan be improved by increasing the window size. Also, for better efficiency , Go back Ml and Selective Repeat Protocols are used. The Stop and Wait ARQ solves the main three problems but may cause big performance issues as the sender alurays waits for acknowledgement even if it has the next packet ready to send. Consider a situation where you have a high bandwidth connection and propagation delay is also high (you are connected to some server in some other country through a high-speed connection). To solve this problem, we can send more than one packet at atime with a larger sequence number. We will be discussing these protocols in the next articles Ignou Study Helper - Sunil Poonia Page 9 ONIAZ UBLICATIONS So Stop and Wait ARO may work fine where propagation delay is very less for example LAN connections but performs badly for distant connections like satellite connections. Advantages of Stop and Wait ARQ: + Simple Implementation: Stop and Wait ARQis # simple protocol that is easy to implement in both hardware and software. It does not require complex algorithms or hardware components, making it an inexpensive and efficient option. Error Detection: Stop and Walt ARQ detects errors In the transmitted data by using checksums or cycilc redundancy checks (CRC). If an error is detected, the receiver sends a negative acknowledgment (NAK] to the sender, indicating ‘that the data needs to be retransmitted, + Reliable: Stop and Wait ARQ. ensures that the data is transmitted reliably and in order. The receiver cannot move on to the next data packet until it receives the current one. This ensures that the data is received in the correct order and eliminates the possibility of data corruption, + Flow Control: Stop and Wait ARQ can be used for flow control, where the receiver can control the rate at which the sender transmits data. This is useful in situations where the receiver has limited buffer space or processing power. * Backward Compatibility: Stop and Walt ARQ is compatible with many existine systems and protocols, making ita popular choice for communication over unreliable channels. fe et Disadvantages of Stop and Wait ARQ: HA) en * Low Efficiency: Stop and Wait ARQ has low efficiency as it requires the Ee ‘to wait for an acknowledgment from the reteiver before sending the next data packet, This results in a low data transmission rate, especially forlarge data sets, * High Latency: Stop and Wait ARQ introduces additional latency in the transmission of data, 2s the sender must wait ‘or an acknowledgment before sending the next packet. This can be a problem for real-time applications such as, video streaming or online gaming, ‘+ Limited Bandwidth Utilization: Stop and Wait ARQ does not utilize the available bandwidth efficiently, as the sender can transmit only one data packet at a time, This results in underutilization of the channel, which can be a problem in situations where the available bandwidth is limited. + Limited Error Recovery: Stop and Wait ARO. has limited error recovery capabilities. Ifa data packet is lost or corrupted, the sender must retransmit the entire packet, which can be time-consuming and can result in further delays: ‘* Vulnerable to Channel Noise: Stop and Walt ARQ is vulnerable to channel noise, which can cause errors in the ‘transmitted data, This can result in frequent retransmissions and can impact the overall efficiency of the protocol Ignou Study Helper - Sunil Poonia Page 10

You might also like