8.3.1-8.3.2 Definizioni di tipi, costanti e interfacce
8.3.1 Definizioni di tipi e costanti
const
ZERO = 0;
max_user_data = 64512;
type
NSAP_addr_type = ...;
{ NSAP_addr_type definisce il tipo di dato per gli indirizzi NSAP,
come passati attraverso il confine del servizio di rete. }
NPAI_addr_type = ...;
{ NPAI_addr_type definisce il tipo di dato per gli indirizzi
trasportati nelle PDU. }
SN_addr_type = ...;
{ SN_addr_type definisce il tipo di dato per gli indirizzi nel
servizio sottostante usato da questo protocollo. }
quality_of_service_type = ...;
{ Quality_of_service_type definisce il tipo di dato per il parametro
QOS passato attraverso il confine del servizio di rete. }
SN_QOS_type = ...;
{ SN_QOS_type definisce il tipo di dato per il parametro QOS, se
presente, passato al servizio sottostante usato da questo
protocollo. }
data_type = ...;
{ Data_type definisce il tipo di dato per i dati utente. Concettualmente
equivale a una stringa binaria di lunghezza variabile. }
buffer_type = ...;
{ Buffer_type definisce il tipo di dato per le risorse di memoria
usate nell'invio e nella ricezione dei dati utente. Fornisce le
capacità richieste per la segmentazione e il riassemblaggio. }
timer_name_type = (lifetime_timer);
timer_data_type = ...;
network_layer_protocol_id_type = (ISO_8473_protocol_id);
version_id_type = (version1);
pdu_tp_type = (DT, ER);
options_type = ...;
{ Options_type definisce il tipo di dato usato per memorizzare la
parte opzioni dell'intestazione della PDU. }
subnet_id_type = ...;
{ Subnet_id_type definisce il tipo di dato usato per identificare
localmente un particolare servizio sottostante usato da questo
protocollo. In generale possono esistere più servizi di sottorete
(o data link) sottostanti. }
error_type = (NO_ERROR,
TOO_MUCH_USER_DATA,
PROTOCOL_PROCEDURE_ERROR,
INCORRECT_CHECKSUM, CONGESTION,
SYNTAX_ERROR,
SEG_NEEDED_AND_NOT_PERMITTED,
DESTINATION_UNREACHABLE,
DESTINATION_UNKNOWN,
UNSPECIFIED_SRC_ROUTING_ERROR,
SYNTAX_ERROR_IN_SRC_ROUTING,
UNKNOWN_ADDRESS_IN_SRC_ROUTING,
PATH_NOT_ACCEPTABLE_IN_SRC_ROUTING,
LIFETIME_EXPIRED_IN_TRANSIT,
LIFETIME_EXPIRED_IN_REASSEMBLY,
UNSUPPORTED_OPTION_NOT_SPECIFIED,
UNSUPPORTED_PADDING_OPTION,
UNSUPPORTED_SECURITY_OPTION,
UNSUPPORTED_SRC_ROUTING_OPTION,
UNSUPPORTED_RECORDING_OF_ROUTE_OPTION,
UNSUPPORTED_QOS_MAINTENANCE_OPTION);
nsdu_type = record
da : NSAP_addr_type;
sa : NSAP_addr_type;
qos : quality_of_service_type;
data : data_type;
end;
pdu_type = record
nlp_id : network_layer_protocol_id_type;
hli : integer;
vp_id : version_id_type; lifetime : integer;
sp : boolean;
ms : boolean;
er_flag : boolean;
pdu_tp : pdu_tp_type;
seg_len : integer;
checksum : integer;
da_len : integer;
da : NPAI_addr_type;
sa_len : integer;
sa : NPAI_addr_type;
du_id : optional integer;
so : optional integer;
tot_len : optional integer;
{ du_id, so e tot_len sono presenti
solo se sp ha il valore TRUE. }
options : options_type;
data : data_type;
end;
route_result_type =
record
subnet_id : subnet_id_type;
sn_da : SN_addr_type;
sn_sa : SN_addr_type;
segment_size : integer;
end;
8.3.2 Definizioni delle interfacce
channel Network_access_point (User, Provider);
by User:
UNITDATA_request
(NS_Destination_address : NSAP_addr_type;
NS_Source_address : NSAP_addr_type;
NS_Quality_of_Service : quality_of_service_type;
NS_Userdata : data_type);
by Provider:
UNITDATA_indication
(NS_Destination_address : NSAP_addr_type;
NS_Source_address : NSAP_addr_type;
NS_Quality_of_Service : quality_of_service_type;
NS_Userdata : data_type);
channel Subnetwork_access_point (User, Provider);
by User:
UNITDATA_request
(SN_Destination_address : SN_addr_type;
SN_Source_address : SN_addr_type;
SN_Quality_of_Service : SN_QOS_type;
SN_Userdata : pdu_type);
by Provider:
UNITDATA_indication
(SN_Destination_address : SN_addr_type;
SN_Source_address : SN_addr_type;
SN_Quality_of_Service : SN_QOS_type;
SN_Userdata : pdu_type);
channel System_access_point (User, Provider);
by User:
TIMER_request
(Time : integer;
Name : timer_name_type;
Subscript : integer);
TIMER_cancel
(Name : timer_name_type;
Subscript : integer);
by Provider:
TIMER_indication
(Name : timer_name_type;
Subscript : integer);