欢迎来到麦多课文档分享! | 帮助中心 海量文档,免费浏览,给你所需,享你所想!
麦多课文档分享
全部分类
  • 标准规范>
  • 教学课件>
  • 考试资料>
  • 办公文档>
  • 学术论文>
  • 行业资料>
  • 易语言源码>
  • ImageVerifierCode 换一换
    首页 麦多课文档分享 > 资源分类 > PPT文档下载
    分享到微信 分享到微博 分享到QQ空间

    The Layered Protocol Wrappers Exercise-Network Data .ppt

    • 资源ID:373298       资源大小:426KB        全文页数:31页
    • 资源格式: PPT        下载积分:2000积分
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    二维码
    微信扫一扫登录
    下载资源需要2000积分(如需开发票,请勿充值!)
    邮箱/手机:
    温馨提示:
    如需开发票,请勿充值!快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如需开发票,请勿充值!如填写123,账号就是123,密码也是123。
    支付方式: 支付宝扫码支付    微信扫码支付   
    验证码:   换一换

    加入VIP,交流精品资源
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    The Layered Protocol Wrappers Exercise-Network Data .ppt

    1、The Layered Protocol Wrappers Exercise: Network Data Encryption / Decryption Using ROT13 Algorithm,Henry FuWashington University Applied Research LabSupported by: NSF ANI-0096052 and Xilinx Corp.http:/www.arl.wustl.edu/arl/projects/fpx/fpx_kcpsm/ hwf1arl.wustl.edu,The Layered Protocol Wrappers Exerc

    2、ise,Network data encryption / decryption using ROT13 algorithm Rotates characters by 13 places A N, M Z, a n, m z Encryption Example: Hello World encrypts to Uryyb Jbeyq Decryption Example: Uryyb Jbeyq decrypts to Hello World,Approach to the ROT13 Algorithm,Consider the following four cases IF (ch =

    3、 A) & (ch = N) & (ch = a) & (ch = n) & (ch = z) Rotate “Left” ch by 13 characters,The ROT13 Module Package,The ROT13 Module Package Detailed information on the Internet: http:/www.arl.wustl.edu/arl/projects/fpx/fpx_kcpsm/ Download the ROT13 Module Package Right click on ROT13.tar.gz Save it to h: Ex

    4、tract the ROT13 Module Package Open a cygwin window cd /cygdrive/h/ gunzip ROT13.tar.gz tar xvf ROT13.tar,The ROT13 Module Package (More),The ROT13 Module Package includes ROT13/sim/ Modelsim simulation directory ROT13/syn/ Synplicity, Xinlinx backend synthesis directory ROT13/vhdl/ VHDL source dire

    5、ctory ROT13/wrappers/ Layered Protocol Wrappers package directory,The ROT13 Module Framework,The ROT13 Module (“module.vhd”) is based on the ExampleApp Module Instantiate the UDP Wrapper Instantiate the ROT13 Application (“rot13app.vhd”) Instantiate the UDPEcho entity Instantiate four parallel ROT13

    6、 entity (“rot13.vhd”) D_MOD_IN is 32-bit data bus, but we need to encrypt on a character boundary (8-bit data),Overview of the ROT13 Application,The ROT13 Entity,The ROT13 encrypts / decrypts the characters stored in the UDP payload Implement a state machine that steps through the ATM Cells Looks fo

    7、r the start of the ATM Cell (SOF) Looks for the start of the UDP Datagram (SOD) Looks for the start of the UDP Payload Encrypts the UDP Payload with the ROT13 algorithm when there are valid data Looks for the end of the ATM Cell (EOF),State Diagram of the ROT13 State Machine,IDLE,REQ,REQ2,UDPPayload

    8、,IF DataEn = 1 then Encrypts / Decrypts Payload,VHDL Process of the ROT13 State Machine,type StateType is (Idle, Req1, Req2, UDPPayload); - states signal state, nx_state : StateType; - current and new statestate_machine: process (Reset_l, state, sof_in, dataen_in, eof_in, sod_in, data_in)variable tm

    9、p_state : StateType; - new statevariable tmp_data : UNSIGNED (7 downto 0);begin - process state_machine- default valuetmp_state := state;tmp_data := UNSIGNED (data_in);- details of state machine goes here- set statenx_state = tmp_state;data_out = std_logic_vector (tmp_data);dataen_out = dataen_in;so

    10、f_out = sof_in;eof_out = eof_in;sod_out = sod_in;end process state_machine;,Simulating the ROT13 Module,Modelsim is used to simulate the ROT13 Go to the sim directory and create the input file cd ROT13/sim/ cp HELLO.DAT INPUT_CELLS.DAT Compile the module and start Modelsim Make compile Make sim In M

    11、odelsim main window, type: do testbench.do run 3000,Simulating the ROT13 Module (More),The input data coming into the module,Simulating the ROT13 Module (More),The output data going out of the module,Error Handling by the Protocol Wrappers,What happens if the incoming data is not an UDP Datagram? If

    12、 the incoming data is an ATM cell Frame Processor drops the cell If the incoming data is an AAL5 frame IP Processor drops the cell If the incoming data is an IP packet UDP Processor does not assert the SOD signal Application only needs to handle the last case,State Diagram of the New State Machine,I

    13、DLE,REQ,REQ2,UDPPayload,IF DataEn = 1 then Encrypts / Decrypts Payload,Simulating the new ROT13,Modify the ROT13 entity to handle this case Simulate the updated ROT13 entity Go to the sim directory and create the IPv4 file cd ROT13/sim/ cp IPv4.DAT INPUT_CELLS.DAT Compile the module in Cygwin Bash S

    14、hell Make compile In Modelsim main window, type: restart -f run 3000,Simulating the new ROT13 (More),The IPv4 input data coming into the module,Simulating the new ROT13 (More),The IPv4 output data going out of the module,Synthesizing the ROT13 Module,Synplicity is used to synthesize the ROT13 Go to

    15、the synthesis directory cd ROT13/syn/ Start Synplicity make syn,Synthesizing the ROT13 Module (More),Files that are included in the project,Synthesizing the ROT13 Module (More),Click to change implementation option,Implementation Options for the ROT13,Implementation Options for the ROT13,Implementat

    16、ion Options for the ROT13,Implementation Options for the ROT13,Running the Implementation,Click to run implementation,Synthesizing with Xilinx Backend Tools,Xilinx backend tools are used to perform backend synthesis on the ROT13 module Go to the implementation directory cd ROT13/syn/rad-xcve1000/ St

    17、art Xilinx backend script ./build,Contents of the Xilinx Backend Script,Xilinx Backend Script NGDBUILD Translates and merges the various source files of a design into a single “NGD“ design database. NGD2VHDL Translates an NGD file (NGDBUILD output) into an VHDL simulation netlist which is intended f

    18、or post-synthesis simulation,Contents of the Xilinx Backend Script,MAP Maps the logic gates of the NGD file (NGD output) into the CLBs and IOBs of the physical device, and writes out this physical design to an NCD file PAR Places and routes a designs logic components contained within an NCD file (MA

    19、P output) based on the layout and timing requirements specified within the Physical Constraints File (PCF),Contents of the Xilinx Backend Script,BITGEN Creates the configuration (BIT) file based on the contents of a physical implementation file (NCD) and defines the behavior of the programmed FPGAng

    20、dbuild -p xcv1000e-7-fg680 rad_loopback -uc rad_loopback.ucfngd2vhdl -w rad_loopback.ngd rad_loopback_sim.vhdmap -p xcv1000e-7-fg680 -o top.ncd rad_loopback.ngd rad_loopback.pcfpar -w -ol 2 top.ncd rad_loopback.ncd rad_loopback.pcfbitgen rad_loopback.ncd -b -l -w -f bitgen.ut,Conclusion,In this ROT13 Module Exercise Implement a network module using the Layered Protocol Wrappers Simulate the module using Module Examine the generated input / output control signals and various levels of data processing Handle special error case Synthesize the ROT13 Module,


    注意事项

    本文(The Layered Protocol Wrappers Exercise-Network Data .ppt)为本站会员(roleaisle130)主动上传,麦多课文档分享仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知麦多课文档分享(点击联系客服),我们立即给予删除!




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1 

    收起
    展开