Nástroj pro statistické vyhodnocení průběhu simulace knihovny JSimlib4
Loading...
Date
Authors
ORCID
Advisor
Referee
Mark
A
Journal Title
Journal ISSN
Volume Title
Publisher
Vysoké učení technické v Brně. Fakulta elektrotechniky a komunikačních technologií
Abstract
Táto diplomová práca sa zaoberá analýzou simulácií počítačových sietí. Na simuláciu počítačových sietí sa využíva javovská knižnica JSimlib4, ktorá je jednoduchá, ale robustná knižnica, určená pre tvorbu jednoduchých, ale aj celkom komplexných simulačných modelov. Na analýzu sietí bol navrhnutý štatistický nástroj, ktorý bol realizovaný v programovacom jazyku Java. Aplikácia bola vyvíjaná vo vývojom prostredí EasyEclipse a bola navrhnutá ako aplikácia platformy Eclipse Rich Client Platform. Jedná sa o relatívne novú technológiu, ktorú však kvôli jej priaznivým vlastnostiam využíva čoraz viac vývojárov. Štatistický nástroj je rozdelený na 3 časti: • vytváranie logovacieho súboru, • vytvorenie filtra, • vytvorenie a zobrazenie výstupu. Štatistický nástroj vytvorí záznamy do logovacieho súboru pri každom prenose medzi stanicami. Na prvom riadku tohto súboru je komentár, ktorý popisuje výzor záznamov. Každý záznam obsahuje zdrojovú a ciežovú IP adresu s portom, čas a množstvo prenesených bytov, použitý protokol a nakoniec smer prenosu. Každá položka v riadku je oddelená dvojbodkou. Nástroj dokáže vyhodnotiť prenos medzi stanicami. Na analýzu potrebuje filtračné hodnoty, podža ktorých má analýzu vykonať. Toto filtrovanie môže byť vykonané buď pomocou IP adries alebo názvov staníc. Ďalším spôsobom vytvorenia filtrovania je načítanie týchto údajov z konfiguračného súboru. Po definovaní filtra a spustenia analýzy, štatistický nástroj vytvorí buď diagram alebo súbor na ďalšiu prácu so získanými hodnotami. Najprv program prečíta celý logovací súbor a porovná každú zadanú IP adresu alebo názov porovná s IP adresami alebo názvami v záznamoch logovacieho súboru. V prípade, že nájde vyhovujúci záznam, prečíta celý riadok a pridá počet prenesených bytov a čas do konečného výsledku simulácie. Tento výsledok je potom zobrazený v jednom z podporovaných formátov. Ak aplikácia nájde viac prenosov v rovnakom časovom okamihu, tak spočíta súčet prenesených bytov, ktorý pridá do výsledku. Po prečítaní celého logovacieho súboru a porovnaní každej IP adresy zobrazí výstupný formát na dolnej časti aplikácie. Aplikácia podporuje 2 typy výstupných formátov. Prvým z nich je diagram, ktorý je vytvorený pomocou javovskej knižnice JFreechart a znázorňuje počet prenesených bytov v čase. Na x-ovú os je vynesený čas a na y-ovú počet prenesených bytov. Druhým výstupným formátom je súbor, ktorý umožňuje prácu so získanými hodnotami aj v iných programoch. Tento súbor sa dá načítať v programoch Matlab alebo Octave. V prvom riadku tohto súboru sú uložené časové hodnoty a druhý riadok obsahuje počet prenesených bytov. Na poslednom riadku je príkaz, ktorý vykreslí graf z týchto hodnôt vo vyššie spomenutých programoch.
This master's thesis deals with the analysis of simulation of computer networks. A statistical tool was designed for evaluating a communication between stations in the computer network. JSimlib4 Java library was used for the simulation of computer networks. It is a lightweight but robust simulation library, designed for creating simple or even quite complex simulation models of distributed systems. The Statistical tool was written in Java programming language and developed in an EasyEclipse integrated development environment. It was designed as an Eclipse Rich Client Platform application. Eclipse Rich Client Platform is a relatively new technology, which has a lot of favorable properties. The Statistical tool can be divided into 3 parts: • creating a log file, • creating a filter, • creating/showing an output. The Statistical tool creates records into a log file during every communication between stations. This log file contains a comment on the first line. This comment describes the definition of records. Every record contains 2 IP addresses with the used ports at the beginning of the record, then the time, the amount of bytes, the protocol and the direction of communication. Every item in the record is divided by a colon. The Statistical tool can evaluate a communication between stations. At first, it has to define a filter according to which it will assess the suitable stations. It can be created either by adding IP addresses or names of the stations onto a list on a workbench. Filter can be loaded from a file that already includes these IP addresses and other information too. After defining the filter, the Statistical tool can create either a diagram or a file. At first, the Statistical tool reads the log file line by line and compares the IP addresses, which were added to the filter with the IP addresses in a log file. When the Statistical tool finds a complying IP address, it reads the whole line and adds an amount of bytes defined on that line to the final diagram that is shown after reading the whole log file. In the case of finding 2 or more complying IP addresses that sent the data at the same time, an amount of these transfers is calculated by adding them and this amount is then shown in a diagram. After reading the whole log file a diagram or a file is shown at the bottom of the window. The diagram is created by a Java library JFreechart and it shows the amount of transferred bytes. The x-axis represents the time and the y-axis represents the amount of transferred bytes. The created file is for next work with the calculated data and it can be loaded for example by Matlab or Octave. The first line in the file represents the time for axis x and the second one represents the amount of transferred bytes for axis y. These lines are followed by a command "plot(x,y)" for drawing a diagram.
This master's thesis deals with the analysis of simulation of computer networks. A statistical tool was designed for evaluating a communication between stations in the computer network. JSimlib4 Java library was used for the simulation of computer networks. It is a lightweight but robust simulation library, designed for creating simple or even quite complex simulation models of distributed systems. The Statistical tool was written in Java programming language and developed in an EasyEclipse integrated development environment. It was designed as an Eclipse Rich Client Platform application. Eclipse Rich Client Platform is a relatively new technology, which has a lot of favorable properties. The Statistical tool can be divided into 3 parts: • creating a log file, • creating a filter, • creating/showing an output. The Statistical tool creates records into a log file during every communication between stations. This log file contains a comment on the first line. This comment describes the definition of records. Every record contains 2 IP addresses with the used ports at the beginning of the record, then the time, the amount of bytes, the protocol and the direction of communication. Every item in the record is divided by a colon. The Statistical tool can evaluate a communication between stations. At first, it has to define a filter according to which it will assess the suitable stations. It can be created either by adding IP addresses or names of the stations onto a list on a workbench. Filter can be loaded from a file that already includes these IP addresses and other information too. After defining the filter, the Statistical tool can create either a diagram or a file. At first, the Statistical tool reads the log file line by line and compares the IP addresses, which were added to the filter with the IP addresses in a log file. When the Statistical tool finds a complying IP address, it reads the whole line and adds an amount of bytes defined on that line to the final diagram that is shown after reading the whole log file. In the case of finding 2 or more complying IP addresses that sent the data at the same time, an amount of these transfers is calculated by adding them and this amount is then shown in a diagram. After reading the whole log file a diagram or a file is shown at the bottom of the window. The diagram is created by a Java library JFreechart and it shows the amount of transferred bytes. The x-axis represents the time and the y-axis represents the amount of transferred bytes. The created file is for next work with the calculated data and it can be loaded for example by Matlab or Octave. The first line in the file represents the time for axis x and the second one represents the amount of transferred bytes for axis y. These lines are followed by a command "plot(x,y)" for drawing a diagram.
Description
Citation
PIVODA, Š. Nástroj pro statistické vyhodnocení průběhu simulace knihovny JSimlib4 [online]. Brno: Vysoké učení technické v Brně. Fakulta elektrotechniky a komunikačních technologií. 2009.
Document type
Document version
Date of access to the full text
Language of document
sk
Study field
Telekomunikační a informační technika
Comittee
doc. Ing. Ivan Rampl, CSc. (předseda)
doc. Ing. Martin Medvecký, Ph.D. (místopředseda)
doc. Ing. Anna Přibilová, Ph.D. (člen)
Ing. Ladislav Káňa (člen)
doc. Ing. Radim Burget, Ph.D. (člen)
doc. Ing. Jiří Schimmel, Ph.D. (člen)
prof. Ing. Jaroslav Koton, Ph.D. (člen)
Date of acceptance
2009-06-09
Defence
Co to jsou optimalizované knihovny v Matlabu?
K čemu přesně slouží knihovna JSimlib4?
Result of defence
práce byla úspěšně obhájena
Document licence
Standardní licenční smlouva - přístup k plnému textu bez omezení