📄 ppnet.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 + -