Unit1a Part2
Unit1a Part2
Part-2
Layering Scenario
Network Software
•Protocol hierarchies
•Design issues for the layers
•Connection-oriented versus connectionless service
•Service primitives
•Relationship of services to protocols
Protocols and Elements of Protocol
• A protocol is synonymous with rule. It consists of a set of rules that
govern communications. It determines what is communicated, how it
is communicated and when it is communicated. The key elements of a
protocol are syntax, semantics and timing
• Elements of a protocol:
– Syntax: structure or format of data
• Example: 8-bits address of sender, 8-bits address of receiver
– Timing: when data should be sent and how fast they can be sent
• Example: sender produces data at 100 Mbps but the receiver can
process data at only 1 Mbps overload and data loose
Protocol Hierarchies
• To reduce the design complexity,
networks are organized as stack of
layers or levels each one built upon the
one below.
• The rules and conventions used in the
conversation are collectively knows as
the layer n protocol.
• A protocol is an agreement between the
communicating parties on how the
communication has to proceed.
• The entities comprises the corresponding
layers on different machines know as
peers.
• The actual communication occurs
through physical medium.
• Between each pair of adjacent layers is
known as an interface.
• A set of layers and protocols is known as
Network Architecture.
• A list of protocols used by a system, one
protocol per layer, is known as protocol
stack.
Layers, Protocols and interfaces
Example explaining how the communication is
provided to the top five layer network.
1. Physical Layer
2. Data Link Layer
3. Network Layer
4. Transport Layer
5. Session Layer
6. Presentation Layer
7. Application Layer
Physical layer
• It is concerned with transmitting the raw bits over a communication channel.
• The design issues here deals with the mechanical, electrical and timing
interfaces, and the physical transmission medium which lies below the physical
layer.
• It defines the procedures and functions that physical devices and interfaces have
to perform for transmission to occur.
• The physical layer is also concerned with:
– Physical characteristics of interfaces and medium.
– Representation of bits
– Data rate
– Synchronization of bits
– Line configuration
– Physical topology
– Transmission mode
Data Link layer
• The main task of the data link layer is to transform a raw transmission facility into a
line that appears error free of undetected transmission errors to the network layer.
• It break up the input data into data frames and transmit the frames sequentially.
• It transforms the physical layer a raw transmission facility to reliable link.
• It makes the physical layer appear error-free to the upper layer (network layer).
• There are other responsibilities of data link layer include:
– Framing
– Physical addressing
– Flow control
– Error control
– Access control
• Broadcast networks have an issue how to control access to the shared channel. A
special sub layer of the data link layer, i.e., medium access control layer deals with
this problem.
Network layer
• It controls the operation of the subnet.
• The key design issue is determining how the packets are routed from source to destination.
• The network layer is responsible for the delivery of individual packets from the source host
to the destination host.
• At the sender side, data is received from the higher layer (transport) and passed down to the
lower layer (data link).
• At the receiver side, data is received from the lower layer (data link) and passed up to the
upper layer (transport).
• If two systems are connected to the same link, there is usually no need for a network layer.
• If the two systems are attached to different networks with connecting devices between the
networks, there is often a need for the network layer to accomplish source-to-destination
delivery.
• Other responsibilities of network layer include:
– Logical addressing
– Routing
Transport layer
• The transport layer is responsible for the delivery of a message from one process to
another.
• At the sender side, it receives application data and passes it down to the network
layer.
• At the receiver side, it receives data from the network layer and passes it up to the
appropriate process.
• Other responsibilities of transport layer:
– Service-point addressing
– Segmentation and reassembly
– Connection control
– Flow control
– Error control
• Again, the transport layer is responsible for the delivery of a message from one
process to another.
• Unlike the network layer which is source-to-destination delivery, the transport layer
is process-to-process delivery of the entire message.
Session layer
• The session layer is responsible for dialog control and synchronization.
• Specific responsibilities of the session layer include:
– Dialog control
– Synchronization
Presentation layer
• The presentation layer is concerned with syntax and semantics of the information
exchange between two systems.
• Specific responsibilities of presentation layer:
– Translation
– Encryption
– Compression
Application layer
• The application layer enables user, weather human or software, to access the
network.
• It provides user interfaces and support for services such as e-mail, remote file
access and transfer, shared database management, and other types of distributed
information services.
• Specific responsibilities of presentation layer:
– Network virtual terminal
– File transfer, access, and management
– Mail services
– Directory services
Summary of layers
2.28
TCP/IP REFERENCE MODEL
2.31
2-4 TCP/IP PROTOCOL SUITE
• Physical and Data Link Layers
– No specific protocol is defined at this layer, rather, TCP/IP
model supports all the standard and proprietary
protocols.
– For instance, a network in a TCP/IP internetwork can be a
local-area network or a wide-area network.
• Network layer (internetwork layer)
– TCP/IP at this layer supports the Internetworking Protocol
(IP)
– There are also some other protocols that support data
movement in this layer. Including: ARP, RARP, ICMP, and
IGMP.
2.32
Protocols at The Network Layer
2.35
2-4 TCP/IP PROTOCOL SUITE
• Application Layer
– The application layer in TCP/IP is
equivalent to the combined session,
presentation, and application.
2.36
2-5 ADDRESSING
2.37
2-5 ADDRESSING
2.38
Figure 2.18 Relationship of layers and addresses in
TCP/IP
2.39
2-5 ADDRESSING
• Physical Addresses
– It is knwon as link address .
– It is the address of a node as defined by its
LAN or WAN.
– The size and format of the address depends
on the network.
• Ethernet uses 6-bytes (48-bits) NIC
• LocalTalk (Apple) uses 1-byte dynamic
address
2.40
Example 2.1
2.41
Example 2.2
2.43
Example 2.3
2.45
Note
2.46
2-5 ADDRESSING
• Port Addresses
– It is necessary for the receiver device that
runs multiple process to receive data
simultaneously this make a need to
label each process
– A port address is 16-bits.
2.47
Example 2.4
2.48
Figure 2.21 Port addresses
2.49
Note
2.50
2-5 ADDRESSING
• Specific Addresses
– Examples
• e-mail address
• URL address
2.51