Data Communication: Media & OSI Model
Data Communication: Media & OSI Model
Unit 01: < Transmission media and OSI Reference Model >
Topics
Guided and Unguided Media
Transmission media |(Twisted Pair Cable, Coaxial Cable and Fiber Optics Cable )
OSI Reference Model
TCP/IP Model
Concept of CSMA with CSMA/CD and CSMA/CA
Reference Books:
1. Tanenbaum A.S. : Computer Networks, Prentice-Hall of India, New Delhi, 1997
2. Stallings W : Data and Computer Communication, 3rd Edition,
GUIDED MEDIA
Guided media, which are those that provide a conduit from one device to another, include
twisted-pair cable, coaxial cable, and fiber-optic cable.
A signal traveling along any of these media is directed and contained by the physical limits of
the medium. Twisted-pair and coaxial cable use metallic (copper) conductors that accept and
transport signals in the form of electrical current. Optical fiber is a glass or plastic cable that
accepts and transports signals in the form of light
UNGUIDED MEDIA
Unguided media or wireless communication transports electromagnetic waves without using a
physical conductor. Instead, signals are broadcast through air or a vacuum (or, in a few cases,
water), and thus are available to anyone who has a device capable of receiving them.
Radio Frequency Allocation
The section of the electromagnetic spectrum defined as radio communication is divided into
eight ranges, called bands, each regulated by government authorities. These bands are rated
from very low frequency (VLF) to extremely high frequency (EHF).
The guided media is also called The unguided media is also called wireless
1. wired communication or bounded communication or unbounded transmission
transmission media. media.
The signal energy propagates The signal energy propagates through the air
2.
through wires in guided media. in unguided media.
Guided media is used for point-to- Unguided media is generally suited for radio
3.
point communication. broadcasting in all directions.
4. It is cost-effective. It is expensive.
Transmission Media
Transmission Media are roughly grouped into guided media, such as copper wire and fiber
optics.
Digital data can be transmitted over many different types of media.
Selecting a transmission medium is guided by comparing transmission requirements against the
medium’s characteristics.
Twisted-Pair Cable
A twisted pair cable consists of two insulated standards of copper wire twisted around
each other, typically around 1mm.
The twisted form is used to reduce electrical interference to similar pairs close by. (Two
parallel wires constitute a simple antenna a twisted pair does not)
The most common application of the twisted pairs is the telephone system. Nearly all
telephones are connected to the telephone office by a twisted pair.
Twisted pair can run several kilometers without amplification but for longer distances,
repeaters are needed. Twisted pair can be used for either analog or digital transmission.
The bandwidth depends on the thickness of the wire.
Twisted-pair cable comes in two forms: unshielded and shielded.
Unshielded Twisted-Pair (UTP) Cable
Unshielded twisted-pair (UTP) cable is the most common type of telecommunication medium
in use today. A twisted pair consists of two conductors (usually copper), each with its own
colored plastic insulation.
The plastic insulation is color-banded for identification (see Figure). Colors are used both to
identify the specific conductors in a cable and to indicate which wires belong in pairs and how
they relate to other pairs in a larger bundle.
In the past, two parallel flat wires were used for communication. However, electromagnetic
interference from devices such as a motor can create noise over those wires.
If the two wires are parallel, the wire closest to the source of the noise gets more interference
and ends up with a higher voltage level than the wire farther away, which results in an uneven
load and a damaged signal.
If however, the two wires are twisted around each other at regular intervals (between 2 and 12
twists per foot), each wire is closer to the noise source for half the time and farther away for the
other half. With twisting, therefore, the cumulative effect of the interference is equal on both
wires. Twisting does not always eliminate the impact of noise, but does significantly reduce it.
Advantages of UTP are its cost and ease of use. UTP is cheap, flexible, and easy to
install. Higher grades of UTP are used in many LAN technologies, including Ethernet and
Token Ring.
The Electronic Industries Association (EIA) has developed standards to grade UTP cables
by quality. Categories are determined by cable quality, with I as lowest and 5 as highest.
EIA category is suitable for certain uses and not for others:
Category 1. The basic twisted-pair cabling previously used in telephone systems.
This level of quality is fine for voice but inadequate for all but low-speed data
communication.
Category 2. The next higher grade, suitable for voice and for data transmission of up to 4
Mbps.
Category 3. Required to have at least three twists per foot and can be used for data
transmission of up to 10 Mbps. It is now the standard cable for most telephone systems.
Category 4. Must also have at least three twists per foot as well as other conditions to bring
the possible transmission rate to 16 Mbps.
Category 5. Used for data transmission up to 100 Mbps.
Twisted pair uses RJ-45 telephone connectors to connect to a computer. This is similar to the
RJ-11 telephone connector.
Several components area available to help organize large UTP installation and make them
carrier to work this include:
1. Distribution racks and rack shelves-distribution racks and racks shelves can create
more room for cable where there isn’t much floor space. They are a good way to centralized and
organized n/w than has a lot of connection.
2. Expandable path panels:- This comes in various versions that supports up to 96 ports
and transmission speed of 100 Mbps.
3. Jack:- This single or double RJ-45 jack snap into path panels and wall plates and
support data rates to 100 Mbps.
4. Wall plates:- This supports two or more couplers.
Coaxial – Cable
Co-axial is the most widely used network cable.
Co-axial is relatively inexpensive, is light, flexible and easy to work with. It is so populated that it
became a safe, easily supported installation.
In its simplest form, co-axial consists of a core made of solid copper surrounded by installation, a
metal shielding and an outer cover.
The core is surrounded by an insulation layer which separates it from the wire mesh. The
braided wire mesh acts as a ground and protect the core from electrical noise and cross talk.
Cross-talk means signals overflow from an adjacent wire.
A non-conductive outer shield usually made of rubber, Teflon and plastic, surrounds entire cable.
Co-axial is a good choice for longer distance and for reliably supporting higher data rates.
Higher carrying capacity - Because optical fibers are thinner than copper wires, more
fibers can be bundled into a given-diameter cable than copper wires. This allows more phone
lines to go over the same cable or more channels to come through the cable into your cable TV
box.
Less signal degradation - The loss of signal in optical fiber is less than in copper wire.
Light signals - Unlike electrical signals in copper wires, light signals from one fiber do not
interfere with those of other fibers in the same cable. This means clearer phone conversations or
TV reception.
Low power - Because signals in optical fibers degrade less, lower-power transmitters can
be used instead of the high-voltage electrical transmitters needed for copper wires. Again, this
saves your provider and you money.
Digital signals - Optical fibers are ideally suited for carrying digital information, which is
especially useful in computer networks.
Non-flammable - Because no electricity is passed through optical fibers, there is no fire
hazard.
Lightweight - An optical cable weighs less than a comparable copper wire cable. Fiber-
optic cables take up less space in the ground.
Flexible - Because fiber optics are so flexible and can transmit and receive light, they are
used in many flexible digital cameras for the following purposes:
Medical imaging - in bronchoscopes, endoscopes, laparoscopes
Mechanical imaging - inspecting mechanical welds in pipes and engines (in airplanes,
rockets, space shuttles, cars)
Plumbing - to inspect sewer lines
Fiber Copper
Higher Bandwidth Lower Bandwidth
It need amplifier at 30 Km It need amplifier at 5 Km.
Not affected by surge It is affected by surge
Lighter than copper Higher than copper
More expensive Less expensive
They do not leak height and difficult It is leak up easy and easy to tap.
to tap.
Security against wire tapers is No security
excellent
It uses photons for data transmit It uses electrons to transmit data
For connecting requires skilled Lay man can handle. Means not
engineers require engineers to connect it.
OSI Model>>>
This model is based on a proposal developed by the International Standards
Organizations(ISO) as a first step toward international standardization of the protocols used
in the various layers.
The design of network systems that allows for communication across all seven separate but
related layers, each of which defines a segment of the process of moving information
across a network.
The model is called the ISO OSI(Open Systems Interconnections ) Reference Model
because it deals with connecting open systems-that is, systems that are open for
communication with other systems.
The OSI Model has seven layers. The principles that were applied to arrive at the
seven layers can be briefly summarized as follows ;
Figure shows the seven layers of the OSI model.
Physical Layer
The first (bottommost) layer in the OSI model is the physical layer. The physical layer
coordinates the functions required to create a bit link (a physical connection) between the
sender and receiver.
The physical layer is concerned with the following:
Some protocols divide the data link layer into two sublayers: media access control (MAC)
sublayer and logical link control (LLC) sublayer. In this case, the first three responsibilities
(framing, addressing, and media access control) discussed belong to the MAC sublayer and the
last two responsibilities (flow control and error control) belong to the LLC sublayer.
Framing. When the physical layer does not have anything to send, it may send idle bits
on the link. The idle bits are used to keep the link alive and to let the physical layer of all
stations know that there are no packets being sent even though the physical link is up and
functioning. When the data link layer has a packet for the physical layer to send, it marks the
beginning of the packet with some specific sequence of bits. This sequence of bits informs
the receiver that the link is not in the idle state anymore and that a packet is coming. The
data link layer adds this sequence to frame the packet received from the upper layer. That is
why a packet at the data link layer is called a frame .
Medium access control. When stations in a network share the same physical medium, it
may happen that more than one station tries to send data at the same time. There needs to
be a mechanism to resolve this situation. This mechanism is called medium access control
(MAC).
Flow control. The data link layer can control the rate the frames are sent on the link. It can
use a mechanism to ensure that the receiver is not overwhelmed with the received frames. It
can also use an acknowledgment system that makes sure that the frames are received by
the receiver. Flow control at the data link layer is hop-to-hop, not end-to-end. Each station
ensures that the next station is not overwhelmed with data.
Error control. The data link layer can add reliability to the physical layer by adding
mechanisms to detect and retransmit damaged or lost frames.
Network Layer
The network layer is responsible for the source-to-destination (end-to-end) delivery of a packet,
possibly across multiple networks (links). Whereas the data link layer oversees the delivery of
the packet between two systems on the same network (link), the network layer ensures that
each packet gets from its point of origin to its final destination
Specific responsibilities of the network layer include the following:
Creating a logical end-to-end connection. The network layer is responsible for creating a
logical connection between one end and the another. The two end systems should see a
logical connection without worrying about links and their connecting devices. In other words,
a network layer should make a logical network out of many physical networks.
Hiding the details of the lower layer. The network layer hides the details of the physical
and data link layers from the upper layers. If we change the physical connection or the
protocol in the data link layer, the transport layer should not be aware of it.
Addressing. The addresses implemented by the data link layer handle the addressing
problem locally. If a packet passes the network boundary, we need another addressing
system to distinguish the source and destination systems.
Routing. When independent networks or links are connected together to create
internetworks (network of networks) or a large network, the connecting devices (called
routers or gateways) route the packets to their final destination. One of the functions of the
network layer is to provide this mechanism. Routing means to find the optimum path from the
many different paths available.
Transport Layer
The transport layer is responsible for end-to-end error-free delivery of the entire message;
the network layer oversees host-to-host delivery of individual packets.
When a packet is received by the end system, the transport layer is responsible for
delivery to the session layer. Specific responsibilities of the transport layer include the
following:
Service-point 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 (running program) on one computer to a specific process
(running program) 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.
Flow control. Like the data link layer, the transport layer is responsible for flow control.
However, flow control at this layer is performed end to end rather than across a single link.
Error control. Like the data link layer, the transport layer is responsible for error control
However, error control at this layer is performed end to end rather than across a single link.
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.
Session Layer
The services provided by the first three layers (physical, data link, and network) are not
sufficient for some processes. The session layer is the network dialog controller. It establishes,
maintains, and synchronizes the interaction between communicating systems. Specific
responsibilities of the session layer include the following:
Half- and full-duplex service. In some protocols, the transport layer provides a simplex (one
way) delivery service; this may be sufficient for some applications. However, other
applications may need a half-duplex service. The session layer can be used with the
transport layer to create a half-duplex service for the application program. The session layer
can also use two transport layer connections to provide a full-duplex (two-way at the same
time) service. For this reason, the session layer is sometimes called the dialog controller
because it can create communication between two end users that looks like a one-at-a-time
dialog (half-duplex) or two at-a-time dialog (full-duplex).
Synchronization. The session layer allows two end systems to add checkpoints or
synchronization marks during data transmission. This service is very useful for applications
that send a large amount of data in one transport connection. The checkpoint allows the data
sent during the two synchronization marks to be sent and acknowledged.
Atomization. Sometimes an application needs several transport connections to finish a task.
However, the combination of connections should be treated as one task. If one of the
connections cannot be completed, the whole task should be cancelled. The session layer
can combine these several connections into one task.
Presentation Layer
Different computers use different syntaxes to define data. For example, some computers use
ASCII code to represent character data; some use EBCDIC. This difference in data
representation, or syntax, must be resolved before computers can communicate
with each other.
The presentation layer is responsible, at the source, to convert the code or data delivered by
the sending application layer to a universally accepted format. At the destination, the
presentation layer is responsible for reformatting the data to a format understood by the
receiving application layer. In other words, the presentation layer allows the two corresponding
application layers to use their own data formats. The application layer at the destination may use
a format that is totally different from the format used by the application layer at the source.
Specific responsibilities of the presentation layer include the following:
Translation. The processes (running programs) in two systems are usually exchanging
information in the form of character strings, numbers, and so on. The information should be
changed to bit streams before being transmitted. Because different computers use different
encoding systems, the presentation layer is responsible for interoperability between these
different encoding methods. The presentation layer at the sender changes the information from
its sender-dependent format into a common format. The presentation layer at the receiving
machine changes the common format into its receiver-dependent format. In summary, the
presentation is responsible for resolving architectural differences.
Encryption. To carry sensitive information a system must be able to assure privacy. Encryption
means that the sender transforms the original information to another form and sends the
resulting message out over the network. Decryption reverses the original process to transform
the message back to its original form.
Compression. Data compression reduces the number of bits to be transmitted. Date
compression becomes particularly important in the transmission of multimedia such as text,
audio, and video.
Application Layer
The application layer enables the user, whether human or software, to access the network. It
provides user interfaces and support for services such as electronic mail, remote file access and
transfer, shared database management, and other types of distributed information services. In
other words, the application layer provides frequently needed services to users or user
programs.
OVERVIEW OF TCP/IP
In 1969, a project was funded by the Advanced Research Project Agency (ARPA), an
arm of the U.S. Department of Defense. ARPA established a packet-switching network of
computers linked by point-to-point leased lines called Advanced Research Project Agency
Network (ARPANET) that provided a basis for early research into networking. The conventions
developed by ARPA to specify how individual computers could communicate across that
network became TCP/IP.
The scope of the services provided by TCP requires that the segment header be extensive (see
Figure). A comparison of the TCP segment format with that of a UDP user datagram shows the
differences between the two protocols. TCP provides a comprehensive range of reliability
functions but sacrifices speed (connections must be established, acknowledgments waited for,
etc.). Because of its smaller frame size, UDP is much faster than TCP, but at the expense of
reliability. A brief description of each field is in order.
Source port address. The source port address defines the application program in the
source computer.
Destination port address. The destination port address defines the application program in
the destination computer.
Sequence number. A stream of data from the application program may be divided into two
or more TCP segments. The sequence number field shows the position of the data in the
original data stream.
Acknowledgment number. The 32-bit acknowledgment number is used to acknowledge
the receipt of data from the other communicating device. Thi~ number is valid only if the
ACK bit in the control field (explained later) is set. In this case, it defines the byte sequence
number that is next expected.
Header length (HLEN). The four-bit HLEN field indicates the number of 32-bit (4-byte)
words in the TCP header. The 4 bits can define a number up to IS. This is multiplied by 4 to
give the total number of bytes in the header. Therefore, the size of the header can be a
maximum of 60 bytes (4 x 15). Since the minimum required size of the header is 20 bytes,
40 bytes are thus available for the options section.
Reserved. A 6-bit field is reserved for future use.
Control. Each bit of the 6-bit control field functions individually and independently. A bit can
either define the use of a segment or serve as a validity check for other fields.
The urgent bit, when set, validates the urgent pointer field. Both this bit and the pointer
indicate that the data in the segment are urgent.
The ACK bit, when set, validates the acknowledgment number field. Both are used together
and have different functions, depending on the segment type.
The PSH bit is used to inform the sender that a higher throughput is needed. If possible,
If a collision occurs, the station waits a random amount of time and starts all over again.
The protocol is called 1-persistent because the station transmits with a portability of 1
whenever it finds the channel idle.
The propagation delay has an important effect on the performance of the protocol. There
is a small chance that after a station begins sending, another station will become ready to
send and sense the channel. If the first station’s signal has not yet reached the second
one, the letter will sense an idle channel and will also begin sending, resulting in a
collision. The longer the propagation delay, the more important this effect becomes, and
the worse the performance of the protocol.
Even if the propagation delay is zero, there will still be collisions. If two stations become
ready in the middle of a third station’s transmission, both will wait politely until the
transmission ends and then both will begin transmitting exactly simultaneously, resulting
in a collision. If they were not so impatient, there would be fewer collisions. This protocol
is far better than pure ALOHA because both stations have the decency to desist from
interfering with the third station’s frame. This will lead to a higher performance than pure
ALOHA. Exactly the same holds for slotted ALOHA.
However, if the channel is already in use, the station does not continually sense it for the
purpose of seizing it immediately upon detecting the end of previous transmission.
Instead, it waits a random period of time and then repeats the algorithm. Intuitively this
algorithm should lead to better channel utilization and longer delays than 1-persistent
CSMA.
The last protocol is p-persistent CSMA. It applies to slotted channels. When a station
becomes ready to send, it senses the channel. If it is idle, it transmits with a probability of
p. With a probability q=1-p it defers until next slot. If that slot is also idle, it either transmits
or defers again, with probabilities p and q.
This process is repeated until either the frame has been transmitted or another station
has begun transmitting. In the latter case, it acts as if there had been a collision (i.e. it
waits a random time and starts again.) If the station initially senses the channel busy, it
waits until the next slot and applies the above algorithm.
Figure shows the throughout versus offered traffic for all three protocols, as well as pure
and slotted ALOHA.
CSMA / CD uses the conceptual model as given in figure. At the point marked t0, a
station has finished transmitting its frame. Any other station having a frame to send may
now attempt to do so. If two or more stations decide to transmit simultaneously, there will
be a collision. Collisions can be detected by looking at the power or pulse width of
received signal and comparing it to the transmitted signal.
After station detects a collision, it aborts its transmission, waits a random period of time,
and then tries again, assuming that no other station has started transmitting in the
meantime. Therefore our model for CSMA/CD will consist of altering contention and
transmission periods, with idle periods occurring when all stations are quite.
Suppose that two stations begin transmitting at exactly time t0. How long will it take them
to realize that there has been a collision? The answer to the question is vital to
determining the length of the contention period. The minimum time to detect the collision
is the time it takes the signal to propagate from one station to the other.
The basic idea behind CSMA / CD is that a station needs to be able to receive while
transmitting to detect a collision. When there is no collision, the station receives one
signal: its own signal. When there is a collision, the station receives two signals: its own
signal and the signal transmitted by a second station. To distinguish between these two
cases, the received signals in these two cases must be significantly different.
In other words, the signal from the second station needs to add a significant amount of
energy to the one created by the first station.
In wired network, received signal has almost same energy as the sent signal because
either the length of the cable is short or there are repeaters to amplify the energy between
the sender and the receiver.
This means that in collision the detected signal almost doubles. In a wireless network,
much of the energy is lost in transmission. The received signal has very little energy. So a
collision may add only 5 to 10 percent additional energy. This is not useful for collision
detection.
$$$=============================$$$============================$$$
Disclaimer: The study material is compiled by MITESH M PATEL. The basic objective of
this material is to supplement teaching and discussion in the classroom in the subject.
Students are required to go for extra reading in the subject through Library books
recommended by Sardar Patel University, Vallabh Vidyanagar.
$$$=============================$$$============================$$$