File src/tcpipmodel/Switch.ned

Contains:

//
// (C) 2004-2005 by Institute of Telematics, University of Karlsruhe
// (C) 2006 Andras Varga
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//


//
// Models an Ethernet switch (multiport bridge).
//
// It supports broadcasts and MAC address learning. Note that it also has,
// like a real switch, a limited number of buffers. In case a lot of frames
// arrive simultaneously, some frames may get dropped due to buffer
// overflows.
//
// In order to support autoconfiguration of IP addresses, a switch
// carries a network prefix as address range. Attached hosts will get
// automatically addresses that are allocated from this range.
//
simple Switch
    parameters:
        net : string, // subnet address (used for IP address autoconfiguration)
        netmask : string; // netmask (used for IP address autoconfiguration)
    gates:
        in: med_in[];
        out: med_out[];
endsimple