COMPUTER NETWORKS
1.1
Course Outcomes:
CO1: Demonstrate the modern network architectures from a design perspective (Understand- L2)
CO2: Apply various Data Link layer design issues and error detection & correction techniques to solve collisions problems. (Apply- L3)
CO3: Demonstrate the network Layer functionalities (Understand- L2).
CO4: Outline the functions of transport layer protocols (Understand- L2) .
CO5: Examine different application layer protocols. (Understand- L2) .
1.2
Unit-1
Data Communication Components: Representation of data and its flow Networks, Various Connection Topology, Protocols and Standards, OSI model, Transmission Media, LAN: Wired LAN, Wireless LANs, Connecting LAN and Virtual LAN.
1.3
Computer Networks are used for data communications
Data Communication: Exchanging of data b/w the devices via some form of transmission medium.
Computer network: Two or more computers that are connected with one another for the purpose of communicating data and share resources with each other.
DATA REPRESENTATION
1.5
Example: What we hear on the radio is a
source of data or information. Audio data is
continuous, not discrete.
1.6
Delivery: The system must deliver the data to correct destination. Data must be received by intended device or user.
Accuracy: The system must deliver the data accurately. Data that have been altered in transmission and left uncorrected and unusable.
Timeliness: The system must deliver the data in a timely manner. Data delivered late are useless.
Jitter: It refers to the variation in the packet arrival time. It is the uneven delay in the delivery of audio/video packets.
1.7
There are 5 components in data communication
Message: It is the information (data) to be communicated. Popular forms of information includes text, numbers, pictures, audio, & videos.
Sender: It is the device that send the message . It can be a computer, workstation, telephone, handset, video camera.
Receiver: It is the device that receives the message.
Transmission Medium: It is the physical path by which message travels from sender to receiver.
Eg: Fiber optic , Twisted pair, Co-axial cable.
Protocol: It is set of rules and regulations b/w two devices that govern data communication.
Without protocol, 2 devices may be connect, but there is no communication b/w two devices
1.8
1.9
Types of Dataflow:
How the data is transmitted is called as dataflow. There are 3 types of dataflow.
Simplex: In simplex the communication is uni-directional. Only one of the two devices on a link can transmit, the other can only receive.
Eg: Keyboard & Traditional Monitor
1.10
In this mode each station can both transmit & receive, but not at the same time. When one device is sending the other can only receive vice-versa.
Ex: Railway Track
1.11
Full-Duplex or Duplex:
In this mode both stations can transmit and receive simultaneously.
Ex: Telephone conversation
1.12
Computer network:
A group of computers which are connected to each other for the purpose of sharing their resources is called computer network.
McGraw-Hill
Characteristics of computer network:-�
Computer Network Topology
The physical arrangement of the computer system which is connected to each other via communication medium is called topology.
Network really has two shapes or two types of topology.
McGraw-Hill
�1)Physical topology:�
The physical topology is the physical shape or layout of the wires that can be visible in a network. The Physical topology defines how devices are interconnected with or without wires. Physical topology is further divided into two sections.
McGraw-Hill
Point-to-point connections
In a point-to-point connection, a communication link is established between two devices with one wire or air (in the case of wireless). A simple example of point-to- point connection is talking over telephone between two persons where anyone else is not allowed to use the phone on either side.
Multipoint Connection
Multiple devices or machines are involved in a multipoint connection. These devices mainly share cabling but each device needs to have a unique number to identify each other for sending data between them. A good example of a multipoint connection is communication between a group of computers in a network.
2.Logical topology:-
A logical topology defines how devices communicate with each other across the physical topology. The physical and logical topologies are independent of each other. The physical topology refers to the physical layout of the wires where the logical topology refers to how data moves through the network.
McGraw-Hill
Bus Topology:
One long Single Communication Channel & all the devices are Connected to this Cable.
Advantages:
Disadvantages:
Ring topology:
Advantages:
another node connected through a ring topology.
broadcast
Disadvantage:
Star Topology:
In star topology all nodes are connected with a central device called HUB. And the sharing of data is only possible through HUB.
McGraw-Hill
Advantages:
Disadvantages:
Mesh Topology�
Advantages:
Disadvantages:
Hybrid Topology:
Tree Topology:
TYPES OF NETWORKS
1. Local Area Network (LAN)
2. Metropolitan Area Network (MAN)
3. Wide Area Network (WAN)
LAN(Local Area Network):
1.Covers a small region of space, typically a single building.
2. LAN is the smallest network compared to other two
networks.
3. The simplest form of LAN is to connect two computers
together.
4. LAN is operated within a limited physical area such as
at home, school, a single building or several buildings.
5. A network which consists of less than 500 interconnected
devices across several buildings, is still recognized as a
LAN.
6. LAN is very high speed network (from previously 10Mbps)
to 100Mbps,which is faster than MAN and WAN.
MAN(Metropolitan Area Network):��
MAN
�WAN(Wide Area Network):�
WAN
1.37
2-1 LAYERED TASKS
We use the concept of layers in our daily life. As an example, let us consider two friends who communicate through postal mail. The process of sending a letter to a friend would be complex if there were no services available from the post office.
Sender, Receiver, and Carrier�Hierarchy
Topics discussed in this section:
1.38
Tasks involved in sending a letter
Layers, Services & Protocols:
1.40
2-2 THE OSI MODEL
Established in 1947, the International Standards Organization (ISO) is a multinational body dedicated to worldwide agreement on international standards. An ISO standard that covers all aspects of network communications is the Open Systems Interconnection (OSI) model. It was first introduced in the late 1970s.
Layered Architecture�Peer-to-Peer Processes
Encapsulation
Topics discussed in this section:
1.41
ISO is the organization.�OSI is the model.
Note
1.42
Figure 1.2 Seven layers of the OSI model
1.43
Figure 1.3 The interaction between layers in the OSI model
1.44
Figure 1.4 An exchange using the OSI model
1.45
2-3 LAYERS IN THE OSI MODEL
In this section we briefly describe the functions of each layer in the OSI model.
Physical Layer�Data Link Layer
Network Layer
Transport Layer
Session Layer
Presentation Layer
Application Layer
Topics discussed in this section:
1.46
1.47
Figure 1.1 Physical layer
The physical layer is responsible for movements of
individual bits from one hop (node) to the next.
Functionalities of Physical Layer:
Representation of bits:
The PL data consists of stream of bits(sequence of 0’s and 1’s) with no interpretation. Bits must be encoded into signals i.e electrical and optical. The PL defines type of encoding.
Data Rate:
Number of bits sent per each second is also defined by PL.
1.48
Functionalities of Physical Layer:
Representation of bits:
The PL data consists of stream of bits(sequence of 0’s and 1’s) with no interpretation. Bits must be encoded into signals i.e electrical and optical. The PL defines type of encoding.
Data Rate:
Number of bits sent per each second is also defined by PL.
1.49
Synchronization of bits:
The sender & receiver must not only use the same bit rate but also be synchronized at the bit level.
Line configuration:
It defines the different types of configurations i.e
i) Simplex
ii) Half Duplex
iii) Duplex or Full Duplex
1.50
1.51
Figure 1.6 Data link layer
The data link layer is responsible for moving �frames from one hop (node) to the next.
Functionalities of Data Link Layer:
The size of the MAC address is 48 bits
The rate at which the data is absorbed by the receiver is less than the rate produced by sender.
1.52
1.53
Figure 1.8 Network layer
The network layer is responsible for the �delivery of individual packets from
the source host to the destination host.
Functionalities of Network Link Layer:
When independent n/w’s or link’s connected together to create internet or large n/w. The connecting devices called routers, switches, hubs, gate-ways, repeaters.
The size of IP address is 32 bits.
1.54
1.55
Figure 1.10 Transport layer
The transport layer is responsible for the delivery �of a message from one process to another.
Functionalities of Transport Layer:
A message is divided into transmittable segments with each segment containing sequence numbers .These numbers is used to identify and separate the packets that were lost in the transmission.
A transport layer can be either connection oriented an d connection less.
The size of port address is 16 bits.
1.56
The rate at which the data is absorbed by the receiver is less than the rate produced by sender.
The DLL adds reliability to the physical layer by adding mechanisms to detect and re-transmit the damaged and lost frames.
1.57
1.58
Figure 1.12 Session layer
The session layer is responsible for dialog �control and synchronization.
Functionalities of Session Layer:
The session layer allows 2 systems to enter into a dialog. It allows the communication b/w the two process to take place in either half-duplex or full-duplex.
The session layer allows a process to add checkpoints(synchronization points) into a stream of data.
For ex: If a system is sending a file of 2000 pages it is advisable to insert checkpoints after every 100 pages to ensure that each 100 page unit is received and acknowledge independently.
1.59
1.60
Figure 1.13 Presentation layer
The presentation layer is responsible for translation, compression, and encryption.
Functionalities of Presentation Layer:
The processes in two systems are usually exchanging information in the form of character string, numbers and so on. The information should be changed into bit streams before being transmitted because different computer systems have different encoding systems.
Encryption:
To carry sensitive information a system must be able to assure privacy. Encryption means that the sender transforms the original information into another form.
1.61
Data compression reduces the number of bits containing the information. It is important in the transmission of multimedia such as text, audio, & video.
1.62
1.63
Figure 1.14 Application layer
The application layer is responsible for �providing services to the user.
Functionalities of Application Layer:
The application layer provide for e-mail forwarding & storage.
These application provide distributed database sources and access for global information to various objects and services.
This application allows a user to access files in a remote host, to retrieve files from remote computer
1.64
Connecting Devices:
Different types of connecting devices:
1.65
1.66
A router can connect LAN’s together, A router can connect MAN’s together.
1.67
1.68
1.69
2-4 TCP/IP PROTOCOL SUITE
The layers in the TCP/IP protocol suite do not exactly match those in the OSI model. The original TCP/IP protocol suite was defined as having four layers: host-to-network, internet, transport, and application. However, when TCP/IP is compared to OSI, we can say that the TCP/IP protocol suite is made of five layers: physical, data link, network, transport, and application.
1.70
Figure 1.16 TCP/IP and OSI model
1.71
Figure 1.18 Relationship of layers and addresses in TCP/IP
1.72
1.73
Transmission media
1.74
A Transmission System
Transmitter
Receiver
Receiver
Communication channel
Transmitter
Transmission Impairments
Communication Channel
Transmission Impairments
Transmitted Signal
Received Signal
Receiver
Communication channel
Transmitter
Guided vs Unguided
The basic difference between guided and unguided media is that,
1.77
1.78
Transmission media
Unguided media
Guided media
Guided Transmission Media
1.79
Magnetic Media:-
1.80
magnetic tape, floppy disks and hard disk drives.
Advantages:
Twisted Pair:-
1.83
(a) Category 3 UTP (16 MHz).
(b) Category 5 UTP (100 MHz).
1.84
1.85
Advantages :
Disadvantages :
Coaxial Cable:-
1.87
-50 ohm cable is most commonly used for digital transmission.
-75 ohm cable is commonly used for analog transmission.
1.88
Advantages :
Disadvantages:
Fiber optics:-
1.89
Fiber optic cable transmits light signals which are converted from electrical to light with the help of devices like LED’s(Light Emitting Diode) or LASER’s (Light Amplification Stimulated Emitted Radiations).
1.90
the same diameter as human hair. It may be single mode or multi mode.
the core.
Fiber optics
1.92
1.93
Applications:-
1. Computers - Due to higher bandwidth and less risk interference, fiber optics are used in computer networking.
of signal
Unguided Media:-
Radio wave:-
Micro wave:-
Micro wave:-
which is km away.
communication.
Infrared:-
communication in one room cannot be interrupted by the nearby rooms.
17.102
17-2 VIRTUAL LANS
A station is considered part of a LAN if it physically belongs to that LAN.
The criterion of membership is geographic. What happens if we need a virtual connection between two stations belonging to two different physical LANs?
We can roughly define a virtual local area network (VLAN) as a local area network configured by software, not by physical wiring.
17.103
Figure 17.10: A switch connecting three LANs
17.104
But what would happen if the administrators needed to move two engineers from the first group to the third group, to speed up the project being done by the third group?
The LAN configuration would need to be changed.
The network technician must rewire.
The problem is repeated if, in another week, the two engineers move back to their previous group.
In a switched LAN, changes in the work group mean physical changes in the network configuration.
17.105
Figure 17.11: A switch using VLAN software
Moving stations from one group to another through software is easier than changing the configuration of the physical network.
17.106
Figure 17.12: Two switches in a backbone using VLAN software
This is a good configuration for a company with two separate buildings.
Chapter 5: Outline
13.1 ETHERNET PROTOCOL
13.2 STANDARD ETHERNET
13.3 FAST ETHERNET
13.4 GIGABIT ETHERNET
13.5 10 GIGABIT ETHERNET
13.108
13-1 ETHERNET PROTOCOL
The data-link layer and the physical layer are the territory of the local and wide area networks.
This means that when we discuss these two layers, we are talking about networks that are using them.
As we see in this and the following two chapters, we can have wired or wireless networks. We discuss wired networks in this chapter and the next.
13.109
Figure 13.1: IEEE standard for LANs
Ethernet:
IEEE 802.2 and IEEE 802.3 standards
Ethernet Standards:
13.110
13.111
13.1.2 Ethernet Evolution
The Ethernet LAN was developed in the 1970s by Robert Metcalfe and David Boggs.
Since then, it has gone through four generations:
as shown in Figure. We briefly discuss all these generations.
13.112
Figure 13.2 : Ethernet evolution
13.113
13-2 STANDARD ETHERNET
We refer to the original Ethernet technology with the data rate of 10 Mbps as the Standard Ethernet.
Although most implementations have moved to other technologies in the Ethernet evolution, there are some features of the Standard Ethernet that have not changed during the evolution.
We discuss this standard version first.
13.114
13.2.1 Characteristics
Let us first discuss some characteristics of the Standard Ethernet.
13.115
Connectionless and Unreliable Service
Ethernet provides a connectionless service, which means each frame sent is independent of the previous or next frame.
Ethernet has no connection establishment or connection termination phases. The sender sends a frame whenever it has it; the receiver mayor may not be ready for it.
Ethernet is also unreliable like IP and UDP. If a frame is corrupted during transmission and the receiver finds out about the corruption, which has a high level of probability of happening because of the CRC-32, the receiver drops the frame silently.
13.116
Frame Format
The Ethernet frame contains seven fields
Preamble.
Start frame delimiter (SFD).
13.117
Destination address (DA).
The DA field is 6 bytes and contains the physical address of the destination station.
Source address (SA).
The SA field is also 6 bytes and contains the physical address of the sender of the packet.
Length or type.
This field is defined as a type field or length field.
The original Ethernet used this field as the type field to define the upper-layer protocol using the MAC frame.
The IEEE standard used it as the length field to define the number of bytes in the data field.
Both uses are common today.
Data.
This field carries data encapsulated from the upper-layer protocols.
It is a minimum of 46 and a maximum of 1500 bytes.
CRC.
The last field contains error detection information, in this case a CRC-32
13.118
Figure 13.3: Ethernet frame
Frame Length
Frame Length
Frame length:
Minimum: 64 bytes (512 bits) �Maximum: 1518 bytes (12,144 bits)
Note
13.122
13.2.2 Addressing
Each station on an Ethernet network (such as a PC, workstation, or printer) has its own network interface card (NIC).
The NIC fits inside the station and provides the station with a link-layer address.
The Ethernet address is 6 bytes (48 bits), normally written in hexadecimal notation, with a colon between the bytes. For example, the following shows an Ethernet MAC address:
13.123
Figure 13.4: Unicast and multicast addresses
Example 13.1
a. 4A:30:10:21:10:lA
b. 47:20:1B:2E:08:EE
c. FF:FF:FF:FF:FF:FF
Unicast, Multicast, and Broadcast Addresses
Solution
a. This is a unicast address because A in binary is 1010 (even).
b. This is a multicast address because 7 in binary is 0111 (odd).
c. This is a broadcast address because all digits are F's.
The least significant bit of the first byte �defines the type of address.�If the bit is 0, the address is unicast;�otherwise, it is multicast.
Note
The broadcast destination address is a special case of the multicast address in which all bits are 1s.
Note
13.129
Figure 13.5: Implementation of standard Ethernet
13.2.4 Efficiency of Standard Ethernet
The efficiency of the Ethernet is defined as the ratio of the time used by a station to send data to the time the medium is occupied by this station.
The practical efficiency of standard Ethernet has been measured to be
13.2.5 Implementation
The Standard Ethernet defined several implementations, but only four of them became popular during the 1980s.
Table 13.1 shows a summary of Standard Ethernet implementations.
Figure 13.6: Encoding in a Standard Ethernet
Encoding and Decoding
transition at each bit interval.
10Base5: Thick Ethernet
10Base5: Thick Ethernet
13.135
Figure 13.7: 10Base5 implementation
10Base2: Thin Ethernet
10Base2: Thin Ethernet
Figure 13.8: 10Base2 implementation
10Base- T: Twisted-Pair Ethernet
10Base- T: Twisted-Pair Ethernet
13.141
Figure 13.9: 10Base-T implementation
10Base-F: Fiber Ethernet
Figure 13.10: 10Base-F implementation
MAC Control Layer
13-3 FAST ETHERNET(100 Mbps)
In the 1990s, Ethernet made a big jump by increasing the transmission rate to 100 Mbps, and the new generation was called the Fast Ethernet.
The designers of the Fast Ethernet needed to make it compatible with the Standard Ethernet. The MAC sublayer was left unchanged.
But the features of the Standard Ethernet that depend on the transmission rate, had to be changed.
MAC Sublayer
13-4 GIGABIT ETHERNET
The need for an even higher data rate resulted in the design of the Gigabit Ethernet Protocol (1000 Mbps).
The IEEE committee calls it the Standard 802.3z.
The goals of the Gigabit Ethernet were to upgrade the data rate to 1 Gbps, but keep the
1. Upgrade the data rate to 1 Gbps.
2. Make it compatible with Standard or Fast Ethernet.
3. Use the same 48-bit address.
4. Use the same frame format.
5. Keep the same minimum and maximum frame lengths.
6. To support autonegotiation as defined in Fast Ethernet.
Full-Duplex Mode
In the full-duplex mode of Gigabit Ethernet, there is no collision;
the maximum length of the cable is determined by the signal attenuation �in the cable.
Note
Figure Gigabit Ethernet implementations
13-5 10-GIGABIT EHTERNET
In recent years, there has been another look into the Ethernet for use in metropolitan areas.
The idea is to extend the technology, the data rate, and the coverage distance so that the Ethernet can be used as LAN and MAN (metropolitan area network).
The IEEE committee created 10 Gigabit Ethernet and called it Standard 802.3ae.
1. Upgrade the data rate to 10 Gbps.
2. Make it compatible with Standard, Fast, and Gigabit Ethernet.
3. Use the same 48-bit address.
4. Use the same frame format.
5. Keep the same minimum and maximum frame lengths.
6. Allow the interconnection of existing LANs into a metropolitan area network (MAN) or a wide area network (WAN).
7. Make Ethernet compatible with technologies such as Frame Relay and ATM
13.5.1 Implementation
10 Gigabit Ethernet operates only in full-duplex mode, which means there is no need for contention; CSMA/CD is not used in 10 Gigabit Ethernet.
Four implementations are the most common:
Table shows a summary of the 10 Gigabit Ethernet implementations.
Token Ring� | Token Bus� |
The token is passed over the physical ring formed by the stations and the coaxial cable network.� | The token is passed along the virtual ring of stations connected to a LAN.� |
The stations are connected by ring topology, or sometimes star topology.� | The underlying topology that connects the stations is either bus or tree topology.� |
It is defined by IEEE 802.5 standard.� | It is defined by IEEE 802.4 standard.� |
The maximum time for a token to reach a station can be calculated here.� | It is not feasible to calculate the time for token transfer. |
Differences between Token Ring and Token Bus
1.158