Coder Social home page Coder Social logo

git-akshat / np-lab Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 12.0 17.41 MB

This repository contains programs implemented in Network Programing Lab in my 7th semester of SIT(VTU).

License: MIT License

Java 7.64% C 49.24% Tcl 43.12%
tcp udp ftp fifo-ipc client-server socket-programming network-programming sliding-window crc16 ns2

np-lab's Introduction

NP-Lab

This repository contains programs implemented in Network Programing Lab in my 7th semester of SIT(VTU).

Part A

  1. For the given network graph, write a program to implement Link state routing algorithm to build a routing table for the given node.

  2. Write a program to divide the message into variable length frames and sort them and display the message at the receiving side.

  3. Using TCP/IP sockets, write a client – server program, the client sends the file name and the server sends back the requested text file if present.

  4. Using FIFOs as IPC channels, write a client – server program, the client sends the file name and the server sends back the requested text file if present.

  5. Using UDP, write a client – server program, to exchange messages between client and the server.

  6. Write a socket program to demonstrate IP multicasting which provides the capability for an application to send a single IP datagram that a group of hosts in a network can receive.

  7. Write a program to implement sliding window protocol between two hosts.

  8. Write a program for error detecting code using 16 bits CRC-CCITT(Consultative Committee for International Telephony and Telegraphy).

Part B : using NS2 simulator

  1. Simulate a three nodes point – to – point network with duplex links between them. Set the queue size and vary the bandwidth and find the number of packets dropped.

  2. Simulate the different types of Internet traffic such as FTP and TELNET over a network and analyze the throughput.

  3. Simulate an Ethernet LAN using n nodes (6-10), change error rate and data rate and compare the throughput.

  4. Simulate an Ethernet LAN using n nodes and set multiple traffic nodes and determine the collision across different nodes.

  5. Simulate the transmission of ping messages over a network topology consisting of 6 nodes and find the number of packets dropped due to congestion.

  6. Simulate simple ESS with transmitting nodes in wire-less LAN and determine the performance with respect to transmission of packets.

  7. Simulate simple ad-hoc network with transmitting nodes and determine the performance with respect to transmission of packets.

1. Install NS2

sudo apt install ns2

2. Install NAM(Network animator)

sudo apt install nam

3. Install tcl(Tool command language)

sudo apt install tcl

Structure of trace file

The trace(.tr) file contains 12 fields as shown in below figure:

trace-file-structure

np-lab's People

Contributors

git-akshat avatar karanpratap avatar nateshmbhat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

np-lab's Issues

Regarding Installation of packages

apt-get is deprecated. Shouldn't one use apt to install the required packages? Also, it only works for distros that use apt as their package manager. What about systems like Fedora, or systems that do not have a package manager?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.