Int ern at i onal  Journ al of Ele ctrical  an d  Co mput er  En gin eeri ng   (IJ E C E)   Vo l.   8 , No .   6 Decem ber   201 8 , p p.   5342 ~ 5350   IS S N: 20 88 - 8708 DO I: 10 .11 591/ ijece . v8 i 6 . pp 5342 - 53 50          5342       Journ al h om e page http: // ia es core .c om/ journa ls /i ndex. ph p/IJECE   UDP Pe rvasiv e Proto col  I ntegr ation with  I oT   f or S mart  Home E nvironm ent  u sing L abVIEW       Mo c hamm ad  Ha n nats  Han af i Ic hsan Wi jay K urniaw an S ab ri ansy ah   Riz qika A kba r   Com pute Engi n ee ring ,   Com puter S y st em a nd  Ro boti cs  La bora tor y ,   Brawi jay a   Un ive rsit y ,   Indon esia       Art ic le  In f o     ABSTR A CT   Art ic le  history:   Re cei ved   Ja n   2 , 201 8   Re vised  Jun  11 , 201 8   Accepte J un  28 , 201 8       Perva sive  computing  is  an  env i ronm ent   which  is  used  and  int e gra te int o   eve r y   ob je c an activitie to  m ee hum an  ne eds  and  it ex i stenc e   isn’t   per ceive as  som et hing  spec if i c.   Th con ce p of  Sm art   Hom is  t assist  hum an  nee ds  in   an   eve r y d a obje ct   tha p erf orm s   cont rol or   bei ng  cont rolled .   Base on  pre vious  re sea rch   th used  comm unic at ion  protoc ol  is   UD (U ser  Datagram  Protocol a nd  the   progra m m ing  la nguage   i La bVIEW .   UD is   used  b ec ause   i does  not  req uire   han dshaking   in  the  broa dca st   proc ess ,   as  well  as  on  th use   of  m emory   m ore   ef fic i ent   tha n   oth e protoc o ls .   Devic e s   wh i ch   per form   cont rols   calle d   Hos an wh ic is   cont r oll ed  called   Cli ent.  Both  of  the m   (Thi ngs)  have   an  ability   t send  dat to  t he  Inte rne t   with out  an y   hu m an  int eract ion .   So   thi rese arch  wants  to  cond uct   per v asive  protoc ol   b et we e H ost  and  Cli e nt  which  e ac d evi c e   is  integra t ed  with   th e   Inte rne t   of  Thi n gs  (IoT ).   Data   a re  posted  at   dwee t . io  that  is  c loud  serve r   website   tha co nta ins  sim ple   onli ne  dat s ubm ission  whic has  fre e   servic es.   Thi rese arc h   is  co nduct ed  to  m ea sure  the   comm unic at io n   per form anc be t wee n   host  to  cl i ent ,   host  to  c lou serve r   and  cli ent   to  cl oud   serve th at  rep r e sent s   household equi pm ent .   Ke yw or d:   In te r net  of Th i ng s   Lab VI E W   Per vasive Pr ot oco ls   Sm art Ho m e   UDP     Copyright   ©   201 8   Instit ut o f Ad vanc ed   Engi n ee r ing  and  S cienc e   Al l   rights re serv ed .   Corres pond in Aut h or :   Mocham m ad  Hannats  Ha nafi  I chsa n,    Com pu te E ng i neer i ng, F ac ulty  o f  Com pu te r Sci ence,    Brawijaya  U niv ersit y,   Jl. V et era n   no  8 , Ket awa ngge de,   Kec .  L owo kw a r u,  Mal an g, Jaw a Tim ur , Indo nesia.   Em a il han as. ha naf i@ ub.ac .id       1.   INTROD U CTION   Per vasive  c ompu ti ng  is  not  only   li ke  des ktop  com pu ti ng,  bu al s co uld   integrate   with  any  de vice,   any  locat io n,  a nytim e   and   a ny   data  f or m at   acro s a ny  net work  e nv ir on m ent   [1] That   de vice  co ul perfor m   any  ta sk   s uc as  m on it or in and  co ntr olli ng   oth e dev ic e   [ 2] Pe rv asi ve  c om pu ti ng   is  use in  m any  are as   f or  it s u sabili ty   m ob il it y usa ge,   m et ho a nd c om pu ta ti on  size  of  t he  pervasi ve  d e vice   [ 3] . O ne of si te c hnologies  that  con ti nuou sly   evo lve  un ti 20 25   is  th In te r net   of   Things  ( IoT)   [4] I oT  co uld  be  util iz ed  t any   env i ronm ent s uch  as a  hom e . Lig htin g,  h eat ,  o an oth e de vi ce   that ca be  con t ro ll ed rem otely  v ia  the  internet   is  S m art  Ho m con ce pt   [5] .   S m art  Ho m is  ver su it able  obj ect   that   can  be  im ple m ented  by  pe r vasive   com pu ti ng be cause  these  te c hnologies  sho ul no felt   an has  inter fer e nc with  hu m an  act ivit i es  [6] Dail us e hous e ho l e qu i pm ent  lik te le visio n,  ai co ndit ion e r rice  co oker  et c.  is  ve ry  c onve r gen ce the   use sens or ,   us e ha rdwar is  ve r converge nce   and  cal le Things.  I den ti f ie thin gs   a nd  per s onal it ie sh oul co nnect  a nd c om m un ic at with   the   use r ,  envi ronm ent, and  s ocial  u se c on t ext   [ 7]   The  us of   se nsors   an distribu ti on  of   ra data  is  al so   i nc reasin g.   T he  com m un ic at ion   pr oto c ol  is  us e to  transm it colle ct   and   process  data  [8] Ba sed  on   pr evio us   resea rc h,   the  us e co m m un ic at ion   prot oco l   is  UDP   [ 9] U DP   c ould  perf or m   data  tran s m issi on   at   any   de vice  suc a H os a nd   Cl i ent.  T he  Host  cou l com m un ic at with  the   Cl ie nt   with  se ver al   ru le s .   U DP  is  us e be cause   Sm art  Ho m e nv i ronm ent  does  not  Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       UD P  Perv as iv e Pro t oco I ntegra ti on wi th Io T for   Sma rt  H ome  . ..  ( M ocha mma d Han na ts  Hanafi  I c hsan)   5343   need   la r ge  a m ou nt  of   data  [10] It  al s ve ry  eff ic ie nt  be cause  do e not   need  to   valida te   data  that  is  sent  to   the Host  or the  Cl ie nt.    Lab VI E is   use beca us it   ca easi ly   c onnect  with  dev i ces  suc as  Ardu i no m ic ro co ntr oller  e ve com pu te net w orks   [ 11]   an c ou l pe rfo rm   s i m ulate input/ ou t pu as w el as  real  ha rdware   [12] At  in du stria words  they   ha ve  s uch  as  My RIO,  Com pactR IO ,   an El vis   et c.  to  de velo prototype s yst e m s   [13] P erv asi ve  com pu ti ng   s om et i m es  is  ca l le by  ub i qu it ou c om pu ti ng  that  has  diff ic ult  ta sk   wh ic is  ho to  bec om e   an   aut om at ic   identific at ion  f rom   the  distribut ed  e nv ir onm e nt   s uch  as   co m pu ta ti on c om m un ic at ion   and  it s   process It  nee ds   st or a ge  on  the  cl oud   w he re  the   data  fro m   e it her   the  Ho st   or  the   Cl ie nt  bei ng  sav ed  a nd   visu al iz ed O ne   of   the  m os c loud  that  fr ee  t save  t he  data  is  dw eet .io.   D weet.io  is  fr e web   ser vice/ cl oud   serv e that  ha facil it at ion   to  sa ve  sim ple  data  f orm at   on li ne   f ro m   ever dev ic t ha is  connecte d   [ 14] Si m pler  data  trans fer   form at  that  us ed  by  dw eet .i is  JSO N   wh ic inc lud tim est a m p,   dev ic ID  and   data v al ue   [15] .   Pr e vious  resea rch   is  co nduct ed  by  desi gn i ng  an im ple menting   UDP  P erv asi ve  on  L abVIE W   [ 9]   and   im ple m enting  on  My RI [ 16 ]   this  re search  is  or i gin al ly   extended   from   that  pr evio us   syst em   that  com m un ic at ov e cl oud  se r ver.  This  syst em   is  design ed  by  hav i ng   H os an Cl ie nt.  The  H os is  desig ne by  one  de vice   that  co uld   c on nect  with   m any  cl ie nts The   Cl ie nt  cou l c omm un ic a te   per vasi vely   to  t he  ho st.  Our  res earc is  to  m easur the  com m un ic at ion   bet ween   Ho st,  Cl ie nt  a nd  dweet .io Ea ch  of  the  H os and   t he   Cl ie nt  will   com m un ic at e   wit dweet .io  by  the  internet   an betwee H ost   and   Cl ie nt  will   be  co m m un ic at ing   local ly   so   it   ca b m easur ed   how  t he  se rv i ce  pro vid e a nd  are   af fected  by  the  c om plexity   of   t he  networ config ur at io n a nd arc hitec ture .       2.   RESEA R CH MET HO D   This  sect io will   exp la in  a bout  the  c omm un ic at ion   de sign   betwee the  Cl ie nt,  th Ho st  a nd  dw eet .i o.  Ba se on  pr e vious  re searc h,  pervasive   disc ove ry  prot oc ol  is  perform ed  bet ween  Cl ie nt  a nd  Host   [9] A fter  both   of   Cl ie nt  and   Ho st  co nnect e d,   they   will   com m un ic at eac oth e an bo th  of   them   will  send  data  to  dweet .io.   E ach   ste by   ste sta te   wi ll   be  ex plaine in   this  sect ion,  sta rted   f ro m   Cl ie nt  perform ing   a   broa dcasted  da ta   un ti they   ca com m un ic at e At  com m un ic at ion   sta te par al le proces s   will   be  per f orm ing   to  se nd  data  t dweet .io  a nd  data  f or m at   w hich  is   us e is   JSON.   T hen  the  c omm un ic at ion   betwee Cl ie nt   and Host;  Cl ie nt and  dweet .io ; and H os t a nd  dw eet .i o wil l b e m easur ed.     3.1.   Net w or Desi gn   The   us e sta ndard  desi gn   is  from   ETSI  [17]   M2M  (Mac hine   to  Ma c hin e area  netw ork  dom ai an at   this  resea rch  that  desi gn  wi ll   be  exte nd e to  com m un ic at via  the  i nter ne t.  The  pe rv asi ve  se rv ic disc ov e ry  protoc ol  us in g UDP is s how n   in     Figure   1   wh ic has  Cl ie nt  and  H os a nd  seve ral  com m un ic at ion   sta te s Start  f rom   the  Cl ie nt  perform ing   broad ca st,  unti t he  broa dcast  are  li ste ned   by   the  Ho st Data   wh ic is  sent  durin g   the  bro adcast   process   is  Cl ie nt  Nam e,  IP  an Se r vice  that  t he  Cl ie nt  has.  Af te r   host  li ste the   br oad ca st,  the  H os perf or m s   check i ng   a bout   dev ic du plica ti on I the  cl ie nt  is  al read know n it   will   giv the  sam e   I P.   But  if  the  Cl ie nt  is   no al rea dy  kn own,   t he  H os would  giv ne IP  to  the  Cl ie nt  at   Send  A CK  proce ss.  S end   AC proc ess  is  a   process   that  H os rep ly in br oad ca st  for  the   Cl ie nt.  cl ien t   receivin da ta   fr om   the  host   and   the  Cl ie nt  tur of   broa dcast  process A fter   sever al   proc esses   com plete ly   per f or m ed,   they   will   co m m un ic at wh ic is   perform ed  by  Data Tra nsfer .   The  data  tran sf er  pr ocess  is  pe rfor m ed  pe rio dical ly The  de la is  set   fo seco nd s Wh il the  H os and   t he  Cl ie nt  perform   data  transf e r,   both  of  them   transf er  the  data  to  dw eet .io.   Pa rall el   Pr oc ess  par a dig m   is   us e in   this  c om m un ic at ion   m et ho d.  Its  process  will   run  if  the  com m unic at ion   su cce ss w hile  the  Cl ie nt  sen data  to  Ho st,  a the  sa m e   time  the  Cl ie nt  is  al so   sen data  to  cl ou ser ve r the  H os pe rfor m   that  pr oc ess  in   the  sam e   way.  On of   a ny  we ser vice  that  pro vid es  f ree  c loud  ser ver   is  dw eet .i o.   Data  is  sent  to  dw ee t.i in   JSON  form at . I   Figure   2   is  an  exam ple  of   JS ON   data  w hic is  sent  from   Ho st  t cl oud  serv e r.   T hat  da ta   con ta in s   data  sta tus   ex plains  with   “t his”,  getti ng”   an dweet s ”  [ 18 ]   ex plains   data  transm is sio sta tus  bet ween  su ccess  or   not.  On  t he data  tha t i s sen t, co ntain “thin g” , th e “ thing ” is  w ritt en  by t he  thin g nam es. Th e o t he is  “creat ed”,  the  “creat ed”  data   con ta ins  date   and   tim wh ic ind ic at ed  t he  tim wh en   the  data  is  s ent  by   "t hin g" The  la st  str ucture  is  “con te nt”,  the  “con te nt”  co ntains  data  sent  or   gen e rated  by   "t hin g".   T he  “date”   form at  that sent b y H os t i s m i ll ise con ds p rec isi on .       Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &  C om En g,   V ol.  8 , N o.   6 Dece m ber  2 01 8   :   5342   -   5 350   5344   C l i e n t H o s t C l o u d   S er v er B r o a d c a s t   C l i en t   N a m e IP S e r v i c e S en d   A C K Ho s t   N a m e IP B r o a d c a s t   T u r n   O f f B r o a d c a s t L i s t en C h ec k   C l i en t   D u p l i c a t i o n D a t a   T r a n s f er D a t a   T r a n s f er Ho s t   D a t a   P r o c es s D w e e t   R e s p o n s e s C l i en t   D a t a   P r o c es s D w eet   R es p o n s es T r a n s f e r P er i o d i c a l l y     Figure  1 .  Mac hi ne  to m achine  area  netw ork ( Exten de d)   [ 17 ]           Figure  2 .  D at sent fr om  h os to dweet.i       Af te dweet .io  receive the  da ta they   will   s end   res pons da ta   to  Ho st.  Da ta   that  is  sent  by  dw e et .i has  J SON  for m at   too T he  da ta   con ta in da te ”,  the  date”   represe nt   the   date  a nd   ti m wh e dweet .io   sent  a   respo ns e   i   Figure   3 Wh e the  H os disc onnect  with  th Cl ie nt,  the  e ntire  process  is   stopped The  ho st  will   not  sen data  t Cl ie nt  an cl oud serv e r,   s does   the  Cl ie nt.   T he   host  w ou l be   bac on  th broa dcast p r oce ss the  cl ie nt  back   t li ste process If   cl ie nt  hav been   detect ed ,   the  H os will   check   du plica ti on   for  the  Cl i ent.  I f   there  is   no  dupl ic at ion Ho st   will   perf or m   sent  AC et c.   But  if  t her e   is   duplica ti on  cl ie nt,  t he  Ho st   will   cl ear  his m e m or y, the Host will   perform  b ro a dcast  ag ai n.  T he det ai l of  t he  sc he m e is exp la ine in   ne xt secti on.           Figure  3 .  Dwe et .io  res ponse to host   Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       UD P  Perv as iv e Pro t oco I ntegra ti on wi th Io T for   Sma rt  H ome  . ..  ( M ocha mma d Han na ts  Hanafi  I c hsan)   5345     In   this  resea rc h,   net wor wh i ch  is  us ed  between   Ho st  a nd  Cl ie nt  is   con ne ct ed  local ly But  they   will   be  do i ng  com m un ic at ion   to   cl oud  se r ver  via  inter net.  This  re searc is  fo c us e to   m easur a vaila bili ty  betwee Ho st  t Cl ie nt,  Ho st  to  dweet .io  a nd  Cl ie nt  to  dweet .io.   Be twee the  H os ts  to  Cl ie nt  it   will   m easure   their a vaila bili ty  an d t heir  d el ay  w it m il l iseco nds  tim e p re ci sion .       3.2.   Ho s t a nd  C li e nt   Desig n   This  desig n o n t his secti on is t he  resu lt in g   de sign f ro m  p re vi ou s  r esea rch  [ 9] . T hat d e sig n o   Figure   4   has  al read te ste by   functi onal   te sti ng   sce na rio  a nd  w orks   well Be tween  e xpec te outp ut  and   the  real  outpu t,  it   m at ches But  the  pr e vi ou res earc does n’ m easur the  avail abili t of   host  and   c li ent.  At this  researc the  d e sig is  exten ded s it   has  s om e featu re  wh ic is:   1.   Id le this  proc ess  is  turn in on   the  H os an perf or m s   op enin U DP   po rt.  Af te port  opene d,   the  H ost   sen ding  broad c ast  d at a.   2.   List ening at   this  sta te the  host  li ste is  there  any  data  re tur ned   from   th cl ie nt.  If   the  data  retu rn e by   the  cl ie nt it   goes  to  Chec De vice  D up li cat ion   sta te B ut  if   the  host  does n’t   receive  a ny  data,  it   will   sta at   W ai t f or Br oa dcast Stat e.   3.   Check  D e vice  Duplic at ion th is  sta te   is  check in Cl ie nt.  Did  the  Cl ie nt  was  known  be fore,  if  the  Cl ie nt  has  no bee c onnected   to  t he   H os t,  the t he  Ho st  sen di ng  AC a nd  go e to  AC Sent  sta te If   t he  cl ie nt h as  bee n k now n bef or e ,  the  Host direct ly  g oes  to  C on t ro Process  sta te .   4.   Send  AC K:  thi sta te   perform ing   for   c heck i ng  Cl ie nt  ha rdw are  sta tus.  The   process  of   w ha serv ic es  a re  owne d by the  Cl ie nt.  ACK  th at  is sent c on ta ins Host  Nam e  and  Ho st  I P .   5.   Con tr ol P r oces s: t his stat e is  wh e t he Host   perform ing  contr ol Cli ent.   6.   Dw eet .i o: this  sta te  is exten din g st at e from  p rev i ou s  r esea rc h.  T his stat is  work i ng   pa rall el  w it Co ntr ol   Pr oc ess  Stat wh e the  H os t   connecte with  the  Cl ie nt.  If  the  Cl ie nt  disconnected  fro m   the  Ho st  then   this sta te   sto ps   work i ng to o.        I d l e L i s t en W a i t   F o r   B r o a d c a s t C h e c k   D ev i c D u p l i c a t i on C o n t r o l   P r o c es s C h ec k   A p p l i a n c e   D a t a   S t a t u s A C K   S en t d w eet . io A c t io n   Se n t   P r o c e s s e d   Da t a E v e n t   Se n t   R e a T im e   D a t a   H o s t A c t io n   Se n t   r e s p o n s e A c t io n   Di s p l a y   Da t a E v e n t   De v ic e   T u r n   O n A c t io n   Se n d   B r o a d c a s t L is t e n in g   P o r t E v e n t   W a it   fo r   A p p lia n c e   De v ic e   Da t a A c t io n   R e c e iv e   B r o a d c a s t E v e n t   R e c e iv e   De v ic e   Se r v ic e   I n fo A c t io n   C h e c k   A p p lia n c e   De v ic e   Du p li c a t io n E v e n t   R e c e iv e   De v ic e   Se r v ic e   I n fo A c t io n   Se n t   A C K   Da t a E v e n t   A p p lia n c e   De v ic e Du p lic a t io n A c t io n   I g n o r e   De v ic e   Se r v ic e   I n fo E v e n t   C h e c k   A p p lia n c e   De v ic e A c t io n   S e n t   A liv e   R e q u e s t E v e n t   C o n t r o A p p lia n c e   De v ic e A c t io n   Se n d   Co n t r o Da t a E v e n t   C o n t r o A p p lia n c e   De v ic e A c t io n   Se n d   C o n t r o Da t a E v e n t   N o   A p p lia n c e   De v ic e   D a t a A c t io n   L is t e n   De v ic e   Da t a     Figure  4 .  Host  sta te   m achine  diag ram     On e   cy cl of  processes   is  pe rfor m ed  in  num ber   unti by  t he  Ho s is  the  e ntire  process   that   descr i bed.  Eve ry  cy cl is   per form ed  to  identify   on Cl ie nt.  If   there  is   m or tha one  cl ie nt,  the  oth er   cl ie nt   sh oul wait   the  pr e vious  cy cl is  co m pleted T he  6 th   sta te the  dw eet .i sta te   is  per for m ed  to  send   da ta   that  gen e rated  b y t he Ho st . T he d at a con ta i ns  a  ho st  n am e dw eet   sta tus,  a nd  data that  receiv ed fr om  the cli ent .       Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &  C om En g,   V ol.  8 , N o.   6 Dece m ber  2 01 8   :   5342   -   5 350   5346   B r o a d c a s t I d l e W a i t   f o r   A C K C h ec k   C o n t r o l   D ev i c e E v e n t   I n fo r m   Co n t r o D e v ic e A c t io n   Se n d   B r o a d c a s t   L is t e n in g   P o r t E v e n t   W a it   A C K A c t io n   T i m e   S t a r t   ()  Se n d   De v ic e   Se r v ic e   I n fo E v e n t   T i m e r   E x p ir e d A c t io n   T i m e r - R e s t a r t () E v e n t   C o n t r o D e v ic e   Do w n A c t io n   Se n d   De v ic e   Se r v ic e   I n fo E v e n t   C h e c k   C o n t r o De v ic e   St a t u s A c t io n   Se n t   A liv e   Da t a W a i t   C o n t r o l   M es s a g e E v e n t   I O   Co n t r o l A c t io n   W a it   H o s t   Se n t   Co n t r o l d w eet . io E v e n t   Co n t r o P r o c e s s A c t io n   Se r v ic e   P r o v id e A c t io n   Se n t   r e s p o n s e E v e n t   Se n t   R e s p o n s e A c t io n   Se n t   d w e e t   r e s p o n s e A c t io n   Di s p l a y   Clie n t   D a t a     Figure  5 .  Cl ie nt stat m achine d ia gram       Figure   5   repre sentin sta te   m achine  for  th Cl ie nt.  The  Cl ie nt  design   i an  exten de desig f ro m   pr e vious   resea r ch  t oo.  T he  Cl i ent  has   se ve ral  sta te s   that  s pe ci fical ly   descr i bes   a nd  al rea dy   te ste d.   T he   Cl ie nt   sta te  w hic h has  b ee n desig ne d i s:   1.   Id le this  sta te   was  desig ne wh e the  Cl ie nt  tur ned   on.   In   this  sta te the  cl ie nt  per f orm s   pr epar at io n   process   to  perform   br oa dcas data.  T he  br oad ca ste data   are  Ser vice  Nam e,  IP   Cl ie nt  an Ser vice   Nu m ber .   2.   Broa dcast:   in   this  sta te the  Cl ie nt  br oa dca st  data  fo 250  m illi seco nd s The it   will   mo ve  t wait   f or   ACK St at e.   3.   Wait   f or   AC K wh il the   Cl ie nt  we nt  to   th is  sta te the  Br oad ca st  proce s is  tur ne off I the   Cl ie nt  receivin an  A CK then  go es to  Check  Co ntr ol  Dev ic sta te But  if  the  Cl i ent  do es n’t   receive   ACK  afte r   sever al   seco nd s,  the  Cl ie nt go es b ac t Br oa dcast Stat e.   4.   Check  C on t ro l   Dev ic e:   this  st at is  check in the  ser vices  th at   owned   by  th Cl ie nt  it sel f.   If   the  se r vices   read y t c on tr ol , th e Cl ie nt se nt d at a t t he h os t a bout the  Cl ie nt stat us .   5.   Wait   for   Con t r ol  Me s sage:  in   this  sta te the  Cl ie nt  wait ing   for   the  H os to b co ntr olled.  I the  Cl ie nt  has  data  that  is  not   to  be  c ontr olled  s uch   a gyr m et er  or   acce l ero m et er,  the  Cl ie nt  directl sent  data  to   the  Ho st.  T his stat e is pe rfor m ed wh e t he  Cl ie nt   com m un ic at e s   with  the  H os t.   6.   Dw eet .i o:  as  done  by  the  H ost the  Cl ie nt  will   send   data  to  dw eet .i o.   T his  process  is  par al le with  Wait  Con tr ol  sta te If   disco nnect e with  the   H ost the  Cl ie nt  would  not  se nd  data  to  dwe et .io  as  cl oud  serv e r .  Cl oud s erv e r would  se nd d at a   sta tus i they   receive d data  from  the Cli ent su ch  as t he Ho st  do.         3.   RESU LT S   A ND  TE STIN G   Im ple m entation   of   the  H os a nd   t he  Cl ie nt  i nterf ace  has  be en  re bu il base on  syst em   design.  The re   are  seve ral  cha ng e s   to   us er  i nt erf ace  s uch   as   tim e,  data  wh i ch  is  sent  to  cl oud  se rv e r,   cl oud  s er ver   res ponse et c.  This  sect ion   w ou l be  descr i bed   t he  us er  i nterf ace   that  con ta in s   m uch   in form at ion   ab out  s yst e m   dev el op m ent  (t he  Ho st  a nd  the  Cl ie nt)  a nd   co ntains  syst e m   te sti ng Sys tem   te sti ng   would  be  c onduct ed  to  m easur e the   a va il abili ty   of  the  syst e m s b et we en  the  Host,  th e Cl ie nt and cl oud  s er ver.       3.1.   Result   Ba sed  on   pre vious  researc an the  e xte nd e m et ho ds  that  create in  this  re searc h,   i nterf ace   i m ple m entat io n would   be  exp la i ned   in  this c hap te r.     Figure   6   re pre sent  H os us er   interface  t hat  has  f eat ur e   an f unct ion  bas ed  on   syst em   desig n.   The   ho st  has  t he  a bi li t y   to  con t ro l   m or than  one  de vice  at   on tim e.  Each  f eat ur wh ic i owne by  th Cl ie nt   cou l d per vasiv el con tr ol   a nd m on it or ed  b y t he Ho st .       Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       UD P  Perv as iv e Pro t oco I ntegra ti on wi th Io T for   Sma rt  H ome  . ..  ( M ocha mma d Han na ts  Hanafi  I c hsan)   5347       Figure  6 .  Th e   Ho st  us e i nter face       At  this  researc h,   the  feat ur t hat  is  owned  by   the  Cl ie nt  rep rese nts   by  LED,  1   acce le r om et er  senso r   and   gyr os c ope  sens or.  If   t he   cl ie nt   do es n’ hav one  of  sever al   sen sors ,   the  Cl ie nt  serv ic would  no t   app ea on   the  H os int erf ace.  T m ea su re  the  a vaila bili ty   of   the  Ho st,  it   pr ovide the  tim e   that  r epr ese nts   w he data  is  execu te a nd  sent  f r om   the  cl ie nt.  To  m easur c omm u nicat ion   ti m of   cl ou ser ve r,   it   prov i ded   t wo   te xt  boxes Fir st  te xt  bo “se nt  t dweet .io”   is  da ta   that  se nt  by   the  Ho st   to  c loud  se rver  w hi ch  c on ta ins   th H os t   tim e.  “Dw eet .io  Re spo ns e”  is  respo ns es  f r om   cl ou sen s or   that  c on ta i tim wh en  da ta   is  sent  by  cl oud  serv e r.   Accele r om et er  and   gy ro sc ope  se ns or   is  rep re sente d   by  wa vefor m   char that  gen e rated  by  the  Cl ie nt.  At  the  H os t,  the  pr ocess  of  sen ding  data   was  done   in   the  par al le process   w hi le   sen ding   data   to  the     Cl ie nt an d D w eet .io.     Figure   7   is  C li ent  us er  inte rf ace  that  ha s   featur a nd   f un ct io based  on   syst em   d esi gn   a nd   is   exten ded   from   pr e vious  resea r ch.   The  Cl ie nt  pro vid e serv i ces  that  cou ld  m on it or   and   co ntr olled  by  the  Ho st   and   c ould  rece ive  m essage   from   the  Ho st.   At  this  resea r ch,   the  cl ie nt  ha s   LE D,   ge ner at e X YZ   sign al   for  each  gyr osc op a nd   acce l ero m et er  sensors.   S uch   as  the H os t,  the  Cl ie nt   has  “sent  to  dw eet .io”  feat ure  that  ind ic at es  t he  Cl ie nt  cou ld  co m m un ic at wit cl oud  ser ve r The  m essage  w hich  is  sent  to  cl oud  ser ver   ar e   sam e   with  the  m essage  that  sent  to  the  Ho st   that  wo r ks   pa r al le ls   too The “D weet.io  re sp onse”  is  functi on   that  sent  by  clo ud  ser ver   to  the  Cl ie nt.  So   it   can  m easur com m un ic at ion   tim e   betwee the  Cl ie nts  with  cl oud  ser ver “Halo  H os exe c”  is  us ed  to  di sp la m essage  fr om   the  ho st,   it   con ta ins   tim that  is  sent  by  the   Ho st t hat u se d t m easur e co m m un ic at ion  del ay . S it  can m easur e avail a bili ty  b et ween   the Hos   t he C li ent,   the Host    cl oud  se rv e a nd th e Cl ie nt    cl oud  se rv e r.       Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &  C om En g,   V ol.  8 , N o.   6 Dece m ber  2 01 8   :   5342   -   5 350   5348       Figure  7 .  Th e   Cl ie nt u ser  inte rf ace       3.2.   Te sting   This  re searc co nducted   by   two  e xperi m ent  scenari o   that  al te stin scena rio   igno re  net wor conditi on.  T he   first  e xperim e nt  sce nar io   c onduct ed   by  t he   Cl ie nt  sent  t each  Host  an Cl oud  se rv e r.   data   trans fer   t hat  ar m easur ed  is  15  ( fifteen ti m es  and  each   data  c onduct ed   by  differe nt  da ta   siz es.  Ba se on   fir st   exp e rim ent  scenari o,   the   ave r age  am ou nt   of  data  se nt  by  the  Cl ie nt  is  43 6.47   byte s,  t he   biggest  da ta   is  453  byte an the  s m al le st  data  th at   is  pr od uced   by  the  cl ie nt  is  421  byte s.  Th data  that  sen to  the  H os ha a aver a ge  delay   14.33  m illi se con ds   wh ic has  m axi m u m   tim 17   m illisecond a nd  the  sm al le s tim that  receive by  th host  is  11  m il li secon ds .   T he   data  that  is  sent  to  Cl ou Ser ver   is  1.0 93  sec ond  w hich  the   m axi m u m   tim e   is  1.3 36  sec ond  a nd  the  sm al l est   tim that  receives   by  Cl oud  se rv e i s 0 . 78 sec ond  t hat  c ou l be  see at   T abl 1   The  sec ond  te s ti ng   sce nar i is  cond ucted  by the  H os se nt  da ta   to  each  Cl ie nt  an Cl oud Ser ver , d at a   tr ans fer   t hat  is  m easur ed   are   15  ( fiftee n)   ti m e an eac dat co nducted   by   dif fer e nt  data  siz es.  T he  data  that  pro du ce by  th Ho st  ha ve  an   aver ag 270.9 byte with  th big gest  data  siz is  17 byte and   the  sm a ll est  data siz e is  268 byt es       Table  1 . Cli ent  Sen data t H os t a nd to  Cl ou Se r ver   No   Clien t to   Ho st   Clo u d  Ser v er   Data Siz e ( b y tes)   Delay ( Milliseco n d s )   Delay (Se co n d )   1   440   12   0 .78 5   2   438   14   1 .20 9   3   436   13   1 .19 9   4   435   12   1 .20 6   5   453   17   1 .10 6   6   440   16   1 .18 6   7   452   11   0 .81 6   8   447   15   1 .05 4   9   440   14   1 .18 6   10   431   13   1 .18 1   11   433   15   1 .19 3   Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       UD P  Perv as iv e Pro t oco I ntegra ti on wi th Io T for   Sma rt  H ome  . ..  ( M ocha mma d Han na ts  Hanafi  I c hsan)   5349   No   Clien t to   Ho st   Clo u d  Ser v er   Data Siz e ( b y tes)   Delay ( Milliseco n d s )   Delay (Se co n d )   12   430   15   1 .22 9   13   427   15   1 .26 4   14   424   16   1 .30 1   15   421   17   1 .33 6   Av erage   4 3 6 .47   1 4 .33   1 .09 3       The  data  t hat  receive by  th Cl ie nt  ha ve  an  a ver a ge   del ay   is  64. m il l ise conds  with   the  biggest  delay   is  81  sec ond  a nd  the  s m al le st  delay   i 49  m illi secon ds.  T he  data  that  receive by   Cl ou ser ver  has  a   delay   too   with av era ge  0.8 69  seco nd s the  bi gg e st  de la is  0.881  sec ond  a nd   the  sm al le st   delay   is  0. 84   s eco nd   that co uld   see  in   Ta ble  2 .       Table  2 . Ho st  Sen D ata  t T he  Cl ie nt  and C loud  Server   No   Ho st to   Clien t   Clo u d  Ser v er   Data Siz e ( b y tes)   Delay ( Milliseco n d s )   Delay ( S e co n d )   1   270   63   0 .85 2   2   269   49   0 .94 9   3   269   51   0 .86 1   4   271   56   0 .86 3   5   270   59   0 .88 1   6   269   61   0 .86 8   7   268   55   0 .93 5   8   271   65   0 .82 9   9   274   60   0 .87 2   10   269   72   0 .87 4   11   272   70   0 .86 1   12   272   73   0 .85 5   13   273   76   0 .85   14   273   78   0 .84 5   15   274   81   0 .84   Av erage   2 7 0 .93   6 4 .6   0 .86 9       4.   CONCL US I O N   AND  F UT U RE W ORK   This  resea rch  is  su ccessf ul ly   dev el oped  UDP  Per vasiv serv ic a nd  disco ver pr oto c ol  us i ng   Lab VI E W.   Th is  researc wa co nducted  by   on Host  an one  Cl ie nt,  each  of  them   cou l com m un ic at pervasively Wh en  the  Host  and   the  Cl ie nt  com m un ic at e,  e ach  of  them   h as   par al le com m un ic at ion   with  th e   Cl oud  Se rv e r.   The  e xp e rienc scena rio  c on du ct e to   m ea su re   avail abili ty   betwee H ost Cl ie nt  an Cl oud  Ser ver   that  ig nore  the  netw ork  co nd it io n.   B et ween   tw te sti ng   scena rio  it   can  be  seen  t hat  the  delay   in  data  transm iss ion   be tween  the  H ost   to  the  Client  (av era ge  dela 14 . 33   m i ll is econd bigger  that  the  Cl ie nt   to  the   Ho st  (av e ra ge  64.6   m il li seco nd)  e ven   t hough  t he  data  th at   sent  is  sm aller.  A ve rag da ta   siz that  sent  by   cl ie nt  is  436  by te and   a vera ge  data  siz th at   the  H os se nt   270.9 byte s.   This  is  du e   to   when  t he  Ho s sent  data  to  t he  Cl ie nt,  the   Cl ie nt  w ou l acc ompli sh   his  ta sk  first  the receivin data  f ro m   the  H os t.   The   sta te   m achine desi gn take  ef fect  on the  d el ay  t hat r es ulti ng   from  the Cli ent a nd  the Host.   The  C li ent  se nt   data  to  H os t,   the  data  c on t ai ns   data  sen s or  w hich   sim u la te by  gyr osc op e   se ns or,   acce le ro m et er  sens or   an LE D.   The  Ho st  s ent  data  to  Host  con ta ins  it   t oo   wh ic si m ulate by  LED.  Each   exp e rim ent  scenari is  s ucces sfu ll se nt  eac se rv ic e   t hat  s en to  Cl oud  S erv e to o.  Cl ou Se rver  just  st or e d   data  that  sent  them   This  re search   c ou l d   c on ti nue   with   bi gg e a nd  ubiq uitous  e nv i ron m ent.  The   pervasiv e   disco ver pr oto col  us i ng  UDP  cou l be  im p lem ented  in  sever al   em bed de de vice  su c as  Ardu i no ras pb e rry   or   My RI O.   T he   em bed ded   de vice  co uld   re present  ho us eh ol eq uip m ent  th at   cou l be  i nst al le su ch  as  s m art   dev ic e.   S t he  us er   wou ld  not  ca us e   to  be  e xpe rience with   the  e xistenc of  sm art  dev ic e     at  d ai ly  h ouse hold e quipm ent.       ACKN OWLE DGE MENTS   The  te am   tha nk s   to   the  C om pu te Syst e m   and   Ro bo t ic Lab or at ory Com pu te En gin eeri ng   Dep a rtm ent,  Faculty   of   Co m pu te Scie nc e,  Brawi j ay Un i ver sit y.  T hi pap e is  an   extensi on   of  wor or i gin al ly   publ ished  a nd  re ported   in  I A ES  2016:   I nte rn at io nal  C onf eren ce   on  Ele ct ric al   En gin e erin g,   Com pu te Scie nce  a nd  I nfo r m at ic (EECSI   2016 )”  at   Sem arang,   East   Ja va I ndonesi 22 - 25  N ov em ber   2016,  with the   title   “Li gh t weig ht UDP Per vasive   Pr ot oc ol in Sm art H om e En vi ronm ent b ased   on La bVIE W”.     Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &  C om En g,   V ol.  8 , N o.   6 Dece m ber  2 01 8   :   5342   -   5 350   5350   REFERE NCE S   [1]     S.R.   Akbar ,   W .   Kurniawa n,   M.H.H.   I chsa n,   I. Ar wani,   M . T. Ha n dono,   "P erv asiv e   Device and  Ser vic e   Discove r y   Protocol   In   XBe Sensor Ne twork, " i n   ICACSIS ,   Mala ng,   Indone s ia ,   2016.     [2]     J.  Froehlich,   L .   Findla te r   and   J.   La nda y ,   "Th D esign  of Eco - Fe e dbac Te chnol o gu, " i n   Proceedi ngs of   th SIGC HI  Confe renc on   Hum an  Fac tors  in  Computing   Sy stems ,   Atla n ta, G eor gia ,   US A,  2 010.     [3]     P.  Dourish a nd   G.  Bell,   Divini n A Digi t al Futu re  -   Mess   and  M y tho log y   i Ubi quit ous Com puting,  London ,   Engl and: T h M IT  Press ,   20 11 .     [4]     L.   At zor i ,   A.   Ier and   G.   Morabi to,   ""Th In te rne of Things:   A surve y " , E lsevie Computer  Net wo rks,  pp.   2787 - 2805,   2010 .     [5]     O.  Verm esa an P.  Friess,   Int er net   of   Th ings  -   Global   Te chn olo gic a and   Soci etal Tre nds,   Aalbo rg,   Denm ark :   Rive Publ isher,  2011.     [6]     J.  Ma,   T . L. Ya n g,   B. O .   Apduhan ,   R.   Huang ,   L .   B aro ll i   and   M.   Takiz awa ,   "Tow ar ds a   Sm art   W orl and  Ubiqu it ou Inte lligen ce :   W al kthrough  fro m   Sm art   Thi ngs  to  Sm art   H y per s pac es  and  Ubi c Kids,"  Inte rnat io nal  Journal   of   Pe rvasiv Comp uti ng  and   Comm unic ati ons ,   vol .   1,   no .   1 ,   pp .   53 - 68,   2005 .     [7]     C.   Aggarwa l, N.   As hish a nd  A.   Sheth, T h Int ern et   of   Th ings:  Surve y   from   Th D ata - Cen tri c   Perspec t ive,  Book   Chapt er   in   "M ana ging and  Minin Sensor Data", S pringe r,   2013 .     [8]     G.  Tri p at h i, D.   S ingh  and   K.  K .   L oo,   "EOI:   Entit y   of  Inte r est  B ase d   Network  Fus ion   for  Future   Servi ce s,"  in  ICHIT   2011:  Conve rge nce   and   Hybrid  I nformation  Te ch nology ,   2011.     [9]     W .   Kurniawa n ,   M.H.H.   Ich s an,  S.  R.   Akbar and I.  Arw ani,  "L igh twei ght   UD P Perva sive  Proto col  in  Sm art   Hom Envi ronm ent   B a sed  on  L abview, " i I AE In te rn ati onal  Con fe ren ce   on   E le c tric al   Engi ne ering, Compute r Sc i ence  and  Informatic s ,   Sem ara ng,   Indo nesia ,   2016.     [10]     A.  Ford,  C .   R ai c iu,   M.   Handl e y   a nd  O.  Bon ave ntu re,   TCP E x te nsi ons for  Multi p ath Opera t ion  wi th   Multi pl Address es,   RF 6824,   2013 .     [11]     F.J.  Jim ene z   and   D.J.  Frutos,   "V i rtua l   Instrum ent   for  Mea surem en t,   Proc essing  Da t a,   and  Visua lization  of  Vibr ation  Patt ern s of   Pie zo el e ct ri Dev ices, El sev ie r,   vol .   2 7,   no .   6 ,   pp .   653 - 663,   2005 .     [12]     M.H.H  Ich san ,   W .   Kurniawa n   a nd  M.  Huda ,   "W at er   Qualit y   Mo nit oring   with  Fu zzy   Logi c   Contr ol  Based   on  Graphi cal  Progr amm ing, TEL KOMNI KA,   vol .   1 4,   no .   4 ,   p .   1446 ~1453,  2016.     [13]     L.   Van fre t ti ,   V.   H.  Aarstra nd ,   M.   S.  Alm as,   V .   S.   Perić   and  J.   O.   Gjer de, "A softw are   d evelopm ent t oolkit for   re al - ti m s y nchr opha sor a pplications, " i I EE E   Gr eno ble   Con fe renc e ,   Grenobl e, 2013.    [14]     K.  F y sar aki and   S.  Nt amapir as,   "H ard ware   impl ementa t ion  of   a   s y stem c la ss if y i ng  the opt o ac ous ti c   signat ur of   insec t   wing  f la p, " i Conf ere nc e:   22nd  Int ernati o nal  Congress   on  Sound  and  V ibrati on  ( ICSV22) ,   Florence, It a l y ,   2015.     [15]     A.  Hall dorss on,   "II oT  da ta   collection  for   OEE   m ea surem ent s,"  Re y kj aví k   Univer si t y   L ibra r y ,   2016 .   [16]     W .   Kurniawa n ,   M.H.H.   Ich s an  a nd  S.  R .   Akbar ,   "U DP   Perva sive P rotoc ol  Im ple m ent a ti on  for   Sm art   Hom Envi ronm ent   on   M y RIO using L abVIE W , Int ernati onal Journal   of El e ct ri cal   an Computer  Eng ine ering   ( IJE CE ) ,   vol.   8 ,   no .   1 ,   pp .   113 - 123,   2018 .     [17]     e.   a. J.   Hol le r ,   "F rom   Mac hine - to - Mac hine t o   the I nte rne of   Thi ng s: I ntroduction t N ew  Age  of   Inte lligen ce,"  in   El sev ie r ,   W al th a m ,   MA ,   2014.     [18]     I.   Bug   La bs,   "d wee t.io, " 2017 .   [ Online ] .   Avai la b le :   htt p :/ /dwe et.i o/.   [Ac ce ss ed   11  2017] .       Evaluation Warning : The document was created with Spire.PDF for Python.