📄 readme
字号:
The following sequence works. Figuring out why is left as an exercise tothe reader ;-)Commands:lrcpc4:~/w/atm/switch/tcp# ./sw_tcp -b -dlrcpc4:~# atmtcp virtual 1 switch localhost 1 bglrcpc4:~# atmtcp virtual 2 switch localhost 2 bglrcpc4:~# atmaddr -a 2 +1lrcpc4:~/w/atm/switch/tcp# atmsigd -b -c 2.conflrcpc15:~# atmtcp virtual 1 switch lrcpc4 3 bglrcpc15:~# atmaddr -a 1 +2lrcpc15:~/w/atm/switch/tcp# atmsigd -b -c 1.conflrcpc15:~$ ttcp_atm -r -alrcpc4:~$ ttcp_atm -t -a +2--- switch.conf ---------------------------------------------------------------command "atmsigd -c s1.conf -b -m switch 1.0.100 /tmp/1" socket /tmp/1 { itf 2 1.0.100 route +1}command "atmsigd -c s2.conf -b -m switch 1.0.101 /tmp/2" socket /tmp/2 { itf 3 1.0.101 default}--- s1.conf -------------------------------------------------------------------debug log stderrdebug level warnsig level debugsig vpci 0 itf 2--- s2.conf -------------------------------------------------------------------debug log stderrdebug level warnsig level debugsig vpci 0 itf 3--- 1.conf --------------------------------------------------------------------debug log stderrdebug level warnsig level debugio vc 1.0.5sig vpci 0 itf 1--- 2.conf --------------------------------------------------------------------debug log stderrdebug level warnsig level debugio vc 2.0.5sig vpci 0 itf 2--- -The following picture shows a simplified view of the configuration. Notethat the command-line options have been choosen for clarity (and minordetails like the vpci settings in the configuration file have beenomitted) and are not identical with the ones given above.+-----------------------------------------------------------------------+| ./sw_tcp || || +---------+ +----------------------------------+ 1.0.100 || | |--/tmp/1--| atmsigd -m switch 1.0.100 /tmp/1 |---+ || | | +----------------------------------+ | || | <relay> | +-----+ || | | +----------------------------------+ | | || | |--/tmp/2--| atmsigd -m switch 1.0.101 /tmp/2 |---+ | || +---------+ +----------------------------------+ 1.0.101 | || | | || | +--------------+ | || | | | | || | control | | | || +----------------------| | itf 1 || | <fabric> | | || | | | || 2.0.5 <--> 1.0.100 | | | || 3.0.5 <--> 1.0.101 | 2 3 1 | | || +--------------+ | || | | | | |+-------------------------------|-----|----|------------------------|---+ | | | | +------------+ | | | | | | |+-----------------------------------+ | +-----------------------------------+|atmtcp virtual 2 switch localhost 2| | |atmtcp virtual 1 switch localhost 1|+-----------------------------------+ | +-----------------------------------+ | | itf 2 (+1) +---- - - - - - ----+ | | +---------------+ | on lrcpc15: | | atmsigd 2.0.5 | | +---------------+ | | | | +--------------------------------+ | |atmtcp virtual 1 switch lrcpc4 3| | +--------------------------------+ | | itf 1 (+2) | | +---------------+ | atmsigd 1.0.5 | | +---------------+In order to control the switch with swc, add the line control <path>to switch.conf, e.g. control /var/run/tcpswcThen invoke swc as follows: swc <path> showTo add VCs, use add <itf>.<vpi>.<vci> , to add VPs, use add <itf>.<vpi>.?
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -