Unit 1: Network Fundamentals: 1. Data Communication 2. Components 3. Basic Concepts of Network
Unit 1: Network Fundamentals: 1. Data Communication 2. Components 3. Basic Concepts of Network
Unit 1: Network Fundamentals: 1. Data Communication 2. Components 3. Basic Concepts of Network
1. Data Communication
2. Components
3. Basic Concepts of Network
Reference : Behrouz.A. Forouzan, Data Communication And Networking, 4th Edition, Tata
McGraw Hill, 2007. 1
Data Communication
• The term telecommunication means communication at a distance.
The word data refers to information presented in whatever form is
agreed upon by the parties creating and using the data
2
Fundamental Characteristics
The effectiveness of data communication system depends on 4 fundamental
characteristics.
• Delivery
Deliver data to the correct destination
Intended device or user
• Accuracy
Deliver the data accurately
Altered in transmission and left uncorrected
• Timeliness
Deliver data in a timely manner
Ex: Real-time transmission (video and audio) – without delay.
• Jitter
Jitter refers to the variation in the packet arrival time.
Uneven delay in the delivery of audio or video packets
3
Data Communication System Components
5
Basic Concepts
1. Line Configuration
2. Topology
3. Transmission Mode
4. Categories of Networks
5. Internetworks
6
1. Line Configuration
7
1.A Point-to-Point Line Configuration
Dedicated link
Reserved channel
Ex: Remote control
8
1B. Multipoint Line Configuration
• Multipoint / Multidrop
• More than two specific devices share a single link.
• Capacity of the channel is shared.
• Spatial Sharing : Several devices can share the link simultaneously
• Time shared line : Users take turns using the link
9
2. Topology
• Topology defines the physical or logical arrangements of links in a
network.
10
2A. Mesh Topology
Disadvantage:
Advantage:
Amount of cabling
Elimination of traffic problems –
Installation and
Dedicated link
reconfiguration are difficult
Robust
Hardware required –
Privacy or security.
expensive.
Fault identification and isolation is easy 11
Problem 1
• The ECE department has a fully connected mesh network
consisting of eight devices. Calculate the total number of cable
links needed and the number of ports for each device.
12
2B. Star Topology
• Every node is connected
through a central device.
• Devices are not directly linked
with each other.
• Controller acts as an exchanger.
Advantage Disadvantage
• Less expensive than mesh. • More cabling is required
• Easy to install and than other topologies ( such
reconfigure. as ring or bus ).
• Robustness 13
2C. Bus Topology
16
2B. Ring Topology
(Check NIC address)
Advantage:
Easy to install and reconfigure. Data
To add or delete a device Receiver
requires moving only two
connections.
Fault isolation is easy. (Check NIC address)
Data
Disadvantage:
A break in the ring – disable entire
network. ( Solution dual ring)
Sender
17
Problem
• The Electronics department has a fully connected ring network
consisting of eight devices. Calculate the total number of cable
links needed and the number of ports for each device.
• Number of links : n = 8
• Number of IO ports = 2
18
Identify the topology
2. How many cables are needed? How many ports are needed for each
device?
20
3. Transmission Mode
Term transmission mode is used to define the direction of signal flow between
two linked devices.
Example :: Telephone
Example Keyboard - input only
Walkie-talkies
Monitor – output only 21
4. Categories of Network
22
4A. Local Area Network
25
5. Internetwork
(internet)
• When two or more networks are connected, they become
internetwork or internet.
26
Network Criteria
• A network is a set of devices (often referred to as nodes) connected by
communication links.
• Security issues include protecting data from unauthorized access and viruses.
27
Protocols
• In computer networks, communication occurs between entities in
different systems.
• Entity is anything capable of sending or receiving information
• For communication to occur, the entities must agree on a protocol.
28
Standards
• Standards are essential in creating and maintaining an open and
competitive market for equipment manufacturers.
• Standards provide guidelines to manufacturers, vendors, government
agencies, and other service providers.
29
Standards Organizations
• International Telecommunication Union-Telecommunication
Standards Sector (ITU-T)
– committee was devoted to the research and establishment of standards for
telecommunications in general and for phone and data systems
• Electronic Industries Association (EIA)
– Devoted to the promotion of electronics manufacturing concerns
– EIA has made significant contributions by defining physical connection
interfaces and electronic signaling specifications for data communication.
• Institute of Electrical and Electronics Engineers (IEEE)
– Largest professional engineering society
– it aims to advance theory, creativity, and product quality in the fields of
electrical engineering, electronics, and radio
• International Organization for Standardization (ISO)
– covers all aspects of network communications (1947)
30
1. Frequency of failure and network recovery time after a failure are
measures of the _______ of a network Reliability
2. Which topology requires a multipoint connection?
(a) Mesh (b) Star (c) Ring (d) Bus Bus
3. Communication between a computer and a keyboard involves
______________ transmission. Simplex
4. A television broadcast is an example of _______ transmission. Simplex
5. A _________
Point - Point connection provides a dedicated link between two devices.
6. In a Multi-
________
Point connection, more than two devices can share a single link.
7. In _______ transmission, the channel capacity is shared by both
communicating devices at all times. Full duplex
8. In a ______ connection, two and only two devices are connected by a
dedicated link. Point - Point
9. Topology
________ refers to the physical or logical arrangement of a network.
10. ________ is a collection of many separate networks. An internet
31
Unit 1 : OSI Model
Reference : Behrouz.A. Forouzan, Data Communication And Networking, 4th Edition, Tata
McGraw Hill, 2007.
32
Layered Tasks
• Two friends communicate through postal mail.
• Process of sending a letter to a friend would be complex if there
were no services available from post office.
Deliver
Collects
Sort
Services: Each layer at the sending site uses the services of the layer immediately below it.
33
OSI Model
• ISO - Established in 1947
• Open Systems Interconnection Model – 1970
• A set of protocols that allows any two different systems to
communicate regardless of their architecture.
• Purpose of OSI – To communicate two different systems
without changing hardware and software.
• OSI is not a protocol.
• OSI – 7 layers.
• Layer – responsible for different part of overall process of
moving data.
• Layers : Physical, Data link, Network, Transport, Session,
Presentation, Application
34
Seven layers of the OSI model
“ Please
“All Do Seem
People Not Touch Steve’s
To Need DataPet Alligator””
Processing 35
1. Physical Layer
• Deals with mechanical and electrical specification of the
interface and transmission medium.
The physical layer is responsible for movements of individual bits from one
hop (node) to the next.
36
Responsibilities of Physical layer
• Physical characteristics of interfaces and media:
Defines characteristics of the interface
Defines type of medium
• Representation of bits
Physical layer data consist of stream of bits
Bits must be encoded into signals
Defines type of encoding
• Data rate
Transmission rate – Defines duration of bits
37
Responsibilities of Physical layer
• Synchronization of bits
Sender and receiver clock must be synchronised.
S & R must to use same bit rate.
• Line configuration
Connection of devices to the medium
Point to point, Multi point configuration
• Physical topology
Topology defines the physical or logical arrangements of links in
a network. Mesh, star, ring and bus topology.
• Transmission mode
Direction of transmission between two devices. Simplex, Half
duplex, Full duplex.
38
2. Data link Layer
• Responsible for delivering data units from one node to another
node without errors.
The data link layer is responsible for moving frames from one hop (node) to
the next. 39
Responsibilities of Data link layer
• Framing
Divides the stream of bits into manageable data units.
• Physical addressing
To distribute to different system – physical address
• Flow control
Rate at which data are absorbed by the receiver is less than rate
produced in the sender.
To prevent overpower the receiver
• Error control
Adds reliability to the physical layer – mechanisms to detect and
retransmit damaged or lost frames.
Error control achieved through a trailer added at the end of frame.
40
Responsibilities of Data link layer
• Access control
Two or more devices are connected to same link
Data link protocol determine which device has control over
the link at any given time.
41
Responsibilities of Data link layer
The data link layer is responsible for moving
frames from one hop (node) to the next.
42
3. Network Layer
Network layer is responsible for source to destination delivery of a
packet across multiple networks.
• Logical addressing
Physical address - Handles addressing problem locally
When packet pass network boundary – need another address
Network layer adds a header to the packet.
• Routing
Independent networks are connected together to create an
internetwork.
Interconnecting devices – route the packet
43
44
3. Network Layer
The network layer is responsible for the delivery of individual
packets from the source host to the destination host.
45
3. Network Layer
46
4. Transport Layer
• The transport layer is responsible for the delivery of a message from
one process to another.
• Process is an application program running on a host
47
Responsibilities of Transport layer
• Service-point addressing
– Computer run several programs at the same time
– Source to destination delivery - delivery not only from one computer
to next but also from a specific process on one computer to a specific
process
– Header contain port address
– Network layer: to correct computer Transport layer: to correct process
• Flow control
– Like data link layer, transport layer is responsible for flow control
• Error control
– Like data link layer, transport layer is responsible for error control
– Error correction is achieved through retransmission. 49
Transport Layer
• The transport layer is responsible for the delivery of a message
from one process to another.
• Process is an application program running on a host
50
5. Session Layer
• The services provided by the first three layers are not sufficient for
some processes
• The session layer is responsible for dialog
control and synchronization.
• Session layer is network dialog controller – establishes, maintains
and synchronizes the interaction between communicating systems.
51
Responsibilities of Session layer
• Dialog control
– Allows the communication between two processes to take place
in either half-duplex or full-duplex mode
• Synchronization
– a process to add checkpoints, or synchronization points, to a
stream of data.
– Example : sending a file of 2000 pages
insert checkpoints after every 100 pages
acknowledged independently by receiver
52
6. Presentation Layer
• The presentation layer is responsible for translation, compression,
and encryption.
• The presentation layer is concerned with the syntax and semantics of
the information exchanged between two systems.
• Syntax – format of data blocks.
• Semantics – Refers to the meaning of each section of bits
53
Responsibilities of Presentation layer
• Translation:
– Sender changes the information from its sender dependent
format in to common format.
– Receiver changes common format to receiver dependent format.
• Encryption:
– To carry sensitive information - privacy.
– sender transforms the original information to another form
– Receiver transforms the message back to its original form
• Compression:
– reduces the number of bits to be transmitted.
– multimedia such as audio, and video
54
55
7. Application Layer
• Enables the user, whether human or software, to access the network.
• User interfaces and support for services – email, remote file access
etc.
• Mail services
– E-mail forwarding and storage
• Directory services
– Distributed database sources and access for global information for object and services
57
An Exchange Using the OSI Model
Encapsulation: Data portion of a packet at level N-1 carries the whole packet from level N.
58
The interaction between layers in the OSI model
Interface: Each interface defines the information and services a layer must provide for
59
the layer above it.
Summary
60
Network Interface Card
(NIC)
• Ethernet card and network adapter
• RJ-45 connector
• RJ registered jack - mechanical
interface and wiring scheme.
61
• In the OSI model, headers are added to the data packet at every layer
except _______. layer 1
• In a peer-to-peer process, layer 4 on machine A communicates with layer
_______ on machine B. 4
• The _______ layer ensures end-to-end reliable data transmission. transport
• The _______ layer ensures reliable transmission on a single link. physical
• The OSI _______ layer is implemented mainly by hardware. physical
• The OSI _______ layer is implemented mainly by software.
• The _______ layer defines the type of encoding to be used. physical
• The data link layer divides the stream of bits received from the network
layer into data units called _______. frames
• The _______ layer is responsible for regulating the flow of data to prevent
the receiver from being overwhelmed with data. data link
• The _______ layer is responsible for the source-to-destination delivery of a
packet, possibly across multiple networks. Network
62
Unit 1 : TCP/IP Protocol
64
Overview of TCP/IP
• TCP/IP - Transmission Control Protocol and Internet Protocol was
developed by Department of Defence's Advance Research Project Agency
(ARPA, later DARPA) as a part of a research project of network
interconnection to connect remote machines.
• The features that stood out during the research, which led to making the
TCP/IP reference model were:
– Support for a flexible architecture. Adding more machines to a network
was easy.
– The network was robust, and connections remained intact until the
source and destination machines were functioning.
• The overall idea was to allow one application on one computer to talk
to(send data packets) another application running on different computer.
65
TCP/IP Layers
Layer 1: Host-to-network Layer
• Lowest layer of the all.
• Protocol is used to connect to the host, so that the packets can be sent over it.
• Varies from host to host and network to network.
67
TCP/IP Layers
Layer 4: Application Layer
• Application layer of TCP/IP – Combination of Session, Presentation and
application layer.
• The TCP/IP specifications described a lot of applications that were at the top of
the protocol stack. Some of them were TELNET, FTP, SMTP, DNS etc.
– TELNET is a two-way communication protocol which allows connecting to a remote machine
and run applications on it.
– FTP(File Transfer Protocol) is a protocol, that allows File transfer among computer users
connected over a network. It is reliable, simple and efficient.
– SMTP (Simple Mail Transport Protocol) is a protocol, which is used to transport electronic mail
between a source and destination, directed via a route.
– DNS (Domain Name Server) resolves an IP address into a textual address for Hosts connected
over a network.
68
Merits and Demerits of TCP/IP
Merits of TCP/IP model
• It operated independently.
• It is scalable.
• Client/server architecture.
• Supports a number of routing protocols.
• Can be used to establish a connection between two computers.
Demerits of TCP/IP
• In this, the transport layer does not guarantee delivery of packets.
• The model cannot be used in any other application.
• Replacing protocol is not easy.
• It has not clearly separated its services, interfaces and protocols.
69
Comparison of OSI and TCP/IP
S.No OSI TCP/IP
1 7 Layers 4 layers
2 OSI is a reference model around which TCP/IP is a way implementation of
the network are built. Generally it is used OSI model.
a s guidance tool.
3 OSI model defines services, interfaces In TCP/IP services, interface and
and protocols very clearly and make clear protocols are not clearly separated.
distinction between them.
4 OSI is a generic protocol independent TCP/IP is based on standard protocols
standard. around with the internet has
developed.
5 It is possible to fit the protocols into the TCP/IP does not fit any protocol.
model. It is easy to replace the protocol Replacing the protocol is not easy.
as the technology changes.
70
Addressing
71
Relationship of layers and addresses in
TCP/IP
72
1. Physical address
• Physical address ( Link address) - Address of a node.
• Size and format of the address vary depending on the network.
• Ethernet – 6byte address (48bit) – imprinted on NIC.
• LocalTalk (Apple) – 1byte – dynamic address that changes
each time the station comes up.
07:01:02:01:2C:4B
A 6-byte (12 hexadecimal digits) physical address.
73
2. Logical Address
• Logical address are necessary
for universal communications
that are independent of
physical network.
• Universal addressing required
in which host can be identified
uniquely.
• Currently 32 bit IP address.
76
NIC
• Network Interface Card
• Ethernet card and network adapter
• RJ-45 connector
77
• RJ11 – 1P1C
• RJ25
• 6P6C
• For three telephone
lines
78
Problems
• Five computers are connected to a common cable in a
multipoint configuration. The cable can transfer only 100,000
bits per second. If all computers have data to send, what is the
average data rate for each computer?
79