Wireshark Lab Solution: DHCP

Similar documents
HOST AUTO CONFIGURATION (BOOTP, DHCP)

Dynamic Host Configuration Protocol (DHCP) 02 NAT and DHCP Tópicos Avançados de Redes

A DHCP Primer. Dario Laverde, 2002 Dario Laverde

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

How To Manage Address Management In Ip Networks (Netware)

Application Protocols for TCP/IP Administration

Transport and Network Layer

Chapter 4 Network Layer

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

DHCP Server. Heng Sovannarith

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

CS 43: Computer Networks IP. Kevin Webb Swarthmore College November 5, 2013

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

ICS 351: Today's plan

Investigation of DHCP Packets using Wireshark

The IP Transmission Process. V1.4: Geoff Bennett

Internet Control Protocols Reading: Chapter 3

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

DHCP, ICMP, IPv6. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley DHCP. DHCP UDP IP Eth Phy

Computer Networks I Laboratory Exercise 1

Introduction to Analyzer and the ARP protocol

Lab 5-5 Configuring the Cisco IOS DHCP Server

RARP: Reverse Address Resolution Protocol

Technical Support Information Belkin internal use only

Network layer" 1DT066! Distributed Information Systems!! Chapter 4" Network Layer!! goals: "

What is VLAN Routing?

How do I get to

Ethernet. Ethernet. Network Devices

NETGEAR ProSAFE WC9500 High Capacity Wireless Controller

Workstation ARP. Objective. Background / Preparation

BASIC ANALYSIS OF TCP/IP NETWORKS

Network Layer: and Multicasting Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

IP address format: Dotted decimal notation:

8.2 The Internet Protocol

SUPPORT DE COURS. Dr. Omari Mohammed Maître de Conférences Classe A Université d Adrar Courriel : omarinmt@gmail.com

Internet Protocol Address

Network Layer IPv4. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

Internetworking and Internet-1. Global Addresses

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

IPv6 Associated Protocols

Computer Networks. Introduc)on to Naming, Addressing, and Rou)ng. Week 09. College of Information Science and Engineering Ritsumeikan University

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

Network-Oriented Software Development. Course: CSc4360/CSc6360 Instructor: Dr. Beyah Sessions: M-W, 3:00 4:40pm Lecture 2

IP addresses have hierarchy (network & subnet) Internet names (FQDNs) also have hierarchy. and of course there can be sub-sub-!!

2. What is the maximum value of each octet in an IP address? A. 28 B. 255 C. 256 D. None of the above

IP Addressing and Subnetting. 2002, Cisco Systems, Inc. All rights reserved.

Internetworking. Problem: There is more than one network (heterogeneity & scale)

Date 07/05/ :20:22. CENTREL Solutions. Author. Version Product XIA Configuration Server [ ]

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

CS 326e F2002 Lab 1. Basic Network Setup & Ethereal Time: 2 hrs

IP - The Internet Protocol

IP Routing Features. Contents

This Lecture. The Internet and Sockets. The Start If everyone just sends a small packet of data, they can all use the line at the same.

SonicWALL DHCP Server Enhancements in SonicOS Enhanced 4.0

Final for ECE374 05/06/13 Solution!!

Lecture 8. IP Fundamentals

CSIS CSIS 3230 Spring Networking, its all about the apps! Apps on the Edge. Application Architectures. Pure P2P Architecture

Scaling the Network: Subnetting and Other Protocols. Networking CS 3470, Section 1

Computer Networks/DV2 Lab

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

Unix System Administration

Topic 7 DHCP and NAT. Networking BAsics.

Internet Working 5 th lecture. Chair of Communication Systems Department of Applied Sciences University of Freiburg 2004

Networking Test 4 Study Guide

CS 348: Computer Networks. - IP addressing; 21 st Aug Instructor: Sridhar Iyer IIT Bombay

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

Network Security TCP/IP Refresher

Lab 2. CS-335a. Fall 2012 Computer Science Department. Manolis Surligas

Migrating a Campus Network: Flat to Routed

TCP/IP Networking Terms you ll need to understand: Techniques you ll need to master:

UPPER LAYER SWITCHING

Internetworking Microsoft TCP/IP on Microsoft Windows NT 4.0

Mobile IP. Bheemarjuna Reddy Tamma IIT Hyderabad. Source: Slides of Charlie Perkins and Geert Heijenk on Mobile IP

First Workshop on Open Source and Internet Technology for Scientific Environment: with case studies from Environmental Monitoring

PART IV. Network Layer

Lab PC Network TCP/IP Configuration

Lecture Computer Networks

ICS 351: Today's plan. IP addresses Network Address Translation Dynamic Host Configuration Protocol Small Office / Home Office configuration

CSE 127: Computer Security. Network Security. Kirill Levchenko

04 Internet Protocol (IP)

Introduction to Network Security Lab 1 - Wireshark

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Catalyst Layer 3 Switch for Wake On LAN Support Across VLANs Configuration Example

Hands On Activities: TCP/IP Network Monitoring and Management

Grandstream Networks, Inc. DHCP Options Guide

Lab 7.1.9b Introduction to Fluke Protocol Inspector

VXLAN: Scaling Data Center Capacity. White Paper

CCNA Discovery Networking for Homes and Small Businesses Student Packet Tracer Lab Manual

Understanding and Configuring NAT Tech Note PAN-OS 4.1

20-CS X Network Security Spring, An Introduction To. Network Security. Week 1. January 7

Network Layer: Address Mapping, Error Reporting, and Multicasting

We will give some overview of firewalls. Figure 1 explains the position of a firewall. Figure 1: A Firewall

The Wireless Network Road Trip

2. IP Networks, IP Hosts and IP Ports

The internetworking solution of the Internet. Single networks. The Internet approach to internetworking. Protocol stacks in the Internet

Transcription:

Wireshark Lab Solution: DHCP

1. DHCP messages are sent over UDP (User Datagram Protocol). Frame 2 (342 bytes on wire, 342 bytes captured) Source port: bootpc (68) Destination port: bootps (67) Length: 308 Checksum: 0xd1a1 [correct] 2. The port numbers are the same as the example in the Lab. 3. The Link Layer address of my workstation is: 00:90:4b:69:dd:34 Frame 1 (342 bytes on wire, 342 bytes captured) Ethernet II, Src: 192.168.243.92 (00:90:4b:69:dd:34), Dst: Broadcast (ff:ff:ff:ff:ff:ff) Destination: Broadcast (ff:ff:ff:ff:ff:ff) Source: 192.168.243.92 (00:90:4b:69:dd:34) Type: IP (0x0800)

4. The values which differentiate the Discover message from the Request message are in Option 53: DHCP Message Type. Frame 1 (342 bytes on wire, 342 bytes captured) Message type: Boot Request (1) Your (client) IP address: 0.0.0.0 (0.0.0.0) Option 53: DHCP Message Type = DHCP Discover Option 116: DHCP Auto-Configuration (1 bytes) Option 61: Client identifier Option 50: Requested IP Address = 192.168.243.92 Option 12: Host Name = "homelt" Option 60: Vendor class identifier = "MSFT 5.0" Option 55: Parameter Request List Padding Frame 3 (350 bytes on wire, 350 bytes captured) Message type: Boot Request (1) Your (client) IP address: 0.0.0.0 (0.0.0.0) Option 53: DHCP Message Type = DHCP Request Option 61: Client identifier Option 50: Requested IP Address = 192.168.243.92 Option 12: Host Name = "homelt" Option 81: FQDN Option 60: Vendor class identifier = "MSFT 5.0" Option 55: Parameter Request List

