ECE Department: University of Massachusetts, Amherst ECE 354 Spring 2009 Lab 3: Transmitting and Receiving Ethernet Packets.

Slides:



Advertisements
Similar presentations
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Advertisements

20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ECE Department: University of Massachusetts, Amherst ECE 354 Lab 3: Transmitting and Receiving Ethernet Packets.
Introduction1-1 message segment datagram frame source application transport network link physical HtHt HnHn HlHl M HtHt HnHn M HtHt M M destination application.
UDP - User Datagram Protocol UDP – User Datagram Protocol Author : Nir Shafrir Reference The TCP/IP Guide - ( Version Version.
Introduction To Networking
ECE Department: University of Massachusetts, Amherst ECE 354 Spring 2006 Lab 2: Capturing and Displaying Digital Image.
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
CS 356 Systems Security Spring Dr. Indrajit Ray
Lecture 8 Modeling & Simulation of Communication Networks.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
Lab 2: Capturing and Displaying Digital Image
Characteristics of Communication Systems
1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 5 Internet Protocol (IP) Basics.
ECE 526 – Network Processing Systems Design Networking: protocols and packet format Chapter 3: D. E. Comer Fall 2008.
Chapter 81 Internet Protocol (IP) Our greatest glory is not in never failing, but in rising up every time we fail. - Ralph Waldo Emerson.
ECE 4110 – Internetwork Programming IP Protocol. 2 * From TCP/IP Protocol Suite, B. A. Forouzan, Prentice Hall Position of IP in TCP/IP Protocol Suite.
Network Layer: Internet Protocol.
Application Block Diagram III. SOFTWARE PLATFORM Figure above shows a network protocol stack for a computer that connects to an Ethernet network and.
Media Access Control (MAC) addresses in the network access layer ▫ Associated w/ network interface card (NIC) ▫ 48 bits or 64 bits IP addresses for the.
ECE Department: University of Massachusetts, Amherst ECE 354 Lab 4: Remote Control of a Digital Camera.
Chapter 9 Hardware Address & Frame Type Identification Hardware address of frame Addressing schemes Ethernet Frame header format.
Chapter 9 Hardware Addressing and Frame Type Identification 1.Delivering and sending packets 2.Hardware addressing: specifying a destination 3. Broadcasting.
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Linux Operations and Administration Chapter Eight Network Communications.
1 12-Jan-16 OSI network layer CCNA Exploration Semester 1 Chapter 5.
Slide #1 CIT 380: Securing Computer Systems TCP/IP.
Internet Protocol Version 4 VersionHeader Length Type of Service Total Length IdentificationFragment Offset Time to LiveProtocolHeader Checksum Source.
1 Figure 3-5: IP Packet Total Length (16 bits) Identification (16 bits) Header Checksum (16 bits) Time to Live (8 bits) Flags Protocol (8 bits) 1=ICMP,
Sem1 - Module 10 Routing Fundamentals and Subnets
UDP: User Datagram Protocol Chapter 12. Introduction Multiple application programs can execute simultaneously on a given computer and can send and receive.
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
© 2003, Cisco Systems, Inc. All rights reserved.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Chapter 5 Network and Transport Layers
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
A quick intro to networking
Introduction to TCP/IP
OSI Protocol Stack Given the post man exemple.
Layered Architectures
Byungchul Park ICMP & ICMPv DPNM Lab. Byungchul Park
Ken Gunnells, Ph.D. - Networking Paul Crigler - Programming
Encapsulation/Decapsulation
Net431:advanced net services
Lectures Computer networking تمرین 3 نمره. پژوهش عملیاتی 2 نمره.
Net 431: ADVANCED COMPUTER NETWORKS
IP Forwarding Relates to Lab 3.
IP Forwarding Relates to Lab 3.
Topic 5: Communication and the Internet
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Data Link Issues Relates to Lab 2.
IP Forwarding Relates to Lab 3.
Chapter 20 Network Layer: Internet Protocol
IP Forwarding Relates to Lab 3.
User Datagram Protocol (UDP)
TCP/IP Protocol Suite: Review
Net 323 D: Networks Protocols
IP Forwarding Relates to Lab 3.
Networking and Network Protocols (Part2)
IP Forwarding Relates to Lab 3.
16EC Computer networks unit II Mr.M.Jagadesh
NET 323D: Networks Protocols
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Transport Layer 9/22/2019.
Presentation transcript:

ECE Department: University of Massachusetts, Amherst ECE 354 Spring 2009 Lab 3: Transmitting and Receiving Ethernet Packets

2 ECE 354 Big Picture Introduction  Transmit and Receive Ethernet packets between two DE2 boards  Implement the 5-layer Internet model  Primarily written in C code  Use a preexisting SOPC system from the DE2_NET project

3 ECE 354 Skills to learn  Understanding previously written code  Using a peripheral device: DM9000A chip  Connect to a device that you did not design: DM9000A Ethernet chip  Internet protocol stack

4 ECE 354 Additional Hardware  Two DE2 boards  Ethernet cable

5 ECE 354 Overview of Lab  Each group should specify the information in Layers 2 through 5 (Link, Network, Transport, and Application)  The payload should be 16 bits selected by 16 switches on the DE2 board and should be displayed on the LEDs of the other DE2 board  Only packets with the correct source MAC, IP, and port addresses should be allowed to update the LEDs  Each group should modify the DM9000A.H file so that the last byte of the MAC address matches their group number  Test protocol compliance by working with another group and using their MAC address as your destination MAC address and your own MAC as the source.

6 ECE 354 Overview of DE2_NET project  Sends a malformed broadcast Ethernet packet  Important files: hello_led.c, DM9000A.c, and DM9000A.h  Three functions to control DM9000A chip DM9000_init(); TransmitPacket(TXT, length); ReceivePacket(RXT, &length);  Copy the DE2_NET and fixpaths from the DE2 CD  Switch the workspace and select the directory that you saved DE2_NET in  If running two boards on the same computer, make two folders with each holding a copy of the DE2_NET project

7 ECE 354 The Internet protocol stack  Consists of 5 layers: Application, Transport, Network, Link, and Physical layer  A majority of you have learned about these layers in Computer Networking course

8 ECE 354 Layers you will use  Create an Application Layer (5) message by using the sixteen switches on the DE2 board  Encapsulate the message into segment at the Transport Layer (4)  Encapsulate the segment in a datagram at the Network Layer (3)  Encapsulate the datagram in a frame at the Link Layer (2)  The frame will be sent over the Physical Layer (1)

9 ECE 354 User Datagram Protocol (UDP) – Layer 4 (Transport Layer)  The Application Data will be encapsulated within a UDP segment  The Segment Header includes the Source Port, Destination Port, Length of Segment, and Checksum (2 bytes each, total of 8 bytes)  The Source and Destination Port numbers can be determined by the user, but the Length and Checksum will have to be calculated

10 ECE 354 The Network Layer (3) - IPv4  The Segment from the Transport Layer will be encapsulated within an IPv4 Datagram  Dominant network layer protocol on the internet  Data-oriented protocol to be used on a packet switched network, such as Ethernet  Note about Checksums: Begin by first setting the checksum field of the header to zero. Checksums involve the one’s compliment addition operation. In C take the one’s compliment of a number A by: unsigned int complimentA = ~A

11 ECE 354 IPv4 packet structure  Packet consists of two sections:  The parts of each section that you will use in the is lab are:  Version: IP packet version (4)  Header length (between 5 and 15)  Total Length (size of datagram) header and data  Identification: uniquely identifying fragments  Header checksum  Source and Destination address  Data

12 ECE 354 Link Layer (2) – Ethernet Frame  The Datagram from the Network Layer is encapsulated within an Ethernet Frame  The Destination and Source MAC addresses should be set to uniquely identify each DE2 board  Extra credit will be awarded if you perform CRC Checksum, otherwise set it to a value of zero

13 ECE 354 The Physical Layer (1)  Refers to the network hardware or physical cabling  Provides the means of transmitting raw bits  You can also use a loopback (included with kit) to send packets back your own board

14 ECE 354 What to demonstrate  Display data payload on the red binary LEDs  Display the number of packets transmitted on the seven segment display  Only packets with the correct source MAC address, IP address, and port address should be displayed

15 ECE 354 Where does this project lead?  The next Lab (number 4) will put Lab 2 and Lab 3 together  Implement a reliable system

16 ECE 354 References  The two documents located at DE2_System\Datasheets\Ethernet  DE2_NET project  Information about the Internet protocol stack can be found here:

17 ECE 354 Comments and/or Questions