Slow Image Deployment via TFTP

Document ID : KB000050225
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

Problem:

  • Image transfer to target machine takes several hours but does complete.

Environment:

  • Problem was first seen deploying a DVD image of a Windows OS to a PXE target. However, this should hold true for all OS image transfers via TFTP.

Cause:

The speed of TFTP transfer is determined by the TFTP blocksize that can be successfully transmitted over the network. The smaller the blocksize the slower the transfer. Therefore, the largest blocksize that can be successfully transmitted will be fastest.

The bootdisk determines the settings for TFTP transfer.

By Default the blocksize is 1456 bytes.

This block size is chosen to fit within a standard MTU in case the boot-server is remote and served by IP forwarders. It is possible to increase the block size for a LAN connected boot-server up to a maximum size of the connected LAN segment. If the packets are routed it is possible for fragmented UDP packets to be dropped or delivered out of order and TFTP's recovery mechanism may not cope with this leading to errors.

Most LAN based networks are capable of handling a blocksize of 65536 bytes without a problem.

Solution:

Edit the mage Prepare System template for WinPE based Bootimages to increase the default blocksize and create a new Boot Image with this template.

Procedure:

  • We will assume Windows PE 2.0 is being used but this can be done for all PE images.

  • The TFTP blocksize is hard coded in an .ini file named sdmpcimg.ini. This file is located in the CA\DSM\osimips\os-template\updates\winpe20\i386\ca-oism directory for Windows PE 2.0 and relative directories for other versions of the bootdisk templates.

  • Open the sdmpcimg.ini file in notepad or another text editor and change the 1456 bytes to 65536 bytes and save the file.

  • Create a new Windows PE 2.0 bootdisk.

  • Use the new bootdisk image and the transfer of the image should be much faster.