4th-sem-computer-network-computer-answer- (1)
4th-sem-computer-network-computer-answer- (1)
Sub Answer
No. Q. N.
1. A)
Ans: A network consists of two or more computers that are linked in order to share resources
(such as printers and CDs), exchange files, or allow electronic communications. The
computers on a network may be linked through cables, telephone lines, radio waves,
satellites, or infrared light beams.
Ans: HUB: Hub is a connecting device; it is also known as multiport repeater. It is normally
used for connecting stations in a physical star topology All networks require a central
location to bring media segments together. These central locations are called hubs. A hub
organizes the cables and relays signals to the other media segments.
Ans: Twisted pair cabling is a type of wiring in which two conductors of a single circuit are
twisted together for the purposes of canceling out electromagnetic interference (EMI)
from external sources; for instance, electromagnetic radiation from unshielded twisted pair
(UTP) cables, and crosstalk between neighboring pairs.
f) State any two advantages of coaxial cable.
Ans: To reduce the design complexity, most of the networks are organized as a series of layers
or levels, each one build upon one below it. Layered architecture is to divide the design
into small pieces. Each layer adds to the services provided by the lower layers in such a
manner that the highest layer is provided a full set of services to manage communications
and run the applications. The benefits of the layered architecture is modularity and clear
interfaces, i.e. open architecture and comparability between the different provider’s
components.
h) What is IP address? State IP address classes.
Internet Protocol address (IP address) is a numerical label assigned to each device (e.g.,
computer, printer) participating in a computer network that uses the Internet Protocol for
communication. An IP address serves two principal functions: host or network interface
identification and location addressing. IPv4 address is of 32 bit.
B) :
Ans: The Computer network facilitates centralized network management in following aspects
1. Management of Software: Expensive software can be installed on one centralized
computer and they can be accessed by other computers in a network.
2. Maintenance of network: Because of centralized management, maintenance of
network becomes easy an administrator can keep track of network performance, speed
and security from centralized computer
3. Keeping data Backup: It may happen that the data on any one computer system is
accidently lost due to system failure, computer viruses or human error. To avoid this,
data from computer system’s disk is copied to some other medium for keeping it safe.
Such backups are important to retrieve the lost data.
4. Network security: It becomes easy to maintain network with respect to virus and
malware attacks using centralized management
b) Describe router with neat and labeled diagram. State the situation under which
router are necessary in network.
Ans: Router:
A router normally connects LANs and WANs in the Internet and has a routing table that
is used for making decisions about the route. The routing tables are normally dynamic
and are updated using routing protocols.
Routers are devices that help in determining the best path out of the available paths, for
a particular transmission. They consist of a combination of hardware and software.
The two main kinds of software in a router are the operating system and the routing
protocol.
Routers use logical and physical addressing to connect two or more logically separate
networks.
Messages are stored in the routers before re-transmission, routers are said to implement
a store-and-forward technique.
Fig: Router
The router is a fundamental building block of modern business networks, providing traffic
with a gateway to both the Internet and other networks. Routers play important roles
on a network, with many combined with other devices such as firewalls, modems and
switches to provide networking solutions.
Ans:
MODEM: Modem works as modulator as well as demodulator. Modem converts analog
signal to digital signal and vice versa. In case of networking data has to be transferred
from one location to another location. At present to transfer such data whatever the
infrastructure (PSTN) is available is of analog technology but computer sends digital data
to transfer this data to another location. Thus it is needed to convert into analog format so
that it can be transferred by using currently available infrastructure
Fig: Modem
2. :
a) What is meant by file sharing and printer sharing? How this can be achieved?
Ans: 1. File sharing: It is the practice of distributing or providing access to digital media, such
as computer programs, multimedia (audio, images and video), documents or electronic
books.
File sharing typically involves word-processing files, spreadsheets, and other files to
which many people need regular access. It requires a shared directory or disk drive that
many users can access over the network, along with the underlying programming logic
needed to make sure that more than one person doesn’t make changes to a file at the
same time (called file locking). The reason you don’t want multiple people making
changes to a file at the same time is that they might both be making conflicting changes
simultaneously without realizing it.
2. Printer sharing: Printer sharing is beneficial to many users as they can share costly &
higher quality printers. Printer sharing can be done in several different ways on
network.
The most common way is to use printer queues on server. The printer queue holds print
job until any currently running print jobs are finished & then automatically send the
waiting jobs to the printer i.e. printer connected to server. Another way to share printer
on a network is that each workstations accesses the printer directly.
1) File sharing: File sharing is the primary feature of network. Due to use of networks,
the sharing of files becomes easier. File sharing requires a shared directory or disk drive to
which many users can access over the network. When many users are accessing the same
file on the network, more than one person can make changes to a file at the same time.
They might both making conflicting changes simultaneously.
2) Printer sharing: Printer sharing is beneficial to many users as they can share costly &
higher quality printers. Printer sharing can be done in several different ways on network.
The most common way is to use printer queues on server. The printer queue holds print
job until any currently running print jobs are finished & then automatically send the
waiting jobs to the printer i.e. printer connected to server. Another way to share printer on
a network is that each workstations accesses the printer directly.
3) Application services: You can also share application on a network. For example you
can have a shared copy of Microsoft office or some other application & keep it on the
network server. Another application services you can have on the network is shared
installation i.e. contents of CD-ROM copy to the server, then run the installation the
installing application mush faster & more convenient.
4) E- mail services: E-mail is extremely valuable & important feature for communication
within organization or outside the people in world. E-mail service can be used by user in
two different ways: 1. File based 2.Client File based e-mail system requires gateway
server for connecting or handling the e-mail interface between the two systems using
gateway software that is part of the file-based e-mail system. A client-server e-mail
system is one where an e-mail server containing the messages & handles all incoming &
outgoing mail. It is more secure & powerful than file based e-mail system.
5) Remote access: Using this feature user can access their file & e-mail, when they are
travelling or working on remote location. It enables users to access to centralized
application, stored private or shared files on LAN.
6) Internet & Intranet: Internet: It is public network. This consists of thousands of
individual networks & millions of computers located around the world. Internets have
many different types of services available such as e-mail, the web & Usenet newsgroups.
Intranet: It is private network or it is company’s own network. Company use this feature
for internal use. For example: company establish its own web server, for placing
documents such as employee handbooks, purchases form or other information that
company publishes for internal use. It also has internet services such as FTP servers or
Usenet servers.
Ans:
Client server Network Peer to peer network
Centralized management. Decentralized management.
In this server has more power & client In this each machine has same power
has less power.
It is hardware intensive. Uses less expensive computer
hardware.
Complex to setup & require Easy to setup & administrator.
professional administrator.
Very secure Less secure
Network O.S required Network O.S not required
It support large Network It support small Network
f) Explain basic principles of mobile communication.
Ans: 1. The first mobile telephone system had a single channel for both sending and receiving
in as early as 1946.
2. Second development took place in 1960s. This was called Improved Mobile
Telephone System (IMTS)
3. It had a strong transmitter and used for two frequencies – one for sending and other for
receiving.
4. The third step was the development of Advanced Mobile Phone system (AMPS), the
area covered is conceptually divided in small regions known as cells, thus the name
cellular phones. Each cell has an antenna and a cell office to control that cell.
5. MTSO controls various such cell offices and coordinates the communication between
them and the Telephone central office
6. Telephone central office is a part of the wired land telephone system.
7. The computer at MTSO is responsible for not only the connections but also for the
information and billing of cells
8. The typical cell radius size is 0 to 12 miles.
3. :
a) With neat diagram explain client server network along with its advantages and
disadvantages.
Ans: The servers stores all the network's shared files and applications programs, such as
word processor documents, compilers, database applications, spreadsheets, and the
network operating system.
Client will send request to access information from the server based on the request
server will send the required information to the client.
Ans:
In a mesh network topology, each of the network node, computer and other devices,
are interconnected with one another.
Every node not only sends its own signals but also relays data from other nodes.
In fact a true mesh topology is the one where every node is connected to every other
node in the network.
This type of topology is very expensive as there are many redundant connections, thus
it is not mostly used in computer networks.
It is commonly used in wireless networks.
Flooding or routing technique is used in mesh topology.
Ans: OSI model (open system interconnection) model was developed by ISO (international
standard organization)
Application Layer
Presentation Layer
Session Layer
Transport Layer
Network Layer
Data link Layer
Physical Layer
OSI model has following 7 layers as Physical layer, data link layer, Network layer,
Transport layer, session layer, presentation layer, application layer.
1. Physical layer:
o It co-ordinates the functions required to transmit bit stream over physical medium.
o It deals with mechanical and electrical specifications of interface and transmission
medium.
o For transmission it defines procedures and functions that devices and transmission
medium has to perform
Physical characteristics of interfaces and media.
Representation of bits: Data rate (transmission rate).
Synchronization of bits.
Line configuration: Point to point or multipoint configuration should be
used.
3. Network layer:
o It is responsible for routing the packets within the subnet i.e. from source to
destination.
o It is responsible for source e to destination delivery of individual packets across
multiple networks.
o It ensures that packet is delivered from point of origin to destination.
o Functions of network layer:
logical addressing
Routing.
Congestion control
Accounting and billing
Address transformation
Source host to destination host error free delivery of packet.
4. Transport layer:
o Responsibility of process to process delivery of message Ensure that whole
message arrives in order.
o Functions of Transport layer:
Service point addressing
Segmentation and reassembly
Connection control
Flow control: Flow control is performed end to end.
Error Control
5. Session layer:
o Establishes, maintains, and synchronizes the interaction among communication
systems
o It is responsible for dialog control and synchronization.
o Functions of Session layer:
Dialog control
Synchronization, session and sub session
Session closure
6. Presentation layer:
o It is concerned with syntax, semantics of information exchanged between the two
systems.
o Functions of Presentation layer:
Translation: presentation layer is responsible for converting various
formats into required format of the recipient
Encryption: Data encryption and decryption is done by presentation layer
for security.
Compression and Decompression: data to be transform compressed while
sending and decompress while receiving for reducing time of transmission.
7. Application layer:
o It enables user to access the network.
o It provides user interfaces and support for services like email, remote file access.
o Functions of Application layer:
Network virtual terminal
file transfer access and management
mail services and directory services
d) Describe data encapsulation.
Ans:
Explanation:
The protocols operating at the various layers work together to supply a unified quality
of service.
Each protocol layer provides a service to the layers directly above and below it.
The process of adding the headers and trailers to the data is called as data
encapsulation.
A packet(header and data ) at level 7 is encapsulated in a packet at level 6.The whole
packet at level 6 is encapsulated in a packet at level 5, and so on. In other words, the
data portion of a packet at level N-1 carries the whole packet (data and header and
maybe trailer) from level N.
e) State any four protocol associated with application layer of OSI model.
Ans: Protocol associated with Application layer of OSI Reference model are
Ans:
SLIP PPP
Serial Line Internet Protocol does not In PPP, LCP (Line Control Protocol)
establish or maintain connection is responsible for establishing,
between the client and ISP server. maintaining and termination
connection between two end points.
Communication starts once the Communication begins only after
connection between two modems are authentication and the types of traffic
established. is sent by the client.
Type of traffic cannot be selected in Type of traffic can be selected by
SLIP. NCP ( Network Control Protocol)
No protocol for termination. IPCP/IP (Control Protocol) terminates
a network layer connection between
the user and ISP.
No addressing mechanism provided. Additional services for addressing
mechanism is provided
Doesn’t allow error control Allows error control
No provision for data compression Provides Data compression.
4. :
Ans:
1. Protocol is used to connect the host, so that the packets can be sent over it.
2. Varies host to host and network to network.
1. Protocols used in this layer are high level protocols such as TELNET, FTP (file
transfer protocol etc.
Ans:
An IP address has two components, the network address and the host address.
A subnet mask separates the IP address into the network and host addresses.
In Internet Protocol (IP) networking, devices on a subnet share contiguous ranges of
IP address numbers.
A mask (known as the subnet mask or network mask) defines the boundaries of an IP
subnet.
The correspondence between subnet masks and IP address ranges follows defined
mathematical formulas.
IT professionals use subnet calculators to map between masks and addresses.
A Subnet mask is a 32-bit number that masks an IP address, and divides the IP address
into network address and host address.
Subnet Mask is made by setting network bits to all "1"s and setting host bits to all
"0"s. Within a given network, two host addresses are reserved for special purpose, and
cannot be assigned to hosts.
The "0" address is assigned a network address and "255" is assigned to a broadcast
address, and they cannot be assigned to hosts.
Subnet masking for 2 subnet: To calculate the number of subnets or nodes, use the
formula (2n-2) where n = number of bits in either field, and 2n represents 2 raised to
the nth power. Multiplying the number of subnets by the number of nodes available
per subnet gives you the total number of nodes available for your class and subnet
mask. Also, note that although subnet masks with noncontiguous mask bits are
allowed, they are not recommended.
Example:
10001100.10110011.11011100.11001000 140.179.220.200 IP Address
11111111.11111111.11000000.00000000 255.255.192.000 Subnet Mask
--------------------------------------------------------------------------------------------------
10001100.10110011.11000000.00000000 140.179.192.000 Subnet Address
Hence Subnet number Address
140.179.64.0
140.179.128.0
Ans:
Ans:
IPV6 IPV4
Source and destination addresses are Source and destination addresses are
128 bits (16 bytes) in length. For more 32 bits (4 bytes) in length.
information.
e) Write the names of layer that performs the following function in OSI.
1) 1)Data encapsulation 2) Error detection 3) File transfer 4) Encoding
Ans:
1. Data Encapsulation- Transport Layer, Data Link Layer. (All OSI Layers)
Ans:
LAN WAN
Covers Local areas only (e.g. homes, Large geographic areas(e.g. cities,
offices, schools) states, nations)
Definition LAN (Local Area Network) is a WAN (Wide Area Network) is a
computer network covering a computer network that covers a
small geographic area, like a broad area (e.g., any network
home, office, school, or group whose communications links cross
of buildings. metropolitan, regional, or national
boundaries over a long distance).
Speed High speed (1000 mbps) Less speed (150 mbps)
Data transfer LANs have a high data transfer WANs have a lower data transfer
rates rate. rate compared to LANs.
Example The network in an office Internet is a good example of a
building can be a LAN WAN
Connection One LAN can be connected to Computers connected to a wide-
other LANs over any distance area network are often connected
via telephone lines and radio through public networks, such as
waves. the telephone system. They can
also be connected through leased
lines or satellites.
Data Experiences fewer data Experiences more data
Transmission transmission errors transmission errors as compared to
Error LAN
Ownership Typically owned, controlled, WANs (like the Internet) are not
and managed by a single person owned by any one organization but
or organization. rather exist under collective or
distributed ownership and
management over long distances.
Set-up costs If there is a need to set-up a For WANs since networks in
couple of extra devices on the remote areas have to be connected
network, it is not very the set-up costs are higher.
expensive to do that.
Geographical Have a small geographical Have a large geographical range
Spread range and do not need any generally spreading across
leased telecommunication lines boundaries and need leased
telecommunication lines
Maintenance Because it covers a relatively Maintaining WAN is difficult
costs small geographical area, LAN is because of its wider geographical
easier to maintain at relatively coverage and higher maintenance
low costs. costs.
Bandwidth High bandwidth is available for Low bandwidth is available for
transmission. transmission.
Geographical Have a small geographical Have a large geographical range
Spread range and do not need any generally spreading across
leased telecommunication lines boundaries and need leased
telecommunication lines
5. Attempt any four :
b) Describe repeater. State the situation under which repeater are necessary in
network.
Ans: Repeater
Repeaters are used to take the distorted, weak and corrupt input signal and regenerate
this signal at its output.
It ensures that the signals are not distorted or weak before it reaches the destination.
It recreates the bit pattern of the signal, and puts this regenerated signal back on to the
transmission medium
It works in the physical layer with no intelligent function.
It simply recreates the bit pattern of the signal and puts this regenerated signal back on
to the transmission medium. In effect, the original signal is created once again.
Ans:
Ans: {**Note: IPv4 or IPv6 packet header shall be considered as the answer for IP frame
header. **}
IPv4 header:
HLEN
Version Service Type
(4 Total Length ( 16 bits)
(4 Bits) (ToS) (8 Bits)
bits)
Flags Fragmentation offset ( 13
Identification ( 16 bits)
( 3bits) bits)
Time to Live Protocol
Header Checksum ( 16 bits)
(TTL) (8 bits) ( 8 bits)
Source IP address (32 bits)
Destination IP address (32 bits)
The various fields are as described below:
Version: This field identifies the version of IP, which contains a value 4, which indicates
IP version 4. It may contain 6 for IPv6
Header length (HLEN): This indicates the size of the header in a multiple of 4 byte
words. When the header size is 20 bytes, HLEN = 5, and HLEN = 15 when maximum size
(60 bytes).
Service Type (Type of Service): This field is used to define service parameters such as
the priority of the datagram and the level of reliability desired.
Total Length: This field contains the total length of the IP datagram. IP datagram cannot
be more than 65,536 since this filed size is 2 bytes or 16 (216 = 65,536).
Identification: This field is used in the situations when a datagram is fragmented. The sub
datagram are sequenced using identification field so that later it can be used to reconstruct
the original datagram.
Flags: This field corresponds to identification field. It indicates whether a datagram can
be fragmented and if fragmented, the position of the fragment (first, last or middle).
Fragmentation Offset: If a datagram is fragmented, this field indicates the offset of the
data in the original datagram before segmentation. This is used while reconstructing.
Time to Live (TTL): This filed is initialized by some value and decremented each time it
passes through routers. If the value becomes zero or negative, the data is not forwarded.
Thus it decides the lifetime of the data.
Protocol: This field identifies the transport protocol running on top of IP. The upper layer
software piece can be TCP or UDP. This field specifies which piece of software at the
destination node the datagram should be passed on to.
Source address: This field contains the 32 bit IP address of the sender.
Destination address: This field contains the 32 bit IP address of the final destination.
OR
IPv6 header:
IPv6 fixed header is 40 bytes long and contains the following information.
Traffic Class (8-bits): These 8 bit are divided into two parts. The most significant 6 bits are
used for Type of Service to let the Router Known what services should be provided to this
packet. The least significant 2 bits are used for Explicit Congestion Notification (ECN).
Flow label (20-bits): This label is used to maintain the sequential flow of the packets
belonging to a communication. The source labels the sequence to help the router identify that a
particular packet belongs to a specific flow of information. This field helps avoid re- ordering
of data packets. It is designed for streaming/real –time media.
Payload Length (16-bits): This field is used to tell the routers how much information a
particular packet contains in its payload. Payload is composed of Extension Headers and Upper
Layer data. With 16 bits, up to 65535 bytes can be indicated, but if the Extension Headers
contain Hop-by-Hop Extension Header, then the payload may exceed 65535 bytes and this
field is set to 0.
Next Header (8-bits): This field is used to indicate either the type of Extension Header, or if
the Extension Header is not present then it indicates the Upper Layer PDU. The values for the
type of Upper Layer.
Hop Limit (8-bits): This field is used to stop packet to loop in the network infinitely. This is
same as TTL in IPV4. The value of Hop Limit field is decremented by 1 as it passes a link
(router/hop). When the field reaches 0 the packets is discarded.
Source Address (128-bits): This field indicates the address of originator of the packet.
Destination Address (128–bits): This field provides the address of intended recipient of the
packet.
f) Draw and explain working of bridges.
Ans: Bridge:
It is a device which connects two or more segment of a network.
It only forwards the packet which are for the exact destination.
A bridge device filters data traffic at a network boundary.
Bridges reduces the amount of traffic on a LAN by dividing it into two segments.
It inspects incoming traffic and decides whether to forward or discard it.
It sends packets between two networks of same type.
A bridge operates in both the physical and the data link layer.
As a physical layer device, it regenerates the signal it receives.
As a data link layer device, the bridge can check the physical (MAC) addresses
(source and destination) contained in the frame.
a) Explain working of data link layer and network layer of OSI model.
Working:
It is responsible for transmitting group of bits between the adjacent nodes.
The group of bits is called as frame.
The network layer passes a data unit to the data link layer. Header and trailer
information is added to the data unit by data link layer.
This data unit is passed to the physical layer.
Data link layer is responsible for moving frames from one node to the next.
Functions of data link layer include Framing, Physical addressing, Flow control, Error
control, Media access control, Node to node delivery.
Network layer:
It is responsible for routing the packets within the subnet i.e. from source to
destination.
It is responsible for source e to destination delivery of individual packets across
multiple networks.
It ensures that packet is delivered from point of origin to destination.
Working:
Network layer chooses a route before sending all the packets belonging to the same
message.
A header is added to a packet, which includes source and destination addresses.
Any congestion at a node is tackled by the network layer.
When there are multiple subnet operators of different types, the different rates are
charged by the network layer as an accounting function.
Functions of network layer include Logical addressing, Routing, Congestion control,
Accounting and billing, Address transformation and Source host to destination host
error free delivery of packet.
Diagram: