面向ATM的虛擬機關(guān)鍵技術(shù)的研究與實現(xiàn)
發(fā)布時間:2018-11-28 16:21
【摘要】:虛擬化技術(shù)可以更好地實現(xiàn)資源的配置與優(yōu)化,其重要性已被越來越多的人所認(rèn)識,正一步步從理論走向?qū)嶋H應(yīng)用。對于開發(fā)ATM軟件的項目來說,程序員的開發(fā)流程是,先在PC機上編寫代碼,然后到ATM實體機上去驗證代碼。要做到為每一位程序員都配備一臺昂貴的ATM實體機用于開發(fā)的想法不現(xiàn)實,往往是一個開發(fā)團隊共同使用少量的幾臺開發(fā)用途的ATM實體機,在ATM實體機上驗證代碼的工作只能是通過排隊的方式來進行,這樣就導(dǎo)致程序員使用大量的時間用于等待。為了解決上述問題,本文提出了基于ATM機的虛擬機方案;通過模擬實裝在AMI(ATM Multiple Innovation)上的各種應(yīng)用程序之間交互和控制的接口從而實現(xiàn)在PC機上能進行應(yīng)用程序的運行與調(diào)試,從而減少在真實機器上的測試,提高開發(fā)效率。論文的主要工作包括: 1.研究了基于WCF技術(shù)的服務(wù)部署方法。WCF技術(shù)的核心思想就是合約(Contract)精神,它規(guī)定這些合約是以接口的方式來實現(xiàn)的。部署WCF通信首先要在服務(wù)器端制定合約。合約制定好了之后,就可以啟動服務(wù)器了,客戶端通過Microsoft SDKs所提供的工具SvcUtil對服務(wù)器端編譯成DLL的合約文件進行處理,就能獲得客戶端調(diào)用的合約文件,通過建立客戶端實例,就能調(diào)用服務(wù)器端的函數(shù),由此WCF技術(shù)就部署好了服務(wù)層。 2.實現(xiàn)了虛擬機同期、非同期處理技術(shù)。在ATM系統(tǒng)中,應(yīng)用層是通過調(diào)用同期函數(shù)來讀取硬件設(shè)備層的函數(shù),例如調(diào)用AsyncOpen函數(shù)就是為了獲得CCAD情報,那么在我們所開發(fā)的ATM虛擬機系統(tǒng)中就要對同期函數(shù)AsyncOpen就行虛擬,在調(diào)用虛擬設(shè)備中間層虛擬函數(shù)AsyncOpen的時候?qū)ζ銫CAD情報進行設(shè)值之后,要求設(shè)定的值能返回給應(yīng)用層。應(yīng)用層通過調(diào)用非同期函數(shù)來對硬件設(shè)備發(fā)布命令,例如調(diào)用BhAsyncStore函數(shù)就是為了向硬件設(shè)備發(fā)布接線的命令,硬件設(shè)備接線好了之后會通過調(diào)用回調(diào)函數(shù)OnBhAsyncStore通知應(yīng)用層,處理完接線操作之后的接線情報,而應(yīng)用層就不用等待硬件設(shè)備的回復(fù)可以完成其他操作。 3.實現(xiàn)了虛擬函數(shù)感應(yīng)要求處理技術(shù)。在ATM系統(tǒng)中,應(yīng)用層通過調(diào)用感應(yīng)要求函數(shù)BhAsyncSense來打開硬件層感應(yīng)的功能,也就是說硬件層能隨時通過調(diào)用回調(diào)函數(shù)OnBhAsyncSense,通知應(yīng)用層,那么在我們所開發(fā)的ATM虛擬及系統(tǒng)中,執(zhí)行完BhAsyncSense函數(shù)之后,用一個事件通知窗體來虛擬硬件層的感應(yīng),事件通知窗體也能夠隨時通過回調(diào)函數(shù)OnBhAsyncSense,通知應(yīng)用層。 4.實現(xiàn)了虛擬調(diào)用函數(shù)的三種模式(手動、自動和默認(rèn))。手動就是每一個虛擬函數(shù)對應(yīng)一個函數(shù)窗體,在這個窗體上對函數(shù)的參數(shù)以及返回值進行設(shè)定,然后將設(shè)定值返回給應(yīng)用層。自動就是每一個虛擬函數(shù)對應(yīng)一個XML文件,在這個文件中,對函數(shù)的參數(shù)進行設(shè)定,在應(yīng)用層調(diào)用的時候,直接將XML文件中讀出的參數(shù)及設(shè)定的返回值返回給應(yīng)用層。默認(rèn)就是每一個虛擬函數(shù)對應(yīng)一個數(shù)據(jù)類文件,在這個數(shù)據(jù)類文件中,對函數(shù)的參數(shù)及返回值進行設(shè)定,在應(yīng)用層調(diào)用的時候,直接新建這個數(shù)據(jù)類的實例,然后將設(shè)定好的參數(shù)及函數(shù)返回值返回給應(yīng)用層。 為了驗證上述工作的可行性和有效性,進行了大量的測試與分析。使用ATM虛擬機系統(tǒng)后,ATM應(yīng)用開發(fā)人員可以在虛擬機上進行調(diào)試,效率大大提升,,而且調(diào)試過程不需要等待,系統(tǒng)運行情況良好。
[Abstract]:Virtualization technology can better realize the configuration and optimization of the resources, the importance of which has been recognized by more and more people, and from the theory to the practical application step by step. For projects that develop ATM software, the programmer's development process is to write code on the PC and then to the ATM entity to verify the code. To make the idea that each programmer is equipped with an expensive ATM entity for development is not a reality, it is often a development team that uses a small number of development-purpose ATM entities, and that the work of the authentication code on the ATM entity can only be done in a queue way, this leads to the programmer's use of a large amount of time for waiting. In order to solve the above problems, a virtual machine scheme based on an ATM is proposed, and the operation and debugging of an application program can be carried out on a PC by simulating an interface which is actually installed between various applications on the AMI (ATM Multiple Innovation) so as to reduce the test on the real machine, and the development efficiency is improved. The main work of the paper includes: 1. Research on the service deployment party based on WCF technology the core idea of the WCF technology is the contract, which provides that the contracts are implemented in an interface. The deployment of WCF communications is first to be made at the server side About. After the contract has been set up, the server can be started. The client can obtain the contract file called by the client through the tool SvcUtil provided by the Microsoft SDKs to process the server-side compiled into the contract file of the DLL. By establishing the client instance, the server-side letter can be called. Number, so WCF technology is deployed Layer. 2. The virtual machine is implemented in the same period, not at the same time in an ATM system, that application lay is a function of reading a layer of a hardware device by call a synchronization function, for example, to call the AsyncOpen function to obtain CCAD information, Line virtual, after calling the virtual function AyncOpen of the virtual device, set the value of its CCAD information, the value that is set to be set can be returned to Application layer. The application layer issues a command to the hardware device by calling the non-synchronization function. For example, the BhAsyncStore function is called to issue the connection command to the hardware device. After the hardware device is wired, the application layer is notified by calling the callback function OnBBAsyncStore, and the connection after the connection operation is processed. line intelligence, while the application layer does not have to wait for a reply from the hardware device to complete it He operates. 3. The virtual function induction is realized. In the ATM system, the application layer opens the function of the hardware layer induction by calling the induction request function BhAyncSense, that is, the hardware layer can call the callback function OnBhagAsyncSense at any time to inform the application layer, then, in the ATM virtual and system we have developed, the implementation of BhAsyncSens after the e-function, an event is used to notify the window of the induction of the virtual hardware layer, and the event notification form can also be at any time through the callback function, OnBhasyncSense, Notifying the application layer. 4. Three modes of virtual calling function (manual, automatic, and default). Manual is that each virtual function corresponds to a function form, the parameters of the function and the return value are set on this form, and the settings are set The value is returned to the application layer. The automatic is that each virtual function corresponds to an XML file. In this file, the parameters of the function are set. When the application layer is called, the parameters and settings read out in the XML file are directly returned The value is returned to the application layer. The default is that each virtual function corresponds to a data class file. In this data class file, the parameter and return value of the function are set. When the application layer is called, it is newly created. an instance of a data class, and then returns the set parameters and functions The value is returned to the application layer. To verify the feasibility and effectiveness of the above work, proceed After using the ATM virtual machine system, the ATM application developer can debug on the virtual machine, the efficiency is greatly improved, and the debugging process does not need to wait
【學(xué)位授予單位】:上海交通大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2013
【分類號】:TP311.52;TP302
本文編號:2363491
[Abstract]:Virtualization technology can better realize the configuration and optimization of the resources, the importance of which has been recognized by more and more people, and from the theory to the practical application step by step. For projects that develop ATM software, the programmer's development process is to write code on the PC and then to the ATM entity to verify the code. To make the idea that each programmer is equipped with an expensive ATM entity for development is not a reality, it is often a development team that uses a small number of development-purpose ATM entities, and that the work of the authentication code on the ATM entity can only be done in a queue way, this leads to the programmer's use of a large amount of time for waiting. In order to solve the above problems, a virtual machine scheme based on an ATM is proposed, and the operation and debugging of an application program can be carried out on a PC by simulating an interface which is actually installed between various applications on the AMI (ATM Multiple Innovation) so as to reduce the test on the real machine, and the development efficiency is improved. The main work of the paper includes: 1. Research on the service deployment party based on WCF technology the core idea of the WCF technology is the contract, which provides that the contracts are implemented in an interface. The deployment of WCF communications is first to be made at the server side About. After the contract has been set up, the server can be started. The client can obtain the contract file called by the client through the tool SvcUtil provided by the Microsoft SDKs to process the server-side compiled into the contract file of the DLL. By establishing the client instance, the server-side letter can be called. Number, so WCF technology is deployed Layer. 2. The virtual machine is implemented in the same period, not at the same time in an ATM system, that application lay is a function of reading a layer of a hardware device by call a synchronization function, for example, to call the AsyncOpen function to obtain CCAD information, Line virtual, after calling the virtual function AyncOpen of the virtual device, set the value of its CCAD information, the value that is set to be set can be returned to Application layer. The application layer issues a command to the hardware device by calling the non-synchronization function. For example, the BhAsyncStore function is called to issue the connection command to the hardware device. After the hardware device is wired, the application layer is notified by calling the callback function OnBBAsyncStore, and the connection after the connection operation is processed. line intelligence, while the application layer does not have to wait for a reply from the hardware device to complete it He operates. 3. The virtual function induction is realized. In the ATM system, the application layer opens the function of the hardware layer induction by calling the induction request function BhAyncSense, that is, the hardware layer can call the callback function OnBhagAsyncSense at any time to inform the application layer, then, in the ATM virtual and system we have developed, the implementation of BhAsyncSens after the e-function, an event is used to notify the window of the induction of the virtual hardware layer, and the event notification form can also be at any time through the callback function, OnBhasyncSense, Notifying the application layer. 4. Three modes of virtual calling function (manual, automatic, and default). Manual is that each virtual function corresponds to a function form, the parameters of the function and the return value are set on this form, and the settings are set The value is returned to the application layer. The automatic is that each virtual function corresponds to an XML file. In this file, the parameters of the function are set. When the application layer is called, the parameters and settings read out in the XML file are directly returned The value is returned to the application layer. The default is that each virtual function corresponds to a data class file. In this data class file, the parameter and return value of the function are set. When the application layer is called, it is newly created. an instance of a data class, and then returns the set parameters and functions The value is returned to the application layer. To verify the feasibility and effectiveness of the above work, proceed After using the ATM virtual machine system, the ATM application developer can debug on the virtual machine, the efficiency is greatly improved, and the debugging process does not need to wait
【學(xué)位授予單位】:上海交通大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2013
【分類號】:TP311.52;TP302
【參考文獻】
相關(guān)碩士學(xué)位論文 前1條
1 楊柳青;硬件虛擬機Xen的研究和性能優(yōu)化[D];浙江大學(xué);2008年
本文編號:2363491
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2363491.html
最近更新
教材專著