GATE Computer Networks Book
GATE Computer Networks Book
for
www.thegateacademy.com
Syllabus
Computer Networks
Percentage of marks
2013
7.00
2012
9.00
2011
3.00
2010
8.00
2009
3.33
Overall Percentage
6.513 %
2008
6.00
2007
9.33
2006
7.33
2005
6.00
2004
7.33
2003
5.33
THE GATE ACADEMY PVT.LTD. H.O.: #74, KeshavaKrupa (third Floor), 30th Cross, 10th Main, Jayanagar 4th Block, Bangalore-11
: 080-65700750, [email protected] Copyright reserved. Web: www.thegateacademy.com
Contents
Computer Networks
CONTENTS
Chapters
Page No
#1 Introduction
1 32
Computer Network
13
Components of Network
Criteria of a Network
Classification of a Network
Network Topology
46
Transmission Modes
67
The Model
7 20
20 24
Assignment 1
25 28
Assignment 2
29
Answer Keys
30
Explanations
30 32
33 47
Introduction
33
Transmission Impairment
33 34
Digital transmission
34 38
Transmission Mode
38 39
Multiplexing
39 40
Transmission Media
40 41
Assignment 1
42 44
Assignment 2
44 45
Answer Keys
46
Explanations
46 47
th
th
th
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30 Cross, 10 Main, Jayanagar 4 Block, Bangalore-11
: 080-65700750, [email protected] Copyright reserved. Web: www.thegateacademy.com
Page i
Contents
Computer Networks
#3
48 64
Introduction
48
48 52
Ethernet Cabling
53
54
54 55
55 58
Assignment 1
59 60
Assignment 2
60 61
Answer Keys
62
Explanations
62 64
#4
65 - 99
65 68
69 78
78 91
91 93
Assignment 1
94 95
Assignment 2
95 96
Answer Keys
97
Explanations
97 99
#5
100 114
Routing
100 101
Routing Algorithms:
101 107
Assignment 1
108 110
Assignment 2
110 111
Answer Keys
112
Explanations
112 114
th
th
th
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30 Cross, 10 Main, Jayanagar 4 Block, Bangalore-11
: 080-65700750, [email protected] Copyright reserved. Web: www.thegateacademy.com
Page ii
Contents
Computer Networks
#6
115 145
115 117
Network Layer
117 121
Addressing on Internet
122 126
Subnetting
127 131
131 133
Transport Layer
133 137
Assignment 1
138 139
Assignment 2
140 141
Answer Keys
142
Explanations
142 145
#7
Application Layer
146 157
146 147
148 149
149
149 150
150
150
151
151
Assignment 1
152 153
Assignment 2
154
Answer Keys
155
Explanations
155 157
#8
Network Security
158 175
158 160
160 161
Digital Signatures
161 162
Firewalls
162 168
th
th
th
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30 Cross, 10 Main, Jayanagar 4 Block, Bangalore-11
: 080-65700750, [email protected] Copyright reserved. Web: www.thegateacademy.com
Page iii
Contents
Computer Networks
Assignment 1
169 170
Assignment 2
171 172
Answer Keys
173
Explanations
173 175
#9
Module Test
176 - 191
Test Questions
176 184
Answer Keys
185
Explanations
185 191
Reference Books
192
th
th
th
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30 Cross, 10 Main, Jayanagar 4 Block, Bangalore-11
: 080-65700750, [email protected] Copyright reserved. Web: www.thegateacademy.com
Page iv
Chapter 1
Computer Networks
CHAPTER 1
Introduction
Computer Network
A computer network is created when several computers and terminal device are connected
together by data communication system.
A network is basically a communication system for computers.
Just as the telephone system allows two people to talk, networks allow computers to
communicate. Figure 1.1 illustrate a simple computer network where computer A and B can
communicate and share resources through computer C.
th
th
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30 Cross, 10 Main, Jayanagar 4 Block, Bangalore-11
: 080-65700750, [email protected] Copyright reserved. Web: www.thegateacademy.com
Page 1
Chapter 1
Computer Networks
configure the software individually on every computer. With a network one can centrally
install and configure the software, which can be accessed at the entire connected
computer.
(2)
(3)
Database sharing
A database program is an ideal application for a network. A network feature called record
locking lets multiple users simultaneously access a file without corrupting the data.
Record locking insures that no two users edit the same record at the same time.
(4)
(5)
(6)
(7)
Creation of workgroups
Groups are important in networks. They can consist of users who work in a department or
who are assigned to special project. With Netware, one can assign users to groups and
then give each group access to special directories and resources not accessible by other
users. This saves the trouble of assigning access to each individual user.
(8)
Centralized Management
Because Netware users dedicated servers can be grouped in one location, along with the
shared resource attached to them, for easier management.
Hardware upgrades, software backups, system maintenance and system protection are
much easier to handle when these devices are in one location.
(9)
Security
A network provides more secure environment for a companys important information.
Security starts with the login procedure to ensure that a user accesses the network using
his or her own account. This account is tailored (i.e. made according to the user
requirements) to give the user access only to authorized areas of the server and the
network. Login restrictions can force a user a log in at one specific station and only during
specific time frame or period.
th
th
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30 Cross, 10 Main, Jayanagar 4 Block, Bangalore-11
: 080-65700750, [email protected] Copyright reserved. Web: www.thegateacademy.com
Page 2
Chapter 1
Computer Networks
Components of Network
Computer networks have the following fundamental components:
1.
2.
3.
4.
5.
Server
Workstations
Network Interface Cards
Cabling system
Shared Resources and Peripherals.
Criteria of a Network
A network must able to meet a certain number of criteria. The most important of these are
follows
(i) Performance: performance can be measured in many ways, including transmit time and
response time. The performance of a network depends upon these following factors:
(i) Number of users
(ii) Types of transmission medium
(iii) Capacity of connected hardware
(iv) Efficiency of the software
(ii) Reliability: In addition to accuracy of delivery. Network reliability is measured by the
frequency of failure, the time it takes for a link to recover from a failure.
(iii) Security: Network security issues include protecting data from the unauthorized access.
Classification of network
It contains two or more computer along with a transmission path to share information and
resource of communication system. By the networking we can make interconnection of two or
more network device
Depending upon the graphical area, we can divide the computer network in 3 parts.
(i) LAN (Local Area Network)
(ii) MAN (Metropolitan Area Network)
(iii) WAN (Wide Area Network)
(i) LAN: It spans over a diameter of 2 km, typically data transfer rate for LAN is 10-100 Mbps,
it is used by a signal organization. It propagates high transmission over unexpensive
media. Example co-axial cable, twisted pair cable.
(ii) MAN: It spans over 10 100km diameter. Data rate for MAN is 10 Mbps. Some special
equipments are required for transmission.
(iii) WAN: It spans across the country or nation. Data transfer rate for WAN is 1.5 mbps. It is
used by multiple organizations
th
th
th
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30 Cross, 10 Main, Jayanagar 4 Block, Bangalore-11
: 080-65700750, [email protected] Copyright reserved. Web: www.thegateacademy.com
Page 3
Chapter 1
Computer Networks
Work station
Work station
Multi-point: Here two or more device are connected to each other. In a multipoint
connection the capacity of the channel is shared either spatially or temporarily.
Work station
Work station
Main
frame
Work station
Fig 1.3 Multi-point connection
Network Topology
There are two types of topology
1. Physical topology
2. Logical topology
1.
(i)
Mess Topology: In mesh topology every device has a dedicated point to point link to
every other device. A fully connected mesh network has n(n 1)/2 physical channel
to link n device. To accommodate that many links, every device on the network must
have (n-1) input/output ports.
Advantages
(i) Eliminate traffic problems
(ii) A mesh topology is robust
(iii) It is more secure and private
(iv) Fault identification and fault isolation is easy
th
th
th
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30 Cross, 10 Main, Jayanagar 4 Block, Bangalore-11
: 080-65700750, [email protected] Copyright reserved. Web: www.thegateacademy.com
Page 4