Skip to content

Socket Programming and Basic Protocol of Computer Networks

License

Notifications You must be signed in to change notification settings

UdayJaju24/Computer-Networks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer-Networks

This repo includes

  1. Line Encoding : - For this ensure download and complete set up for graphics.h for VS Code/Turbo C: graphics.h setup
  • Unipolar NRZ
  • Polar NRZ
  • NRZ Inverted
  • RZ
  • Manchester
  • Differential Manchester
  1. Djikstra and shortest path for Routing Table
  • Implementation of simple Djikstra which can be modified to use for Routing Table

For client-server/socket programming (3-6 program use these in command prompt to run JAVA file):

  • Open command prompt using cmd from the folder of file location: (eg for file name= .java)
  • open 2 command prompt to communicate simultaneously (using + at top left corner near command prompt)
  • Begin with client/sender with given above command
  • Next write similar commands for server/receiver
  1. CRC and Hamming code
    Hamming code
javac HammingSender.java
java HammingSender

Open (another) new cmd window and paste

javac HammingReceiver.java
java HammingReceiver
CRC
javac CRCSender.java
java CRCSender

Open (another) new cmd window and paste

javac CRCReceiver.java
java CRCReceiver
  1. Go back N & selective repeat Sliding window protocol
Go Back to N Sliding Window Protocol
javac GoBackNSender.java
java GoBackNSender

Open (another) new cmd window and paste

javac GoBackNReceiver.java
java GoBackNReceiver
Selective Repeat Sliding Window Protocol
javac SelectiveRepeatSender.java
java SelectiveRepeatSender

Open (another) new cmd window and paste

javac SelectiveRepeatReceiver.java
java SelectiveRepeatReceiver
  1. Socket Programming for TCP-UDP Berkley Sockets in Sender-Reciever

TCP Sender-Receiver

javac TCPSender.java
java TCPSender

Open (another) new cmd window and paste

javac TCPReceiver.java
java TCPReceiver

UDP Sender-Receiver

javac UDPSender.java
java UDPSender

Open (another) new cmd window and paste

javac UDPReceiver.java
java UDPReceiver
  1. UDP and TCP socket programming using Client-Server
TCP Client-Server
javac TCPClient.java
java TCPClient

Open (another) new cmd window and paste

javac TCPServer.java
java TCPServer

TCP Client-Server

javac UDPClient.java
java UDPClient

Open (another) new cmd window and paste

javac UDPServer.java
java UDPServer
  1. Basic Networking Commands Linux/Windows Terminal Commands

If you find my repository helpful, please star⭐ it 🌟.