http://delo.dcs.fmph.uniba.sk/2inf/store/distrsys/i2cn_html/ch2s6.htm