Page 96 / 998 Scroll up to view Page 91 - 95
Software update
SwUpdate module
iMG/RG Software Reference Manual (System Configuration)
1-64
It then connects to the FTP/TFTP server and retrieves a file named MD5SUM from the directory defined by the
path parameter (and eventually by the MAC parameter). This file contains a list of all files available on the
server, with the corresponding MD5 value that the
SwUpdate
module must retrieve from the FTP server.
It compares the MD5SUM file downloaded from the server with the local MD5 file calculated on the current
flash file system.
For each file in the MD5SUM file that differ from the list in the local MD5 file or it not present, the
SwUpdate
retrieves it from the FT/TFTP server.
When all the files have been downloaded, they are saved permanently into the gateway file-system and the gate-
way is restarted. The next time it starts, the gateway will use the new files.
Non-existing times, such as ‘missing hours’ during daylight savings conversion, will never match, causing
SwUp-
date
scheduled during the ‘missing times’ not to be started.
1.4.3.2 Retry Period scheduling
If
SwUpdate
fails a download, it reschedules the next request using the retry-period timeout.
The retry-period timeout specifies the Maximum time within the
SwUpdate
will reschedule the next request.
The exact time when the
SwUpdate
will perform the next request is randomly selected between 15secs and
the retry-period timeout. This computation is performed every time
SwUpdate
fails and a new request must be
scheduled.
When the download finishes successfully,
SwUpdate
is rescheduled using the start timetable. If the current time
is in the time window between two consecutive start and stop time, the
SwUpdate
suspends any download.
The start time has precedence over the
Retry Period
schedule. If the start time happens while the
Retry Period
is running,
SwUpdate
starts immediately the download and only if it fails, it will reschedule the download.
1.4.3.3 Stop Time scheduling
It is possible stop
SwUpdate
at any minute/hour/day/week of the year.
Stop time is typically used when
SwUpdate
fails a download and as result a new request has been scheduled
prior to the next start time.
To prevent continuous re-transmissions, stop time forces the
SwUpdate
to stop any scheduled retry during
specific (configurable) time of day or day of week.
SwUpdate
will be active only in timeslots defined by two consecutive start and stop times.
The time period between a stop time and the consecutive start time is the inactive (idle) period where
SwUp-
date
does NOT contacts any server.
If the retry-period timer was running before the stop time, this timer is stopped when the local time match the
stop time.
Page 97 / 998
SwUpdate module
Software update
1-65
iMG/RG Software Reference Manual (System Configuration)
FIGURE 1-8
SwUpdate
scheduling example 1
Figure 1-8
above shows a schedule example where the
SwUpdate
is started every day of the week at hours 0,
6, 12 and is stopped after 4 hours from each start time.
The following figure (
Figure 1-9
) shows a schedule example where the
SwUpdate
is started every day of the
week at hours 0, 6, 12 and is stopped in specific time of the day.
It the stop time is set inside an idle period,
SwUpdate
stay in the inactive state waiting for the next start time.
minute
hours
day-of-month
month
day-of-week
00:00
04:00
Start Time 0
0, 6, 12
x
x
x
minute
hours
day-of-month
month
day-of-week
Stop Time 0
4, 10, 16
x
x
x
06:00
10:00
12:00
16:00
00:00
Monday
Thursday
00:00
Fall
Fall
Fall
Fall
04:00
06:00
random (15 secs -
Retry-Period
)
Page 98 / 998
Software update
SwUpdate module
iMG/RG Software Reference Manual (System Configuration)
1-66
FIGURE 1-9
SwUpdate
scheduling example 2
1.4.3.4 Manually enabling SwUpdate
It is possible turn on (disable) and turn off the
SwUpdate
module manually using the
swupdate start
and
swupdate stop
command.
If
SwUpdate
was disabled and the download finish successfully,
SwUpdate
returns to the disable state.
If
SwUpdate
was disabled and the download fails,
SwUpdate
stays enabled and scheduled with the same rules
defined in previous sections.
If
SwUpdate
was enabled and the download finish successfully,
SwUpdate
stays enabled with the schedule time
defined by the Start and Stop Time.
If
SwUpdate
was enabled and the download fails,
SwUpdate
stays enabled and scheduled with the same rules
defined in section previous sections.
1.4.3.5 Plug-and-play
Default operational mode
minute
hours
day-of-month
month
day-of-week
00:00
Start Time 0
0, 6, 12
x
x
x
minute
hours
day-of-month
month
day-of-week
Stop Time 0
4, 10, 16
x
x
x
06:00
10:00
12:00
16:00
20:00
00:00
Monday
Thursday
00:00
Fall
Fall
Fall
Fall
Fall
Fall
06:00
random (15 secs -
Retry-Period
)
Page 99 / 998
SwUpdate module
Software update
1-67
iMG/RG Software Reference Manual (System Configuration)
By default SwUpdate
module is set to work in TFTP mode trying to get all the TFTP server parameters from
the DHCP parameters list option passed by the external DHCP server
When working in TFTP mode, the gateway requires that the IP interface connected to the swupdate network is
set dynamically. Swupdate will use the feature of the dhcpclient to request the DHCP option 66 (“tftp-file-
name”) and the DHCP option 60 (dhcp-class-identifier).
The swupdate module will then use the tftp-file-name option and the DHCP
filename
field value passed in the
DHCP ACK message to set the TFTP server address and the server path respectively.
During the interface IP address discover or renewal, the DHCP client notifies to the server the Residential gate-
way model type and MAC address in the dhcp-class-identifier and dhcp-client-identifier options respectively.
Notification of dhcp-class-identifier and dhcp-client-identifier options allow DHCP server to discover dynami-
cally the type of unit and perform selective choice of TFTP server parameters (for example select a different
server path to download different code versions or different unit configuration files).
Note:
The swupdate module needs the dhcp-class-identifier option to be present in the DHCP ACK message
with the same value sent in the DHCP Discover and Request messages. If this value is different or the
option is not present, the swupdate doesn’t start.
1.4.3.6 Server access
FTP server account
SwUpdate
is able to access FTP server using the server access login.
The FTP server login account and login password are configurable into the
SwUpdate
module.
FTP/TFTP working directory
SwUpdate
is able to navigate into the FTP/TFTP server directory.
The working directory can be specified defining in the
SwUpdate
module a parameter named path. It identifies
the relative path respect the login home directory where the
SwUpdate
module expects to found the files.
For example if the home directory is:
/home/manager
and the gateway path address is set to:
at-iMG616BD-software-xxx
the working directory will be:
/home/manager/at-iMG616BD-software-xxx
The working directory can be specified also using the gateway MAC address in the format:
aa_bb_cc_dd_ee_ff.
In this case the working directory will be the login home directory plus the MAC address.
Page 100 / 998
Software update
SwUpdate command reference
iMG/RG Software Reference Manual (System Configuration)
1-68
This feature is useful when network administrators need to create specific configuration for each residential
gateway.
To enable this feature a special flag named MAC can be used.
For example if the home directory is:
/home/manager
and the gateway MAC address is:
10:20:30:40:50:60
enabling the MAC field, the working directory will be:
/home/manager/10_20_30_40_50_60
If both the path field and the MAC flag are set, the working directory will be the login home directory plus the
path string plus MAC address.
For example if the home directory is:
/home/manager
and the gateway MAC address is:
10:20:30:40:50:60
and the gateway path address is set to:
at-iMG616BD-software-xxx
the working directory will be:
/home/manager/at-iMG616BD-software-xxx/10_20_30_40_50_60
1.4.4
SwUpdate command reference
This section describes the commands available on the gateway to configure and manage the
SwUpdate
module.
1.4.4.1 SwUpdate commands
The table below lists the
SwUpdate
commands provided by the CLI:

Rate

4 / 5 based on 3 votes.

Popular Allied-Telesis Models

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top