Getting Started With NetX NetX™ John Carbone VP Marketing VP, Express Logic, Inc. Renesas Electronics America Inc. © 2014 Renesas Electronics America Inc. All rights reserved. Outline NetX and NetX Duo for RZ/A The Iperf Test Setup for Iperf TCP Tx/Rx UDP Tx/Rx Results 2 2 © 2014 Renesas Electronics America Inc. All rights reserved. Renesas RZ/A CortexA9 Core Ethernet MAC 100mbps 3 © 2014 Renesas Electronics America Inc. All rights reserved. NetX for RZ Express Logic’s NetX™ is a full-featured, IPv4 TCP/IP Stack, with the following protocols 4 Transmission Control Protocol (TCP) ( ) Internet Protocol (IP) User Datagram Protocol (UDP) Address Resolution Protocol (ARP) ( ) Reverse Address Resolution Protocol (RARP) Internet Control Message Protocol (ICMP) Internet Group p Management g Protocol ((IGMP)) © 2014 Renesas Electronics America Inc. All rights reserved. NetX Duo for RZ NetX Duo is an extension of NetX that supports BOTH IPv4 and IPv6 in the same dual-stack. NetX Duo adds the following protocols to NetX: RFC2460: Internet Protocol, Version 6 (IPv6) Specification RFC2461: Neighbor Discovery for IP Version 6 RFC2462: IPv6 Stateless Address Autoconfiguration RFC2464: Transmission of IPv6 Packets over Ethernet Networks RFC4291: Internet Protocol Version 6 (IPv6) Addressing Architecture RFC4443: Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification. Specification IPsec 5 © 2014 Renesas Electronics America Inc. All rights reserved. IPv6 IPv4 uses a 32-bit address, allowing approximately 4.3 billi billion addresses dd IPv6 uses a 128bit address, address allowing 2128, or approximately 3.4×1038 addresses. 6 © 2014 Renesas Electronics America Inc. All rights reserved. NetX/NetX Duo Applications 7 Dynamic Host Configuration Protocol (DHCP) Point-To-Point Protocol (PPP) Domain Name Server (DNS) mDNS and DNS-SD File Transfer Protocol (FTP) Trivial File Transfer Protocol (TFTP) Terminal Emulation (Telnet) BSD Sockets Interface Layer Hypertext transfer Protocol Server (HTTP) Simple Network Management Protocol (SNMP) Simple Mail Transport Protocol (SMTP) P Post Offi Office Protocol-3 P l 3 (POP3) Simple Network Transport Protocol (SNTP) AutoIP Network Address Translation (NAT) © 2014 Renesas Electronics America Inc. All rights reserved. IPsec A protocol suite for securing Internet Protocol (IP) communications by authenticating and encrypting each IP packet of a communication session. IPsec is an end-to-end security scheme operating in the Internet Layer of the Internet Protocol Suite Other Internet security systems in widespread use, such as T Transport t Layer L Security S it (TLS) and d Secure S Shell Sh ll (SSH), (SSH) operate t in the upper layers of the TCP/IP model. IPsec protects any application traffic across an IP network. Applications do not need to be specifically designed to use IPsec. 8 © 2014 Renesas Electronics America Inc. All rights reserved. © 2014, Express Logic, Inc. NetX Duo IPsec NetX Duo IPsec is an optional feature available to NetX Duo. NetX duo IPsec implements both encryption and authentication: The encryption algorithms implemented by NetX Duo IPsec are 3DES and AES. The authentication algorithms implemented by NetX Duo are MD5 and SHA1. The user may supply his/her own security algorithms and easily integrate into NetX Duo IPsec. To establish an IPsec session, user may use IKEv2 (available as part of the IPsec package) to automatically negotiate the session parameters with its peer. 9 © 2014 Renesas Electronics America Inc. All rights reserved. © 2014, Express Logic, Inc. NetX Duo Validation The IPv6 layer is validated using the “IPv6 Core Protocol (Phase 2) Self Test” package available from the IPv6 Ready Organization. The conformance tests used for NetX Duo are Test Specification version 3.8.10 and Self Test Platform version 1.4.9. 10 © 2014 Renesas Electronics America Inc. All rights reserved. NetX Performance “Near Wire-Speed” 90% or better of theoretical hardware capability Requires low overhead TCP/IP Stack How To Measure Speed? 11 Objective j Public Open Source Respected p © 2014 Renesas Electronics America Inc. All rights reserved. Iperf From: http://en.wikipedia.org/wiki/Iperf Iperf is a commonly used network testing tool that can create TCP and UDP data streams and measure the throughput of a network that is carrying them. Iperf is a tool for network performance measurement written in C. Iperf was developed by the Distributed Applications Support Team (DAST) at the National Laboratory for Applied Network Research (NLANR). open-source source software and runs on various platforms Iperf is open including Linux, Unix and Windows. Jperf is a graphical user interface for Iperf 12 © 2014 Renesas Electronics America Inc. All rights reserved. Running Jperf Double-click on the Windows batch file jperf bat This jperf.bat. launches the Jperf IDE, as shown here. Once the Jperf IDE is displayed, the Server Address field must be set to the IP address of the Demonstration target g board. In this example, the target board IP address is 192.2.2.47. 13 © 2014 Renesas Electronics America Inc. All rights reserved. Running The Tests Browse to the target board via a browser on the Jperf host platform. 14 © 2014 Renesas Electronics America Inc. All rights reserved. UDP Transmit The UDP Transmit Test determines the performance of NetX UDP transmission to the host. In this test, the h NetX N X target is the client and the Jperf host is the server. Select Server and UDP in the Jperf IDE. Next, select Run IPerf! to initiate the Iperf server. 15 © 2014 Renesas Electronics America Inc. All rights reserved. Start UDP Transmit Test Now, from the NetX Iperf Demonstation web page, select the Start UDP Transmit Test button to initiate the test. 16 © 2014 Renesas Electronics America Inc. All rights reserved. UDP Transmit We now observe performance statistics in the Jperf IDE, and the web page is updated with the results. 17 © 2014 Renesas Electronics America Inc. All rights reserved. UDP Transmit Results The results show throughput of 90 Mbps 18 © 2014 Renesas Electronics America Inc. All rights reserved. Similarly for UDP Rx, TCP Tx, TCP Rx Performed Live 19 © 2014 Renesas Electronics America Inc. All rights reserved. UDP Receive 20 © 2014 Renesas Electronics America Inc. All rights reserved. TCP Transmit 21 © 2014 Renesas Electronics America Inc. All rights reserved. TCP Receive 22 © 2014 Renesas Electronics America Inc. All rights reserved. Summarized Results TCP TX: 89 Mbps TCP RX: 94 Mbps UDP TX: 90 Mbps UDP RX: 95 Mbps We see that NetX achieves near wire-speed in all 4 modes of operation. 23 © 2014 Renesas Electronics America Inc. All rights reserved. Renesas Electronics America Inc. © 2014 Renesas Electronics America Inc. All rights reserved.