Posts

Showing posts from 2017

ASSIGNMENT 2 [LAST DATE : 16/10/2017]

1. List and Explain different types of routing. ( 6.b: Dec-12, 5.b: May-13, Marks10) 2. Explain the IPv4 and IPv6 header format in details. (5.b: May-11, 5.a: Dec-11, 4.a: May -12, Marks 10) 3. Write a short note on CIDR. ( 7.d: May-13. Marks 10) 4. Why there is a need for congestion control? What are the different  mechanisms? Explain them. ( 4.a: Dec-14, Marks 10) 5. An organization is granted the block 211.17.180.0/24. The administrator wants to create 32 subnets. a. Find the subnet mask. b. Find the number of addresses in each subnets. c. Find the first and last address in subnet 1. d. Find the first and last addresses in subnet 32. ( 4.b: Dec-10 Marks 10) 6. Explain the different elements of transport protocols. ( 2.b: Dec-14,Marks10) 7. Explain how TCP handles error control and flow control. ( 3.a: Dec-14,Marks 10 ) 8.Explain the need for DNS and describe the protocol functioning. ( 2.a: Dec-14, Marks 10) 9. Explain three way Handshaking techniques in TCP. (6.a: May-1

PingIPAddress

import java.net.*; public class PingIPAddress {   public static void main(String[] args) {     try     {       String ipAddress = "172.16.101.6";       InetAddress inet = InetAddress.getByName(ipAddress);       System.out.println("Sending Ping Request to " + ipAddress);       if (inet.isReachable(5000)){         System.out.println(ipAddress + " is reachable.");       } else {         System.out.println(ipAddress + " NOT reachable.");       }     }      catch ( Exception e )      {       System.out.println("Exception:" + e.getMessage());      }   } }

CN QUESTION BANK

1. Describe DLC Services in detail 3. Difference between Connection Oriented and Connection less Services 5. Explain Stop and Wait protocol with diagram. 7. Describe PPP with frame format 9. Explain CRC in detail with example 2. Describe VLAN in details. 4. Describe ISO-OSI Reference Model in details. 6. What is Hamming Distance and how to calculate it. 8. Explain Protocol in detail. 10. Explain ALOHA and CSMA. 11. Explain Checksum with diagram 12. Describe Unicasting and Multicasting with difference. 13. Explain BNC Connector used for Coaxial cable 14. Write Short notes on Bluetooth.

CN - ASSIGNMENT 1 [last date : 30/08/2017]

ASSIGNMENT 1  Assigned Date:  1 0/08/201 7 Deadline Date:  30 /08/201 7 1. With a neat diagram compare the uses and functions of differnet hardware components/devices used in an internetwork. (  1.a :May -12, 1.a :Dec -12,  Marks 10) 2. Explain ALOHA in details.  ( 1.c :May -12 , Marks 10) 3. What is layering? Discuss the design issues for layers.   (1.a :May -13, Marks 10) 4.  Explain the ISO- OSI network model and discuss the functions of each layer.  (1.b :May -11, Marks 12) 5. Compare the TCP/IP and OSI refernce models. ( 1.b :May -11, 1.aDec -14, Marks 10) 6. Explain the modes of propogating light along optical channels. What are the advantages over other guided media.  (1.b :Dec -14, Marks 10) 7. Draw and explain the architecture and protocol stack of Bluetooth.  ( 7.c :Dec -11, 7.c :May -13, Marks 5/10) 8. Explain different framing methods. What are the  advantage  at variable length frames over fixed length frames.  (1.b :May -11, 2.a 

PRCTICAL / EXPERIMENT LIST

PRCTICAL / EXPERIMENT LIST Name of Faculty: Prof Ansari Mukhtar 2016-17 Department: CO Class: TE Academic Year: 2017-18 Subject: CN Semester: V EXPERIMENT-1.a : Study of following Network Types. • PAN • LAN • MAN • WAN EXPERIMENT-1.b : Study of different types of Network cables and Practically implement the cross-wired cable using clamping tool. EXPERIMENT-2.a :Study of following Network Topologies. • Bus • Ring • Star • Mesh • Tree • Hybrid EXPERIMENT-2.b : Study of following Network Devices in Detail • Repeater • Hub • Switch • Bridge • Router • Gate Way EXPERIMENT-3 :Installation & Configuration of NS2 in Linux environment and building basic LAN topology in NS2. EXPERIMENT-4: Building Dynamic Routing topology and Wireless topolgies using NS2. EXPERIMENT-5: Write a program to find out class of a given IP address, subnet mask & first & last IP address of that block. EXPERIMENT-6: Write a program to build client-server model on different computers. EXPERIMENT-7:

EXP4a.tcl

#Create a simulator object set ns [new Simulator] #Tell the simulator to use dynamic routing $ns rtproto DV #Open the nam trace file set nf [open out.nam w] $ns namtrace-all $nf #Define a 'finish' procedure proc finish {} {         global ns nf         $ns flush-trace     #Close the trace file         close $nf     #Execute nam on the trace file         exec nam out.nam &         exit 0 } #Create seven nodes for {set i 0} {$i < 7} {incr i} {         set n($i) [$ns node] } #Create links between the nodes for {set i 0} {$i < 7} {incr i} {         $ns duplex-link $n($i) $n([expr ($i+1)%7]) 1Mb 10ms DropTail } #Create a UDP agent and attach it to node n(0) set udp0 [new Agent/UDP] $ns attach-agent $n(0) $udp0 # Create a CBR traffic source and attach it to udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 set packetSize_ 500 $cbr0 set interval_ 0.005 $cbr0 attach-agent $udp0 #Create a Null agent (a traffic sink) and attach it to node n(3) set null0 [new Agent/Null] $ns at

exp3b

#Create a simulator object set ns [new Simulator] #Open the nam trace file set nf [open out.nam w] $ns namtrace-all $nf #Define a 'finish' procedure proc finish {} {         global ns nf         $ns flush-trace     #Close the trace file         close $nf     #Execute nam on the trace file         exec nam out.nam &         exit 0 } #Create two nodes set n0 [$ns node] set n1 [$ns node] #Create a duplex link between the nodes $ns duplex-link $n0 $n1 1Mb 10ms DropTail #Create a UDP agent and attach it to node n0 set udp0 [new Agent/UDP] $ns attach-agent $n0 $udp0 # Create a CBR traffic source and attach it to udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 set packetSize_ 500 $cbr0 set interval_ 0.005 $cbr0 attach-agent $udp0 #Create a Null agent (a traffic sink) and attach it to node n1 set null0 [new Agent/Null] $ns attach-agent $n1 $null0 #Connect the traffic source with the traffic sink $ns connect $udp0 $null0 #Schedule events for the CBR agent $ns at 0.5 "$cbr0 s

exp3a

#Create a simulator object set ns [new Simulator] #Open the nam trace file set nf [open out.nam w] $ns namtrace-all $nf #Define a 'finish' procedure proc finish {} {         global ns nf         $ns flush-trace     #Close the trace file         close $nf     #Execute nam on the trace file         exec nam out.nam &         exit 0 } #Create two nodes set n0 [$ns node] set n1 [$ns node] #Create a duplex link between the nodes $ns duplex-link $n0 $n1 1Mb 10ms DropTail #Call the finish procedure after 5 seconds of simulation time $ns at 5.0 "finish" #Run the simulation $ns run

Assignment 2 [DD] last date is 3/4/2017

December 2015 1.  Give two applications of XML 2.  Describe Query processing in Distributed Database ** 3.  Describe 3 Phase Commit protocol / Algorithm ** 4.  Explain 2 concurrency control algorithm for  Distributed Database ** 5.  What are the issues of query processing in heterogeneous database 6.  Explain Distributed Deadlock Management ** 7.  Explain Distributed Database Architecture **  ********************************************************************************** May 2015 8.  What is Query Optimization? List distributed query processing algorithm and explain any one from that. 9.  Describe any two methods for deadlock detection in distributed database 10.  Explain time stamp based concurrency control mechanism in DDB ** 11.  State the purpose  of 2 Phase Commit protocol. Explain 2PC in details  ********************************************************************************** May 2016 12.  What are the Objectives of Distributed Query

Implementation of 2PL Protocol in java

Implementation of 2PL Protocol in java. import java.io.*; import java.util.*; class Account {     String name;     int amount,lock;         Account(String name,int amount,int lock)     {     this.name=name;     this.amount=amount;     this.lock=lock;     }         public void deposit(int amt)     {         amount +=amt;     }         public void withdraw(int amt)     {         if((amount-amt)<0)         {             System.out.println("Transaction Cannot proceed : Not Enough Balance in Account"+name);             System.exit(0);         }         amount -=amt;             }         public int balance()     {         return amount;     } } class Transaction implements Runnable {     private Thread t=null;     String id;     Account from,to;     int amount;             Transaction(String id,Account from,Account to,int amount)     {         this.id=id;         this.from=from;         this.to=to;         this.amount=amount;     }     public void acquireLock(Account x,int