Computer Networks Lec 3
Computer Networks Lec 3
Delivered By
NAMRA MUKHTAR
LECTURER, USKT
Contents
• Internet protocol suite
• TCP vs IP
• TCP vs OSI
• OSI Model
• 7 layers of OSI
• Data flow
Internet protocol suite
• The Internet protocol suite is the conceptual model and set of communications
protocols used in the Internet and similar computer networks.
• Defense Advanced Research Projects Agency (DARPA) in the late 1960s TCP/IP
• In 1975, a two-network TCP/IP communications test was performed between
Stanford and University College London.
• Just like people, it’s important for computers to have a common way to
communicate with each other. Today most computers do this through TCP/IP.
Reference Model
• In computer networks, reference models give a conceptual
framework that standardizes communication between heterogeneous
networks.
The two popular reference models are
• OSI Model
• TCP/IP Protocol Suite
How do TCP and IP differ?
• IP is the part that obtains the address to which data is sent. TCP is
responsible for data delivery once that IP address has been found.
• It's possible to separate them, but there isn’t really a point in making
a difference between TCP and IP. Because they're so often used
together, “TCP/IP” and the “TCP/IP model” are now recognized
terminology.
TCP/IP Model
• It stands for Transmission Control Protocol/Internet Protocol.
The TCP/IP model is a concise version of the OSI model. It contains
four layers, unlike seven layers in the OSI model. The layers are:
1. Process/Application Layer
2. Host-to-Host/Transport Layer
3. Internet Layer
4. Network Access/Link Layer
The first layer is the Application layer on the behalf of the sender and
Network Access layer on the behalf of the receiver.
TCP vs OSI
• Each layer must make sure that information is being passed correctly between the layers above and
below it. If all the layers are doing their jobs, your computer will be able to communicate with
others.
(SNMP)
Functions of Application 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 that the
message is delivered to the correct process.
• Physical Addressing: After creating frames, the Data link layer adds
physical addresses (MAC addresses) of the sender and/or receiver
in the header of each frame.
Functions of the Data Link Layer
• 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.
• Bit Rate Control: The Physical layer also defines the transmission
rate i.e. the number of bits sent per second.
• Transmission Mode: Physical layer also defines how the data flows
between the two connected devices. The various transmission modes
possible are Simplex, half-duplex and full duplex.
Physical Layer (Layer 1)
Protocols
• Ethernet: Defines how data is transmitted over physical cables,
including frame structure and transmission speeds.
• Wi-Fi (802.11): Wireless networking standard that enables devices to
connect over radio frequencies.
• RS-232: A standard for serial communication, commonly used in
industrial and legacy systems.
• Fiber Optic: Uses light pulses for high-speed data transmission over
long distances.
• Function: Deals with the transmission of raw bits over a physical
medium, including cables, radio waves, and fiber optics.
Data
Flow
• When a user interacts with an
application or program on a
network, data is transferred to the
top, or application, layer, which
passes it “down” through the
layers to the bottom, or physical,
layer.
• The physical layer transmits the
data to the physical layer on the
receiving device or server, which
passes the data “up” to the
application layer on the receiving
device.
How To Remember
All People Seem To Need Data Processing
Application Physical
Layer Layer
Session Network
Layer Layer