Code Monkey home page Code Monkey logo

tcp-in-udp's Introduction

TCP Simulation using UDP

TCP is mimicked using UDP.

Author

POSERIO, CLINTON E. | 2012-27803 | CMSC137 B-1L

Specifications

The simulation should implement: [1] UDP message body that includes headers that are lacking from TCP. - Sequence/Synchronization Number - Acknowledgement Number - Acknowledgement Bit - Synchronization Bit - Finish Bit - Window Size [2] threeway handshake connection [3] timeout and resend of TCP packet [4] window sliding mechanism on both source and destination [5] acknowledgement of fully received packets [6] correct use of synchronization numbers and acknowledgement numbers [7] fourway handshake disconnection [8] Also the following: a.) To mimick dropping of packets, it should randomly drop packets given variable of 0%, 25%, 50%, and 75%. b.) Both client and server should have different port numbers but should work on IP address: 127.0.0.1 c.) To mimick latency, Both server and client should only show results of receiving packets after 2 seconds delay. d.) Network timeout and resending should be pegged on 4 seconds. e.) Waiting time after disconnection should be pegged at 10 seconds. f.) It should show that both client and server has already disconnected after 10 seconds.

Compile

On the terminal, enter 'javac *.java'

Run Server

Enter 'java Server ' (NOTE: Only port 80 or 8080 works here on cloud9. idky :( )

Run Client

Enter 'java Client ' (NOTE: Only port 80 or 8080 works here on cloud9. idky :( )

tcp-in-udp's People

Watchers

 avatar

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.