if TIMER
then  NEWTIMER(f)
if   = TCP
  then  TRYTOCONNECT((trgIPaddr))
  if  connected
   then SENDPKTTO((IPaddr), , , , )
else SENDPKTTO((IPaddr), , , )
Algorithm 1