11.07.2015 Views

System Introspection for System Analysis on Mobile Devices

System Introspection for System Analysis on Mobile Devices

System Introspection for System Analysis on Mobile Devices

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

their system clocks with a network time protocol 1 daem<strong>on</strong> running <strong>on</strong> the samelaptop the probe is installed <strong>on</strong>.7.2 Measuring the Different LatenciesTo make a decisi<strong>on</strong> <str<strong>on</strong>g>for</str<strong>on</strong>g> next steps based <strong>on</strong> the data exchanged between theprobe and the client the time between sending and receiving data must bereduced to a minimum. The time delay between sending and receiving iscalled latency.7.2.1 GoalSending data over a network implies several comp<strong>on</strong>ents in the chain of <str<strong>on</strong>g>for</str<strong>on</strong>g>wardingdata (e.g. sending a message over a communicati<strong>on</strong> server to a recipient)Each comp<strong>on</strong>ent c<strong>on</strong>sumes time <str<strong>on</strong>g>for</str<strong>on</strong>g> processing and <str<strong>on</strong>g>for</str<strong>on</strong>g>warding the datawhich makes it obvious that a latency exists <str<strong>on</strong>g>for</str<strong>on</strong>g> exchanging data between theprobe and the client. Due to the fact that the comp<strong>on</strong>ents of the robot offerdifferent in<str<strong>on</strong>g>for</str<strong>on</strong>g>mati<strong>on</strong> values with different frequencies, its important to reducethe latency. The goal of the first evaluati<strong>on</strong> was to measure this latency regardingdifferent payloads and frequencies when exchanging data. Is the latencyhigher if a bigger payload is exchanged? Does a higher frequency increase thelatency or could it be c<strong>on</strong>stant <str<strong>on</strong>g>for</str<strong>on</strong>g> smaller payloads? The following methodwill try to give an answer <strong>on</strong> those questi<strong>on</strong>s.7.2.2 Preparati<strong>on</strong>sFor the test an evaluati<strong>on</strong> comp<strong>on</strong>ent thread was created <strong>on</strong> the probe. Thiscomp<strong>on</strong>ent thread was designed to send messages by c<strong>on</strong>figuring several parametersc<strong>on</strong>cerning the frequency and the payload. For each test <strong>on</strong>e out ofthree patterns can be selected which gets automatically added to each message.Table 7.1 shows the patterns predefined. Also the delay between two messagescan be set which is used to simulate a frequency <str<strong>on</strong>g>for</str<strong>on</strong>g> exchanging data. Settingthis delay to zero will result in a maximum possible frequency due to sendinga message in every step. For the c<strong>on</strong>figurati<strong>on</strong> of each test a simple GUI iscreated and each test can be executed from within this GUI. On the client sidea corresp<strong>on</strong>ding comp<strong>on</strong>ent view <str<strong>on</strong>g>for</str<strong>on</strong>g> receiving the messages is created. Thecomp<strong>on</strong>ent view is capable of storing data by writing data to a logging file <strong>on</strong>the clients file system.1 http://www.webcitati<strong>on</strong>.org/5xCmxgeBb - The Network Time Protocol (NTP)55

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!