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

📄 ppnet.ned

📁 very beautifull programm test for onmet++
💻 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.
//


import
    "ppsource",
    "ppsink",
    "ppif";



//
// Transmission of packets on a line with finite bandwidth. Uses a pair of
// point-to-point interfaces. The line is driven by bursty traffic.
//
module PointToPointNet
    submodules:
        burstySrc: PPSource;
            display: "p=82,92;i=block/source";
        ppIF1: PointToPointIF;
            display: "p=170,92;i=block/queue;q=queue";
        ppIF2: PointToPointIF;
            display: "p=336,92;i=block/queue;q=queue";
        sink: PPSink;
            display: "p=430,92;i=block/sink";
    connections nocheck:
        burstySrc.out --> ppIF1.in;
        ppIF1.lineOut --> datarate 1000000 --> ppIF2.lineIn display "o=,3";
        ppIF1.lineIn <-- datarate 1000000 <-- ppIF2.lineOut display "o=,3";
        ppIF2.out --> sink.in;
endmodule

network pointToPointNet : PointToPointNet
endnetwork

⌨️ 快捷键说明

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