π§ Quick Revision Questions
- What is the formula for calculating the number of links required in a Mesh topology with n devices?
- What is the key difference between an Active Hub and a Passive Hub in a Tree topology?
- Why does a break in the backbone cable of a Bus topology affect communication on both sides of the break?
- How does a Star topology handle data transmission between two connected devices?
- In a Mesh topology with 7 nodes, how many I/O ports are required per device and how many total links are needed?
π Lecture 6 β Ring Topology
π Overview: This lecture covers the ring network topology, its advantages and disadvantages, and introduces hybrid topologies. It then explains the three fundamental transmission modes (simplex, half-duplex, full-duplex) and concludes with an introduction to network categories (LANs, WANs, MANS) and their key characteristics, including WAN technologies like circuit switching and packet switching.
ποΈ Topics Covered
The lecture begins with a detailed explanation of the Ring Topology, its diagram, operation, advantages (easy installation and fault isolation), and disadvantages (unidirectional traffic leading to network failure). It then discusses Hybrid Topologies as a combination of multiple topologies. The core of the lecture defines and explains the three Transmission Modes: Simplex, Half-Duplex, and Full-Duplex. Finally, it categorizes networks by size, ownership, and distance into LANs, WANs, and MANS, covering LAN design, data rates, WAN technologies (Circuit and Packet Switching), and mentions Frame Relay and ATM.
π Lecture Summary
Ring Topology
In a Ring Topology, each device has a point-to-point dedicated link with only the two devices on either side of it. A signal is passed around the ring in one direction, moving from device to device until it reaches its destination. Each device incorporates a repeater; when a device receives a signal destined for another device, it regenerates the bits and passes them along.
π Definition β Ring Topology: A network configuration where each device is connected in a closed loop, with each device having exactly two neighbors for communication purposes.
Advantages:
- Easy to Install and Reconfigure: Only two connections need to be moved to add or delete a device.
- Simple Fault Isolation: A signal is generally circulating at all times. If one device does not receive a signal within a specified period, it can issue an alarm to tell the network operator about the problem and its location.
Disadvantages:
- Unidirectional Traffic: A break in the ring (e.g., a disabled station) can disable the entire network.
- This problem can be solved by using a Dual Ring or a switch capable of closing off the break.
Hybrid Topologies
Hybrid Topologies are created when several different topologies are combined into a larger topology. For example, one department of a business may use a Bus topology while another uses a Ring. The two can then be connected via a Central Controller in a Star Topology.
π Definition β Hybrid Topology: A network topology that integrates two or more different topologies into a single, larger network design.
Transmission Mode
Transmission Mode is used to define the direction of the signal flow between the linked devices. There are three types: Simplex, Half-Duplex, and Full-Duplex.
SIMPLEX MODE
In Simplex Mode, communication is unidirectional. Only one of the two stations can transmit, and the other can only receive. Examples include keyboards (only input) and monitors (only output).
π Definition β Simplex Mode: A transmission mode where data flows in only one direction, from sender to receiver, with no possibility of feedback.
Half-Duplex Mode
In Half-Duplex Mode, each station can both transmit and receive, but not at the same time. When one device is sending, the other can only receive, and vice versa. This is analogous to a one-lane road with two-directional traffic; when cars travel in one direction, cars going the other way must wait. The full channel capacity is allocated to the entity that is transmitting at a specific time. An example is walkie-talkies.
π Definition β Half-Duplex Mode: A transmission mode where data can flow in both directions, but only in one direction at a time, using the full channel capacity for each transmission.
Full-Duplex (Duplex) Mode
In Full-Duplex Mode, both stations can transmit and receive simultaneously. This is like a two-way street with traffic flowing in both directions at the same time. Signals traveling in either direction share the capacity of the link. The sharing can take place in two ways:
- The link must contain two physically separate transmission paths: one for sending and one for receiving.
- The capacity of the channel is divided between signals traveling in opposite directions. An example is a telephone network; when two people are communicating via a telephone line, both can talk and listen at the same time.
π Definition β Full-Duplex Mode: A transmission mode where data can flow in both directions simultaneously, sharing the link's capacity between the two opposing signal flows.
Categories of Networks
There are three main categories of networks: LANs, WANs, and MANS. The category a network falls into is determined by its SIZE, OWNERSHIP, DISTANCE IT COVERS, and its PHYSICAL ARCHITECTURE.
LANs (Local Area Networks)
A LAN is usually privately owned and links devices in a single office, building, or campus.
- Implications: Care must be taken in the choice of a LAN because there may be a substantial capital investment for purchase and maintenance. Secondly, the network management responsibility falls solely on the user/company.
- Size: The size of a LAN depends upon the Needs of Organization and the Type of Technology. A LAN can be as simple as two PCs and a printer or can extend throughout a company. Currently, LAN size is limited to a few kilometers.
- Design: LANs are designed to allow resources (hardware like printers, software, or data) to be shared between personal computers or workstations. A common example links a work group of task-related computers (e.g., engineering workstations or accounting PCs), where one PC acts as a server.
- Transmission Media & Topology: In general, a given LAN will use only one type of transmission medium. The most common LAN topologies are Bus, Star, and Ring.
- Data Rates: Traditionally 4β6 Mbps. Speeds have increased, and now 100 Mbps and above are possible, with Giga Bit LAN technologies.
WANs (Wide Area Networks)
WANs generally cover a large geographical area and usually span an unlimited number of miles by utilizing Public or Leased networks instead of having their own hardware like LANs.
- Design: A WAN typically consists of a large number of Switching Nodes. Transmission from any one device is routed through these internal nodes to the specified destination device. These nodes are not concerned with the content of the data; their purpose is to provide a switching facility.
- Implementation: Traditionally, WANs have been implemented using one of two technologies:
- Circuit Switching
- Packet Switching
Circuit Switching
In Circuit Switching, a dedicated communication path is established between two stations through the nodes of the network. This path/capacity stays up for the duration of the communication. An example is the Telephone Network.
π Definition β Circuit Switching: A switching method that creates a dedicated, continuous path between two nodes for the entire duration of their communication session.
Packet Switching
In Packet Switching, no capacity is dedicated along a path through the network. Data is sent out in small chunks called Packets. Each packet is passed from node to node. At each node, the entire packet is received, stored briefly, and then transmitted to the next node. An example is Computer to Computer Communication.
π Definition β Packet Switching: A switching method where data is broken into packets, each of which is transmitted independently through the network and may follow different routes to the destination.
Frame Relay & ATM
Frame Relay and ATM networks also play an important role nowadays. In these technologies, overhead bits for Error Protection are removed, allowing for speeds of tens, hundreds of Mbps, and also Gbps.
β Key Takeaways
The ring topology uses a closed loop where each device regenerates signals, making fault isolation easy but the entire network vulnerable to a single break, which can be mitigated by a dual ring. The three transmission modesβsimplex (one-way), half-duplex (two-way but not simultaneously), and full-duplex (two-way simultaneously)βdefine the fundamental direction of data flow between linked devices. Networks are categorized into LANs (private, limited area), WANs (broad geographical area using switching nodes), and MANS, with size, ownership, and distance being the key differentiators. The two primary WAN technologies are circuit switching (dedicated path, like telephone networks) and packet switching (shared paths, like computer-to-computer communication). Finally, modern high-speed networks like Frame Relay and ATM achieve high data rates by removing error protection overhead.
π§ Quick Revision Questions
- How does the Ring topology handle the failure of a single device, and what technological solution can mitigate this problem?
- Compare and contrast the Simplex and Half-Duplex transmission modes, providing one real-world example for each.
- Explain the key difference between Circuit Switching and Packet Switching in terms of how a communication path is established and used.
- What are the primary characteristics that define a Local Area Network (LAN) in terms of size, ownership, and architecture?
- In a Full-Duplex mode, what are the two distinct methods by which the capacity of a single link can be shared for simultaneous two-way traffic?
π Lecture 7 β Metropolitan Area Networks and Internetworks, OSI Model
π Overview: This lecture covers Metropolitan Area Networks (MANs) and Internetworks, then introduces the OSI (Open Systems Interconnection) Model as a layered framework for network design. Understanding the OSI model is critical because it provides a universal standard for communication between diverse computer systems, enabling interoperability and modular network architecture.
ποΈ Topics Covered
The lecture begins by defining Metropolitan Area Networks (MANs) as networks covering an entire city, often used by companies to connect their LANs. It then introduces Internetworks (internets) formed by connecting multiple networks via devices like routers. The core of the lecture focuses on the OSI Model: its purpose as an open standard for communication, its seven-layer structure (Physical, Data Link, Network, Transport, Session, Presentation, Application), peer-to-peer processes, headers/trailers, and the interface concept that provides modularity between layers. The lecture concludes by categorizing layers into Network Support (Layers 1-3), Transport (Layer 4), and User Support (Layers 5-7) layers.
π Lecture Summary
Metropolitan Area Networks
A Metropolitan Area Network (MAN) is designed to extend over an entire city. It may be a single network, such as a cable TV network, or it may be formed by interconnecting a number of Local Area Networks (LANs) into a larger network. For example, a company can use a MAN to connect all the LANs in its offices throughout a city.
π Definition β Metropolitan Area Network (MAN): A network designed to cover an entire city, potentially a single network or an interconnection of multiple LANs.
Internetworks
When two or more networks are connected, they become an internetwork or internet. Individual networks are joined together by using internetworking devices like routers and gateways. The term "internet" (lowercase 'i') refers to any combination of networks, while the Internet (capital 'I') is the specific worldwide network.
π Definition β Internetwork: A collection of two or more individual networks connected by internetworking devices (routers, gateways). π‘ Why this matters: The concept of internetworks is the foundation of the global Internet, allowing disparate local networks to communicate as a unified whole.
The OSI Model
The OSI (Open Systems Interconnection) Model is an international standard developed by the International Standards Organization (ISO) (founded in 1947), a multinational body dedicated to worldwide agreement on international standards. An Open System is a model that allows two different systems to communicate regardless of their underlying network architecture. The purpose of the OSI model is to enable open communication between different systems without requiring changes to the underlying hardware and software. It is a layered framework for designing network systems that is flexible, robust, and interoperable.
π Definition β OSI Model: A layered framework for designing network systems that allows communication across all types of computer systems regardless of their underlying architecture. It is not a protocol, but a model for understanding and designing network architecture.
π Definition β Open System: A system model that allows two different systems to communicate regardless of their underlying network.
Layers of the OSI Model
The OSI model is composed of seven ordered layers, often remembered by the mnemonic "Please Do Not Touch Steve's Pet Alligator":
- Physical (Bits)
- Data Link (Frames)
- Network (Packets)
- Transport (Segments)
- Session (Dialog units)
- Presentation (Raw Data)
- Application (Text, Numbers)
What Happens When a Message Travels from Device A to Device B?
In developing the OSI model, designers grouped related networking functions into discrete layers. Each layer defines a family of functions distinct from others, creating a comprehensive and flexible architecture. The OSI model allows complete transparency between otherwise incompatible systems.
Peer-to-Peer Processes
Within a single machine, each layer provides services to the layer above it and depends on services from the layer below it. Between machines, layer x on one machine communicates with layer x on another machine. This communication is governed by protocols. The processes on each machine that communicate at a given layer are called peer-to-peer processes.
Headers and Trailers
Control data is added to a data parcel. The sender appends a header (and possibly a trailer) and passes it to the lower layer. The receiver removes the header and passes it to the upper layer. Headers are added at layers 6, 5, 4, 3, and 2. A trailer is added at layer 2.
Passing Data Through Layers (Interface)
The passing of data and network information down through the layers of the sending machine and back up through the layers of the receiving machine is made possible by an interface. Each interface defines what information and services a layer must provide for the layer above it. The interface provides modularity, meaning each layer works as a separate module, and modifications can be made without changing surrounding layers.
Organization of Layers
The layers are organized into three groups:
- Network Support Layers (Layers 1, 2, 3): Deals with the physical aspect of moving data from one device to another.
- Transport Layer (Layer 4): Ensures end-to-end reliable transmission.
- User Support Layers (Layers 5, 6, 7): Allows interoperability among unrelated software systems.
Upper OSI layers are always implemented in software. Lower layers are a combination of software and hardware. The physical layer is mostly hardware.
β Key Takeaways
The OSI Model is a conceptual framework, not a protocol, that standardizes network communication into seven distinct layers, enabling interoperability between different systems. Metropolitan Area Networks (MANs) extend across a city, while Internetworks connect multiple networks using devices like routers. The layered architecture operates through peer-to-peer processes where each layer communicates with its counterpart on another machine using protocols, and data moves via headers added at each sending layer, creating modularity that allows changes to one layer without affecting others. The mnemonics "Please Do Not Touch Steve's Pet Alligator" helps remember the seven layers from bottom to top, and the layers are categorized as Network Support (1-3), Transport (4), and User Support (5-7) with the physical layer being primarily hardware while others are software.
π§ Quick Revision Questions
- What is the primary purpose of the OSI Model, and is it a protocol or a framework?
- List all seven layers of the OSI Model in order from Physical to Application, including the data units associated with each layer.
- What are peer-to-peer processes, and how do they communicate in the OSI model?
- How does the interface concept provide modularity in the OSI layered architecture?
- A company wants to connect all its LANs in different buildings across a city. Which type of network (LAN, MAN, or WAN) would be most suitable, and why?
π Lecture 8 β Critique of OSI Model
π Overview: This lecture critically evaluates why the OSI model did not gain widespread adoption, despite its conceptual importance. It then provides a detailed breakdown of the functions of the Physical, Data Link, and Network layers, explaining their roles and mechanisms in data communication.
ποΈ Topics Covered
The lecture begins with a critique of the OSI model, covering reasons for its lack of widespread adoption including bad timing (the "Apocalypse of Two Elephants"), bad technology, and bad implementations. It then provides a detailed explanation of the functions of the Physical Layer (Layer 1), including physical characteristics, encoding, data rate, synchronization, line configuration, topology, and transmission mode. The Data Link Layer (Layer 2) is explained next, covering framing, physical addressing, flow control, error control, and access control. Finally, the Network Layer (Layer 3) is discussed, focusing on logical addressing and routing, with a key example differentiating node-to-node delivery from source-to-destination delivery.
π Lecture Summary
Reasoning for OSI not getting Widespread
The OSI model did not achieve widespread adoption for several key reasons. The first is bad timing, famously described by David Clarke of MIT as the "Apocalypse of Two Elephants". If standards are written too early, the subject is badly understood and bad standards result. If standards are written too late, many companies may have already made investments in doing the same thing in different ways.
The second reason is bad technology. Aspects like flow control, error control, and addressing are duplicated across multiple layers. Furthermore, the Session and Presentation layers are considered "empty" (unnecessary), while the Network and Data Link layers are "full" (doing all the work). The third reason is bad implementations.
Physical (Layer 1)
The Physical Layer coordinates the functions required to transmit a bit stream over a physical medium. It deals with the mechanical and electrical specifications of the transmission medium and interface. It also defines the procedures and functions that physical devices and interfaces need to perform for transmission to occur.
-
Functions of Physical Layer
- Physical Characteristics of Interface & Media: Defines the characteristics of the interface between the device and the transmission medium. The interface is a pluggable connector that joins one or more signal conductors. It also defines the type of transmission medium.
- Representation of Bits/Encoding: The physical layer data consists of a stream of bits (sequence of 1βs and 0βs). To be transmitted, the bits must be ENCODED into signals: Electrical or Optical. The physical layer decides the type of ENCODING.
- Data Rate / Transmission Rate: The Data Rate (bits per second) is also decided by the Physical Layer. The physical layer defines the Duration of a Bit, meaning how long a bit will last.
- Synchronization of Bits: Sender and Receiver must be synchronized at the bit level. Sender and Receiver clocks must be synchronized, which is done by the Physical layer.
- Line Configuration: The Physical Layer is also concerned with Line Configuration, which represents the connection of a device with the medium. This can be Point-To-Point or Multipoint.
π Definition β Line Configuration: The way two or more devices are attached to a link.
- Physical Topology: Defines the structure of the network, such as Mesh, Star, Ring, Bus, etc.
- Transmission Mode: The Physical Layer also defines the direction of transmission between the devices: Simplex, Half Duplex, Full Duplex.
π Definition β Transmission Mode: Defines the direction of data flow between two devices.
Data Link Layer (Layer 2)
The Data Link Layer transforms the physical layer, which is a raw transmission facility, into a reliable link. It is responsible for Node to Node Delivery and makes the physical layer look error-free to the upper layer.
-
Functions of Data Link Layer
- Framing: The data link divides the stream of bits from the Network layer into manageable data units called βFRAMESβ. This process is known as Framing.
- Physical Addressing: Frames need to be transmitted to different systems on a network. The Data Link layer adds a HEADER to the frame. The header defines the physical address of the sender (Source address) and/or receiver address (Destination address). If a frame is intended for a device outside the network, the receiver address is the address of the device that connects one network to the other.
- Flow Control: The Data Link layer imposes Flow Control mechanisms to prevent overwhelming the receiver.
- Error Control: The Data link layer adds reliability to the physical layer by adding mechanisms to detect and retransmit lost or damaged frames. It also uses a mechanism to prevent duplication of frames. Error Control bits are added to the frame in the TRAILER.
- Access Control: Two or more devices may be connected to a single link. Data link protocols are necessary to determine which device will have control of the link at a given time.
π Example: A node with physical address 10 sends a frame to a node with physical address 87. Two nodes are connected by a link. At the DL level, this frame contains the physical address in the Header. This is the only address needed at this level. The rest of the header contains other info as needed. The trailer contains extra bits needed for error detection.
NETWORK LAYER
The Network Layer is responsible for Source-to-Destination delivery. The DL Layer oversees the delivery of data between two systems on the same network, while the Network Layer ensures that each packet gets from its point of origin to its final destination.
-
Node βto Node vs Source to Destination: If the two systems are connected to the same network, there is no need for the Network layer, and node-to-node delivery is enough. If two systems are connected to two different networks, there is often a need for Source-to-destination delivery.
-
Functions of Network Layer
- Logical Addressing: Physical addressing implemented by the Data link layer handles the addressing problem locally. If a packet is going from one network to another, we need another addressing system to help distinguish source & destination systems. The Network layer adds a Header to the data coming from upper layers that, among other things, includes the LOGICAL ADDRESS of the sender and receiver.
- Routing: When independent networks or links are connected together to create an βinternetworkβ, the internetworking devices route packets to their final destination. Routers are those internetworking devices. One of the functions of the Network layer is to define this route.
π Example Network Layer: We want to send data from a node with network address βAβ and physical address 10, located on one LAN, to a node with network address βPβ and physical address 95 located on another LAN. Because the two nodes are on two different networks, we cannot use physical address only. We need a Network address that can pass us from the network boundaries. The packet therefore contains the logical address which remains the same from source to destination. The physical address will change when the packet moves from one network to the other.
π‘ Why this matters: This distinction between physical and logical addressing is fundamental to how the Internet works, allowing data to traverse multiple networks without requiring every intermediate device to know the ultimate destination's physical address.
β Key Takeaways
The OSI model failed to gain widespread adoption due to bad timing, bad technology (with duplicated functions in multiple layers and empty layers), and bad implementations. The Physical Layer is responsible for the mechanical, electrical, and procedural characteristics of transmitting raw bits over a medium, including encoding, data rate, synchronization, line configuration, topology, and transmission mode. The Data Link Layer provides reliable node-to-node delivery by adding framing, physical addressing, flow control, error control, and access control mechanisms. The Network Layer is responsible for end-to-end (source-to-destination) delivery across different networks, using logical addressing and routing, while the Data Link Layer handles only local, node-to-node delivery on the same network.
π§ Quick Revision Questions
- What are the three main reasons for the OSI model not achieving widespread adoption?
- What is the "Apocalypse of Two Elephants" as described by David Clarke, and how does it relate to standards?
- List the seven functions of the Physical Layer discussed in this lecture.
- What is the difference between node-to-node delivery (Data Link Layer) and source-to-destination delivery (Network Layer)?
- In the Network Layer example, why does the physical address of a packet change when it moves from one network to another, while the logical address remains the same?
π Lecture 9 β Transport Layer
π Overview: This lecture covers two layers of the OSI model: the Transport Layer and the Session Layer, along with a brief introduction to the Presentation Layer. The Transport Layer ensures end-to-end delivery of the entire message from a specific process on one computer to a specific process on another, while the Session Layer manages the dialog between communicating systems. Understanding these layers is critical for grasping how reliable data communication and synchronization occur across networks.
ποΈ Topics Covered
This lecture first details the Transport Layer, its role in source-to-destination delivery of entire messages, and its key functions: Service Point Addressing (Port Address), Segmentation and Reassembly, Connection Control (connectionless vs. connection-oriented), Flow Control (end-to-end), and Error Control (end-to-end). It then covers the Session Layer, its function as a network dialog controller, and its two primary functions: Dialog Control (half-duplex/full-duplex) and Synchronization (inserting checkpoints). Finally, it provides a brief definition of the Presentation Layer, which is concerned with the syntax and semantics of information exchange.
π Lecture Summary
Transport Layer
The Transport Layer is responsible for the source-to-destination delivery of the entire message. While the Network Layer oversees the source-to-destination delivery of individual packets without recognizing any relationship between them, the Transport Layer ensures the whole message arrives at the destination intact. π‘ Why this matters: Without this layer, a message broken into packets could be reassembled incorrectly at the destination.
π Definition β Service Point Address (Port Address): A type of address in the Transport Layer header that identifies a specific process on a computer, ensuring delivery from a specific process on one computer to a specific process on another. π Formula: Service Point Address (Port Address) β ensures Network Layer delivers packet to correct computer, while Transport Layer delivers entire message to correct process on that computer. π Example: When a web browser (process) on one computer requests a webpage from a web server (process) on another computer, the Transport Layer uses a Port Address (e.g., port 80 for HTTP) to deliver the message to the correct process on the server.
π Definition β Segmentation and Reassembly: A function where the message is divided into transmittable segments, each containing a sequence number. These numbers enable the receiving Transport Layer to reassemble the message correctly and to identify and replace lost packets. π Formula: Message β segments with sequence numbers β reassembly at destination using sequence numbers. π Example: A 1000-byte message is divided into 10 segments of 100 bytes each, each with a sequence number (1 to 10). If segment 5 is lost during transmission, the receiving Transport Layer detects the missing sequence number and requests retransmission of only segment 5, not the entire message.
π Definition β Connection Control: The Transport Layer can be either connectionless or connection-oriented. Connectionless treats each segment as an independent packet and delivers it to the destination. Connection-oriented establishes a connection before delivering packets and disconnects after all data is transmitted. π Formula: Connectionless β independent segments β delivery. Connection-oriented β connection established β data transmitted β connection disconnected. π Example: A connection-oriented Transport Layer, like TCP, establishes a connection with the destination's Transport Layer before sending a file. If a packet is lost, retransmission occurs within the same connection. After the file is fully transmitted, the connection is disconnected.
π Definition β Flow Control: Unlike the Data Link Layer, which performs flow control across a single link, the Transport Layer performs flow control end-to-end, meaning it manages the rate of data transmission between the source and destination hosts. π Formula: End-to-end flow control β managing data rate between source and destination hosts. π Example: If a fast server is sending data to a slow client, the Transport Layer at the client can signal the server to slow down, preventing buffer overflow at the client.
π Definition β Error Control: Unlike the Data Link Layer, which performs error control across a single link, the Transport Layer performs error control end-to-end. It ensures the entire message reaches the receiving Transport layer without error. Errors can result from lost, damaged, or duplicated data, and usually require retransmission. π Formula: End-to-end error control β ensuring entire message arrives without error β retransmission if lost, damaged, or duplicated. π Example: An example figure shows a Transport Layer segment containing data and a header. If the receiving Transport Layer detects a checksum error in the segment, it discards it and requests retransmission from the source.
Session Layer
The Session Layer is the Network Dialog Controller. It establishes, maintains, and synchronizes the interaction between communicating systems.
π Definition β Dialog Control: The Session Layer allows two systems to enter into a dialog. It enables communication between two processes to take place either in half-duplex or full-duplex mode. π Formula: Dialog Control β allows communication in half-duplex or full-duplex. π Example: In a half-duplex dialog, a walkie-talkie conversation, only one person can speak at a time. In full-duplex, a telephone conversation, both parties can speak simultaneously.
π Definition β Synchronization: The Session Layer allows a process to add checkpoints (synchronization points) in a stream of data. This ensures that if a crash occurs, retransmission only needs to begin from the last checkpoint. π Formula: Data stream β insert checkpoints β upon crash, retransmit from last checkpoint, not from the beginning. π Example: A system is sending a file of 2000 pages. It inserts checkpoints after every 100 pages, so each 100-page unit is received and acknowledged independently. If a crash happens during the transmission of page 523, the system can retransmit from page 501, and pages 1-500 need not be retransmitted.
Presentation Layer
The Presentation Layer is concerned with the syntax and semantics of information exchange between two systems. π‘ Why this matters: This layer ensures that data sent by one system is readable by another, even if they use different data formats.
β Key Takeaways
The Transport Layer is crucial for end-to-end message delivery, using Service Point Addresses (ports) to direct data to the correct process on a host, and employing segmentation with sequence numbers for reliable reassembly. Connection control (connectionless vs. connection-oriented) and end-to-end flow/error control are essential functions that differentiate it from the Data Link Layer's link-level responsibilities. The Session Layer acts as a dialog controller, managing the mode of communication (half/full duplex) and providing synchronization points to enable efficient recovery from crashes. The Presentation Layer, introduced here, handles data formatting and translation to ensure compatibility between different systems.
π§ Quick Revision Questions
- What is the primary difference between the Network Layer's delivery and the Transport Layer's delivery?
- What is a Service Point Address (Port Address) and what problem does it solve?
- How do sequence numbers in segments help in the reassembly process and error recovery?
- In the context of the Session Layer, how does inserting checkpoints at page 501 improve efficiency after a crash at page 523?
- What is the role of the Presentation Layer in the OSI model?
π Lecture 10 β Presentation and Application Layers
π Overview: This lecture covers the top two layers of the OSI model: the Presentation Layer, which handles syntax, semantics, encryption, and compression of data, and the Application Layer, which provides user interface and network services. Understanding these layers is critical for grasping how data is formatted, secured, and made usable for end-user applications like email and file transfer.
ποΈ Topics Covered
The lecture introduces the Presentation Layer with its three core functions: Translation, Encryption, and Compression. It then details the Application Layer, covering the Network Virtual Terminal (NVT), File Transfer Access and Management (FTAM), Message Handling Services (X.400), and Directory Services (X.500). Finally, it provides a summary of all OSI layers and introduces the TCP/IP Protocol Suite as an alternative model.
π Lecture Summary
Presentation Layer
The Presentation Layer is concerned with the syntax and semantics of information exchanged between two systems. Processes (running programs) in two systems exchange information in the form of character strings, numbers, and so on. This information must be changed to bit streams before being transmitted. Because different computers use different encoding systems, the Presentation Layer is responsible for interoperability between these different encoding methods.
π Definition β Translation: The Presentation Layer at the sender changes the information from its sender-dependent format to the common format. The Presentation Layer at the receiver changes information from the common format to the receiver-dependent format.
π Definition β Encryption: To carry sensitive information, a system must be able to assure privacy. Encryption means that the sender transforms original information to another form and sends the resulting message out over the network. Decryption reverses the original process to transform the message back to its original form.
π Definition β Compression: Data compression reduces the number of bits to be transmitted. Data compression becomes particularly important in the transmission of multimedia such as text, audio, and video.
π‘ Why this matters: These three functions ensure that data is universally understandable (translation), secure from eavesdropping (encryption), and efficient to transmit (compression) across heterogeneous networks.
Application Layer
The Application Layer enables the user, either human or software, to access the network. It provides the user interface and support for services such as Electronic Mail, Remote File Access and Transfer, Shared Database Management, and other services.
π Definition β Application Layer Functions: This layer provides various services to the user. In the figure provided by the lecture, of the many application services available, only three are shown: X.400 (Message Handling Services), X.500 (Directory Services), and File Transfer, Access & Management (FTAM). In the example, the user uses X.400 to send an e-mail message. No headers or trailers are added at this layer.
π Definition β Network Virtual Terminal (NVT): NVT is a software version of a physical terminal and allows a user to log on to a remote host. To do so, the application creates an emulation of a terminal at the remote host. The user's computer talks to the software terminal, which in turn talks to the host, and vice versa. The remote host believes it is communicating with one of its own terminals and will allow you to log on.
π Definition β File Transfer, Access & Management (FTAM): This application allows a user to access files on remote computers to make changes or read data. The purpose of this access is to retrieve files from a remote computer and to manage or control files in that remote computer.
π Definition β Mail Services: This application provides the basis for email forwarding and storage.
π Definition β Directory Services (X.500): Provides distributed database sources and access for global information about various objects and services.
Summary of Layer Functions
This section provides a recap of the entire OSI model as covered in previous lectures.
TCP/IP Protocol Suite
The Transmission Control Protocol / Internetworking Protocol (TCP/IP) was developed prior to the OSI Model and is widely used in the Internet today.
π Definition β Layers in TCP/IP Protocol Suite: The TCP/IP model has four layers:
- Physical (physical standards)
- Network (Interconnectivity), also called the Internet Layer
- Transport (Transport Functions)
- Application (Session, Presentation, and Application layers of OSI)
The TCP/IP Protocol Suite is shown in a figure that maps its layers to the OSI model, where the TCP/IP Application layer corresponds to the top three layers of OSI (Session, Presentation, Application).
π Example: TCP/IP Suites vs. OSI Model: The TCP/IP Application Layer combines the functions of the OSI Session, Presentation, and Application layers into a single layer. This is a key structural difference between the two models.
β Key Takeaways
The Presentation Layer is responsible for translation (ensuring data is in a common format), encryption (securing data), and compression (reducing data size). The Application Layer is the topmost layer that provides user-oriented services like email and file access, and it uses Network Virtual Terminal for remote login. TCP/IP is a practical, widely-deployed protocol suite whose Application layer combines the top three OSI layers. For exams, remember the three core functions of the Presentation Layer and the key services of the Application Layer (NVT, FTAM, Mail, Directory), and be able to contrast the OSI and TCP/IP models.
π§ Quick Revision Questions
- What are the three main functions of the Presentation Layer, and why is each important?
- How does the Network Virtual Terminal (NVT) allow a user to log on to a remote host?
- List the four layers of the TCP/IP Protocol Suite and map them to the layers of the OSI model.
- What is the role of the Application Layer's Directory Services (X.500)?
- Explain the difference between the OSI Model's Application Layer and the TCP/IP Protocol Suite's Application Layer.
π Lecture 11 β Signals
π Overview: This lecture introduces the fundamental concept of signals in data communication, specifically how information is converted into electromagnetic signals for transmission over physical media. It explains the critical differences between analog and digital signals, periodic and aperiodic signals, and the key characteristics of sine waves.
ποΈ Topics Covered
The lecture covers the need for converting data into electromagnetic signals for transmission, the classification of data and signals as analog or digital, the distinction between periodic and aperiodic signals with the Fourier Transform concept, and a detailed breakdown of analog signals including simple sine waves and their three key characteristics: amplitude, period/frequency, and phase. It concludes with a summary of units used for period and frequency.
π Lecture Summary
Need For Signals
One of the major concerns of the Physical layer is moving information in the form of electromagnetic signals across a transmission medium. Information can be voice, image, numeric data, characters, or any message that is readable and has meaning. Generally, information usable to a person or application is not in a form that can be transmitted over a network. For example, you cannot roll up a photograph and insert it into a wire. You can only transmit an encoded description. The binary digits (1s and 0s) must be converted into a form that the transmission medium can accept. Transmission media work by conducting energy along a physical path, so the data stream must be turned into energy in the form of electromagnetic signals.
Analog and Digital
Both data and signals that represent them can take either analog or digital form.
- Analog refers to something that is continuous in time. A continuous set includes specific points of data and all possible points between them.
- Digital refers to something that is discrete. A discrete set contains specific points of data with no points in between.
An example of Analog Data is the human voice. When somebody speaks, a continuous wave is created in the air. This can be captured by a microphone and converted to an analog signal. An example of Digital Data is data stored in the memory of a computer in the form of 1s and 0s. It is usually converted to a digital signal when transferred. Signals themselves can also be analog or digital.
ANALOG Signal
An analog signal is a continuous waveform that changes smoothly over time. As the wave moves from value βAβ to value βBβ, it passes through and includes an infinite number of values along its path.
DIGITAL Signal
A digital signal is discrete. It can have only a limited number of defined values, often as simple as 1s and 0s. The transition of a digital signal from value to value is instantaneous, like a light being switched ON and OFF.
We illustrate signals by plotting them on a pair of perpendicular axes. The vertical axis represents the value or strength of the signal. The horizontal axis represents the passage of time. The curve representing the analog signal is smooth and continuous, passing through an infinite number of points. The vertical lines of the digital signal show the sudden jump from value to value, while the flat highs and lows represent that those values are fixed. In short, an analog signal varies continuously with respect to time, whereas a digital signal varies instantaneously.
Periodic and Aperiodic Signals
Signals (both analog and digital) can be classified as Periodic or Aperiodic.
Periodic Signals
A signal is called Periodic if it completes a pattern within a measurable time frame called a Period and then repeats that pattern over identical subsequent periods. The completion of one full pattern is called a CYCLE. The Period is the time required (in seconds) to complete one full cycle, represented by βTβ.
Aperiodic Signals
An Aperiodic or Non-Periodic signal is one that changes constantly without exhibiting a pattern or cycle that repeats over time.
It has been proved by a technique called FOURIER TRANSFORM that any Aperiodic signal can be decomposed into an infinite number of Periodic Signals.
ANALOG SIGNALS
Analog signals can be classified as Simple or Composite.
- Simple Analog Signal (Sine Wave): Cannot be decomposed into a simpler signal.
- Composite Analog Signal: Composed of multiple sine waves.
Sine Waves
Sine waves are the most fundamental form of Periodic Analog Signals. The curve oscillates over the course of a cycle smoothly and consistently. Each cycle consists of a single arc above the time axis followed by a single arc below it. Sine Waves can be fully described by three characteristics: Amplitude, Period/Frequency, and Phase.
-
Amplitude The Amplitude of a signal is the value of the signal at any point on the wave. It is equal to the vertical distance from a given point on the waveform to the horizontal axis. The maximum amplitude of the sine wave is equal to the highest value it reaches on the vertical axis. Amplitude is measured in Volts, Amperes, or Watts.
-
Period & Frequency Period is the amount of time (in seconds) a signal needs to complete one cycle. Frequency is the number of cycles completed in one second. The unit of Period is expressed in seconds. The communication industry uses 5 units to measure period: Seconds (Hertz), Milliseconds (Kilohertz), Microseconds (Megahertz), Nanoseconds (Gigahertz), and Picoseconds (Terahertz).
β Key Takeaways
A student must understand that information must be converted into electromagnetic signals for transmission. The core distinction between analog (continuous) and digital (discrete) signals and data is fundamental. All signals are either periodic (repeating pattern) or aperiodic (non-repeating), and any aperiodic signal can be decomposed into periodic signals via Fourier Transform. Finally, the sine wave is the basic building block of analog signals, fully described by its amplitude, period/frequency, and phase.
π§ Quick Revision Questions
- What is the main reason for converting data into electromagnetic signals in the physical layer?
- What is the fundamental difference between an analog signal and a digital signal in terms of their values over time?
- What is the mathematical technique that allows any aperiodic signal to be represented as a combination of periodic signals?
- What are the three characteristics that fully describe a sine wave?
- If a signal has a period of 1 millisecond, what is its frequency in hertz?