


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of computer networks, covering key concepts such as data sharing, reliability, and security. It categorizes network types based on geographical area, including personal area networks (pans). Data flow, the osi model, and the functions of each layer, including the physical, data link, network, presentation, and transport layers. It also discusses error detection and correction techniques, flow control, random access protocols like pure aloha, and quality of service (qos) improving techniques such as the leaky bucket and token bucket algorithms. The document concludes with an overview of the simple network management protocol (snmp) and its role in managing network devices. Useful for students and professionals seeking to understand the fundamentals of computer networks and data communication.
Typology: Study notes
1 / 34
This page cannot be seen from the preview
Don't miss anything!



























A Computer Network is simply a group of computers (or other devices like phones, printers, etc.) that are connected together so they can share information and resources. Think of it as a system that allows devices to talk to each other. PARTS :
COMPUTER NETWORK TYPES : Computer networks can be categorized in several ways.
➢ DATA REPRESENTATION : Information today comes in different forms such as text, numbers, images, audio, and video
➢ TOPOLOGY : The physical arrangement of the computer system node, which is connected to each other each other via communication medium is called topology. 6 types of topology: Bus, Ring, Star, Mess, Hybrid & Tree
1. Bus Topology: In bus topology one long c able acts as a single communication channel and all the devices are connected to this cable. Advantages Disadvantages Requires only one cable. If cable is fail then the entire network will be failed It is less expensive. The messages are broadcast. So we can't send private messages. It is very easy to maintain. It takes more time to pass the messages from one place to another place. In case of any computer failure there will be no effect on other devices. The length of cable is limited. It broadcast the messages to each devices which are connected through the cable. In this topology data is transmitted only one direction. 2. Ring Topology: It is called ring topology because it forms a ring. In this topology each node is strongly connected with its adjacent node. Advantages Disadvantages It forms a strong network. Very difficult task to add some new computer. Each & every node can share data with another node connected through a ring topology. If we want to send data from a source to destination machine then data will unnecessary passed to all nodes. example WhatsApp Group. Transmission rate of data is very speed. Single point of failure that means if a node goes down entire network goes down. The data send through ring topology will be broadcast (not personal). We can't send private messages (broadcast). 3. Star Topology: In star topology all the nodes are connected with Central device called HUB. And the sharing of data is only possible through HUB.
❖ QUESTION: If any organization wants two set up a network with 6 computers then how many links can be required for this ANSWER: Links for 6 Computers : The number of links required depends on the chosen topology. Mesh Topology (Full Mesh): In a full mesh topology, every device is directly connected to every other device. For 6 computers, you'd need:
5. SESSION LAYER: This layer manages the connections between applications. It's responsible for starting, maintaining, and ending communication sessions. This OSI layer is also responsible for data synchronization to maintain smooth data flow. This implies that in situations where large volumes of data are sent at once, layer 5 can break down the data into smaller chunks by adding checkpoints. Real-life example: The conversation between two people on a phone call, where the session is established, maintained, and ended. Like the actual phone call itself. 4. TRANSPORT LAYER: The transport layer allows safe message transfer between the sender and the receiver. It divides the data received from the layer above into smaller segments. It also reassembles the data at the receiver side to allow the session layer to read it. Layer 4 performs two critical functions: flow control & error control. Flow control ensures that the communicating device with a good network connection while Error control refers to the error-checking functionality. Real-life example: The assurance that your letter will arrive complete and in the correct order, even if it gets split into multiple shipments. Like the tracking number that allows you to know the letter is delivered correctly. protocols include transmission control protocol (TCP) and user datagram protocol (UDP). 3. NETWORK LAYER: Handles logical addressing ( IP addresses ) and routing of packets across different networks. It's about finding the best path for data to travel. The network layer enables the communication between multiple networks. It receives data segments from the layer above, further broken down into smaller packets at the sender side. On the receiver side, this layer reassembles the data together. Real-life example: The post office system that determines the best route for your letter to travel from your city to another city. Like the system that decides which truck, plane and train the letter will travel on. 2. DATA LINK LAYER: The data link layer transmits data between two nodes that are directly connected or are operating over the same network architecture. Typically, this layer takes data packets from layer 3 and breaks them down into frames before sending them to the destination. Layer 2 is divided into two sub-layers: media access control (MAC) and logical link control (LLC). - Detects damaged or lost frames and retransmits them. Performs framing where data received from layer 3 is further subdivided into smaller units called frames. Updates headers of created frames by adding the MAC address of the sending device and receiving device Real-life example: The post office sorting mail into bags for specific delivery routes within a city.
➢ SPREAD SPECTRUM : Spread Spectrum Communication, a technique used to enhance the reliability and security of wireless transmissions. Spread spectrum communication involves spreading a signal over a wide range of frequencies, which makes it difficult for unauthorized users to intercept or jam the signal. This technique employs different methods to spread the signal, including direct sequence spread spectrum (DSSS) and frequency hopping spread spectrum (FHSS). DSSS multiplies the original signal with a random sequence of bits, known as a spreading code, to spread the signal over a wide range of frequencies. On the other hand, FHSS hops the signal between different frequencies over time, using a predetermined hopping pattern. o Spread spectrum communication offers several advantages: over traditional communication techniques. It is resistant to interference and jamming, provides increased security, and improves signal quality. The signal spread over a wide range of frequencies makes it less susceptible to interference from other signals, and it is difficult to intercept or jam. Therefore, it is often used for military and government applications. o Spread spectrum communication has various applications: including military and government communications, wireless local area networks (WLANs), and satellite communications. It is utilized to secure communications and prevent unauthorized access in military and government applications. In WLANs, spread spectrum communication provides secure and reliable wireless access to the Internet. In satellite communications, it ensures that data is transmitted accurately over long distances. Spread spectrum communication is a wireless communication technique that provides secure and reliable transmissions by spreading the signal over a wide range of frequencies.
These techniques are crucial in these layers because they deal with the physical transmission of data over a medium (like a wired or wireless connection). This medium is prone to noise and interference, which can introduce errors into the transmitted bits.
Error control refers to the methods used to ensure reliable data transmission over a potentially unreliable communication channel. Errors can occur during transmission due to noise, interference, or other factors, leading to corrupted or lost data. Error control protocols detect these errors and implement mechanisms to recover from them. Ex- Imagine sending a letter through the postal service. There's a chance the letter might get damaged or lost during transit. Error control mechanisms are like using sturdy envelopes, adding tracking numbers, or sending a copy to ensure the message reaches its destination correctly. Why is Error Control Necessary?
Q. What happened if message is lost, Acknowledgement lost and timer expires for Go Back-N protocol? ANS- Imagine you're sending numbered postcards (data packets) to a friend: I. Message Lost: You send postcard #3, but your friend never receives it. Your friend sends acknowledgments ( ACKs ) for #1 and #2, but not #3. You have a timer running for each postcard. When the timer for #3 expires, you assume it's lost. Action: You re-send postcard #3, and also #4, #5, etc. (all postcards sent after #3), even if your friend might have received them. (Go Back-N means you go back N, which in this case is all the ones after the lost one.) Real life EX- You send a mail, that never arrives. After waiting a while, you resend the mail, and all mails sent after the lost one. II. ACK Lost: You send postcard #3, and your friend receives it. o Your friend sends an ACK for #3, but you never receive it. Your timer for #3 expires. Action: You re-send postcard #3, and all the subsequent ones. Your friend might get duplicates, but they'll know from the numbers to discard them. Real life EX- The confirmation message that your mail was received, gets lost. You resend the mail, and all mails sent after the lost confirmation. III. Timer Expires: This is the trigger for the retransmission in both cases above. The timer is set to a reasonable time, longer than the expected round-trip time ( the time it takes for a postcard to reach your friend and an ACK to return ). If the timer expires, it means either the postcard or the ACK was lost, or there was a significant delay. Action: You re-send the packet, and all subsequent packets. o Real life: The timer is like a deadline. if you don’t hear back within the deadline, you resend. ➢ PIGGYBACKING : Piggybacking is a technique used in data communication where acknowledgments ( ACKs ) for received data packets are sent along with outgoing data packets. Instead of sending a separate ACK packet, the acknowledgment information is " piggybacked " onto a data frame that is already being transmitted in the reverse direction. Real-life Example: Imagine two friends, ‘ R’ and ‘ V’ , talking using walkie-talkies.
o ‘V’ waits for her turn and says, "Yes, I'm bringing chips." (Acknowledgment)
CSMA/CD is a more sophisticated protocol used in wired networks like Ethernet. It works as follows: ❖ Carrier Sense (CS): Before transmitting, a node listens to the medium to check if it is currently busy (i.e., if another node is transmitting). ❖ Multiple Access (MA): Multiple nodes can access the medium, but they need to follow the carrier sense rule. ❖ Collision Detection (CD): If a node starts transmitting and detects a collision (by sensing an abnormal increase in signal strength), it immediately stops transmitting to reduce the duration of the collision. It then sends a short "jamming signal" to inform all other nodes about the collision. ❖ Backoff: After a collision, each involved node waits for a random amount of time (determined by a backoff algorithm) before attempting to retransmit. Real-life Example: Imagine a group of people in a hallway trying to pass through a narrow door. ❖ Carrier Sense: Before trying to go through, each person checks if someone else is already going through the door. ❖ Multiple Access: Multiple people can try to use the door, but they should check first. ❖ Collision Detection: If two people try to go through at the exact same time and get stuck, they immediately stop pushing. ❖ Jamming Signal (Analogy): One of them might say loudly, "Oops, collision!" to alert others. ❖ Backoff: Each person who collided will step back and wait for a random short period before trying to go through the door again. The randomness helps prevent them from colliding again simultaneously.
CSMA/CA is primarily used in wireless networks (like Wi-Fi) where it's harder for a transmitting node to listen for collisions while it's transmitting (due to the "hidden terminal" problem and signal fading). Instead of detecting collisions, CSMA/CA tries to avoid them before they happen. Common techniques include: ❖ Inter-Frame Space (IFS): Nodes wait for a short, random period called the IFS before transmitting. Different types of IFS prioritize different traffic. ❖ Contention Window: Nodes that want to transmit enter a contention period. They choose a random backoff time within a contention window. The node with the smallest backoff time transmits first. ❖ Request to Send/Clear to Send (RTS/CTS): Some versions of CSMA/CA use RTS and CTS frames. A node wanting to transmit sends an RTS frame to the access point (or receiving node). If the medium is free, the access point responds with a CTS frame. All other nodes hearing either the RTS or CTS refrain from transmitting for the duration of the intended transmission. This helps to mitigate the hidden terminal problem. Real-life Example: Imagine a group of people trying to speak at a conference call where only one person should speak at a time. ❖ Inter-Frame Space (Analogy): Before speaking, each person waits for a brief, slightly random pause after the previous speaker finishes. ❖ Contention Window (Analogy): If multiple people want to speak, they mentally choose a random number. The person with the smallest number "goes first" after the pause. ❖ Request to Speak/Permission to Speak (Analogy): One person might say, "Can I say something?" (RTS). The moderator might reply, "Go ahead, [Name]" (CTS). Everyone else who heard this knows to be quiet until that person is finished. Necessity in Wireless: CSMA/CA is crucial in wireless environments where collision detection is difficult. By focusing on avoidance mechanisms, it improves the reliability and efficiency of wireless communication.