DCC Chapter 5 Notes - Ur Engineering Friend (1st) Dsad
DCC Chapter 5 Notes - Ur Engineering Friend (1st) Dsad
Computer Network
The OSI (Open Systems Interconnection) reference model is a conceptual framework that
standardizes the communication process between different computer systems. The model
consists of seven layers, each of which represents a different aspect of network
communication.
The layers are:
1. Physical Layer: The physical layer is the first and lowest layer of the OSI model. It is
responsible for the physical transmission of data over a communication channel. This
includes defining the electrical, mechanical, and physical specifications for the
transmission medium, such as cables, fibres, or wireless signals.
2. Data Link Layer: The data link layer is responsible for the reliable transmission of
data between adjacent network nodes. This includes error detection and correction,
flow control, and framing. The layer is divided into two sub-layers: the Media Access
Control (MAC) layer, which controls access to the transmission medium, and the
Logical Link Control (LLC) layer, which provides addressing and framing of data.
3. Network Layer: The network layer provides logical addressing and routing services
to enable communication between different networks. It determines the best path for
data transmission based on network conditions and protocols. The layer is responsible
for packet forwarding and routing, network congestion control, and quality of service
(QoS) management.
4. Transport Layer: The transport layer is responsible for the reliable end-to-end
delivery of data between applications running on different hosts. It provides error
detection, flow control, and congestion control to ensure that data is delivered in the
correct order and without loss or corruption. The layer is divided into two protocols:
the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP).
5. Session Layer: The session layer is responsible for establishing, managing, and
terminating sessions between applications. It provides services such as session
establishment, session maintenance, and session termination. This layer enables
applications to exchange data with a degree of reliability and ensures that data is sent
and received in the correct order.
6. Presentation Layer: The presentation layer provides a common representation of
data to ensure that different hosts can interpret it correctly. It handles data formatting,
compression, and encryption to ensure that data is presented in a consistent and
meaningful way.
7. Application Layer: The application layer is the highest layer of the OSI model. It
provides interfaces to the user and the network services, allowing applications to
access network resources. This layer includes protocols such as HTTP, FTP, SMTP,
and Telnet.
TCP/IP Model
The TCP/IP model is a four-layer conceptual model used to standardize the communication
protocols used on the internet.
1. Network Access Layer (or Link Layer): This layer is responsible for the physical
transmission of data over the network. It defines how data is formatted, transmitted,
and received on the network, and includes technologies such as Ethernet and Wi-Fi.
2. Internet Layer: The internet layer is responsible for addressing and routing data
between networks. It defines the Internet Protocol (IP), which is used to identify and
route packets to their destinations.
3. Transport Layer: The transport layer provides reliable end-to-end data delivery
services between applications. It includes the Transmission Control Protocol (TCP)
and the User Datagram Protocol (UDP). TCP provides reliable, error-checked
delivery of data, while UDP provides a lightweight, unreliable transport protocol.
4. Application Layer: The application layer provides services and protocols that enable
applications to access network resources. It includes protocols such as HTTP (for web
browsing), SMTP (for email), FTP (for file transfer), and DNS (for name resolution).
This layer also includes user-facing applications such as web browsers and email
clients.
Link layer Addressing
➢ Link layer addressing is a mechanism used to identify network devices at the link
layer of the OSI model. It is used to ensure that data is transmitted to the correct
destination device on a local network segment.
➢ In the Ethernet protocol, link layer addressing is implemented using Media Access
Control (MAC) addresses. A MAC address is a unique identifier assigned to a
network interface controller (NIC) by the manufacturer. It consists of six octets, or 48
bits, and is expressed in hexadecimal notation. The first three octets identify the
manufacturer of the NIC, while the last three octets are a unique identifier for the
device.
➢ When a packet is transmitted on a local network segment, it includes the MAC
address of the destination device in the packet header. This allows the network switch
to forward the packet to the correct device based on its MAC address.
➢ Link layer addressing is important for ensuring efficient and reliable communication
on local networks. By using MAC addresses to identify devices, the network can
minimize unnecessary traffic and ensure that data is transmitted only to the intended
recipient.
➢ The Address Resolution Protocol (ARP) is a protocol used to map a network address
(such as an IP address) to a physical address (such as a MAC address).
➢ When a device wants to communicate with another device on the same local network
segment, it needs to know the MAC address of the destination device. It does this by
sending an ARP request packet, which contains the IP address of the destination
device. The request is broadcast to all devices on the local network segment.
➢ When the destination device receives the ARP request, it responds with an ARP reply
packet, which contains its MAC address. The ARP reply is sent directly to the
requesting device, and is not broadcast to all devices on the network.
➢ Once the requesting device has received the MAC address of the destination device, it
can create a mapping between the IP address and MAC address in its ARP cache. This
mapping is used for subsequent communication between the two devices, until the
ARP cache entry expires or is deleted.
➢ ARP is an important protocol for enabling communication between devices on a local
network segment. By mapping IP addresses to MAC addresses, it allows devices to
communicate with each other efficiently and reliably.
The transport layer is the fourth layer of the OSI and TCP/IP reference models, responsible
for ensuring reliable and efficient data transfer between applications running on different
hosts. The transport layer protocol provides a set of services to the applications, such as
connection-oriented or connectionless communication, segmentation and reassembly of data,
flow control, and error recovery.
There are two commonly used transport layer protocols:
The transport layer is an important layer in the OSI and TCP/IP reference models, as it
enables reliable and efficient data transfer between applications running on different hosts. It
is responsible for ensuring that data is transferred securely and efficiently, and is a critical
component of modern networking.
➢ The Internet Protocol (IP) uses a hierarchical addressing scheme to uniquely identify
devices on a network. IP addresses are 32-bit binary numbers, but they are typically
represented in decimal form using the dotted decimal notation, which consists of four
octets separated by dots (e.g., 192.168.0.1).
➢ The IP addressing scheme is divided into two parts: the network address and the host
address. The network address identifies the network to which the device is connected,
while the host address identifies the specific device on that network.
➢ IP addresses are assigned by the Internet Assigned Numbers Authority (IANA) and
are allocated to Internet Service Providers (ISPs) and organizations based on their
geographical location and network requirements.
➢ There are two main versions of IP: IPv4 and IPv6. IPv4 uses a 32-bit addressing
scheme, which limits the number of unique addresses that can be assigned to devices.
This limitation has led to the exhaustion of available IPv4 addresses, and the adoption
of IPv6, which uses a 128-bit addressing scheme, providing a much larger address
space.
➢ IPv4 addresses are divided into five classes: A, B, C, D, and E. Classes A, B, and C
are used for unicast addresses, which identify individual devices on a network. Class
D is used for multicast addresses, which are used to send data to multiple devices on a
network. Class E is reserved for experimental use.
➢ IPv6 addresses are divided into two parts: the prefix and the interface identifier. The
prefix identifies the network to which the device is connected, while the interface
identifier identifies the specific device on that network.
➢ In summary, the addressing mechanism in the Internet IP uses a hierarchical structure
to uniquely identify devices on a network. IP addresses are assigned by the IANA and
are allocated based on geographical location and network requirements. IPv4 and
IPv6 are the two main versions of IP, with IPv6 providing a much larger address
space.
➢ Subnetting and super netting are techniques used to divide or aggregate IP address
ranges, respectively.
➢ Subnetting is the process of dividing a larger IP address range into smaller sub-
networks or subnets. This allows an organization to use a single IP address range to
address multiple smaller networks or subnets, which can help to conserve IP address
space.
➢ In subnetting, a portion of the host bits in an IP address is used to create a separate
network prefix or subnet ID. The remaining bits are used to identify individual hosts
on that subnet. This allows a network administrator to assign IP addresses to devices
in a more efficient and structured way.
➢ Super netting, also known as route summarization, is the opposite of subnetting. It
involves combining multiple smaller IP address ranges into a larger single range. This
can help to simplify routing tables and reduce the size of routing updates, which can
improve network performance.
➢ In super netting, adjacent network prefixes are combined into a single prefix, creating
a more general address range. This allows routers to summarize the routes in their
routing tables, making them smaller and easier to manage.
➢ Subnetting and super netting are important techniques for network design and
management. They allow network administrators to better allocate IP addresses,
improve network performance, and reduce the complexity of routing tables.
Subnet Masking
Quality of Service Optional, using Differentiated Integrated, using Flow Label field in
(QoS) Services Code Point (DSCP) header
Feature IPv4 IPv6
Backward Fully backward compatible with IPv6 nodes can communicate with IPv4
compatibility IPv4 nodes using translation mechanisms
Number of
Layers 7 4
Application
Connection-
Oriented Yes Yes and No
Each layer provides services to the Services are provided by each layer, but are not
Services Provided layer above it strictly tied to a specific layer
Transport
Protocols TCP and UDP TCP and UDP
Header Size Fixed-size headers for each layer Headers can vary in size