⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 token.ned

📁 simulation tokenring network
💻 NED
字号:
//
// This file is part of an OMNeT++/OMNEST simulation example.
//
// Copyright (C) 1992-2005 Andras Varga
//
// This file is distributed WITHOUT ANY WARRANTY. See the file
// `license' for details on this and other legal matters.
//
// Authors: Gabor Lencse and Andras Varga (TU Budapest),
// based on the code from Maurits Andre, George van Montfort,
// and Gerard van de Weerd (TU Delft).
//


//
// Implements the Token Ring protocol.
//
simple TokenRingMAC
    parameters:
        // Token Ring data rate in bps. Standard values are 4 or 16 Mbps.
        dataRate : numeric const,
        // Token Holding Time, as defined in the protocol.
        THT : numeric const,
        // MAC address of this station, modeled with an integer.
        address : numeric const,
        // Max queue size in packets.
        queueMaxLen : numeric const;
    gates:
        in: phy_in;
        in: from_hl;
        out: phy_out;
        out: to_hl;
endsimple

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -