CN Uint 1
CN Uint 1
• Identical objects exist between two hops. • The link between two hops does not
change the object
Framing - Divides the stream of bits received into data units called frames.
Physical addressing – If frames are to be distributed to different systems on the
n/w , data link layer adds a header to the frame to define the sender and receiver.
Flow control- If the rate at which the data are absorbed by the receiver is less than
the rate produced in the sender ,the Data link layer imposes a flow ctrl mechanism.
Error control- Used for detecting and retransmitting damaged or lost frames
and to prevent duplication of frames. This is achieved through a trailer added at
the end of the frame.
Access control -Used to determine which device has control over the link at any
given time.
Network Layer
• The network layer is responsible for source-to-destination transmission of data.
• The network layer is also responsible for routing the packet.
• The routers choose the best route for each packet.
4) IGM
• IGMP is used to send the same message to a group of recipients
P
Transport Layer
• TL protocols are responsible for delivery of a message from a process to another
process.
• The transport layer
→ gets the message from the application layer
→ encapsulates the message in a packet called a segment and
→ sends the segment to network layer.
Responsibilities
Port addressing - The header in this must therefore include a address called port address.
This layer gets the entire message to the correct process on that computer.
Segmentation and reassembly - The message is divided into segments and
each segment is assigned a sequence number. These numbers are arranged
correctly on the arrival side by this layer.
Connection control - This can either be connectionless or connection-oriented.
The connectionless treats each segment as a individual packet and delivers to the
destination. The connection-oriented makes connection on the destination side before
the delivery. After the delivery the termination will be terminated.
Flow and error control - Similar to data link layer, but process to process take place
• TCP/IP model defines 3 protocols:
1) TCP (Transmission Control Protocol)
2) UDP (User Datagram Protocol) &
3) SCTP (Stream Control Transmission Protocol)
1) TCP
• TCP is a reliable connection-oriented protocol.
• A connection is established b/w the sender and receiver before the data can be
transmitted.
• TCP provides
→ flow control ((matching the sending data rate of the source host with the
receiving data rate of the destination host to prevent overwhelming the destination),
→ error control ((to guarantee that the segments arrive at the destination
without error and resending the corrupted ones),
→ congestion control (reduce the loss of segments due to congestion in the
network)
1) UDP
2.2.5 Addressing
• We have logical communication between pairs of layers.
• Any communication that involves 2 parties needs 2 addresses: source address and destination
address.
• We need 4 pairs of addresses (Figure 2.9):
1) At the application layer, we normally use names to define
→ site that provides services, such as vtunotesbysri.com, or
→ e-mail address, such as VCET@gmail.com.
2) At the transport layer, addresses are called port numbers.
➢ Port numbers define the application-layer programs at the source and
destination.
➢ Port numbers are local addresses that distinguish between several programs
running at the same time.
3) At the network-layer, addresses are called IP addresses.
➢ IP address uniquely defines the connection of a device to the Internet.
➢ The IP addresses are global, with the whole Internet as the scope.
4) At the data link-layer, addresses are called MAC addresses
➢ The MAC addresses defines a specific host or router in a network (LAN or WAN).
➢ The MAC addresses are locally defined addresses.
Framing - Divides the stream of bits received into data units called frames.
Physical addressing – If frames are to be distributed to different systems on the
n/w , data link layer adds a header to the frame to define the sender and receiver.
Flow control- If the rate at which the data are absorbed by the receiver is less than
the rate produced in the sender ,the Data link layer imposes a flow ctrl mechanism.
Error control- Used for detecting and retransmitting damaged or lost frames
and to prevent duplication of frames. This is achieved through a trailer added at
the end of the frame.
Access control -Used to determine which device has control over the link at any
given time.
Network Layer
• The network layer is responsible for source-to-destination transmission of data.
• The network layer is also responsible for routing the packet.
• The routers choose the best route for each packet.
• TCP/IP model defines 5 protocols:
1) IP (Internetworking Protocol)
2) ARP (Address Resolution Protocol)
3) ICMP (Internet Control Message Protocol)
4) IGMP (Internet Group Message Protocol)
1) IP
o IP defines the format and the structure of addresses.
o IP is also responsible for routing a packet from its source to its destination.
o It is a connection-less & unreliable protocol.
i) Connection-less means there is no connection setup b/w the sender and the
receiver.
ii) Unreliable protocol means
→ IP does not make any guarantee about delivery of the data.
→ Packets may get dropped during transmission.
o It provides a best-effort delivery service.
o Best effort means IP does its best to get the packet to its destination, but with no
guarantees.
o IP does not provide following services
→ flow control
→ error control
→ congestion control services.
o If an application requires above services, the application should rely only on
the transportlayer protocol.
2) ARP
• ARP is used to find the physical-address of the node when its Internet-
address is known.
• Physical address is the 48-bit address that is imprinted on the NIC or LAN
card.
• Internet address (IP address) is used to uniquely & universally identify a
device in the internet.
3) ICM
P
• ICMP is used to inform the sender about datagram-problems that occur
during transit.
4) IGM
• IGMP is used to send the same message to a group of recipients
P
Transport Layer
• TL protocols are responsible for delivery of a message from a process to another
process.
• The transport layer
→ gets the message from the application layer
→ encapsulates the message in a packet called a segment and
→ sends the segment to network layer.
Responsibilities
Port addressing - The header in this must therefore include a address called port address.
This layer gets the entire message to the correct process on that computer.
Segmentation and reassembly - The message is divided into segments and
each segment is assigned a sequence number. These numbers are arranged
correctly on the arrival side by this layer.
Connection control - This can either be connectionless or connection-oriented.
The connectionless treats each segment as a individual packet and delivers to the
destination. The connection-oriented makes connection on the destination side before
the delivery. After the delivery the termination will be terminated.
Flow and error control - Similar to data link layer, but process to process take place
• TCP/IP model defines 3 protocols:
1) TCP (Transmission Control Protocol)
2) UDP (User Datagram Protocol) &
3) SCTP (Stream Control Transmission Protocol)
1) TCP
• TCP is a reliable connection-oriented protocol.
• A connection is established b/w the sender and receiver before the data can be
transmitted.
• TCP provides
→ flow control ((matching the sending data rate of the source host with the
receiving data rate of the destination host to prevent overwhelming the destination),
→ error control ((to guarantee that the segments arrive at the destination
without error and resending the corrupted ones),
→ congestion control (reduce the loss of segments due to congestion in the
network)
3) UDP
SESSION LAYER
Dialog control - This session allows two systems to enter into a dialog either in
half duplex or full duplex.
Synchronization-This allows to add checkpoints into a stream of data.
PRESENTATION LAYER
It is concerned with the syntax and semantics of information exchanged between two
systems.
The other responsibilities of this layer are
Application Layer
This layer enables the user to access the n/w.
• The two application layers exchange messages between each other.
• Process-to-process communication is the duty of the application layer
following protocols:
1) SMTP is used to transport email between a source and destination.
2) TELNET is used for accessing a site remotely.
3) FTP is used for transferring files from one host to another.
4) DNS is used to find the IP address of a computer.
5) SNMP is used to manage the Internet at global and local levels.
6) HTTP is used for accessing the World Wide Web (WWW).
(FTP->File Transfer Protocol
(DNS ->Domain Name System
(SNMP ->Simple Network Management Protocol
SMTP ->Simple Mail Transfer Protocol)
HTTP ->Hyper Text Transfer Protocol)
TELNET ->Terminal Network)