CPE401_MODULE2B_Data_Communication_and_Networking.pdf

ayotenitimiaremu 14 views 35 slides Mar 02, 2025
Slide 1
Slide 1 of 35
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35

About This Presentation

Data communication and Network Slides(Professor Oluwaranti)


Slide Content

CPE401
Data Communications & Computer
Networks
Prof. A. I. Oluwaranti
[email protected]
Slides developed from Data Communications and Networking. Forth Edition. By Behrouz A. Forouzan and other online materials
Module 2b:

•Responsible of:
•Moving frames from one hop (node) to
the next.
•Framing: divided the stream of bits
received from the network layer
manageable data units called frames.
•Physical address (MAC address).
•Flow control.
•Error control: added trailer to the end of
frame.
•Access control.
•Hop to hop delivery
Layer 2: Data Link layer

a)Error control to compensate for the
imperfections of the physical layer.
b)Flow control to keep a fast sender from
swamping a slow receiver.
•Main topics:
•Framing methods
•Error detection and correction
methods
•Flow control
•Frame format
•IEEE LAN standards
•Bridges
•Switches (multi-port bridges)
Data Link layer contd.

Data Link layer contd.
101101101010110001001110110000001

Hop-to-Hop delivery

•The network layer is responsible:
•The delivery of individual packets from the original source to the final destination
•Logical addressing: if the packet passes the network boundary there is a need for another addressing system to help (source to destination) connection.
•Routing: route or switch the packet to final destination.
•Source-to-destination delivery (End-to-End).
Layer 3: Network Layer

a)Controls the operation of the
subnet.
b)Routing packets from source to
destination.
c)Logical addressing.
•Main topics:
•Internetworking
•Routing algorithms
•Internet Protocol (IP) addressing
•Routers
Network Layer contd.

Network Layer contd.

Source-to-Destination delivery

•The transport layer is responsible for:
•Service point or Port addressing
•Segmentation and reassembly:
§a message is divided into
transmittable segments each
segment containing a sequence no.
•Connection Control: connection
oriented or connectionless.
•Flow control
•Error control
Layer 4: Transport Layer

a)Provides additional Quality of Service.
b)Heart of the OSI model.
•Main topics:
•Connection-oriented and
connectionless services
•Transmission Control Protocol (TCP)
•User Datagram Protocol (UDP)
Layer 4: Transport Layer contd.

Transport Layer contd.

Reliable process-to-process delivery of a message

•Dialogue control: design to
establish, maintain, and
synchronize the interaction
between communicating systems.
•Synchronization: it allows a
process to add checkpoints or
synchronization points to a data
stream.
Layer 5: Session Layer

Session Layer contd.

•Design to the handle the syntax
and semantic of the information
exchanged between 2 systems.
•Design for:
•data translation
•encryption
•decryption
•compression.
•Where is data compression required?
Layer 6 :Presentation Layer

Presentation Layer (contd)

Layer 7:
Application
Layer
The application layer is responsible for
providing services to the user.
Mail services
File transfer, access and management
Remote log-in or network virtual terminal
Accessing the World Wide Web
Directory service

a)Provides protocols that are commonly needed.
•Main topics:
•File Transfer Protocol (FTP)
•HyperTextTransfer Protocol (HTTP)
•Simple Mail Transfer Protocol (SMTP)
•Simple Network Management Protocol (SNMP)
•Network File System (NFS)
•Telnet
Application Layer (contd)

Application Layer contd.
HTTPTelnetSMTPHTTPTelnetSMTP

data
datadatadata
Network header data
Frame HNetwork Hdata
Segments
packets
Frames
Bits
From trailer
data stream
data stream
data stream
Application
Presentation
Session
Transport
Network
Data link
Physical 1110111 0111 011111101

Summary

•The TCP/IP protocol suiteis a
hierarchical protocol , made
of five layers:
•Application layer
•Transport layer
•Network layer
•Data link layer
•Physical layer
TCP/IP Protocol Suite

•The layers in the TCP/IP protocol
suite do not exactly match those in
the OSI model.
•The original TCP/IP protocol suite
was defined as having four layers:
host-to-network, internet,
transport, and application.
•However, when TCP/IP is compared
to OSI, we can say that the TCP/IP
protocol suite is made of five layers:
physical, data link, network,
transport, and application.
TCP/IP PROTOCOL SUITE

TCP/IP and OSI model

•Fourlevelsofaddresses
areusedinaninternet
employingtheTCP/IP
protocols:
•physicaladdress
•logicaladdress
•portaddress
•specificaddress
ADDRESSING

Relationship of layers and addresses in TCP/IP
SCTP: Stream Control Transmission Protocol
TCP: Transmission Control Protocol
UDP: User Datagram Protocol

•Physical address, also known as the link address, is the address of a node as defined by its LAN or WAN.
•It is included in the frame used by the data link layer. It is the lowest-level address
•The size and format of these addresses vary depending on the network. E.g., Ethernet uses a 6-byte (48-bit) physical address that is imprinted on the NIC
Physical Address

•In Figure below, a node with physical address 10 sends a frame to a node with
physical address 87. The two nodes are connected by a link (bus topology LAN). As the figure shows, the computer with physical address 10 is the sender, and the
computer with physical address 87 is the receiver.
Example 1

•Figure 2 shows a part of an internet with two routers connecting three
LANs. Each device (computer or router) has a pair of addresses (logical
and physical) for each connection.
•In this case, each computer is connected to only one link and
therefore has only one pair of addresses. Each router, however, is
connected to three networks (only two are shown in the figure).
•So each router has three pairs of addresses, one for each connection.
Example 2

Figure 2. IP addresses

•Figure 3 shows two computers communicating via the Internet.
•The sending computer is running three processes at this time with port
addresses a, b, and c.
•The receiving computer is running two processes at this time with port
addresses jand k.
•Process ain the sending computer needs to communicate with
process jin the receiving computer.
•Note that although physical addresses change from hop to hop, logical
and port addresses remain the same from the source to destination.
Example 3

Figure 3 Port addresses

OSI and Protocol Stack
OSI ModelTCP/IP HierarchyProtocols
7th
Application Layer
6th
Presentation Layer
5th
Session Layer
4th
Transport Layer
3rd
Network Layer
2nd
Link Layer
1st
Physical Layer
Application Layer
Transport Layer
Network Layer
Link Layer
Link Layer : includes device driver and network interface card
Network Layer : handles the movement of packets, i.e. Routing
Transport Layer : provides a reliable flow of data between two hosts
Application Layer : handles the details of the particular application

Packet Encapsulation
n The data is sent down the protocol stack
n Each layer adds to the data by prepending headers
22Bytes20Bytes20Bytes4Bytes
64 to 1500 Bytes
Tags