Professional Documents
Culture Documents
The goal of a network is to transmit data from one terminal to other. This cannot be achieved by using the
hardware alone. We need to have structured software for this. The network software is structured using 2 models:
1. OSI Reference Model
2. TCP/IP Reference Model
OSI Layers
Function of different layers:
1. The Physical Layer:
The physical layer coordinates the functions required to carry a bit stream over a physical medium. It deals with the
mechanical and electrical specifications of the interface and transmission media.
The physical layer is also concerned with the following:
▪ The physical layer defines the characteristics of the interface between the devices and the transmission media.
▪ The physical layer defines the type of encoding.
▪ The transmission rate - the number of bits sent each second - is also defined by the physical layer.
▪ The physical layer is concerned with the connection of devices to the media i.e. line configuration the link between
two device point-to-point configuration and multipoint configuration.
▪ The physical layer defines the physical topology i.e. (bus, star, ring etc) how devices are connected to make a
network.
1
▪ The physical layer also defines the direction of transmission between two devices: simplex, half-duplex, or full-
duplex.
▪ Physical layer does not perform detection or correction of error. It also doesn’t decide the medium or modulation.
▪ It deals with the synchronization of the transmitter and receiver.
▪ It deals with the media bandwidth i.e. baseband and broadband transmission.
Devices: Routers.
2
Other responsibilities of the transport layer include the following:
▪ Service-point addressing/ Port Addressing. Computers often run several programs at the same time. For this reason,
source-to-destination delivery means delivery not only from one computer to the next but also from a specific
process on one computer to a specific process on the other. The transport layer header must therefore include a type
of address called a service-point address (or port address). The network layer gets each packet to the correct
computer; the transport layer gets the entire message to the correct process on that computer.
▪ Segmentation and reassembly. A message is divided into transmittable segments, with each segment containing a
sequence number. These numbers enable the transport layer to reassemble the message correctly when it reaches
destination.
▪ Connection control. The transport layer can be either connectionless or connection oriented.
▪ Flow control. Provides end to end flow control mechanism.
▪ Error control. Error control is performed process-to-process in this layer. The sending transport layer makes sure that
the entire message arrives at the receiving transport layer without error (damage, loss, or duplication). Error
correction is usually achieved through retransmission.
Devices: Gateway.
3
Merits of OSI Reference Model:
It supports connection less and connection oriented services.
It clearly distinguishes between services, interface and protocol.
It is truly a general model.
TCP/IP was developed by the Department of Defense’s Project Research Agency (DARPA) under its project on network
communication.
Description of TCP/IP Model:
It consists of 4 layers as show in the figure (TCP/IP Protocol Suite).
1. Host-to-network Layer i.e. Physical Layer and Data link Layer:
▪ This is the lowest layer in TCP/IP model.
▪ TCP/IP does not define any specific protocol for the physical layer. It supports all of the standard and proprietary
protocols.
▪ TCP/IP does not define any specific protocol for the data link layer either. It supports all of the standard and
proprietary protocols
▪ Node to node communication.
2. Network Layer/Internet Layer:
▪ At the network layer (or, more accurately, the internetwork layer), TCP/IP supports the Internet Protocol (IP).
▪ IP transports data in packets called datagrams, each of which is transported separately.
▪ Datagrams can travel along different routes and can arrive out of sequence or be duplicated.
▪ Datagrams travels independently to the destination.
▪ Since the packets can arrive out of sequence to the destination it is the responsibility of the higher layer to arrange
them in proper order.
▪ Routing of packets/datagrams and congestion are important issues related to this layer.
▪ IP does not keep track of the routes and has no facility for reordering datagrams once they arrive at their destination.
▪ End to end communication.
▪ The unit of communication at the network layer is a datagram.
4
3. Transport Layer:
▪ The transport layer is responsible for delivering the whole message, which is called a segment, a user
datagram/packet.
▪ This is the layer above Network/Internet layer.
▪ Its functions are same as those of a transport layer in OSI model.
▪ The end to end protocols used here are TCP and UDP (User Datagram protocol).
▪ TCP is reliable connection oriented protocol. It allows byte stream transmitted from one machine to other without
introducing any error. TCP handles flow control.
▪ UDP is unreliable connectionless protocol and used for the applications which do not wants the TCP’s sequencing and
flow control.
▪ UDP is preferred over TCP in those applications where prompt delivery is more important than accurate delivery.
▪ A new protocol called Stream Control Transmission Protocol (SCTP) has been introduced in the last few years.
4. Application Layer:
▪ The application layer in TCP/IP is equivalent to the combined session, presentation, and application layers in the OSI
model.
▪ Many protocols are defined at this layer to provide services such as electronic mail, file transfer, accessing the World
Wide Web, and so on.
▪ The unit of communication at the application layer is a message.
Layers Protocols
Application Layer TELNET,FTP,SMTP,DNS,HTTP,NNTP
Transport Layer TCP,UDP
Internet Layer/Network Layer IP
Host-to-network Layer ARPNET, SATNET LAN, packet radio.
5
▪ Limited functionality is drawback of IP/
▪ “BEST EFFORT SERVICE”
Addressing:
Four levels of addresses are used in an internet employing the TCP/IP protocols: physical address, logical address, port
address, and application-specific address.
6
▪ IP address is an internetwork address, it is universally unique address.
▪ A logical address in the Internet is currently a 32-bit address that can uniquely define a host connected to the
Internet. No two publicly addressed and visible hosts on the Internet can have the same IP address.
The physical addresses will change from hop to hop, but the logical addresses remain the same.
3. Port Addressing:
▪ The modern computers are designed to run multiple processes on it simultaneously.
▪ The main objective of internet is process to process communication. For this purpose it is necessary to label or name
the processes.
▪ The label assigned to a process is called as port address.
4. Specific Addresses:
▪ Some applications have user-friendly addresses that are designed for that specific application.
▪ Examples include the e-mail address (for example, forouzan@fhda.edu) and the Universal Resource Locator (URL) (for
example, www.mhhe.com).