I n d o n e s i a n   J o u r n a o f   E le c t r i c a E n g i n e e r i n g   a n d   C o m p u t e r   Sc i e n c e   V o l.   1 2 ,   N o .   3 ,   D e c e m b e r   2 0 1 8 ,   p p .   1 2 3 0 ~ 1 2 3 8   I SS N :   2 5 0 2 - 4 7 5 2 ,   D O I 1 0 . 1 1 5 9 1 /ij e e c s . v 1 2 . i 3 . p p 1 2 3 0 - 1 2 3 8             1 2 3 0       J o ur na l   ho m e p a g e :   h t tp : / /i a e s c o r e . c o m /j o u r n a l s /in d e x . p h p / ij e e c s   A   R ea l - t i m A ppl i ca t i o F ra m ew o r k   fo r   S peec R e co g ni t i o U s i n g   H T T P / 2   a nd  SS E       K a l a m u lla h   R a m li 1 ,   A s r il  J a r in 2 ,   S ur y a d i 3   1 , 2 D e p a r t m e n t   o f   E l e c t r i c a l   E n g i n e e r i n g ,   F a c u l t y   o f   E n g i n e e r i n g ,   U n i v e r s i t a s   I n d o n e s i a ,   I n d o n e s i a   3 D e p a r t m e n t   o f   M a t h e m a t i c s ,   F a c u l t y   o f   M a t h e m a t i c s   a n d   N a t u r a l   S c i e n c e s ,   U n i v e r s i t a s   I n d o n e s i a   D e p o k   1 6 4 2 4 ,   I n d o n e s i a   2 C e n t e r   f o r   I n f o r m a t i o n   a n d   C o m m u n i c a t i o n   T e c h n o l o g y ,   B P P T   P u s p i p t e k   S e r p o n g ,   T a n g e r a n g   S e l a t a n   1 5 3 1 4 ,   I n d o n e s i a       A r t ic le   I n f o     A B ST R A C T     A r tic l e   h i s t o r y :   R e c e i v e d   M a y   2 2 ,   2 0 1 8   R e v i s e d   S e p   2 ,   2 0 1 8   A c c e p te d   O c t   8 ,   2 0 1 8       T h e   p e r f o r m a n c e   o f   n e t w o r k - b a s e d   s p e e c h   r e c o g n i t i o n   a p p l i c a t i o n   i s   m a i n l y   d e t e r m i n e d   b y   t h e   a v a i l a b i l i t y   o f   a l l   s p e e c h   d a t a   r e c e i v e d   o n   t h e   s e r v e r   a n d   a l s o   t h e   r e a l t i m e n e s s   i n   d e l i v e r i n g   t h e   r e c o g n i t i o n   r e s u l t s   f r o m   t h e   s e r v e r .     O n   t h e   b a s i s   o f   f u l l - d u p l e x   s p e e c h   r e c o g n i t i o n   a p p l i c a t i o n   t h i s   p a p e r   p r o p o s e s   a   r e a l - t i m e   a p p l i c a t i o n   f r a m e w o r k   f o r   w e b   s p e e c h   r e c o g n i t i o n   u s i n g   H T T P / 2   p r o t o c o l   a n d   S e n d e r - S e n t   E v e n t s   ( S S E ) .   A   n u m b e r   o f   e x p e r i m e n t s   w e r e   p e r f o r m e d   t o   c o m p a r e   t h e   l a t e n c y   o f   b o t h   t h e   a p p l i c a t i o n   u s i n g   H T T P / 2   p l u s   S S E   a n d   t h e   f u l l - d u p l e x   a p p l i c a t i o n   u s i n g   W e b S o c k e t .   T h e   r e s u l t s   s h o w e d   t h a t   t h e   p r o p o s e d   f r a m e w o r k   o f f e r s   b e t t e r   a l t e r n a t i v e   f o r   a   w e b - b a s e d   s p e e c h   r e c o g n i t i o n   t h a n   t h e   f r a m e w o r k   u s i n g   W e b S o c k e t .   K e y w o r d s :   H T T P / 2   N e tw o r k   s p e e c h   r e c o g n iti o n   R e a l - ti m e   s p e e c h   r e c o g n it i o n   Se r v e r - s e n e v e n t   W e b So c k e t   C o p y r i g h t   ©   2 0 1 8   I n s t i t u t e   o f   A d v a n c e d   E n g i n e e r i n g   a n d   S c i e n c e .     A l l   r i g h t s   r e s e r v e d .   C o r r e s p o n d i n g   A u t h o r :   K a la m u ll a h   R a m l i,     D e p a r t m e n t   o f   E le c tr i c a l   E n g in e e r in g ,     Fa c u lt y   o f   E n g in e e r in g ,   U n iv e r s i ta s   I n d o n e s i a ,   I n d o n e s i a .     E m a il:   k a la m u lla h . r a m li@ u i. a c . i d       1 .   I N T R O D U C T I O N     A u to m a tic   s p e e c h   r e c o g n it io n   o v e r   t h e   I n t e r n e t   f a c e s   p a c k e t   lo s s   a n d   d e la y   [ 1 ] .   P a c k e l o s s   in   tu r n   le a d   to   e r r o r s   in   d e c o d in g   th e   s p e e c h   s ig n a l   to   t h e   t e x t   [ 2 ] .   T h is   p r e v e n ts   T C b e c o m i n g   a   g o o d   s o l u tio n   f o r   s p e e c h   r e c o g n itio n   o v e r   th e   I n t e r n e t .   T C e n s u r e s   a ll  s p e e c h   d a ta   r e c e i v e d   b y   th e   s e r v e r   b u i n t r o d u c e s   d e la y   c a u s e d   b y   tw o   m a in   m e c h a n i s m s ,   n a m e l y   a d d iti v e   in c r e a s e   m u lt i p l ic a ti v e   d e c r e a s e   ( A I M D )   a n d   T i m e o u [ 3 ] .   T o   o v e r c o m e   th e   d e la y   o f   T C f l o w ,   m a n y   r e s e a r c h e s   a tt e m p t   to   s e e k   s o l u t io n s   o n   th e   r e a l - tim e   b a s is ,   s u c h   a s   m u lt i m e d i a   s tr e a m in g   a n d   v o i c e   o v e r   I P,   b y   m o d e lin g   T C P   i n   c e r ta in   c ir c u m s ta n c e s   w h e r e   it   m a y   d e li v e r   a   s a tis f a c t o r y   p e r f o r m a n c e   [ 4 - 6 ] .   M e a n w h ile ,   a p p lic a ti o n s ,   s u c h   a s   o n e   d e v e lo p e d   b y   G o o g le   e m e r g e   to   m i n i m iz e   th e   T C d e la y   b y   c o m p r e s s i n g   t h e   s o u r c e   d a t a   a n d   o p ti m iz in g   th e   c o m m u n ic a tio n   p r o t o c o b e tw e e n   t h e   c l ie n a n d   th e   s e r v e r   to   m a k e   h i g h - p e r f o r m a n c e   w e b s it e s   [ 7 ] .       T C P - b a s e d   s p e e c h   r e c o g n iti o n   w ith   s p e e c h   s e g m e n t e r   o n   th e   c lie n t   s id e   r e q u i r e s   a c c e p t a b le   d e la y   to   m e e u s e r s   s a tis f a c t io n .   O u r   p r e v i o u s   w o r k   d e v e l o p e d   a   m o d e l   to   i n v e s ti g a t e   th is   a c c e p ta b le   d e la y   f o r   b a h a s a   I n d o n e s ia   a n d   t o   f in d   o u a   f e a s i b le   w o r k in g   r e g io n   o f   T C f l o w   o n   th e   b a s is   o f   l o s s   r a te   a n d   th e   a v e r a g e   r o u n d - tr i p   tim e   [ 8 ] .   I n   o th e r   w o r k   [ 9 ] ,   t h e   in v e s ti g a tio n   o f   th e   a c c e p t a b l e   d e la y   w a s   a t te m p te d   th r o u g h   c a l c u l a ti o n s   o f   th e   p a c k e t   d e la y   d is tr i b u t io n   m o d e l   [ 1 0 ] .   T h e   r e s u lt s   in d ic a te d   th a t   m o d e l   [ 8 ]   w a s   m o r e   a p p r o p r ia t e   to   u s e .   I n   r e c e n y e a r s ,   t h e   s o l u t io n   f o r   a   r e a l - tim e   a p p li c a t io n   o v e r   T C i s   d e a l w i th   s e n d i n g   i m m e d ia te l y   th e   u p d a t e s   f r o m   th e   s e r v e r   t o   th e   c lie n u s in g   a s y n c h r o n o u s   c o m m u n ic a tio n   t e c h n iq u e s ,   s u c h   a s   p o ll i n g ,   lo n g - p o l li n g ,   a n d   s t r e a m in g   [ 1 1 ] .   Po lli n g   is   a   te c h n o lo g y   in   w h ic h   a   b r o w s e r   s e n d s   H T T r e q u e s ts   i n   a   r e g u la r   tim e   in te r v a in   o r d e r   t o   g e i m m e d ia te l y   t h e   u p d a te s   f r o m   t h e   s e r v e r .   A   s u i t a b l e   e x a m p l e   o f   a p p l y in g   th is   te c h n o l o g y   is   t o   m e a s u r e   th e   w a te r   le v e a n d   th e   t e m p e r a t u r e   r e m o te l y   [ 1 2 ] .   A   g o o d   v a r i a n t   o f   p o ll i n g   t e c h n o lo g y   is   l o n g   Evaluation Warning : The document was created with Spire.PDF for Python.
I n d o n e s ia n   J   E le c   E n g   &   C o m p   S c i     I SS N :   2 5 0 2 - 4 7 5 2       A   R e a l - t im e   A p p l ic a ti o n   F r a m e w o r k   f o r   S p e e c h   R e c o g n i ti o n   U s i n g   H T T P /2   a n d   S S E   ( K a la m u l la h   R a m li )   1 2 3 1 p o l li n g .   T h is   v a r i a n t   e m u la te s   a   p u s h   m e c h a n is m   f r o m   t h e   s e r v e r .   Se r v e r   h o ld s   th e   r e q u e s t   o p e n   u n t i l   a n   u p d a te   a p p e a r s   o n   th e   s e r v e r   o r   a   ti m e o u [ 1 3 ] .   T h e   n e x t e c h n o l o g y   i s   s tr e a m in g .   I is   a   t e c h n o lo g y   t h a t   s e n d s   a   c o m p l e t e   r e q u e s t   f r o m   a   b r o w s e r   to   t h e   s e r v e r   a n d   le t   it   o p e n   in d e f in ite ly .   N e it h e r   th e   c l ie n t   n o r   th e   s e r v e r   n e e d s   t o   c lo s e   th e   c o n n e c t io n   [ 1 3 ] .     A   m o r e   a d v a n c e d   te c h n o l o g y   is   a   f u ll - d u p le x   c o m m u n ic a t io n   u s i n g   W e b So c k e t.   G o o g le   d e v e lo p e d   W e b S o c k e to   e n a b l e   th e   c o m m u n i c a t io n   in   a   b i - d ir e c ti o n a w a y   b e t w e e n   th e   c lie n t   a n d   th e   s e r v e r   o n   a   s in g le   T C P - c o n n e c t io n   [ 1 4 ] .   W e b So c k e is   e x p lo i te d   b y   A lu m a e   in   o r d e r   t o   d e v e l o p   a   f u l l - d u p l e x   s p e e c h - to - t e x t   f o r   E s t o n ia n   [ 1 5 ] .   I n   th i s   s y s te m ,   th e   c l ie n t   s e n d s   th e   s p e e c h   d a ta   in   s o m e   c o n t a in e r s   a n d   e n c o d in g s   s u p p o r t e d   b y   G St r e a m e r   f r a m e w o r k   ( e . g . ,   O g g ,   M P 4 ,   a n d   S p e e x )   to   th e   s e r v e r .   M e a n w h ile ,   t h e   s e r v e r   w il s e n d   th e   in te r m e d ia r y   r e s u lt s ,   w h ic h   a r e   c a l le d   h y p o th e s e s ,   to   t h e   c l i e n t.   T h e   s y s te m   u s e s   a   K a ld o n li n e   d e c o d e r   f o r   s e g m e n t in g   th e   s p e e c h   d a ta   in to   s p e e c h   s e n t e n c e s .   T h e   s p e e c h   s e n t e n c e   i s   th e n   r e c o g n i z e d   p r o g r e s s i v e l y   b y   a   s p e e c h   r e c o g n iz e r   to   g e n e r a te   h y p o th e s e s   a n d   a   f in a h y p o th e s is   [ 1 6 ] .     A   s i g n if ic a n t   p r o b le m   o f   W e b S o c k e t   is   w h e n   it   h a s   t o   p a s s   o v e r   a   p r o x y   s e r v e r   [ 1 7 ] .   A   p r o x y   s e r v e r   u s u a l ly   d o e s   n o a llo w   a n   i d le   c o n n e c ti o n ,   w h ic h   is   o p e n e d   f o r   a   l o n g   t im e .   T h e r e f o r e ,   t h i s   p a p e r   p r o p o s e s   a n   a lt e r n a ti v e ,   a   r e a l - t im e   a p p lic a tio n   f r a m e w o r k   u s in g   H y p e r t e x T r a n s f e r   Pr o to c o l   v e r s io n   2 . 0   ( H T T P /2 )   p lu s   S e r v e r - S e n E v e n ( S S E ) .   H T T P/ 2   is   a   h y p e r t e x tr a n s f e r   p r o to c o th a t   o v e r c o m e s   w e a k n e s s e s   o f   H T T P / 1 . 1 ,   e s p e c i a l l y   to   r e d u c e   t h e   a p p li c a tio n   la te n c y   [ 1 8 ,   1 9 ] .   I n   c o o p e r a t io n   w it h   S SE   [ 2 0 ] ,   t h e   a p p l ic a ti o n   e n a b l e s   th e   s e r v e r   to   s e n d   u p d a te s   to   th e   c lie n t.   T h e   f r a m e w o r k   u s in g   H T T P/ 2   p l u s   S SE   is   d e v e lo p e d   o n   th e   b a s is   o f   A lu m a e s   a p p l ic a ti o n   [ 1 5 ]   in   w h i c h   t h e   W e b So c k e t   c o m m u n ic a tio n   b e tw e e n   t h e   c l i e n t   a n d   th e   s e r v e r   is   r e p la c e d   b y   c o m b in a ti o n   o f   H T T P /2   a n d   S S E .   F u r th e r m o r e ,   e x p e r i m e n t s   a r e   c o n d u c te d   t o   c o m p a r e   th e   la t e n c y   o f   a p p li c a ti o n   d e v e lo p e d   u s i n g   c u r r e n t   f r a m e w o r k ,   i . e . ,   W e b S o c k e a n d   th e   p r o p o s e d   f r a m e w o r k   ( H T T P /2   p lu s   S SE ) .       2 .   M E T H O D O L O G Y   2 . 1 .       H y pe r t e x t   T r a n s f e r   P r o t o c o l   v e r s i o n   2 . 0   ( H T T P / 2 )   H T T P /2   is   th e   n e w   v e r s io n   o f   H y p e r te x T r a n s f e r   P r o t o c o l,   w h ic h   i s   p u b li s h e d   in   M a y   2 0 1 5   b y   I n te r n e E n g i n e e r in g   T a s k   Fo r c e   ( I E T F )   a s   R F C   7 5 4 0   [ 1 8 ] .   T h e   m a in   g o a o f   H T T P/ 2   is   to   m a k e   th e   a p p li c a ti o n   f a s te r ,   s i m p l e r ,   a n d   m o r e   r o b u s b y   p r o v id in g   th e s e   f o llo w i n g   f e a tu r e s ,   i. e . ,   f u ll   r e q u e s a n d   r e s p o n s e   m u lt i p l e x i n g H T T h e a d e r   f i e ld s   c o m p r e s s i o n ,   r e q u e s p r io r it iz a tio n ,   a n d   s e r v e r   p u s h .   H T T P/2   d o e s   n o t   m o d i f y   s e m a n t ic a ll y   t h e   H T T P   a p p li c a t io n   b e c a u s e   it   s til l   u s e s   a l m a in   c o n c e p t s   o f   a n   H T T P   p r o to c o l ,   e . g . ,   H T T m e th o d s ,   h e a d e r   f i e l d s ,   s t a t u s   c o d e s ,   a n d   U R I s .   T h e   m o s im p o r ta n e n h a n c e m e n o f   H T T P/ 2   is   th e   n e w   b in a r y   f r a m in g   l a y e r   w it h in   a n   a p p li c a t io n   la y e r   a s   s h o w n   i n   F i g u r e   1 .   I t   m a k e s   H T T m e s s a g e s   e n c a p s u la te d   in to   f r a m e s   a n d   tr a n s f e r r e d   o v e r   T C c h a n n e l.             Fi g u r e   1 .   H T T P / 2   b in a r y   f r a m in g   l a y e r   [ 2 2 ]       A ll   H T T P/ 2   c o m m u n i c a t io n s   r u n   o n   a   s in g le   T C P   c o n n e c ti o n ,   w h ic h   is   a b le   to   b r i n g   o n e   o r   m o r e   b i - d ir e c tio n a s t r e a m s .   E a c h   s tr e a m   h a s   a   u n iq u e   p a i r   o f   id e n ti f i e r   a n d   p r io r it y   n u m b e r .   T h is   p a ir   is   u s e d   to   ta g   b id ir e c tio n a m e s s a g e   o f   H T T P   t o   id e n t if y   s tr e a m   a   f r a m e   b e lo n g s   to .   A n   H T T P   m e s s a g e   c o u ld   b e   a s   H T T P   r e q u e s t   o r   H T T r e s p o n s e .   T h e   p r o to c o a r r a n g e s   th e   f r a m e s   o f   d if f e r e n s t r e a m s   a n d   in te r le a v e s   th e m   w h e n   s e n d i n g   t h e   m e s s a g e .   A th e   o t h e r   e n d   t h e   p r o t o c o r e a s s e m b l e s   th e m   b y   u s in g   th e   s tr e a m   i d e n ti f ie r   w h i c h   is   c a r r ie d   b y   e a c h   f r a m e   i n   i ts   h e a d e r .   W i th   th e   f r a m in g   m o d e l ,   H T T P/ 2   m u lti p l e x e s   t h e   H T T P   r e q u e s a n d   H T T P   r e s p o n s e   b y   s p li tt in g   H T T m e s s a g e s   in to   f r a m e s ,   in te r le a v in g ,   a n d   r e a s s e m b l in g   t h e m   o n   th e   r e c e i v e r     a s   s h o w n   i n   Fi g u r e   2 .   H T T P/ 2   o n l y   n e e d s   o n e   c o n n e c ti o n   p e r   to   r e d u c e   th e   la te n c y   a n [ d   im p r o v e   th e   th r o u g h p u t.   H o w e v e r ,   t h e r e   is   a   n e g a ti v e   c o n s e q u e n c e   w h e n   T C s u f f e r s   h e a d - o f - b l o c k in g   o r   d e c r e a s in g   t h e   c o n g e s tio n   w i n d o w .   Fo r tu n a t e l y ,   th is   d r a w b a c k   c a n   b e   p a r ti a ll y   c o m p e n s a t e d   b y   t h e   a d v a n ta g e s   o f   H T T P / 2   m e c h a n i s m s   s u c h   a s   h e a d e r   c o m p r e s s i o n   a n d   s t r e a m   p r io r it iz a tio n   [ 2 1 ] .               H T T P   2 . 0   c o n n e c t i o n   S t r e a m  1   D A T A   S t r e a m   3   H E A D E R S   S t r e a m   3   D A T A   S t r e a m   1   D A T A     S t r e a m   5   D A T A   C l i e n t   S e r v e r   Evaluation Warning : The document was created with Spire.PDF for Python.
                                I S SN :   2 5 0 2 - 4 7 5 2   I n d o n e s ia n   J   E le c   E n g   &   C o m p   S c i,   V o l.   1 2 ,   N o .   3 ,   D e c e m b e r   2 0 1 8     1 2 3 0     1 2 3 8   1 2 3 2   T h e   p o s s i b le   n e g a ti v e   e f f e c t s   o f   t h i s   te c h n iq u e   a s   d e s c r ib e d   in   R F C   6 2 0 2   ( 2 0 1 1 )   [ 1 3 ] .           F i g u r e   2 .   H T T P/2   r e q u e s t -   a n d   r e s p o n s e   m u lti p l e x i n g   w ith in   a   s h a r e d   c o n n e c ti o n   [ 2 2 ]       2 . 2 .       S e r v e r - Se n t   E v e n t s   ( S S E )   S e r v e r - Se n E v e n t s   ( SS E )   is   a   te c h n o l o g y   w h e r e b y   a   b r o w s e r   r e c e i v e s   a u to m a ti c   u p d a t e s   f r o m   a   s e r v e r   v i a   H T T c o n n e c ti o n .   SS E   h a s   E v e n tSo u r c e   A P I ,   w h ic h   i s   s ta n d a r d i z e d   a s   p a r t   o f   H T M L 5   b y   W o r l d   W id e   W e b   C o n s o r t iu m   ( W 3 C )   [ 2 0 ] .   T h e   s p e c i f ic a ti o n   o f   S S E   d e f in e s   a n   A PI   th a a l lo w s   s e r v e r s   to   p u s h   d a ta   to   W e b   p a g e s   o v e r   H T T P   i n   th e   f o r m   o f   D o c u m e n O b je c M o d e ( D O M )   e v e n t s .   T h e   d a t a   is   e n c o d e d   a s   te x t/ e v e n t - s tr e a m   c o n te n a n d   p u s h e d   b y   u s in g   a n   H T T s tr e a m i n g   m e c h a n is m .   H o w e v e r ,   t h e   s p e c if i c a ti o n   s u g g e s t s   to   d is a b li n g   th e   H T T c h u n k i n g   f o r   s e r v in g   e v e n t   s tr e a m s   u n l e s s   th e   r a te   o f   m e s s a g e s   is   h i g h   e n o u g h   to   a v o id .       2 . 3 .       A pp l ic a t i o n   F r a m e w o r k   w it h   H T T P /2   plu s   SS E     T h e   p r o p o s e d   r e a l - ti m e   a p p li c a ti o n   f r a m e w o r k   u s in g   H T T P/ 2   p l u s   S SE   is   d e v e l o p e d   a s   a   m o d i f ic a tio n   o f   a   f u ll - d u p le x   a p p l ic a tio n   f r a m e w o r k   u s in g   W e b S o c k e t ,   a s   s h o w n   in   F ig u r e   3 .   T h e   f r a m e w o r k   c o n s i s ts   o f   tw o   m a in   c o m p o n e n ts :   c l ie n t   a n d   s e r v e r .   A   c l i e n a c ts   to   p r o v id e   s p e e c h   d a ta   a n d   p r e s e n ts   t h e   r e c o g n itio n   r e s u lt s   t o   th e   u s e r   w h e r e a s   a   s e r v e r   a c ts   to   d e c o d e   a n d   to   h y p o th e s iz e   t h e   r e c e i v e d   s p e e c h   d a t a   a s   w e ll   a s   to   n o r m a l iz e   th e m .   T h e   s e r v e r   is   d iv i d e d   i n t o   a   m a s te r - s e r v e r   a n d   o n e   o r   m o r e   w o r k e r s .   M a s t e r - s e r v e r   w o r k s   in   a   T o r n a d o   F r a m e w o r k   [ 2 3 ]   a n d   m a n a g e s   a   s e o f   w o r k e r s   c o n n e c te d   w ith   t h e i r   s ta t u s f o r w a r d in g   t h e   r e c e i v e d   s p e e c h   d a ta   to   th e   w o r k e r   a n d   p u s h in g   im m e d ia t e l y   th e   r e c o g n i ti o n   r e s u lt s   to   th e   c lie n t.   T h e   w o r k e r   s e r v e s   th e   s p e e c h   r e c o g n iti o n   u s in g   G S tr e a m e r   O n lin e   D e c o d e r   Plu g in   f r o m   K a ld T o o l k it  [ 2 4 ] .             F ig u r e   3 .   F u ll - d u p le x   a p p lic a ti o n   f r a m e w o r k   f r o m   A lu m a e     A p p l i c a t i o n   ( H T T P   2 . 0 )   N e t w o r k   ( I P )   T r a n s p o r t   ( T C P )   S e s s i o n   ( T L S )   ( o p t i o n a l )   B i n a r y   F r a m i n g     P OS T   /u p l o a d   H T T P /1 . 1   H o s t :   w w w . e x a m p l e . o r g   C o n t e n t - T y p e :   a p p l i c a t i o n / j s o n   C o n t e n t - L e n g t h :   1 5     { m s g : h e l l o }   H T T P   1 . 1   H e a d e r s   f r a m e   D A T A   f r a m e   H T T P   2 . 0     K l i e n   W e b   b r o w s e r   K l i e n   J av A p p   M a s t e r   S e r v e r                 W or k e r     S e r v e r   w o r k e r   K a l di     w o r k e r   K a l d i                   W or k e r     S e r v e r   w o r k e r   K a l di     w o r k e r   K a l d i     Evaluation Warning : The document was created with Spire.PDF for Python.
I n d o n e s ia n   J   E le c   E n g   &   C o m p   S c i     I SS N :   2 5 0 2 - 4 7 5 2       A   R e a l - t im e   A p p l ic a ti o n   F r a m e w o r k   f o r   S p e e c h   R e c o g n i ti o n   U s i n g   H T T P /2   a n d   S S E   ( K a la m u l la h   R a m li )   1 2 3 3     Fig u r e   4 .   R e a l - ti m e   a p p l ic a tio n   f r a m e w o r k   f o r   s p e e c h   r e c o g n iti o n   u s i n g   H T T P / 2   p lu s   SS E       F i g u r e   4   il l u s tr a te s   th e   r e a l - t im e   a p p lic a ti o n   f r a m e w o r k   u s in g   H T T P/ 2   p lu s   S SE .   T h e   c o m m u n ic a ti o n   b e tw e e n   c lie n a n d   m a s te r - s e r v e r   is   d o n e   b y   H T T P / 2   p r o t o c o i n   c o o p e r a tio n   w i th   Se r v e r - S e n E v e n t s   ( S S E )   o n   a   s in g le   T C c o n n e c ti o n   a s   s h o w n   in   Fi g u r e   4 .   H T T P / 2   m u lt i p l e x e s   tw o   s t r e a m s   c o m in g   f r o m   tw o   H T T P/ 2   r e q u e s t s .   T h e   f ir s r e q u e s i s   s e n t o   a s k   f o r   th e   s p e e c h   r e c o g n it io n   s e r v ic e   f r o m   th e   s e r v e r   a n d   f o r   s e n d in g   th e   s p e e c h   d a ta   to   b e   r e c o g n i z e d .   T h e   s e c o n d   r e q u e s is   s e n f o r   SS E   s e r v ic e   in   o r d e r   to   p u s h   th e   in te r m e d ia r y   r e c o g n it io n   r e s u l ts   f r o m   t h e   s e r v e r   w h ic h   is   c a l le d   h y p o th e s e s .   T h e   u s e r   m a y   s e n d   t h e   s p e e c h   d a t a   i n   a n y   c o n t a i n e r   a n d   d e c o d i n g   i n   a n y   f o r m a ts   s u p p o r t e d   b y   G St r e a m e r ,   i. e . ,   O g g ,   M P 4 ,   S p e e x ,   e tc .   T h e   r e c o g n itio n   r e s u lt s   a r e   s e n t o   th e   c lie n t   i n   J SO N   f o r m a t.   F o r   in te r a c ti o n   w ith   th e   c li e n t,   m a s t e r - s e r v e r   p r o v i d e s   th r e e   h a n d le r s ,   i. e . ,   M a i n H a n d le r ,   H T T P2 C h u n k R e c o g n i z e d H a n d le r   a n d   E v e n t So u r c e .   M a i n H a n d le r   h a n d le s   th e   f ir s r e q u e s o f   th e   c li e n t   in   o r d e r   t o   g e t h e   w e b   p a g e   a n d   o th e r   r e s o u r c e s ,   i. e . ,   s t y l e s h e e t   f i l e s   d a n   ja v a - s c r i p f il e s .   H T T P2 C h u n k R e c o g n iz e d H a n d l e r   m a n a g e s   th e   H T T r e q u e s t   f o r   r e c o g n iti o n   s e r v i c e ,   w h ic h   is   e x e c u te d   b y   a   w o r k e r   a s   b a c k - e n d   p r o c e s s   o n   th e   s e r v e r .   T h e   s p e e c h   d a ta   is   f o r w a r d e d   b y   th e   m a s t e r - s e r v e r   to   th e   w o r k e r .   T o   p e r f o r m   i ts   w o r k ,   t h e   w o r k e r   h a s   s o m e   m o d u le s   n a m e l y   D e c o d e r   P i p e L in e ,   G S t r e a m e r   O n li n e   D e c o d e r   ( p lu g in )   d a n   K a ld ( A S R ) .   Fo r   m u l tip le   r e c o g n iti o n   s e r v i c e s ,   th e   w o r k e r s   a r e   p la c e d   in   a   p o o l.   T h e   m a s t e r - s e r v e r   ta k e s   o n e   o f   th e   a v a ila b le   w o r k e r s   w h e n   c li e n r e q u e s t s   c o n n e c ti o n . .   S im i la r ly   i n   A lu m a e s   a p p li c a t io n ,   e a c h   w o r k e r   is   c o n n e c t e d   w ith   t h e   m a s te r - s e r v e r   in   a   f u ll - d u p le x   c o m m u n i c a tio n   s o   th a th e y   c a n   r u n   e i th e r   i n   a   lo c a h o s t   o r   i n   a   r e m o t e   h o s t.   T h i s   c o m m u n ic a tio n   i s   h a n d l e d   b y   th e   m a s te r - s e r v e r   h a n d le r   c a lle d   W o r k e r S o c k e t H a n d le r .   Fu r t h e r m o r e ,   th e   m a s te r - s e r v e r   u s e s   th e   h a n d le r   o f   E v e n t S o u r c e   f o r   SS E   s e r v ic e .   S i n c e   SS E   r e q u e s i s   s e n t   b y   th e   c li e n t,   h a n d le r   o f   E v e n t S o u r c e   w il g e t h e   e v e n ts   t o   b e   p u b lis h e d   th r o u g h   m o n i to r in g   th e   u p d a te s   in   D a ta So u r c e .   D a ta So u r c e   s t o r e s   t h e   h y p o th e s e s   f r o m   w o r k e r .     2 . 4 .       E x pe r i m e n t   T h e r e   a r e   th r e e   s t e p s   in   im p le m e n ti n g   th e   p r o p o s e d   f r a m e w o r k   in to   th e   A lu m a e s   a p p li c a ti o n p r o v i d i n g   H T T P/2   s e r v e r   s u p p o r in   m a s t e r - s e r v e r p r o v id in g   th r e e   h a n d le r s   in   m a s te r - s e r v e r   ( M a in H a n d l e r ,   H T T P2 C h u n k R e c o g n iz e d H a n d l e r ,   a n d   E v e n t So u r c e ) a n d   p r o v id in g   th e   c l ie n p r o g r a m s   f o r   H T T P/ 2   p lu s   SS E   s u p p o r te d   B r o w s e r s .     F i g u r e   5   s h o w s   a n   e x a m p l e   o f   W e b   p a g e   t h a t   w e   u s e   f o r   th e   e x p e r im e n ts .   I n   t h i s   W e b   p a g e ,   th e r e   a r e   f e a tu r e s   w e   n e e d   to   c o n d u c t   p e r f o r m a n c e   c o m p a r is o n   b e tw e e n   f u ll - d u p le x   a p p lic a ti o n   a n d   H T T P/2   p lu s   SS E   a p p l ic a tio n .   T h o s e   a r e   a u d io   p l a y b a c k b u tt o n s   f o r   s e n d in g ,   th e   r e c o g n iti o n   s e r v i c e   e i th e r   u s in g   H T T P/ 2   p lu s   S SE   o r   W e b S o c k e t;   p a r o f   p a g e   f o r   s p e e c h   d a t a   in f o r m a tio n ,   c o n n e c ti o n   s ta tu s   a n d   s o m e   m e a s u r e m e n t s   f o r   la te n c y ,   c o n n e c ti o n   s p e e d   a n d   r e a l - ti m e - f a c t o r   ( R T F ) ;   a n d   p a r t   o f   p a g e   f o r   p r e s e n ti n g   h y p o th e s e s   a n d   f in a l   r e s u lt   o f   th e   r e c o g n i tio n .     T o   e v a lu a te   w h e th e r   th e   p r o p o s e d   f r a m e w o r k   i s   m o r e   e f f ic i e n t   t h a n   th e   f u ll - d u p le x   f r a m e w o r k   w e   d e v e lo p e d   a n   e x p e r i m e n ta l   e n v ir o n m e n t   b y   u s in g   a n   n s - 3   b a s e d   e m u la ti o n   p la tf o r m   [ 2 5 ] ,   a s   s h o w n   in     F i g u r e   6 .   T h e   e n v i r o n m e n e m p l o y e d   a   n e tw o r k   s i m u la ti o n   th a t   is   a ls o   u s e d   f o r   v a l id a tin g   th e   a n a l y ti c a m o d e l   a n d   e x p la in e d   in   o u r   p r e v i o u s   w o r k   [ 8 ] .   T o   s i m u l a t e   a   r e a l   n e tw o r k   a   ta p   d e v i c e   a n d   a n   n s - 3   ta p   b r id g e   is   e m p lo y e d   i n   th a e n v ir o n m e n t.   T h e   r e a n o d e   o f   c lie n r u n s   o n   th e   v ir tu a l - h o s ( U b u n t u   1 6 . 0 4   L T S )   in   a   v i r tu a l   s y s te m   c o n n e c te d   b y   a   lin u x - b r id g e   to   t h e   ta p   d e v i c e   p r e p a r e d   o n   t h e   l in u x - h o s t .   T h e   ta p   d e v ic e   o f   t h e   c lie n t   is   c o n n e c te d   to   t h e   s im u la te d   n e tw o r k   in   a   T a p B r id g e   U s e B r id g e   m o d e .   M e a n w h il e ,   t h e   r e a n o d e   o f   s e r v e r   r u n s     C l i e n t   W e b   B r o w s e r   C u s t o m i z e d   Ma s t e r   S e r v e r     W o r k e r   P o o l   o f   A l u m a e   ( W o r k e r   1 . . N )     D e c o d e r P i p e L i n e   G s t r e a m e r   O n l i n e   D e c o d e r   ( P l u g i n )   K a l d i   M a i n H a n d l e r   W o r k e r     S o c k e t   H a n d l e r   ( W e b S o c k e t )   H T T P 2 C h u n k   R e c o g n i z e d   H a n d l e r   ( R e q u e s t H a n d l e r )   E v e n t S o u r c e   ( R e q u e s t H a n d l e r )     D a t a   S o u r c e   H T T P / 2     ( r / )   ( i n d e x . h t m l ,   c s s ,   j s )   h t m l   C S S         J S   H T T P / 2   ( r / c l i e n t / h t t p 2 / r e c o g n i z e )   ,   P O S T   s p e e c h   d a t a   H T T P / 2   w i th  S S E   ( r / c l i e n t / h tt p 2   / r e c o g n i z e / e v e n ts )   G E T   e v e n t s   W S S     ( r / w o r k e r / w s s / s p e e c h )   Evaluation Warning : The document was created with Spire.PDF for Python.
                                I S S N :   2 5 0 2 - 4 7 5 2   I n d o n e s ia n   J   E l e c   E n g   &   C o m p   S c i,   V o l.   1 2 ,   N o .   3 ,   D e c e m b e r   2 0 1 8     1 2 3 0     1 2 3 8   1 2 3 4   o n   th e   li n u x - h o s b y   u s in g   a   ta p   d e v ic e   c o n n e c t e d   to   t h e   s im u la te d   n e tw o r k   i n   a   T a p B r i d g e   U s e L o c a l   m o d e .   T h e   d e t a i le d   in f o r m a t io n   a b o u th e   n s - 3   ta p - b r id g e   m o d e s   c a n   b e   f o u n d   in   n s - 3   d o c u m e n ta t io n   [ 2 6 ] .           F ig u r e   5 .   A p p l ic a ti o n   w e b s it e   o f   T C P - b a s e d   s p e e c h   r e c o g n i ti o n           F i g u r e   6 .   E x p e r i m e n t a l   e n v i r o n m e n o n   s im u la te d   n s - 3   n e tw o r k       F u r th e r m o r e ,   th e   e x p e r i m e n ts   a r e   p e r f o r m e d   in   f o u r   s im u la te d   n e tw o r k   s e tt i n g s   t o   o b ta in   v a r io u s   p r o p a g a ti o n   d e la y s   a n d   lo s s   r a te s ,   a s   s h o w n   in   T a b le   1 .   F o r   e a c h   s e t ti n g ,   w e   u s e d   te n   s p e e c h   d a ta   s a m p l e s   o f   E n g li s h   c o n v e r s a ti o n s   ( W A V   f i le s ) .   T h e s e   s a m p l e s   a r e   n o t   li n e a r   s o   t h a th e y   d o   n o h a v e   r e l a ti o n   to   th e   li n e a r i ty   o f   t h e   a p p li c a ti o n   la t e n c ie s   o c c u r r e d .   N e v e r th e le s s ,   t h is   e x p e r i m e n f o c u s e d   o n   th e   c o m p a r is o n   b e tw e e n   tw o   f r a m e w o r k s   ( H T T P / 2   p lu s   S S E   a n d   W e b S o c k e t ) .         N S - 3   Si m u l a t e d   N e t w o r k   n s - 3   t a p   b r i d g e   n s - t a p   b r i d g e   G h o s t   H o s t   G h o s t   H o s t   c s m a     1 0. 3. 1. 0   1 0. 2 . 1 . 0   10 . 1 . 1 . 0   N SR   Se r ve r   (t a p   d e v i c e )   R e a l   H o s t   (L i n u x   h o s t )   N SR   C l i e n t   (t a p   d e v i c e )   R e a l   H o s t   ( L i n u x )   I n   v i r t u a l   b o x   Evaluation Warning : The document was created with Spire.PDF for Python.
I n d o n e s ia n   J   E le c   E n g   &   C o m p   S c i     I SS N :   2 5 0 2 - 4 7 5 2       A   R e a l - t im e   A p p l ic a ti o n   F r a m e w o r k   f o r   S p e e c h   R e c o g n i ti o n   U s i n g   H T T P /2   a n d   S S E   ( K a la m u l la h   R a m li )   1 2 3 5 T a b l e   1 .   Fo u r   p a r a m e te r   s e t tin g s o f   s i m u la t e d   n s - 3   n e t w o r k     S e t   #   o f   S o u r c e s   B o t t l e n e c k   L i n k   P a r a m e t e r   A p p   T C P   H T TP   P . D e l a y   ( m s )   B . w .   ( M b p s )   B u f f e r   ( p k t s )   D e l a y   ( m s )   Lo s s   R a t e   1   9   4 0   4 0   3 . 7   5 0   1 2 0   0 , 4 %   -   0 , 5 %   2   5   3 0   4 0   3 . 7   5 0   1 2 0   0 , 2 %   -   0 , 3 %   3   9   4 0   5   5   1 0 0   5 0   0 , 4 %   -   0 , 5 %   4   5   3 0   5   5   1 0 0   5 0   0 , 2 %   -   0 , 3 %       3 .   R E SU L T S   A N D   D I S C U S SI O N   T h e r e   a r e   tw o   t h i n g s   th a t   m a k e   th e   p r o p o s e d   f r a m e w o r k   is   d if f e r e n f r o m   th e   f u l l - d u p l e x   f r a m e w o r k :   I u s e s   H T T P/ 2   c o o p e r a ti n g   w i th   S SE ;   I ts   c li e n is   im p le m e n te d   in   th e   b r o w s e r   a s   H T M L   a n d   j a v a s c r i p t .     A ll  c o m m u n ic a tio n   a r e   h a n d l e d   u s in g   p r o to c o H T T P/ 2   a n d   t h e   s p e e c h   d a ta   is   s e n b y   b r o w s e r   u s in g   X M L H t tp R e q u e s t   a n d   PO S T   m e th o d .   S i n c e   H T T P /s   i s   a   n e w   p r o to c o a n d   t h e   m o d e r n   b r o w s e r s   s u c h   a s   C h r o m e ,   Fi r e f o x   m a y   n o a l lo w   i to   r u n   w it h o u s e c u r ity   t h e   a p p lic a t io n   o f   th is   f r a m e w o r k   is   u s u a lly   r u n   o n   th e   s e c u r e d   c o m m u n ic a t io n   ( T S L / S S L ,   H T T PS ) .     M e a n w h il e ,   th e   f u ll - d u p le x   f r a m e w o r k   u s in g   W e b S o c k e h a s   f o ll o w i n g   c h a r a c te r s T h e   c li e n t   is   r e a liz e d   in   p y th o n   p r o g r a m   a n d   r u n n in g   in   a   te r m in a l;  W e b S o c k e t   is   n o d e p e n d e n o n   H T T P.   I o n l y   u s e s   H T T f o r   h a n d s h a k in g   t o   g e t   th e   s a m e   c o n n e c tio n   o f   T C P W e b So c k e c o m m u n ic a ti o n   c a n   a l s o   b e   s e c u r e d   b y   u s in g   T S L / S S L   o v e r   W S S.   T h e   r e s u lt s   o f   e a c h   e x p e r im e n s e t tin g s   a r e   d e p i c te d   b y   Fi g u r e   7 .   O v e r a l l,   t h e   m e a s u r e m e n r e s u l ts   s h o w   th a t h e   a p p l ic a tio n   la t e n c ie s   o f   H T T P/ 2   p lu s   SS E   a n d   W e b So c k e a r e   c o m p a r a b le .   T h e   d if f e r e n c e s   a r e   o c c u r r e d   d u e   to   d if f e r e n t   s e tti n g s   in   t h e   p r o p a g a ti o n   d e la y ,   th e   lo s s   r a t e ,   a n d   th e   a v e r a g e   r o u n d - tr ip   tim e ,   a s   s h o w n   in   F ig u r e   8 .   T h e   L o s s   r a te   a n d   th e   r o u n d - t r ip   t i m e   a r e   t h e   m a in   p a r a m e te r s   o f   T C P - d e l a y   f u n c t io n .   B a s e d   o n   th is   c o m p a r a b le   r e s u l th r e e   p o in ts   c o u ld   b e   r e v e a le d   a s   to   w h y   t h e   la te n c y   o f   H T T P/2   p lu s   S SE   is   n o m o r e   e f f ic i e n th a n   W e b S o c k e e v e n   t h o u g h   H T T P / 2   h a s   s o m e   a d v a n ta g e s   to   r e d u c e   th e   l a t e n c i e s .   T h o s e   a r e :   a .   T h e   a p p lic a ti o n   o n l y   m u lt i p l e x e d   tw o   s t r e a m s   tr ig g e r e d   b y   t w o   H T T P / 2   r e q u e s ts ,   i. e . ,   r e q u e s to   th e   s p e e c h   r e c o g n it io n   h a n d le r   a n d   r e q u e s t   t o   S SE   h a n d le r ,   a s   s h o w n   in   F ig u r e   9 .   T h e   m o r e   n u m b e r   o f   s tr e a m s   m u lt ip le x e d   th e   m o r e   e f f i c ie n th e   s y s t e m .   b .   T h e   c o m p r e s s io n   o f   H T T h e a d e r   f ie ld s   b y   H PA C K   ( H e a d e r   C o m p r e s s io n   f o r   H T T P/ 2 )   is   le s s   u s e f u b e c a u s e   th e   e x p e r i m e n t a l   a p p l ic a tio n   d o e s   n o t   u s e   a   la r g e   m e ta - d a ta   a n d   i t   d o e s   n o t   h a v e   c o o k ie s .   T h is   f e a tu r e   w il h a v e   th e   s ig n i f ic a n e f f e c w h e n   th e   a p p l ic a t io n   m u l tip le x e s   m o r e   r e q u e s ts   s o   t h a t   i t   c o m p r e s s e s   m o r e   h e a d e r s   f r o m   th o s e   r e q u e s a n d   p r e v e n ts   t h e   r e p e a t e d   h e a d e r   f ie ld s .       E x p e r i m e n t   R e s u l t s   o f   S e t t i n g   # 1   E x p e r i m e n t   R e s u l t s   o f   S e t t i n g   # 2       E x p e r i m e n t   R e s u l t s   o f   S e t t i n g   # 3   E x p e r i m e n t   R e s u l t s   o f   S e t t i n g   # 4         Fi g u r e   7 .   L a te n c y   o f   A p p lic a t io n   u s in g   H T T P/ 2   p lu s   S S E   v e r s u s   W e b S o c k e t   Evaluation Warning : The document was created with Spire.PDF for Python.
                                I S SN :   2 5 0 2 - 4 7 5 2   I n d o n e s ia n   J   E le c   E n g   &   C o m p   S c i,   V o l.   1 2 ,   N o .   3 ,   D e c e m b e r   2 0 1 8     1 2 3 0     1 2 3 8   1 2 3 6       F ig u r e   8 .   L a te n c ie s   c o m p a r is o n   b e tw e e n   H T T P/ 2   p lu s   SS E   v s .   W e b S o c k e t   in   e a c h   e x p e r i m e n s e tt in g s       c .   T h e   c o m p r e s s io n   o f   H T T h e a d e r   f ie ld s   b y   H PA C K   ( H e a d e r   C o m p r e s s io n   f o r   H T T P/ 2 )   is   le s s   u s e f u b e c a u s e   th e   e x p e r i m e n t a l   a p p l ic a tio n   d o e s   n o t   u s e   a   la r g e   m e ta - d a ta   a n d   i t   d o e s   n o t   h a v e   c o o k ie s .   T h is   f e a tu r e   w il h a v e   th e   s ig n i f ic a n e f f e c w h e n   th e   a p p l ic a t io n   m u l tip le x e s   m o r e   r e q u e s ts   s o   t h a t   i t   c o m p r e s s e s   m o r e   h e a d e r s   f r o m   th o s e   r e q u e s a n d   p r e v e n ts   t h e   r e p e a t e d   h e a d e r   f ie ld s .   L a s t ,   w e   e x a m in e   w h e th e r   t h e   H T T P / 2   p l u s   S SE   f r a m e w o r k   p e r f o r m s   b e tt e r   th a n   W e b So c k e i f   th e   a p p l ic a tio n   r u n s   o v e r   p r o x y   s e r v e r .   A   p r o x y   s e r v e r   S Q U I D   3 . 5 . 1 2   [ 2 7 ]   is   u s e d .           Fi g u r e   9 .   M u lt i p l e x i n g   o f   tw o   s t r e a m s   ( H T T P /2   r e q u e s t - r e s p o n s e   a n d   S e r v e r - Se n E v e n t s )         F i g u r e   1 0   s h o w s   th e   W iF i - L A N   b a s e d   e n v ir o n m e n t   t h a c o n s i s ts   o f   a   c li e n h o s w ith   I P   a d d r e s s 1 9 2 . 1 6 8 . 1 0 0 . 1 0 2 ,   a   p r o x y   h o s w it h   I P   a d d r e s s   1 9 2 . 1 6 8 . 1 0 0 . 1 0 4   a n d   a   s e r v e r .   Pr o x y - s e r v e r   r u n s   o n   p o r 3 1 2 8   w h i l e   th e   s e r v e r   p r o c e e d s   o n   p o r 8 8 8 8 .   T h e   c lie n is   r e p r e s e n te d   b y   G o o g le   C h r o m e   b r o w s e r ,   w h i c h   is   s e to   s e n d   th e   d a ta   o v e r   th e   p r o x y - s e r v e r   w ith   th e   a d d r e s s   1 9 2 . 1 6 8 . 1 0 0 . 1 0 4 :3 1 2 8 .   A ll   e x p e r i m e n t   r u le s   a r e   m a d e   in   t h e   c o n f i g u r a ti o n   f ile   s q u i d . c o n f .   T h e n ,   th e   e x p e r im e n ts   a r e   c o n d u c te d   i n   tw o   s c e n a r io s ,   i. e . ,   r u n n i n g   a p p l ic a tio n   o v e r   th e   s e c u r e d   c o n n e c ti o n   ( H T T P o r   W S S)   a n d   v ia   th e   o r d in a r y   c o n n e c t io n   ( H T T P   o r   W S ) .       6 6 . 0 5 6 7 . 0 3 7 4 . 1 5 7 6 . 3 1 7 8 . 8 3 8 2 . 6 7 8 5 . 6 1 9 0 . 4 3 9 1 . 7 1 1 0 9 . 0 1 0 2 0 4 0 6 0 8 0 1 0 0 1 2 0 1 4 0 1 6 0 s e t t i n g 1 s e t t i n g 2 s e t t i n g 3 s e t t i n g 4 P a n j a n g   P e r c a k a p a n   ( d e t i k ) L a t e n s i   ( d e t i k ) Evaluation Warning : The document was created with Spire.PDF for Python.
I n d o n e s ia n   J   E le c   E n g   &   C o m p   S c i     I SS N :   2 5 0 2 - 4 7 5 2       A   R e a l - t im e   A p p l ic a ti o n   F r a m e w o r k   f o r   S p e e c h   R e c o g n i ti o n   U s i n g   H T T P /2   a n d   S S E   ( K a la m u l la h   R a m li )   1 2 3 7     Fi g u r e   1 0 .   E x p e r i m e n e n v i r o n m e n o n   n e tw o r k   w ith   p r o x y - s e r v e r       T w o   c o n c lu s io n s   c a n   b e   d r a w n   f r o m   th is   p a r tic u la r   e x p e r i m e n t .   W h e n   b o t h   a p p l ic a tio n   u s in g   H T T P/ 2   p lu s   S SE   a n d   u s in g   W e b So c k e a r e   p a s s e d   v i a   SS L / T S L   c o n n e c ti o n   ( H T T P S/ W S S )   th e n   th e   p r o x y   s e r v e r   a ll o w s   t h e i r   tr a f f ic   p a s s   th r o u g h   T C P   tu n n e l,   a n d   n o   p r o x y i n g   o r   c a c h in g   is   n e e d e d .   M e a n w h i l e   w h e n   b o th   a p p l ic a tio n s   r u n   th r o u g h   o t h e r   th a n   S SL / T S L   c o n n e c t io n ,   th e n   th e   W e b S o c k e c o n n e c ti o n   is   b l o c k e d ,   b u t   th e   c o m m u n ic a ti o n   u s i n g   H T T P 1 . 1   p l u s   S SE   s ta y s   c o n n e c te d .   I n   th e   l a tt e r   s c e n a r i o   H T T P/2   is   n o a p p l ic a b l e .       4 .   C O N C L U S I O N     I n   th is   p a p e r ,   w e   p r o p o s e   a   r e a l - ti m e   a p p lic a ti o n   f r a m e w o r k   u s i n g   H T T P /2   p lu s   Se r v e r - S e n t   E v e n t   ( SS E ) .   T h e   e x p e r i m e n t s   a r e   c o n d u c t e d   to   c o m p a r e   th e   la te n c y   o f   t h i s   p r o p o s e d   f r a m e w o r k   a g a in s t   th e   la t e n c y   o f   a   f u ll - d u p le x   a p p lic a ti o n   u s in g   W e b S o c k e t .   T h e   r e s u lts   c o n c lu d e   th a t   th e   la t e n c ie s   f r o m   b o th   f r a m e w o r k s   a r e   c o m p a r a b le .   H o w e v e r ,   b a s e d   o n   th e   a d v a n t a g e s   o f   H T T P/ 2   p r o to c o a n d   a l s o   th e   r e a s o n   t h a t   th e   p r o x y   s e r v e r   b l o c k s   th e   W e b S o c k e c o m m u n ic a tio n   e s p e c ia ll y   in   i d le   s it u a t io n s   o u r   p r o p o s e d   f r a m e w o r k   o f f e r s   b e t te r   a lt e r n a t i v e   f o r   a   r e a l - ti m e   w e b - b a s e d   s p e e c h   r e c o g n it io n   th a n   u s in g   W e b S o c k e t.       A C K N O W L E D G E M E N T S     T h is   a r tic le s   p u b lic a t io n   i s   s u p p o r te d   b y   th e   U n ite d   Sta te s   A g e n c y   f o r   I n te r n a ti o n a D e v e lo p m e n t   ( U S A I D )   th r o u g h   th e   S u s ta i n a b le   H i g h e r   E d u c a ti o n   R e s e a r c h   A l l ia n c e   ( S H E R A )   P r o g r a m   f o r   U n i v e r s i ta s   I n d o n e s ia s   S c i e n t if ic   M o d e li n g ,   A p p li c a t io n ,   R e s e a r c h   a n d   T r a in in g   f o r   C it y - c e n te r e d   I n n o v a tio n   a n d   T e c h n o l o g y   ( S M A R T   C I T Y )   Pr o j e c t,   G r a n # A I D - 4 9 7 - A - 1 6 0 0 0 0 4 ,   Su b - g r a n t   # I I E - 0 0 0 0 0 0 7 8 - U I - 1 .       R E F E R E N C E   [ 1 ]   V a n   S c i v e r   J ,   M a   J Z ,   V a n p o u c k e   F .   I n v e s t i g a t i o n   o f   s p e e c h   r e c o g n i t i o n   o v e r   I P   c h a n n e l s .   I E E E   I n t e r n a t i o n a l   C o n f e r e n c e   o n   A c o u s t i c s ,   S p e e c h ,   a n d   S i g n a l   P r o c e s s i n g   ( I C A S S P ) .   O r l a n d o ,   F l o r i d a ,   U S A .   2 0 0 2 .   [ 2 ]   C a r m o n a   J L .   C o d e d - s p e e c h   r e c o g n i t i o n   o v e r   I P   n e t w o r k s .   D i s e r t a t i o n ,   D p t o .   T e o r i a   d e   l a   S e n a l ,   T e l e m a t i c a   C o m u n i c a c i o n e s ,   U n i v e r s i t y   o f   G r a n a d a ;   2 0 0 9 .   [ 3 ]   S t e v e n s   W R ,   W r i g h t   G R .   T C P / I P   i l l u s t r a t e d .   M a s s a c h u s e t :   A d d i s o n - W e s l e y   P u b .   C o .   1 9 9 4 .   [ 4 ]   B r o s h   E . ,   B a s e t   S A ,   M i s r a   V ,   R u b e n s t e i n   D ,   S c h u l z r i n n e   H .   T h e   D e l a y - F r i e n d l i n e s s   o f   T C P   f o r   R e a l - T i m e   T r a f f i c .   I E E E / A C M   T r a n s a c t i o n s   o n   N e t w o r k i n g .   2 0 1 0 ;   1 8 ( 5 ) :   1 4 7 8 - 1 4 9 1 .   [ 5 ]   W a n g   B ,   K u r o s e   J ,   S h e n o y   P ,   T o w s l e y   D .   M u l t i m e d i a   s t r e a m i n g   v i a   T C P :   A n   a n a l y t i c   p e r f o r m a n c e   s t u d y .   A C M   T r a n s a c t i o n s   o n   M u l t i m e d i a   C o m p u t i n g ,   C o m m u n i c a t i o n s   a n d   A p p l i c a t i o n s .   2 0 0 8 ;   4 ( 2 ) :   1 - 2 2 .   [ 6 ]   J i n y a o   Y ,   M u h l b a u e r   W ,   P l a t t n e r   B .   A n a l y t i c a l   F r a m e w o r k   f o r   I m p r o v i n g   t h e   Q u a l i t y   o f   S t r e a m i n g   O v e r   T C P .   I E E E   T r a n s a c t i o n s   o n   M u l t i m e d i a .   2 0 1 2 ;   1 4 ( 6 ) :   1 5 7 9 - 1 5 9 0 .   [ 7 ]   S o u d e r s   S .   H i g h   P e r f o r m a n c e   W e b   S i t e s .   Q u e u e .   2 0 0 8 ;   6 ( 6 ) :   3 0 - 3 7 .   [ 8 ]   J a r i n   A ,   F a h m i   H ,   S u r y a d i ,   R a m l i   K .   D e v e l o p m e n t   o f   M o d i f i e d   A n a l y t i c a l   M o d e l   f o r   I n v e s t i g a t i n g   A c c e p t a b l e   D e l a y   o f   T C P - B a s e d   S p e e c h   R e c o g n i t i o n .   A d v a n c e d   S c i e n c e   L e t t e r s .   2 0 1 7 ;   2 3 ( 4 ) :   3 6 5 4 - 3 6 5 9 .   [ 9 ]   B r o s h ,   E . ,   B a s e t ,   S .   A . ,   M i s r a ,   V . ,   R u b e n s t e i n ,   D . ,   S c h u l z r i n n e ,   H .   T h e   d e l a y - f r i e n d l i n e s s   o f   T C P   f o r   r e a l - t i m e   t r a f f i c .   I E E E / A C M   T r a n s a c t i o n s   o n   N e t w o r k i n g   ( T O N ) ,   2 0 1 0 ;   1 8 ( 5 ) :   1 4 7 8 - 1 4 9 1 .   [ 1 0 ]   J a r i n ,   A . ,   S u r y a d i ,   S . ,   R a m l i ,   K .   P a c k e t   D e l a y   D i s t r i b u t i o n   M o d e l   f o r   I n v e s t i g a t i n g   D e l a y   o f   N e t w o r k   S p e e c h   R e c o g n i t i o n .   I n d o n e s i a n   J o u r n a l   o f   E l e c t r i c a l   E n g i n e e r i n g   a n d   C o m p u t e r   S c i e n c e .   2 0 1 7 ;   5 ( 1 ) :   1 1 - 1 8 .   [ 1 1 ]   L u b b e r s   P ,   G r e c o   F .   H T M L 5   W e b S o c k e t :   A   Q u a n t u m   L e a p   i n   S c a l a b i l i t y   f o r   t h e   W e b .   W e b s o c k e t   O r g .   2 0 1 0 .   [ 1 2 ]   P i m e n t e l   V ,   N i c k e r s o n   B G .   C o m m u n i c a t i n g   a n d   D i s p l a y i n g   R e a l - T i m e   D a t a   w i t h   W e b S o c k e t .   I E E E   I n t e r n e t   C o m p u t i n g .   2 0 1 2 ;   1 6 ( 4 ) :   4 5 - 5 3 .   [ 1 3 ]   L o r e t o   S ,   S a i n t - A n d r e   P ,   S a l s a n o   S ,   W i l k i n s   G .   K n o w n   i s s u e s   a n d   b e s t   p r a c t i c e s   f o r   t h e   u s e   o f   l o n g   p o l l i n g   a n d   s t r e a m i n g   i n   b i d i r e c t i o n a l   H T T P .   I n t e r n e t   E n g i n e e r i n g   T a s k   F o r c e   ( I E T F ) .   2 0 1 1 ;   R F C   6 2 0 2 .   [ 1 4 ]   F e t t e   I ,   M e l n i k o v   A .   T h e   w e b s o c k e t   p r o t o c o l .   I n t e r n e t   E n g i n e e r i n g   T a s k   F o r c e   ( I E T F ) ,   2 0 1 1 ;   R F C   6 4 5 5 .   [ 1 5 ]   A l u m ä e   T .   F u l l - d u p l e x   S p e e c h - t o - t e x t   S y s t e m   f o r   E s t o n i a n .   I n t e r n a t i o n a l   C o n f e r e n c e   H u m a n   L a n g u a g e   T e c h n o l o g i e s   -   T h e   B a l t i c   P e r s p e c t i v e .   K a u n a s ,   L i t h u a n i a .   2 0 1 4 ;   3 - 1 0 .     I n t e r n e t   P r o x y   S e r v e r     1 9 2 . 1 6 8 . 1 0 0 . 1 0 2   1 9 2 . 1 6 8 . 1 0 0 . 1 0 4 : 3 1 2 8   I n t e r n e t   Br o w s e r     N S R   S e r v e r   W i f i - L A N   1 9 2 . 1 6 8 . 1 0 0 . 1 0 4 : 8 8 8 8   Evaluation Warning : The document was created with Spire.PDF for Python.
                                I S SN :   2 5 0 2 - 4 7 5 2   I n d o n e s ia n   J   E le c   E n g   &   C o m p   S c i,   V o l.   1 2 ,   N o .   3 ,   D e c e m b e r   2 0 1 8     1 2 3 0     1 2 3 8   1 2 3 8   [ 1 6 ]   P o v e y   D ,   G h o s h a l   G ,   B o u l i a n n e   G ,   B u r g e t   L ,   G l e m b e k   O .   T h e   K a l d i   S p e e c h   R e c o g n i t i o n   T o o l k i t .   2 0 1 1 ;   A v a i l a b l e :   h t t p : / / k a l d i . s o u r c e f o r g e . n e t .   [ 1 7 ]   L u b b e r s   P .   H o w   H T M L 5   W e b   S o c k e t s   I n t e r a c t   W i t h   P r o x y   S e r v e r s .   I n f o Q .   2 0 1 0 ;   A v a i l a b l e :   h t t p s : / / w w w . i n f o q . c o m /   a r t i c l e s / W e b - S o c k e t s - P r o x y - S e r v e r s .   [ 1 8 ]   B e l s h e   M ,   P e o n   R ,   T h o m s o n   M .   H y p e r t e x t   T r a n s f e r   P r o t o c o l   v e r s i o n   2   ( H T T P / 2 ) .   I n t e r n e t   E n g i n e e r i n g   T a s k   F o r c e   ( I E T F ) .   2 0 1 5 ;   R F C   7 5 4 0 .   [ 1 9 ]   S t e n b e r g   D .   H T T P 2   e x p l a i n e d .   A C M   S I G C O M M   C o m p u t e r   C o m m u n i c a t i o n   R e v i e w .   2 0 1 4 ;   4 4 ( 3 ) :   1 2 0 - 1 2 8 .   [ 2 0 ]   H i c k s o n   I .   S e r v e r - S e n t   E v e n t s .   W 3 C .   2 0 1 1 ;   A v a i l a b l e :   h t t p s : / / w w w . w 3 . o r g / T R / 2 0 1 1 / W D - e v e n t s o u r c e - 2 0 1 1 0 2 0 8 /   [ 2 1 ]   G r i g o r i k   I .   H i g h   P e r f o r m a n c e   B r o w s e r   N e t w o r k i n g :   W h a t   e v e r y   w e b   d e v e l o p e r   s h o u l d   k n o w   a b o u t   n e t w o r k i n g   a n d   w e b   p e r f o r m a n c e .   O ' R e i l l y   M e d i a .   2 0 1 3 .   [ 2 2 ]   G r i g o r i k   I .   M a k i n g   t h e   w e b   f a s t e r   w i t h   H T T P   2 . 0 .   A C M Q U E U E .   2 0 1 3 ;   5 6 ( 1 2 ) :   4 2 - 4 9 .   [ 2 3 ]   T o r n a d o .   T o r n a d o   W e b   F r a m e w o r k .   2 0 1 6 ;   A v a i l a b l e :   h t t p : / / w w w . t o r n a d o w e b . o r g / e n / s t a b l e /   [ 2 4 ]   G h o s h a l   A ,   P o v e y   D .   T h e   K a l d i   S p e e c h   R e c o g n i t i o n   T o o l k i t .   I E E E   S i g n a l   P r o c e s s i n g   S o c i e t y .   2 0 1 2 .   [ 2 5 ]   R a m l i ,   K . ,   J a r i n ,   A .   N e w   n s - 3 - b a s e d   E m u l a t i o n   P l a t f o r m   f o r   P e r f o r m a n c e   E v a l u a t i o n   o f   T C P - b a s e d   S p e e c h   R e c o g n i t i o n .   I n d o n e s i a n   J o u r n a l   o f   T e c h n o l o g y .   2 0 1 8 ;   9 ( 4 ) :   8 5 2 - 8 6 1 .   [ 2 6 ]   N S - 3   C o n s o r t i u m .   T a p   B r i d g e   M o d e l   [ D e v i c e s ] .   N S - 3   D o c u m e n t a t i o n .   2 0 1 1 ;   A v a i l a b l e :   h t t p s : / / w w w . n s n a m . o r g / d o c s /   r e l e a s e / 3 . 9 / d o x y g e n / g r o u p _ _ _ t a p _ b r i d g e _ m o d e l . h t m l   [ 2 7 ]   S Q U I D .   S q u i d   3 . 5 . 1 2 .   s q u i d - c a c h e   o r g .   2 0 1 5 ;   A v a i l a b l e :   h t t p : / / w w w . s q u i d - c a c h e . o r g /   Evaluation Warning : The document was created with Spire.PDF for Python.