unit2
unit2
• The physical layer and data link layer are two layers in the
TCP/IP model that are responsible for different aspects of
data transmission:
• Physical layer
• Responsible for converting data into signals and
transmitting them over local media, such as cables,
connectors, or air. The physical layer also ensures that data
packets are transmitted correctly and in the correct order.
• Data link layer
• Responsible for adding sender and receiver MAC addresses
to data packets to form frames, which are then transported
over local media. The data link layer is embedded in a
computer's Network Interface Card (NIC) as software.
Error Detection Code – Checksum
Checksum is the error detection method used by upper-layer
protocols and is considered to be more reliable than Longitudinal
Redundancy Check (LRC), Vertical Redundancy Check (VRC), and
Cyclic Redundancy Check (CRC).
This method uses a Checksum Generator on the sender side and
a Checksum Checker on the receiver side.
Sender Site:
10101001 subunit 1
00111001 subunit 2
11100010 sum (using 1s complement)
00011101 checksum (complement of sum)
Disadvantages of Checksum
Limited Detection: It may miss certain types of errors, such as bit
rearrangements or specific patterns of corruption.
No Error Correction: It can only detect errors but cannot fix or
recover corrupted data.
Not Secure: Checksum algorithms are not designed for security and
can be easily manipulated by attackers.
Half-duplex and full-duplex are two modes of communication that
allow for bidirectional data transmission, but differ in the ability to
transmit data simultaneously.
Half-duplex
• Allows for two-way communication, but not simultaneously
• Requires switching between sending and receiving modes
• Uses a single communication channel that is shared between the
two directions
• Examples include walkie-talkies 4G or 5G phones
• Commonly used for devices that require occasional
non-concurrent communication
Full-duplex
• Allows for simultaneous two-way communication
• Uses two separate communication channels, one for sending and
another for receiving
• Examples include telephones and mobile phones
• Ideal for devices that require real-time communication