Idayagram yeskim sovavanyo:
Uguqulelo lweSistim: Ubuntu16.04
Ufakelo lwe-Tcpreplay: apt-fumana ukufaka i-tcpreplay
(Olu guqulelo lwegama le-NIC alubizwa ngokuba yi-eth0 kunye ne-eth1, olu tshintsho lulandelayo kuqwalaselo)
i-eth0 ihambelana ne-ens33 NIC: IP: 172.20.60.166 MAC: ec:a8:6b:82:32:c1
I-eth1 ihambelana ne-ens32 NIC: IP: 172.20.60.165 MAC: 00:13:3b:0f:6a:fb
Vavanya inyathelo lokuqala: Lungiselela kwangaphambili iCache, umyalelo ngulo:
tcpprep -umxhasi -i rzxSJ.pcap -o rzx.cach
Lo myalelo wahlula ifayile yePCAP kumxhasi kunye neseva, kunye nomxhasi ngokungagqibekanga. Xa ithunyelwe, ipakethi ithunyelwa ukusuka kubo bobabini umxhasi kunye nomncedisi.
Uvavanyo lwenyathelo lesi-2: Phinda ubhale idilesi ye-IP kunye nedilesi ye-MAC, umyalelo uthi:
Tcprewrite - e 172.20.60.166:172.20.60.165 -- enet - 10-channel dmac = 00:13:3 b: 0 f: 6 a: fb, ec, a8:6 b: 82-32: c1 - enet - s = ec: a8:6 b: 82-32: c1, 00:13:3 b: 0 f: 6 a: fb - c RZX. Cach -i rzxSJ. I-Pcap - o 111. I-Pcap
Lo myalelo ubhala ngaphezulu i-IP kunye needilesi ze-MAC. Ungasebenzisa isixhobo esifana ne-wireshark ukuvula i-111.pcap kwaye ukhangele ukuba ukuguqulwa kuphumelele.
Uvavanyo lwenyathelo lesi-3: Phinda udlale ipakethi ngalo myalelo ulandelayo:
tcpreplay -i ens33 -I en32 -l 100 -t -c rzx.cach 111.pcap
i-ens33 port ihambelana ne-eth0. i-ens32 port ihambelana ne-eth1
Oku kungasentla yi-Shenzhen HDV Phoelectron Technology Ltd. izisa abathengi malunga nenqaku lentshayelelo "yendlela yovavanyo ye-tcpreplay yangoku", kwaye inkampani yethu iyimveliso ekhethekileyo yabavelisi benethiwekhi yamehlo, iimveliso ezibandakanyekayoI-ONUuthotho (OLT I-ONU/ACI-ONU/CATVI-ONU/GPONI-ONU/XPONI-ONU), uchungechunge lwemodyuli ye-Optical (imodyuli yefiber optical / Ethernet imodyuli yefiber optical / SFP imodyuli yokubona),OLTuthotho (OLTizixhobo /OLT tshintsha/ikati yamehloOLT), njl., kukho iinkcukacha ezahlukeneyo zeemveliso zonxibelelwano kwiimfuno zeemeko ezahlukeneyo zenkxaso yenethiwekhi, wamkelekile ukubonisana.