Week 2 - Lecture Notes
Week 2 - Lecture Notes
Computer
Networks
Module Code: COM5014M
Level: 5
Credits: 20
Week 2
Network
OSI Layers
OSI Model Review
• The OSI (Open Systems Interconnection) model was developed by the ISO
(International Organization for Standardization) and formalized in 1984.
• The OSI model is a conceptual framework used to describe the functions of a
networking system.
• The OSI model defines how networks send data from a sender to a recipient. In other
words: it gives detailed guidelines on how communication between network devices
should be done.
• It provides a universal set of rules and functions that are necessary for designing a
network to be interoperable.
• All these rules and functions in OSI model are organized into 7 layers, with each layer
representing a specific networking function.
OSI Model
1. Physical layer
2. Data link layer
3. Network layer
4. Transport layer
5. Session layer
6. Presentation layer
7. Application layer
• Encapsulation:
o The process of adding
Header to the actual
data when data is
traveling from upper
layer to the lower layer
in OSI.
How OSI Model Works - Decapsulation
• Decapsulation: The exact reverse process of encapsulation.
o Process: The Header added on the sender’s side gets removed by the
corresponding layer when it travels on the receiver’s side from the Physical layer
to the Application layer.
How OSI Model Works - Encapsulation & Decapsulation
Encapsulation?
Decapsulation?
How OSI Model Works - Process Review
At sender, the data encapsulation method works like this:
1) User information is converted to data for transmission on the network.
2) Data is converted to segments and a reliable connection is set up between the
transmitting and receiving hosts.
3) Segments are converted to packets or datagrams, and a logical address is placed in
the header so each packet can be routed through an internetwork.
4) Packets or datagrams are converted to frames for transmission on the local network.
MAC addresses (Ethernet) are used to uniquely identify hosts on a local network
segment.
5) Frames are converted to bits, and a digital encoding and clocking scheme is used.
OSI Model – Physical Layer
• The major function of the physical layer is to handle the transmission of individual bits
over a communication link (transmission medium).
• Transmission medium can be wired or wireless.
OSI Model – Data Link Layer
• The data link layer is responsible for transmitting data (frames) between adjacent
nodes that are directly linked, called hop-to-hop (node-to-node) delivery.
• Flow and Error Control on node-to-node delivery (across a single link).
• Date link layer is also responsible for framing.
OSI Model – Data Link Layer - Framing
• Framing refers to dividing data steam of bits into manageable units called frames.
• Indeed, data Link layer packs bits into frames, so that each frame is
distinguishable from another.
• Our postal system practices a type of framing.
• The simple act of inserting a letter into an envelope separates one piece of
information from another.
• The envelope serves as the delimiter.
• Framing include information about
• Which nodes (e.g., computers) are in communication with each other.
• When communication between individual computers begins and when it ends.
OSI Model – Data Link Layer - Hop-to-Hop Delivery
The concept of hop-to-hop or
node-to-node or host-to-host
delivery refers to the delivery
between two nodes
connected to the same
network by a link.
OSI Model – Data Link Layer - Sublayers
• Data Link layer, to support a wide variety of network functions, is often divided into
two sublayers:
• Logical Link Control (LLC)
• LLC tells the data link layer what to do with a frame.
• It is responsible for identifying layer 3 protocols and encapsulating them.
• Synchronization: refers to
adding Synchronization
Points to stream of data.
• If session fails, only the data
which was not delivered
will be send, NOT whole
message.
OSI Model – Presentation Layer
• The presentation layer is responsible for translation, compression, and encryption.
• In other words, it is concerned with the syntax and semantics of the information
exchanged between two systems.
• Translation refers to interoperability between different encoding system.
• Encryption & decryption:
ensuring privacy
• Data compression
& Decompression.
OSI Model – Application Layer
• The application layer is responsible for providing services to the user.
• It provides user interfaces and support for services such as File Transfer, Mail Services,
Database Management.
OSI Model – Summary of layers
Why are Network Protocols Layered?
• A protocol suite is a group of interrelated network protocols that are necessary to
perform communication functions on a network.
• A protocol stack is a complete set of interrelated network protocols that are divided
into layers and work together to provide networking capabilities.
• Protocols are sets of rules.
o What do you want to do? (Application)
o Where are you going? (Addressing)
o How do you get there? (Media types)
o Did you get there? (Acknowledgments, Error checking)
References
1. Forouzan, B. A., & Fegan, S. C. (2007). Data communications and networking (4th. ed.). New York: McGraw-Hill.
2. Stallings, W. (2003) Data and Computer Communications. 7th Ed. Prentice Hall
4. Olifer, N. and Olifer, V. (2005) Computer Networks: Principles, Technologies and Protocols for Network Design.
John Wiley and Sons Ltd.