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

    Light-Weight IP (LwIP).ppt

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

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

    Light-Weight IP (LwIP).ppt

    1、Light-Weight IP (LwIP),LwIP Module Outline,A brief primer on TCP/IP and the BF536/7 EMACWhat is LwIP?How to use LwIP in VisualDSP+ and VDK configurationHow to trace and improve performanceSummary,A Brief Primer on the OSI, TCP/IP and BF537 EMAC,ApplicationProtocolTCP/IP StackEMAC Device DriverBF536/

    2、7 EMACPHY Transceiver,Web Server, Ogg Vorbis, Contiki, Theora etc.HTTP, FTP, Telnet etc.lwIP, 3rd PartyEMAC core is providedSMSC LAN83C185, Realtek RTL8201, etc.,Layer 7 (Application)Layers 3, 4, 5 and 6 (Network, Transport, Session & Presentation)Layer 2 (Data Link)Layer 1 (Physical),TCP/IP Stack H

    3、eader Structure,header structure,-,-,-,MAC Header,IP Header,TCP/UDP-Header,DATA,Trailer,data link layer,IP Header,TCP/UDP-Header,DATA,network layer,DATA,TCP-Header,DATA,transport layer,respectively,DATA,application layer,UDP-Header,TCP/IP Stack supports the transport and network layer,Application ru

    4、ns on top of the TCP/IP Stack,ADSP-BF536/7 Ethernet MAC peripheral supports the data link layer,Data Encapsulation,Layer 1 - Physical,Consists of the physical and electrical interface to the network: PHY Transceiver, 10BASE-T connector, 100BASE-TX, switches, and routersPHY transceiver performs elect

    5、rical signal conditioning for transmission over the medium: RJ45 cable4-wire MII and 2-wire RMII Management Interface allows layer 2 devices such as the BF536/7 EMAC to monitor and control PHY operation.,Blackfin Ethernet System Overview,Layer 2 Data Link,Enables functional and procedural aspects of

    6、 network data transfer as well as physical layer error checkingTwo sub-layers on BF536/7 Blackfin processorsEMAC peripheral is Media Access Control (MAC)EMAC device driver is Logical Link Control (LLC),Layer 2 Data Link EMAC Device Driver,Configures / monitors the EMAC peripheral and DMA engine to h

    7、andle the flow of Ethernet frames between memory buffers and the PHYOversees the following core functions: Ethernet address and frame filtering Chained DMA transfers Interrupt management Collision detection,Layers 3-6 TCP/IP,LwIP is included free with VisualDSP+ LwIP The Light-weight IP stack is a m

    8、ulti-threaded TCP/IP implementation using VDK Compliant with the system services model Built into VisualDSP+ See www.sics.se/adam/lwip/ for further information Additional implementations are available from 3rd parties,Layer 7 Application,Contains the session protocol, high-level software application

    9、 and user interfaceLwIP provides an API based on BSD sockets and runs under VDKExample applications running on the ADSP-BF537 EZ-KIT Lite: HTTP server HTTP client for streaming audio (Ogg Vorbis),LwIP Stack - Overall Structure,Consists of three major componentsTCP/IP library itselfInterface library

    10、to the kernel that is being usedDriver library to connect the stack to the Ethernet controllerLwIP protocol suite runs under VDK,LwIP TCP/IP Stack,Kernel Interface,Library,Ethernet,Library,Application,BF537,EMAC,VDK,Folder Structure In VisualDSP+,TCP/IP STACK,Documentation based on html,Examples for

    11、 ADSP-BF537,Host programs and Source Code for the examples,Source Code of the TCP/IP Stack,Driver for ADSP-BF537,LwIP Project Wizard,Generates VDK-based application which uses the stackCan generate an application for the BF537 EZ-KitProvides code needed to initialize and start the stack operatingIf

    12、DHCP is being used, it will also wait until the IP address is obtained,Configuration Plug-In - General Tab,Displays the name of the associated configuration fileAllows you to specify the protocols to be supported by the build stackEliminating a protocol will reduce the size of the stackControls the

    13、level of statistical data that the stack will accumulate,Configuration Plug-In - IP Tab,IP Forward allows forwarding of IP packets across network interfacesIP options allows for optional IP payload dataIP Fragmentation allows for segmenting of packets.IP Reassembly enables re-assembling of fragmente

    14、d packetsSupport for multiple networks,Configuration Plug-In - Network Tab,Optional Static IP support for non-DHCP environmentConfigurable number of buffers to match expected loading on adapterSeparate configurations for multiple netowrks,Configuration Plug-In - TCP/UDP/ARP Tab,Configurable number o

    15、f UDP and TCP connections Configurable number of open socket connectionsConfigurable maximum size of TCP segment supportedConfigurable maximum TCP receive window supportedConfigurable maximum number of address resolution mapping entries supported,Configuration Plugin - Debug Tab,Specify the level of

    16、 debug checking and reporting the stack should provideSpecify which events the stack should provide,Configuration Plugin - Memory Tab,Configurable pool sizes Each frame stored in a linked list of pool buffers Setting pool buffer size too low increases processor overheads Setting pool buffer size too

    17、 high increases memory overheadsConfigurable memory heap size used by stack for non-pool buffer memory requests,BSD Sockets Under LwIP,Good introduction to sockets is Beejs Guide to Network Programming http:/www.ecst.csuchico.edu/beej/guide/net/Core BSD Sockets functions socket() - get socket descri

    18、ptor bind() - associate socket with a port on the local machine connect() - connect to a remote machine listen() - wait for someone to connect to the local machine accept() - acknowledge remote connection attempt and create a new descriptor send() - send data to remote machine recv() - receive data

    19、from remote machine close() - close opened socket,Automatically Generated LwIP Application Template,Default boot thread that initializes LwIP stack and underlying Ethernet MAC and PHY drivers is in lwip_sysboot_threadtype.c (generated by the wizard),void lwip_sysboot_threadtype_RunFunction(void *inP

    20、tr) . . ./ stack initialization. . ./* Add Application Code here */,Example Application,Retrieving data from an HTTP server is as easy as on a UNIX workstation,#define DEST_PORT 80 #define DEST_IP “192.168.0.2”char in_buffer100; int socket_fd; struct sockaddr_in dest_addr; char http_request = “GET /

    21、index.htmlrnrn“; dest_addr.sin_family = AF_INET; dest_addr.sin_port = htons(DEST_PORT); dest_addr.sin_addr.s_addr = inet_addr(DEST_IP);socket_fd = socket(AF_INET, SOCK_STREAM, 0); / open a socketconnect(socket_fd, (struct sockaddr*),Tracing of TCP/IP Stack Activity,Windows application provided to ca

    22、pture and display tracing informationConfigurable number of events to be saved in a circular bufferEvents displayed in real time unless display is pausedContents of trace buffer can be saved to a file or all events can be written to a file in real timeTracing currently only shows sent and received p

    23、ackets,Support for File I/O Over TCP Connections,Sample application showing how to re-direct standard C/C+ I/O over TCP connectionsProvides source for a STDIO device driver to route I/O requests over TCP connectionsWindows server application is also provided to service requestsConsole output displayed in text boxNo user authentication supportedFile access can be restricted to part of the host system,


    注意事项

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




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

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

    收起
    展开