simultaneous network start


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers simultaneous network start
# 1  
Old 02-27-2007
simultaneous network start

Hi!

I need to start a program at several hosts in the network at the same time. Starting time difference should be no more than several milliseconds. What is the best way to do that?


Thanks!
# 2  
Old 02-27-2007
Quote:
Originally Posted by harjar
Hi!

I need to start a program at several hosts in the network at the same time. Starting time difference should be no more than several milliseconds. What is the best way to do that?


Thanks!
Set up NTP to make sure all your system clocks are synchronized.

Last edited by sb008; 02-27-2007 at 09:19 PM..
# 3  
Old 02-28-2007
OK, but how do I make sure they start simultaneously if the clock is synchronized?

As far as I know precision of cron is of the order of seconds, isn't it?

Thanks
# 4  
Old 02-28-2007
Quote:
Originally Posted by harjar
OK, but how do I make sure they start simultaneously if the clock is synchronized?

As far as I know precision of cron is of the order of seconds, isn't it?

Thanks
I don't know the precision of cron, but even if it is to to miliseconds you have no guarantee, since you never know when exactly your processes are granted processor time. A lot will depend on other activities on the system.
# 5  
Old 02-28-2007
Isn't it better then to write a C program, that listens on the certain port and starts a program when a sequence of bytes arrives there?

Will it be more precise or there are any better ways of time synchronization then cron?

Thanks.
# 6  
Old 02-28-2007
Quote:
Originally Posted by harjar
Isn't it better then to write a C program, that listens on the certain port and starts a program when a sequence of bytes arrives there?

Will it be more precise or there are any better ways of time synchronization then cron?

Thanks.
I have no experience with something like this.

But it seems to me that even if you have some kind of process listening on a specific port you cannot guarantee they start performing their tasks at the exact same time.

Hard to make sure the "trigger code" arrives at the exact same time on each system, because of the number of hops, distance, sending the code simultaniously to a lot of systems etc.

Furthermore, again the load on each system will influence when your process gets processor time.

But maybe, the real c programmers know whether it is possible or not.

Maybe some low level approach (using time stamps of packets), which can calculate when the code was send, the time it took for the code to get there (similar like NTP operates) could do the trick. If that could be done, you could let all processes start e.g. 1 minute after the code was send. You might be able to use some kind of broadcast like packet to make sure all systems get the same information.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Simultaneous calling of url

Hello I want to call multiple sites simultaneously by xargs or parallel for example a.com/srv/1 a.com/srv/3 a.com/srv/2 a.com/srv/n That means 500 different sites will be called in a moment Then I use command I call a url at the same time. I need to call each url once, but every 500... (1 Reply)
Discussion started by: mnnn
1 Replies

2. Homework & Coursework Questions

Limit simultaneous file access

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: So my problem is: 4990 of 5000 users should be able to access a file. How can this be accomplished. 2.... (1 Reply)
Discussion started by: protiss
1 Replies

3. UNIX for Dummies Questions & Answers

Help with ls to input for simultaneous editing

I just registered today and started unix about a month ago. I'm trying to make a script where I can add commands or text to the end of files in a listing. $ echo "#text_or_command" >> #List of files from ls I can't seem to find/understand it on these fourms. Could it be done at... (4 Replies)
Discussion started by: 62583
4 Replies

4. Shell Programming and Scripting

run script simultaneous

I have 5 scripts, basicly do the same thing. Use expect and telnet to devices. First set the variables and the script as follow spawn telnet $ipaddr expect "Username:" send -- "$usuario\r" expect "Password:" send -- "$password\r" send -- "\r" send -- "\r" send -- "copy running-config... (6 Replies)
Discussion started by: robonet
6 Replies

5. BSD

Network unavailable after start up

There is a FreeBSD machine which normally has a network connection, but after a recent start up no longer has such a connection. All other computers on the same router do have an active network. Where do I start looking to troubleshoot this? Thanks in advance (2 Replies)
Discussion started by: figaro
2 Replies

6. UNIX for Dummies Questions & Answers

Simultaneous file read operation

Hi All, I need information on file handling in UNIX enviornment. If in UNIX enviornment I have two process.. P1 P2 Both accessing the same file simultaneosuly(read operation).. Suppose P1 opened the file in read mode first and started reading the file.. Then P2 opens the same file in... (5 Replies)
Discussion started by: chibob
5 Replies

7. IP Networking

Unable to start network interface

Hi (sorry for my bad English) I'm trying to configure an US Robotics (USR5423) wirless usb adapter on Fedora 9. the device is detected, and i'm trying to configure a wireless connection. When I want to activate the device using #service network restart or # /etc/init.d/network restart... (0 Replies)
Discussion started by: teis
0 Replies

8. UNIX for Dummies Questions & Answers

how to start and stop the network in Solaris 9??

Hi how do I start or stop the network interfaces in Solaris 9 I have tried "/etc/init.d/network stop" but it doesn't work thanks (1 Reply)
Discussion started by: eldiego
1 Replies

9. Shell Programming and Scripting

running simultaneous awks

Hello, I have an awk command that searches and replaces. I have multiple searches, but I do not want to do them one after the other. Is there a way in awk to run search/replace at the same time. thanks, (3 Replies)
Discussion started by: ctcuser
3 Replies

10. UNIX for Dummies Questions & Answers

Simultaneous printing

I am running AIX 4.3 and network printing setup with HP Jetdirect. I would like to be able to send the same printout to both of the network printers at the same time. They are both PCL data stream. I have tried to make this work by linking the two print que, by the results are unpredictable. Is... (1 Reply)
Discussion started by: sjk303
1 Replies
Login or Register to Ask a Question