next up previous contents
Next: The Virtual Interface module Up: Vrouter conception and design Previous: Vrouter conception and design   Contents

The Virtual Data-Link (VDL)

In this part i will give a brief description of the virtual data link . The main primitives offered by the original version of the VDL module are as follows :

The vdl module input function vdl_input was modified : when a packet is read from the data-link socket, the vdl_input function performs the call-back for the corresponding protocol as usual. The change consists in the call-back functions storage; in the actual implementation the call-back functions are stored in an array in the interface structure, the original implementation was mintaining a single array for call-back functions and this array was global for all interfaces. The advantage that we can take from this feature is that we can use different protocol call-backs for each interface, as a result, we can use different IP protocol implementations for different interfaces without changing the protocol ID. To profit from this functionality one should simply personalise the router's code and implement the needed protocols and their corresponding call-back functions.

After reading a message, the decision to process it must be taken. The message is kept and the call-back is performed only in three cases :

The other modification of the VDL module consists in the insertion of the destination hardware address in the VDL header. The reason for that is that we need to test the destinatiion hardware address every time we receive a VIP packet. The hardware address is vehiculated in the data-link layer messages using the field ``vlddst'', which was converted to the type ``int'' due to the bigger size of the type assigned to the hardware addresses.

The following is the general algorithm for the VDL module executed when messages are read from the input sockets.

Figure 2.1: VDL incoming message processing
Image vdlinput


next up previous contents
Next: The Virtual Interface module Up: Vrouter conception and design Previous: Vrouter conception and design   Contents
Last changed 2004-08-25.
Zrelli Saber. , Japan Advanced Institute of Science and Technology, Shinoda-lab
zrelli@jasit.ac.jp