You are on page 1of 4

DEPATENT OF COMPUTER SCIENCE AND ENGINEERING

(An Autonomous Institution, Affiliated To Visvesvaraya Technological University Belagavi, Accredited by NAAC-“A+”
Grade, approved by AICTE, New Delhi.Yelahanka,Bangalore-64)

Department of Computer Science and Engineering


(NBA Accredited till 30/06/2020)

Department: Computer Science & Engineering Course Type: Program Core


Course Title: Computer Networks Lab Course Code: 18CSL59
L-T-P:0-0-2 Credits: 1
Total Contact Hours: 36Hours Duration of SEE: 3 Hours
SEE Marks: 50 CIE Marks: 50

COURSE DESCRIPTION
This lab covers an in-depth knowledge about the Network Simulation using NS2 and cisco packet tracer –
and analyzing the Network simulation Performance.

PREREQUISITES
 Knowledge on basic programming

COURSE OBJECTIVES

This laboratory exercises are designed to give students ability to design, build, and analyze the Computer
Network Protocols.

PART-A

Implement the programs using Network Simulator -2

1. Simulate a point-to-point network with duplex link as follows: n0-n2, n1-n2 and n2-n3. Apply TCP
agent between n0-n3 and UDP agent between n1-n3. Apply relevant applications over TCP and UDP
agents. Set the queue size to 5 and vary the bandwidth to find number of packets dropped and
received by TCP and UDP agents using awk script and grep command.
2. Set up the network topology as shown in fig 1. Simulate different type of internet traffic
Such as traffic using FTP between the nodes n1 – n6 and Telnet between the nodes n2-n5.

1
5

3 4

2
1 1

6
1
1

Fig. 1: Network Topology

Plot congestion window for FTP and Telnet, and analyze the throughput.

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


133
DEPATENT OF COMPUTER SCIENCE AND ENGINEERING

(An Autonomous Institution, Affiliated To Visvesvaraya Technological University Belagavi, Accredited by NAAC-“A+”
Grade, approved by AICTE, New Delhi.Yelahanka,Bangalore-64)

Department of Computer Science and Engineering


(NBA Accredited till 30/06/2020)
3. Design networks that demonstrate the working of Distance vector routing protocol. The link
between node 1 and 4 breaks at 1.0 ms and comes up at 3.0ms. Assume that the source node 0
transmits packets to node 4. Plot the congestion window when TCP sends packets via other nodes.
Assume your own parameters for bandwidth and delay.

1 4
0
5
2 3

Fig 2: Network Topology

4. Consider a client and a server. The server is running a FTP application over TCP. The client sends a
request to download a file of size 10 MB from the server. Write a TCL script to simulate this
scenario. Let node n0 be the server and node n1 be the client. TCP packet size is 1500 Bytes.
5. Demonstrate the working of multicast routing protocol. Assume your own parameters for
bandwidth and delay.
6. Set up a 2-node wireless network. Analyze TCP performance for this scenario with DSDV as
routing protocol.
7. Set up 3-node wireless network with node N1 between N0 and N2. As the nodes N0 and N2 moves
towards each other they exchange packets. As they move out of each other‘s range they drop some
packets. Analyze TCP performance for this scenario with AODV routing protocol.
8. Set up a 6-node wireless network; analyze TCP performance when nodes are static and mobile.
9. Write a TCL script to simulate the following scenario. Consider six nodes, (as shown in the figure
below) moving within a flat topology of 700m x 700m. The initial positions of nodes are: n0 (150,
300), n1 (300, 500), n2(500, 500), n3 (300, 100), n4(500, 100) and n5(650, 300) respectively. A TCP
connection is initiated between n0 (source) and n5 (destination) through n3 and n4 i.e., the route is 0-
3-4-5. At time t = 3 seconds, the FTP application runs over it. After time t = 4 seconds, n3 (300,100)
moves towards n1 (300, 500) with a speed of 5.0m/sec and after some time the path breaks. The data
is then transmitted with a new path via n1 and n2 i.e., the new route is 0-1-2-5. The simulation lasts
for 60 secs. In the above said case both the routes have equal cost. Use DSR as the routing protocol
andthe IEEE 802.11 MAC protocol.
10. Set up a wireless network with mobile nodes, induce 1 to 10% error to the network using uniform
error model. Plot the congestion window for TCP connections. Write your observation on TCP
performance as error increases in the network.

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


134
DEPATENT OF COMPUTER SCIENCE AND ENGINEERING

(An Autonomous Institution, Affiliated To Visvesvaraya Technological University Belagavi, Accredited by NAAC-“A+”
Grade, approved by AICTE, New Delhi.Yelahanka,Bangalore-64)

Department of Computer Science and Engineering


(NBA Accredited till 30/06/2020)

PART-B

1. Study of network IP Experiments


i. Classification of IP address ii. Sub netting iii. Super netting

2. Configure Static and Dynamic Routing information in the router and test the connectivity between
two networks.
3. Configure Network Address Translation (NAT) and test Static NAT, Dynamic NAT and PAT.
4. Configuring a Cisco Router as a DHCP Server to dynamically assign IP addres, subnet mask and
default gateway to the hosts in the network.
5. Configure and test DNS and Email server in a network.
6. Configure Wireless router to support mobile devices to connect to the internet.

ASSESSMENT METHODS

Parameter Marks
Experiment write up, Execution, Viva & Record writing 25
Rubrics based the evaluation of Self-study topic 10
Lab Internal Test 15
Total 50
Final Exam will be conducted for 100 marks (SEE)

COURSE OUTCOMES
At the end of the course students will be able to:
COs Description Bloom’s
Level

CO 1 Understand NS2, NS3 and Cisco Packet tracer environment L2

CO 2 Learn and implement various routing protocols. L3

CO 3 Simulate wired and wireless network scenario. L3

CO 4 Apply NS2 tools to analyse the performance of simulation models. L4

CO 5 Simulate network services like DHCP, DNS and NAT on Packet tracer L3

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


135
DEPATENT OF COMPUTER SCIENCE AND ENGINEERING

(An Autonomous Institution, Affiliated To Visvesvaraya Technological University Belagavi, Accredited by NAAC-“A+”
Grade, approved by AICTE, New Delhi.Yelahanka,Bangalore-64)

Department of Computer Science and Engineering


(NBA Accredited till 30/06/2020)

Mapping of Course outcomes (COs) to Program outcomes (POs*)& PSO **


Course Outcomes mapping to Program PSOs
Outcomes

POs
1 2 3 4 5 6 7 8 9 10 11 12 PSO1 PSO2 PSO3
COs
CO1 3 2 1
CO2 3 2 3
CO3 2 3 3 3 3 3 2 2 2
CO4 2 3 3 3 3 3 2 2 3 1
CO5 2 3 3 3 3 3 2 2 3 1

3: Strong, 2: Medium, 1: Weak ** H: Highly related S: Supportive

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


136

You might also like