Skip to main content

2.2 VLN Operations

There are seven operations defined at the VLN interface and available to the VLN client on each host. An implementation of the VLN interface has wide lattitude in the presentation of these operations to the client; for example, the operations may or may not return error codes.

A VLN implementation may define the operations to occur synchronously or asynchronously with respect to the client's computation. We expect that the ResetVLNInterface, MyVLNAddress, SendVLNDatagram, PurgeMAddresses, AttendMAddress, and IgnoreMAddress operations will usually be synchronous with respect to the client, but ReceiveVLNDatagram will usually be asynchronous, i.e., the client may initiate the operation, continue to compute, and at some later time be notified that a datagram is available. (The alternatives to asynchronous ReceiveVLNDatagram are A) a blocking receive operation; and B) a non-blocking but synchronous receive operation, which returns a failure code immediately if a datagram is not available. Either alternative may satisfy particular requirements, but an asynchronous receive subsumes these and is more generally useful.) At a minimum, the client must have fully synchronous access to each of the operations; more elaborate mechanisms may be provided at the option of the VLN implementation.

VLN OPERATIONS

ResetVLNInterface

The VLN layer for this host is reset (e.g., for the
Ethernet VLN implementation the operation ClearVPMap is
performed, and a frame of type "Cronus VLN" and subtype
"Mapping Update" is broadcast; see Section 4.2). This
operation does not affect the set of attended VLN
multicast addresses.

function MyVLNAddress()

Returns the specific VLN address of this host; this can
always be done without communication with any other host.

SendVLNDatagram(Datagram)

When this operation completes, the VLN layer has copied
the Datagram and it is either "in transmission" or
"delivered", i.e., the transmitting process cannot assume
that the message has been delivered when SendVLNDatagram
completes.

ReceiveVLNDatagram(Datagram)

When this operation completes, Datagram is a
representation of a VLN datagram sent by a VLN client and
not previously received by the client invoking
ReceiveVLNDatagram.

PurgeMAddresses()

When this operation completes, no VLN multicast addresses
are registered with the local VLN component.

function AttendMAddress(MAddress)

If this operation returns True then MAddress, which must
be a VLN multicast address, is registered as an "alias"
for this host, and messages addressed to MAddress by VLN
clients will be delivered to the client on this host.

IgnoreMAddress(MAddress)

When this operation completes, MAddress is not registered
as a multicast address for the client on this host.

Whenever a Cronus host comes up, ResetVLNInterface and PurgeMAddresses are performed implicitly by the VLN layer before it will accept a request from the client or incoming traffic from the PLN. They may also be invoked by the client during normal operation. As described in Section 4.2 below, a VLN component may depend upon state information obtained dynamically from other hosts, and there is a possibility that incorrect information might enter a component's state tables. (This might happen, for example, if the PLN address of a Cronus host were changed but its VLN address preserved--the old VLN-to-PLN address mappings held by other hosts would then be incorrect.) A cautious VLN client could call ResetVLNInterface at periodic intervals (every hour, say) to force the VLN component to reconstitute its dynamic tables.

A VLN component will place a limit on the number of multicast addresses to which it will simultaneously "attend"; if the client attempts to register more addresses than this, AttendMAddress will return False with no other effect. The actual limit will vary among VLN components, but it will usually be between 10 and 100 multicast addresses. Components may implement limits as large as the entire multicast address space (64,511 addresses).

The VLN layer does not guarantee any minimum amount of buffering for datagrams, at either the sending or receiving host(s). It does guarantee, however, that a SendVLNDatagram operation invoked by a VLN client will eventually complete; this implies that datagrams may be lost if buffering is insufficient and receiving clients are too slow. The VLN layer will do its best to discard packets for this reason very infrequently.