02-01-2010
Simulation using C/C++ and Java
Hi,
I'm just start to learning simulate a network protocol using C/C++ and Java from scratch.
Actually, I want to make two nodes can communicate using TCP and UDP protocol, for example http connection and video streaming, respectively.
Can anyone help me find several references or guidance for doing this.
If anyone have a sample code, it will be helpfull
Thanks
10 More Discussions You Might Find Interesting
1. Windows & DOS: Issues & Discussions
hello everybody.. im new to this forum.. i have sme basic knowledge about unix.. but not too much.. i would like to practice shell programs n perl using a unix simulator.. but then i don't know wht a unix simulator means? just a bald definition that it creates a unix working environment in windows... (5 Replies)
Discussion started by: esash
5 Replies
2. Shell Programming and Scripting
Hello,
i am developing a simple shell script for simulation of wc command but it's not working.Please tell me what is the problem. I have commented the problematic line
if
then
echo "<Improper Usage>"
echo "wcassg <options> file"
else
eval file=\$$#
if
then
chars=0
words=0... (2 Replies)
Discussion started by: salman4u
2 Replies
3. Solaris
If i simulate a load on a solaris system to choke the system to 90% CPU usage .. what is likely to increase .. my systems fan rpms, cpu temperature, power drawn .. Can anybody tell me (4 Replies)
Discussion started by: fugitive
4 Replies
4. Shell Programming and Scripting
Hey,
Task seems to be quite easy, but I'm still a bit green in shell scripting. I hope you can help me a bit. I have to run some simulation at the distance by remote terminal.
Normally when I'm working on the server directly I just type:
mpirun -np 8 compressibleInterFoam -parallel > log.txt... (7 Replies)
Discussion started by: PiPrus
7 Replies
5. UNIX and Linux Applications
Hello, everybody, I'm thankful for the great helps you gave during the past year.
Now I'm facing a serious problem:
I was obliged to write a 2D collision simulation applet, and my experience is only in C,C++,Intelx86 assembly. I have no experience in Java and the like, and I don't know... (2 Replies)
Discussion started by: JackCrital2005
2 Replies
6. UNIX for Dummies Questions & Answers
Hi guys,
I recently discovered this problem and any help would be great.
1) Create a file in vi named Accounts_File with the following data:
The user, the name, the pin number, current balance and transaction history.
There are 3 users who need to be inputted with all their PIN, etc... (1 Reply)
Discussion started by: Jimmy_c
1 Replies
7. Shell Programming and Scripting
Hi guys,
I recently discovered this problem and any help would be great.
1) Create a file in vi named Accounts_File with the following data:
The user, the name, the pin number, current balance and transaction history.
There are 3 users who need to be inputted with all their PIN, etc... (1 Reply)
Discussion started by: Jimmy_c
1 Replies
8. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Basically, I'm trying to search for a particular string pattern within a text file and print "textfile: line_no line". I need to read this in line at a time, but I'm restricted to using unbuffered I/O functions. I'm not sure if I'm... (3 Replies)
Discussion started by: jdkirby
3 Replies
9. IP Networking
# Create the simulator object that we need in order to run NS
set ns
# Set the parameters that we will use for wireless communications
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set... (0 Replies)
Discussion started by: amithkhandakar
0 Replies
10. Cybersecurity
are there any popular DDoS simulation tools to test my own infrastructure? Anyone tried to setup all these in AWS EC2? (1 Reply)
Discussion started by: boriskong
1 Replies
LEARN ABOUT NETBSD
ipsend
IPSEND(1) General Commands Manual IPSEND(1)
NAME
ipsend - sends IP packets
SYNOPSIS
ipsend [ -dITUv ] [ -i <interface> ] [ -f <offset> ] [ -g <gateway> ] [ -m <MTU> ] [ -o <option> ] [ -P <protocol> ] [ -s <source> ] [ -t
<dest. port> ] [ -w <window> ] <destination> [TCP-flags]
DESCRIPTION
ipsend can be compiled in two ways. The first is used to send one-off packets to a destination host, using command line options to specify
various attributes present in the headers. The destination must be given as the last command line option, except for when TCP flags are
specified as a combination of A, S, F, U, P and R, last.
The other way it may be compiled, with DOSOCKET defined, is to allow an attempt at making a TCP connection using a with ipsend resending
the SYN packet as per the command line options.
OPTIONS
-d enable debugging mode.
-f <offset>
The -f allows the IP offset field in the IP header to be set to an arbitrary value, which can be specified in decimal or hexadeci-
mal.
-g <gateway>
Specify the hostname of the gateway through which to route packets. This is required whenever the destination host isn't directly
attached to the same network as the host from which you're sending.
-i <interface>
Set the interface name to be the name supplied.
-m <MTU>
Specify the MTU to be used when sending out packets. This option allows you to set a fake MTU, allowing the simulation of network
interfaces with small MTU's without setting them so.
-o <option>
Specify options to be included at the end of the IP header. An EOL option is automatically appended and need not be given. If an
option would also have data associated with it (source as an IP# for a lsrr option), then this will not be initialised.
-s <source>
Set the source address in the packet to that provided - maybe either a hostname or IP#.
-t <dest.port>
Set the destination port for TCP/UDP packets.
-w <window>
Set the window size for TCP packets.
-I Set the protocol to ICMP.
-P <protocol>
Set the protocol to the value given. If the parameter is a name, the name is looked up in the /etc/protocols file.
-T Set the protocol to TCP.
-U Set the protocol to UDP.
-v enable verbose mode.
SEE ALSO
ipresend(1), iptest(1), bpf(4), protocols(5), ipsend(5)
DIAGNOSTICS
Needs to be run as root.
BUGS
If you find any, please send email to me at darrenr@pobox.com
IPSEND(1)