CN
CN
Network topology refers to the arrangement of nodes and connections in a network. The most
common topologies are:
Layer 1 : Physical Layer :- The lowest layer of the OSI reference model is the Physical
Layer. It transmits raw bit streams over a physical medium.
FUNCTIONS:
• Bit Synchronization: Provides bit synchronization through a clock controlling sender
and receiver.
• Bit Rate Control: Defines transmission rate, i.e., number of bits sent per second.
• Physical Topologies: Specifies network topologies: bus, star, or mesh topology.
• Transmission Mode: Defines data flow between connected devices: Simplex, half-
duplex, full duplex.
Layer 2 : Data Link Layer (DLL) :- The data link layer is responsible for the node-to-node
delivery of the message.
FUNCTIONS:
• Framing: Enables sender to transmit meaningful bits by attaching special bit patterns
to frame beginning and end.
• Physical Addressing: Adds physical addresses (MAC addresses) of sender and/or
receiver in frame headers.
• Error Control: Detects and retransmits damaged or lost frames.
• Flow Control: Coordinates data rate to prevent data corruption.
• Access Control: Determines control over a shared communication channel by the MAC
sub-layer.
Layer 3 : Network Layer :- The network layer works for the transmission of data from
one host to the other located in different networks.
FUNCTIONS:
• Routing: Determining suitable route from source to destination.
• Logical Addressing: Uniquely identifying each device inter-network. Sender and
receiver's IP addresses placed in header.
Layer 4 : Transport Layer :- The transport layer provides services to the application layer
and takes services from the network layer. It provides reliable data transfer (e.g., TCP,
UDP). The data in the transport layer is referred to as Segments.
FUNCTIONS:
Segmentation and Reassembly:
• Accepts message from session layer.
• Breaks message into smaller units with associated headers.
• Reassembles message at destination station.
Layer 5 : Session Layer :- Session Layer in the OSI Model establishes and manages
connections, terminates of sessions between two devices. It also provides
authentication and security. Protocols used in the Session Layer are NetBIOS, PPTP.
FUNCTIONS:
•Session Management: Allows two processes to establish, maintain, and terminate a
connection.
•Synchronization: Synchronization layer adds checkpoints in data for error identification
and data re-synchronization.
•Dialog Controller: Dialog Controller enables communication in half-duplex or full
duplex between two systems.
Layer 6 : Presentation Layer :- Translates data between the application and network
formats (encryption, encoding). That’s why its another name is Translation Layer.
Protocols used in the Presentation Layer are JPEG, MPEG, GIF, TLS/SSL, etc.
FUNCTIONS:
• Translation: For example, ASCII to EBCDIC.
• Encryption/Decryption: Data translates into ciphertext and plain text. Key value used
for encryption/decryption.
• Compression: Reduces network bit transmission.
Layer 7 : Application Layer :- Provides network services to end-users (e.g., HTTP, FTP).
FUNCTIONS:
•Network Virtual terminal(NVT): Enables user login to remote host.
•File Transfer Access & Management(FTAM): Facilitates file access, retrieval, and
management from remote computer.
•Mail Services: Provides email service.
•Directory Services: Offers distributed database sources and global information access.
https://www.geeksforgeeks.org/open-systems-interconnection-model-osi/
4. What are the advantages and disadvantages of Packet Switching over circuit
switching?
PACKET SWITCHING:
Advantages of Packet Switching:
• Efficient Resource Utilization: Allows multiple users to share network resources
efficiently.
• Adaptability and Fault Tolerance: Reroutes data around damaged or congested nodes,
making it more resilient to network errors.
• Cost-Effectiveness: Does not require dedicated channels for each communication,
reducing bandwidth and infrastructure costs.
• Scalability and Flexibility: Allows easy addition of new nodes and adaptation to
changing network conditions.
• Store and Forward Technique: Each packet is stored and forwarded to the next node.
• Suitable for Bilateral Traffic: Handles data in both directions.
CIRCUIT SWITCHING
Advantages of Circuit Switching:
• Guaranteed Bandwidth: Provides a dedicated path for reliable, predictable
communication.
• Simple Data Routing: All packets follow the same path.
• Low Per-Packet Overhead: Reduces per-packet overhead.
Disadvantages of Circuit Switching:
• Inefficient Resource Utilization: Reserved bandwidth during non-transmission,
leading to wasted resources.
• Lack of Adaptability and Fault Tolerance: Limited adaptability to network errors and
failures.
• High Cost: High cost due to need for dedicated channels and infrastructure.
• Wasted Bandwidth: Reserved bandwidth even when data isn't transmitted.
• Not Suitable for Bilateral Traffic: Uncomfortable for handling bilateral traffic.
TDM FDM
TDM stands for Time division FDM stands for Frequency division
multiplexing. multiplexing.
TDM works with digital signals as well as While FDM works with only analog
analog signals. signals.
TDM has low conflict. While it has high conflict.
Wiring or chip of TDM is simple. While it’s wiring or chip is complex rather
than simple.
TDM is efficient. While it is inefficient.
In TDM, time sharing takes place. While in this, frequency sharing takes
place.
In TDM, synchronization pulse is While in it Guard band is necessary.
necessary.
https://www.geeksforgeeks.org/difference-between-tdm-and-fdm/
6. Briefly explain the importance of ARP & RARP.
ARP: Address Resolution Protocol (ARP) is a communication protocol used to discover
the physical address of a network, enabling data transmission from an IP address to a
destination machine.
ARP (Address Resolution Protocol) maps IP addresses to MAC addresses for local
network communication.
RARP: Reverse ARP is a networking protocol that allows client machines to request IPv4
addresses from the gateway-router's ARP table, enabling new or unmemorable
machines to obtain their own IP address.
RARP (Reverse Address Resolution Protocol) maps MAC addresses to IP addresses,
primarily used for diskless workstations to obtain their IP address.
https://www.geeksforgeeks.org/computer-network-tutorials/?ref=shm