5. The value of the Transaction ID is 0xe6746a7d. The second Transaction ID is 0xe4eff25f. A Transaction ID is used so that the DHCP server can differentiate between client requests during the request process. No. Time Source Destination Protocol Info 3 5.000175 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xe6746a7d 27 12.075229 192.168.243.92 192.168.243.1 DHCP DHCP Request - Transaction ID 0xe4eff25f 6. The DHCP client and server both use 255.255.255.255 as the destination address. The client uses source IP address 0.0.0.0, while the server uses its actual IP address as the source. No. Time Source Destination Protocol Info 1 0.000000 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xe6746a7d 2 0.020995 192.168.243.1 255.255.255.255 DHCP DHCP Offer - Transaction ID 0xe6746a7d 3 0.021346 0.0.0.0 255.255.255.255 DHCP DHCP Request - Transaction ID 0xe6746a7d 4 0.124018 192.168.243.1 255.255.255.255 DHCP DHCP ACK - Transaction ID 0xe6746a7d 7. The IP address of the DHCP server is 192.168.243.1 No. Time Source Destination Protocol Info 4 0.124018 192.168.243.1 255.255.255.255 DHCP DHCP ACK - Transaction ID 0xe6746a7d 8. The DHCP server offered the IP address 192.168.243.92 to my client machine. The DHCP message with DHCP Message Type = DHCP Offer contained the offered IP. Frame 2 (590 bytes on wire, 590 bytes captured) Option 53: DHCP Message Type = DHCP Offer Padding

9. The Relay agent IP address is 0.0.0.0, which indicates that there is no DHCP Relay used. There was no Relay Agent used in my experiment. Frame 4 (590 bytes on wire, 590 bytes captured) 0............ = Broadcast flag: Unicast.000 0000 0000 0000 = Reserved flags: 0x0000 Option 53: DHCP Message Type = DHCP ACK Option 3: Router = 192.168.243.1 10. The router line indicates to the client what its default gateway should be. The subnet mask line tells the client which subnet mask it should use. Frame 4 (590 bytes on wire, 590 bytes captured) 0............ = Broadcast flag: Unicast.000 0000 0000 0000 = Reserved flags: 0x0000 Option 53: DHCP Message Type = DHCP ACK Option 3: Router = 192.168.243.1

11. In my experiment, the host requests the offered IP address in the DHCP Request message. Frame 3 (350 bytes on wire, 350 bytes captured) Message type: Boot Request (1) Your (client) IP address: 0.0.0.0 (0.0.0.0) Option 53: DHCP Message Type = DHCP Request Option 61: Client identifier Option 50: Requested IP Address = 192.168.243.92 Option 12: Host Name = "homelt" Option 81: FQDN Option 60: Vendor class identifier = "MSFT 5.0" Option 55: Parameter Request List 12. The lease time is the amount of time the DHCP server assigns an IP address to a client. During the lease time, the DHCP server will not assign the IP given to the client to another client, unless it is released by the client. Once the lease time has expired, the IP address can be reused by the DHCP server to give to another client. In my experiment, the lease time is 3 days. Frame 4 (590 bytes on wire, 590 bytes captured) Option 53: DHCP Message Type = DHCP ACK Option 3: Router = 192.168.243.1

13. The client sends a DHCP Release message to cancel its lease on the IP address given to it by the DHCP server. The DHCP server does not send a message back to the client acknowledging the DHCP Release message. If the DHCP Release message from the client is lost, the DHCP server would have to wait until the lease period is over for that IP address until it could reuse it for another client. 14. Yes, there are ARP requests made by the DHCP server. Before offering an IP address to a client, the DHCP server issues an ARP request for the offered IP to make sure the IP address is not already in use by another workstation. Frame 2 (60 bytes on wire, 60 bytes captured) Address Resolution Protocol (request) (0x0001) Protocol type: IP (0x0800) Hardware size: 6 Protocol size: 4 Opcode: request (0x0001) Sender MAC address: 192.168.243.1 (00:08:da:50:49:c5) Sender IP address: 192.168.243.1 (192.168.243.1) Target MAC address: 00:00:00_00:00:00 (00:00:00:00:00:00) Target IP address: 192.168.243.92 (192.168.243.92)