ppnet.ned
来自「very beautifull programm test for onmet+」· NED 代码 · 共 42 行
NED
42 行
//
// 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 + =
减小字号Ctrl + -
显示快捷键?