165) this.height = 165; " />
Username | | Nhớ? | Mật khẩu | | |
| |
Hỏi/Đáp | Danh Sách | Lịch | Bài Trong Ngày | Tìm Kiếm | |
Bạn đang xem: Full duplex và half duplex là gì Chia Sẽ Kinc Nghiệm Về ITTìm Kiếm Với Google- balkanpoliticalclub.net - AdminPro » LINUX NETWORKING (Quản Trị Mạng Linux)» Các phiên phiên bản Linux» Linux với những thủ thực nhỏ dại » Full Duplex và Half Duplex là gì? Cách cấu hình Full Duplex vào Linux
1. Để dễ tưởng tượng sự không giống nhau và thực chất của Fullduplex cùng Halfduplex tôi xin đưa ra ví dụ như vậy này:-Sự truyền Fulldupex giống như nhỏng Lúc 2 bạn điện thoại tư vấn điện thoại cho nhau. Trong thuộc 1 thời điểm thì 2 bạn phần nhiều có thể vừa nói vừa nghe.-Sự truyền Halfduplex thì giống như như 2 tín đồ liên hệ với nhau qua thứ bộ đàm. Tại một thời lăn tay có 1 fan nói cách khác còn tín đồ cơ thì chỉ hoàn toàn có thể nghe, bạn này nói chấm dứt thì tín đồ tê bắt đầu có thể nói được.2.Halfduplex(hd) có thể dịch là cung cấp song tuy nhiên còn fullduplex(fd) có thể dịch là tuy vậy tuy vậy. hd coi như là các bạn chỉ mắc có 1 dây dực liệu thân 2 điêm A với B cho nên biểu lộ trên 1 thời lăn tay có thể truyền hoặc từ bỏ A hoặc từ bỏ B. Đối cùng với fd chúng ta đang mắc 2 dây tài liệu giữa A cùng B. Trong đó 1 dây truyền dữ liệu đi cùng một dây truyền dữ liệu về. Vì lý do này nhưng mà Lúc kiến tạo các bộ tiếp xúc tại A và B đề nghị xem xét Việc đầu A hoặc B đã vận động sống chính sách solo công hay tuy nhiên công mà lại tính toán mang đến hợp lý.3. Single duplex la bỏ ra co the truyen hoac bỏ ra nhu tuy vậy dẻo tieng noi chang hanHalf Duplex vua co the truyen hoac vua co the nhan nhung khong cung mot thoi diemcon Full Duplex vua co the truyen hoac vua teo the nhan vào cung mot thoi diem4. Cách cấu hình Using mii-tool One of the original Linux tools for setting the speed và duplex of your NIC thẻ was the mii-tool commvà. It is destined lớn be deprecated & replaced by the newer ethtool commvà, but many older NICs support only mii-tool so you"ll need lớn be aware of it. Issuing the comm& without any arguments gives a brief status report, as seen in the next example, with unsupported NICs providing an Operation not supported message. NICs that are not compatible with mii-tool often will still work, but you have sầu lớn refer to lớn the manufacturer"s guides to mix the tốc độ & duplex to lớn anything but auto-negotiate. bigboy tmp># mii-toolSIOCGMIIPHY on "eth0" failed: Operation not supportedeth1: 100 Mbit, half duplex, liên kết ok Xem thêm: Jailbreak Là Gì Và Làm Sao Để Biết Đã Jailbreak, Jailbreak Là Gì bigboy tmp>#By using the verbose mode -v switch you can get much more information. In this case, negotiation was OK, with the NIC selecting 100Mbps, full duplex mode (FD): bigboy tmp># mii-tool -veth1: negotiated 100baseTx-FD, link ok product info: vendor 00:10:18, model 33 rev 2 basic mode: autonegotiation enabled basic status: autonegotiation complete, liên kết ok capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD links partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-controlbigboy tmp># Setting Your NIC"s Speed Parameters with mii-tool You can mix your NIC khổng lồ force itself lớn a particular speed & duplex by using the -F switch with any of the following options: 100baseTx-FD, 100baseTx-HD, 10baseT-FD, or 10baseT-HD. Rethành viên that you could thua kém all network connectivity to your VPS if you force your NIC lớn a particular speed/duplex that doesn"t match that of your switch: bigboy tmp># mii-tool -F 100baseTx-FD eth0Unfortunately there is no way lớn phối this on reboot permanently except by placing it the command in the /etc/rc.local tệp tin khổng lồ let it be run at the very over of the booting process or by creating your own startup script if you need it mix earlier. Creating your own startup scripts is covered in Chapter 7, "The Linux Boot Process". Using ethtool The ethtool command is slated to be the replacement for mii-tool in the near future and tends to lớn be supported by newer NIC cards. The commvà provides the status of the interface you provide as its argument. Here we see interface eth0 not doing autonegotiation and mix khổng lồ a speed of 100 Mbps, full duplex. A danh sách of supported modes is also provided at the top of the output. bigboy tmp># ethtool eth0Settings for eth0: Supported ports: < TP. MII > Supported links modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised auto-negotiation: No Speed: 100Mb/s Duplex: Full Port: MII PHYAD: 1 Transceiver: internal Auto-negotiation: off Supports Wake-on: g Wake-on: g Current message level: 0x00000007 (7) Link detected: yesbigboy tmp># Setting Your NIC"s Speed Parameters with ethtool Unlượt thích mii-tool, ethtool settings can be permanently set as part of the interface"s configuration script with the ETHTOOL_OPTS variable. In our next example, the settings will be phối to lớn 100 Mbps, full duplex with no chance for auto-negotiation on the next reboot: ## File: /etc/sysconfig/network-scripts/ifcfg-eth0#DEVICE=eth0IPADDR=192.168.1.100NETMASK=255.255.255.0BOOTPROTO=staticONBOOT=yesETHTOOL_OPTS="tốc độ 100 duplex full autoneg off" You can thử nghiệm the application of these parameters by shutting down the interface and activating it again with the ifup và ifdown commands. These settings can also be changed from the comm& line using the -s switch followed by the interface name & its desired configuration parameters. bigboy tmp>#The Linux man pages give more details on other ethtool options, but you can get a quiông chồng guide by just entering the ethtool command alone, which provides a quicker summary. bigboy tmp># ethtool...... ethtool -s DEVNAME < speed 10|100|1000 > < duplex half|full > < port tp|aui|bnc|mii|fibre > ......
|
|