bachelor
bachelor
bachelor
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
1.2 Technology and card layout 9<br />
The system furthermore differentiates between different kinds of sector types, by<br />
defining different application types to them. They define how data redundancy<br />
is managed for that specific data field and, and how the data is arranged.<br />
Some application types are used only for one data structure on the card, e.g.<br />
AT2. AT2 is the type used for storing tickets currently active on the card. There<br />
are two data elements “taking turns” in containing the newest version, as well<br />
as some number 1 ≤ n ≤ 6 of additional elements, containing a log of old tickets<br />
on the card.<br />
The card contains a data structure, TCAS 7 , that keeps the ID of the last transaction,<br />
as well as the status of all the sectors. The sector status variable defines<br />
which of the two redundancy elements is the current, depending on the application<br />
type of the sector. This is important, because no current data is ever<br />
supposed to be overwritten in Rejsekortet; if some value on the card is going to<br />
have a new value, the data will be written to the unused sector first, and then<br />
the section status will be changed so as to reflect that the current data is in the<br />
“other part” of sector.<br />
Ultimately, Rejsekort consistency is ensured by also having two copies of the<br />
TCAS field. At each transaction this structure is written twice to the card,<br />
in predetermined sectors. This makes the system very robust to connection<br />
disturbance, because the card will always be able to use the old TCAS in case of a<br />
communications fall-out. There are four phases of a transmission in Rejsekortet:<br />
1. Writing the new data to the unused fields.<br />
2. Writing the new TCAS1 to its designated sector. This value has another<br />
sector status for the altered data field, making the just-written data current.<br />
3. Writing the new TCAS2 which is equal to TCAS1. TCAS2, as we shall see,<br />
is used if the next transaction falls out and TCAS1 becomes inconsistent.<br />
From [6] we have this table over transaction breakdowns and how the system<br />
will react (quote):<br />
As stated, if TCAS1 is inconsistent, TCAS2 will be used. This leads to the card<br />
being temporarily “rolled back” because the TCAS pointed to the non-recent<br />
data elements.<br />
7 Travel Card Application Status