B PDF
B PDF
CCNA Basics
http://ccnabasics.com/category/b-communication-models-and-media/
1/17
1/10/2015
Various layers are involved when a message is sent from device A to device B. As the message travels
http://ccnabasics.com/category/b-communication-models-and-media/
2/17
1/10/2015
Various layers are involved when a message is sent from device A to device B. As the message travels
from A to B, it may pass through many intermediate nodes. These intermediate layers usually involve
only the first 3 layers of OSI model.
In developing the model, the designers distilled the process of transmitting data down to its most
fundamental elements. They identified which networking functions had related uses and collected those
functions into discreet groups that became layers. By defining and localizing functionally in this
fashion, the designers created an architecture that is both comprehensive and flexible.
Advantages of layered architecture:
1. Allows you to modify a component without disturbing the next one.
2. Design scalable and maintainable application rapidly.
3. Increase security of an application.
The 7 layers of the OSI are divided into two parts:
The host layers: they provide accurate data delivery between the computers.
The media layers: they control physical delivery of messages over the network.
To understand how OSI model works, it is important to know the functions of each layer.
FUNCTIONS OF EACH LAYER:
7. APPLICATION LAYER:
This layer enables the user 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.
http://ccnabasics.com/category/b-communication-models-and-media/
3/17
1/10/2015
4. TRANSPORT LAYER:
http://ccnabasics.com/category/b-communication-models-and-media/
4/17
1/10/2015
4. TRANSPORT LAYER:
This layer is responsible for source-to-destination (end-to-end) delivery of entire message, whereas
network layer oversees end-to-end delivery of individual packet without recognizing any relationship
between those packets. The network layer treats each packet independently as though each piece
belonged to a separate message, whether or not it does. The transport layer on the other hand ensures
that the whole message arrive intact and in order, overseeing both error control and flow control at the
source-to-destination level.
Responsibilities of transport layer are:
Service-point addressing: computer often runs 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 (running program) on one computer to a specific process (running
program) on the other. The transport layer, therefore, must 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, each segment
containing a sequence number. These numbers enable the transport layer to reassemble the
message correctly upon arriving at the destination and to identify and replace packets that were last
in transmission.
Connection control: a transport layer can be either connection-oriented or connection-less. A
connectionless transport layer treats each segment as an independent packet and delivers it to the
transport layer at the destination machine. A connection-oriented transport layer makes a
connection with the transport layer at the destination machine before delivering the packets. After
all the data is transferred, the connection is terminated.
Flow control: the transport layer is responsible for flow control. Flow control at this layer is
performed end-to-end
Error control: error control at this layer is performed end-to-end. 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 re-transmission.
It takes information from session layer and converts it into format understandable by other systems.
3. NETWORK LAYER:
It is responsible for the delivery of individual data packets from the source-to-destination across
multiple networks. It adds the logical address of the sender and receiver to the packet. It also provides
routing facility.
Functions of this layer are:
Logical addressing: the network layer adds a header to the packet coming from the upper layers
that among other things include the logical address of sender and receiver.
Routing: when independent networks or links are connected together to create internetwork (a
network of networks) or a large network, the connecting devices (called routers or gateways) route
the packets to their final destination.
http://ccnabasics.com/category/b-communication-models-and-media/
5/17
1/10/2015
6/17
1/10/2015
7/17
1/10/2015
2.
3.
4.
5.
6.
7. At physical layer, data is transformed into bits and sent to the other device through the physical
connection be it through cables or wireless.
When the receiving computer receives the data, following steps are followed:
1. The data is received by the physical layer now.
2. Then data travels to data link layer where the information is stripped out of the frame header and
the frame trailer.
3. The network layer receives the data packets.
4. The transport layer receives data in sequence.
5. The session layer coordinates the communication.
6. The presentation layer decrypts the data which was encrypted by the presentation layer of source
computer.
7. The application layer receives the data in readable form.
http://ccnabasics.com/category/b-communication-models-and-media/
8/17
1/10/2015
http://ccnabasics.com/category/b-communication-models-and-media/
9/17
1/10/2015
The first four layers provide physical standards, network interface, internetworking, and transport
functions that correspond to the first four layers of the OSI model. The three topmost layers in the OSI
model, however, are represented in TCP/IP by a single layer called the application layer.
Layer
Description
Protocols
Application
Transport
Internet
http://ccnabasics.com/category/b-communication-models-and-media/
10/17
1/10/2015
TCP/IP Protocols
Hypertext Transfer Protocol (HTTP)- Web servers implement this protocol. Short for Hypertext
Transfer Protocol, the underlying protocol used by the World Wide Web. HTTP defines how
messages are formatted and transmitted, and what actions Web servers and browsers should take
in response to various commands. For example, when you enter a URL in your browser, this
actually sends an HTTP command to the Web server directing it to fetch and transmit the requested
Web page.
Simple Mail Transfer Protocol (SMTP)- Used by e-mail servers (and sometimes Web servers) to
send e-mail. Short for Simple Mail Transfer Protocol, a protocol for sending e-mail messages
between servers. Most e-mail systems that send mail over the Internet use SMTP to send messages
from one server to another; the messages can then be retrieved with an e-mail client using either
POP or IMAP. In addition, SMTP is generally used to send messages from a mail client to a mail
server. This is why you need to specify both the POP or IMAP server and the SMTP server when
you configure your e-mail application.
Post Office Protocol Version 3 (POP3)- A protocol used to retrieve e-mail from a mail server.
Most e-mail applications (sometimes called an e-mail client) use the POP protocol, although some
can use the newer IMAP (Internet Message Access Protocol). There are two versions of POP. The
first, called POP2, became a standard and requires SMTP to send messages. The newer version,
POP3, can be used with or without SMTP.
File Transfer Protocol (FTP)- The protocol for exchanging files over the Internet. FTP works in the
same way as HTTP for transferring Web pages from a server to a users browser and SMTP for
transferring electronic mail across the Internet in that, like these technologies, FTP uses the
Internets TCP/IP protocols to enable data transfer. FTP is most commonly used to download a file
from a server using the Internet or to upload a file to a server (e.g., uploading a Web page file to a
server).
DNS- Short for Domain Name System (or Service or Server), an Internet service that translates
domain names into IP addresses. Because domain names are alphabetic, theyre easier to
remember. The Internet however, is really based on IP addresses. Every time you use a domain
name, therefore, a DNS service must translate the name into the corresponding IP address.
http://ccnabasics.com/category/b-communication-models-and-media/
11/17
1/10/2015
12/17
1/10/2015
Twisted pair
Coaxial
Fibre-optics
WirelessInfra-red
Radio-wave
Twisted pair cables: They consist of two insulated copper wires twisted around each other. The advantage of twisting is
that it cancels out electrical noise from adjacent pair (called crosstalk) and external sources.
They use RJ-45 telephone type connectors.
These cables are not expensive.
These are easy to install.
There are 2 types of twisted pair cables:
Unshielded twisted pair (UTP)
13/17
1/10/2015
STP.
Categories of UTP cables are: Category
Speed
(data
rate)
Application
CAT 1
1
mbps
CAT 2
4
Mbps
Mainly used in the IBM Cabling System for Token Ring networks
(http://searchNetworking.techtarget.com/sDefinition/0,,sid7_gci213154,00.html)
CAT 3
16
Mbps
CAT 4
20
Mbps
CAT 5
100
Mbps
Limitation of using UTP is that they can be easily tapped as they are not shielded cables.
They are more prone to damage.
The main problem is attenuation because of more twists and works in limited distance of 100
meters- same as in case of STP.
Types of Ethernet cables: Straight cable-regular cable used in a network.
Cross-over cable-cable directly connecting two similar devices.
Straight cables: in straight cables, the corresponding pins are directly connected.
The straight cables are used to connect:
Host (PC) to switch or hub.
Router to switch or hub.
Example:
Cross-over cables: in cross-over cables, 2 PCs are connected by
connecting pins cross-over.
Cross-over cables are used to connect:
Switch to switch
Hub to hub
Host to host
Hub to switch
Router direct to host.
http://ccnabasics.com/category/b-communication-models-and-media/
14/17
1/10/2015
Example:
Coaxial cables: Cables used in cable TVs, long distance
telephone communication and LANs.
They can transmit analog and digital
signals but repeaters are used for digital
signals after every few kilometres.
Consists of a Solid or Stranded Copper Core Surrounded by Insulation, a Braided Shield and an
Insulating Jacket.
Braided Shield Prevents Noise and Crosstalk
More
Pair Cabling.
15/17
1/10/2015
External Transceivers
Can Carry Signals 500 Meters or 1640 Fee
Much Less Flexible and Far More Bulky and Harder to Install Than Thinnet.
Uses DIX or
AUI
(Attachment
Unit
Interface)
Connector
Also Known
As DB-15
Connector to
Connect to
and is used for relatively large distances. It generates one stream of laser.
16/17
1/10/2015
The quality of information transmitted through a communication medium depends upon bandwidth.
Increased bandwidth means faster transmission speed.
Bandwidth is affected by the amount of network traffic, software protocols, and type of network
connection.
Comparison between different transmission media is given in table below: -
http://ccnabasics.com/category/b-communication-models-and-media/
17/17