981121-1

Write an ASN.1 specification for an airline luggage tag. The luggage tag stores the name of the customer, the weight of the luggage in kilograms, and a series of one or more succeeding flights (two letters for the airline, 1-4 digits for the flight number, and 3 letters for the next airport).

Answer

LuggageTag ::= SEQUENCE {
          name VisualString,
          weight Real,
          flights FlightSequence }

FlightSequence ::= SEQUENCE OF SEQUENCE {
              airline VisualString (SIZE (2)),
              flightnumber NumericString (SIZE (1..4))
              airport VisualString (SIZE (3)) }

List of exam questions