0% found this document useful (0 votes)
41 views

Lec 1 Classification of Computers

The document discusses the OSI 7-layer model and TCP/IP model for network communication. It describes the functions of each layer, including physical, data link, network, transport, session, presentation and application layers. It compares the two models, noting they both divide communication into logical layers but group functions differently, with TCP/IP combining some OSI layers. The OSI model provides a standardized approach for network hardware and software to communicate.

Uploaded by

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

Lec 1 Classification of Computers

The document discusses the OSI 7-layer model and TCP/IP model for network communication. It describes the functions of each layer, including physical, data link, network, transport, session, presentation and application layers. It compares the two models, noting they both divide communication into logical layers but group functions differently, with TCP/IP combining some OSI layers. The OSI model provides a standardized approach for network hardware and software to communicate.

Uploaded by

Khawaja Rameez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

CT- 539

Advanced Computer Networking

Dr. Shariq Mahmood Khan


OSI LAYER MODEL

• OSI: Open System interconnection

• Comprises of seven layers

• For network communication all network


devices must speak same language or
protocol.

• Each layer defines how data is treated and


goes through different stages while traveling
in network from one place to another.
OSI LAYER MODEL

• All layers are like set of instruction of


assembly.

• Gives complete picture of information flows


within network.

• All layer are used in end to end systems but


only first three layers used in intermediate
systems while network communication.
LAYER 1: PHYSICAL LAYER

• Define physical characteristics of


network. E.g. wires, connector, voltages,
data rates, Asynchronous, Synchronous
Transmission

• Handles bit stream or binary


transmission

• Used to maintain, activate and


deactivate physical link.
LAYER 1: PHYSICAL LAYER

• For receiver it reassembles bits and


send to upper layer for frames.

• For Sender it convert frames


into bit stream and send on
transmission medium.
PROPERTIES PHYSICAL LAYERS

• Deals with bit stream.

• Transmits raw bit stream over physical cable

• defines cables, cards, and physical aspects

• defines NIC attachments to hardware, how cable is attached to


NIC

• defines techniques to transfer bit stream to cable

• Layer 1 Device: Repeater, Hub, Multiplexer


LAYER 2: DATA LINK LAYER

• Maintaining, activating, deactivating data links connection.

• Used to transfer data between two entities.

• Used for error handling (CRC), media access control, flow


control.

• MAC headers and trailers are added

• Two major operations:

• Concerned with physical components

• Communicate with upper layers


LAYER 2: DATA LINK LAYER

• Turns packets into bit stream at sending station

• Turns bits into Frames for upper layers at receiving layer.

• Layer 2 devices: Bridges, Switches, intelligent hubs, NIC

• Frames include information about:

• Which computers are in communication with each other

• When communication between individual computers begins and when


it ends

• Which errors occurred while the computers communicated (LLC)


SUB LAYERS OF LAYER 2

Logical link layer (LLC)

• Used for communication with upper layers

• Error correction

• Flow control

Media Access Control (MAC)

• Access to physical medium

• Header and trailer


DIFFERENCE BETWEEN
LAYER 1 AND LAYER 2

• Layer 1 cannot communicate with upper layers

• Layer 2 does this using LLC

• Layer 1 cannot identify computer

• Layer 2 uses addressing process

• Layer 1 can only describe stream of bits

• Layer 2 uses framing to organize bits


LAYER 3 NETWORK LAYER

• Defines network logical address (not MAC)

• Provide switching and routing facilities

• Determines network address and best path to deliver packets

• Translate logical address into physical address

This layer responsible for:

• Addressing

• Route selection

• If router cannot send data in same size as sent by source then layer 3
divides data into smaller sizes, at receiving end network layer
reassembles data.
LAYER 3 NETWORK LAYER

• Forms Packets

• Protocols that operates at layer 3:

IP, ARP,RARP, ICMP,

• Layer 3 Devices:

Routers, ATM switches,


LAYER 3 PACKETS

Packet contains following information:

• Source (source IP address)

• Destination (Destination IP address)

• Length (length of packet)

• Number (Total number of packets in message)

• Sequence (sequence number of packet)


LAYER 4 TRANSPORT

• Used for data transfer between end systems.

• Provides QoS

• Whole message is received in order.

• Converts data into segments.

• Ensures data is delivered error free and in order.

• Flow control: send that amount of data which can be handled by


destination. Similarly if data packet lost then resend.

• Protocols at layer 4: TCP, UDP

• Layer 4 Network component: Gateways


LAYER 5 SESSION LAYER

• Used for dialogue control and synchronization purposes.

• Establishes sessions between systems.

• Dialog control:

• Dialog between two parties for communication to take place in either


half or full duplex mode.

• Synchronization:

• Add synchronization points to stream of data.

• If session fails only send that data which was not delivered not whole
message.

• E.g. files of 2000MB


LAYER 6 PRESENTATION LAYER

• Concerned with syntax and semantics of information.

• Responsible for translation (data into bits and encoding format),


compression, and encryption.

• Translation: data into bits and selecting appropriate encoding


technique and changing from sender format to receiver format.

• Compression: Reduce number of bits.


LAYER 7 APPLICATION LAYER

• Layer support Software applications to access network.

• Examples: Virtual terminal (Remote desktop), FTP, email (SMTP),


Directory services, TELNET.
OSI - REFERENCE MODEL
TRANSFORMATION OF DATA IN
OSI LAYERS
ADVANTAGES OF OSI

• Network communication is broken into smaller, more manageable


parts.

• Allows different types of network hardware and software to


communicate with each other.

• All layers are independent and changes does not affect other layers.

• Easier to understand network communication.


TCP/IP

Transmission control protocol:

• Guarantees end to end delivery of data segments

• Arrange segments in order.

• Used to check transmission errors.

• Connection oriented (same route, in order) doesn’t mean circuit.

• Reliable process to process communication service.

• Made reliable through sequence number and acknowledgement


TCP/IP

Internet Protocol (IP)

• Data sent over internet from source to destination.

• IP is connection less (packets independent, different routes, out of


order).
TCP/IP LAYERS

Application layer of TCP/IP includes

• Functionality of session and presentation layer of


OSI model. Like encoding, dialog control.
Application layer includes file transfer, email,
remote login, network Management, name
management

• Transport layer includes QoS, Flow control


Processes to processes communication

• IP layer includes ARP,RARP, ICMP

• Network layer physical link to media .


TCP/IP LAYERS
TCP/IP LAYERS
TCP/IP LAYERS
TCP/IP LAYERS
OSI VS TCP/IP

Similarities include:

• Both have layers.

• Both have application layers, though they include very different


services.

• Both have comparable transport and network layers.

• Both assume packets are switched. This means that individual packets
may take different paths to reach the same destination. This is
contrasted with circuit-switched networks where all the packets take
the same path.
OSI VS TCP/IP

Differences include:

• TCP/IP combines the presentation and session layer issues into its
application layer.

• TCP/IP combines the OSI data link and physical layers into the network
access layer.

• TCP/IP appears simpler because it has fewer layers.

• TCP/IP protocols are the standards around which the Internet


developed, so the TCP/IP model gains credibility just because of its
protocols. In contrast, networks are not usually built on the OSI
protocol, even though the OSI model is used as a guide .

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy