Be can bang tai sir dung thuot toan I9c phan tan hoan toan de anh xa cac may khach den
cac may chit trong nh6m. Thuat toan nay cho phip cac may chit trong nh6m din ra cac quyet djnh can bang it met each dec lap va nhanh chong cho ,timg gei den. NO duqc toi tru hoi de cung cap kha nail can bang tai mOt each thong ke doi yeti met soItrqng 16n cac yeu eau nho do vo so may khach tao ra. Neu so may khach hoc cac ket not may khfich tao ra cac tai qua chenh tech nhau tren may chit, thuat toan can bang it se it hieu quit. Tuy ninon, unit don gian va toe dO cua thuet thin cho phdp cung cap hieu nang rat cao
bao gom ca thong luqng cao va thei gian dip Ong ngiin trong met dai rOng cac img dung
may khich / may chit thong clang.
Be can biing tai xi: ly cac you cau ctia may khach bang cach din dui:mg cho met if le phan tram da ch9n nhOng yeu cau men cho timg may chit trong nh6m. Thuat toan !thong dap img nhftng thay doi ye tai tren mtii may chit (chling han nhtr tai CPU hay van de sir clang
be nh6). Tuy nhien, qua trinh anh xa se duce thay d6i Ida quan he thanh vien trong nh6m thay d6i vi ti le phial tram tai phan b6 se duqc tai can bang.
Khi xem xdt met g6i den, tat ca cac may chit thvc hien clang thai viec anh thiing ke de xac djnh nhanh cheng may chit nio se xi) ly poi do. Qua trinh anh xa sir dung mOt ham ngau nhien de tinh mirc tru tien dm may chit dva tren dja chi IP NIA cling den caa may khkh cimg cac thong tin trans thai khac de .t6i tru hoa viec can bing di. May chit tuong img se chuyen gal d6 tir the tang clued len tang TCP/IP con cac may chit khac se loai be goi nay. Qua trinh anh xa kh6ng thay d8i trir phi quan he gifra cac may chit trong nhOm thay doi, de dam bao rang dia chi IP vi cOng den cna may khach cho trutc se luon duqc anti xa den cang met may chi) trong nhom. Tuy nhien, may chit cu the trong thorn ma dja chi IP va cOng den dm may khich anh xa ten khong the duqc xac djnh tram do ham ngau nhien c6 tinh den quan thanh vien trong nh6m hien tai vi qua khir de toi thieu hoa kha nang anh xa lai.
Nhin chung, chat Itrqng can .bing duqc xac dinh met each thong ke bed s6 luqng may khach tat) ra you cau. Nhu ket cau tang giarn ve so lucong may khach theo thong ke, sv deu don ye chat luqng cita thuat toan can bang tai se thay d6i nhe. De host di-ging can bang it co do chinh xac cao tren mil host trong nhom, met phan tai nguyen he th6ng se duqc sir dung de do va phan Ung Mr& nheng thay doi ciut dd. Str tra gia ye hieu rang nay phai duqc can nhac so yeti lqi ich cua viec tot da holt khil rang sir dung cac it nguyen trong nhOm (ve ca ban li CPU va bit) Trong bit dr twang hqp nao, viec sir dung hqp ly
cac ngu6n tai nguyen may chit phai duqc duy tri de co the phvc vv cho cac tai may khach khk trong traimg hqp xay ra 16i.
Chuang 3: Thuat toga' can bang tai DI" Van Thjnh — A13439 Khi mOt may chit meri tham gia vao nh6m, n6 se kith hoat qua trinh hOi tu va mot quan hg thanh vien mai trong nhOm se duqc tinh town. Khi qua trinh hOi to holn thanh, mOt phin tai thieu may khkh see duqc anh xa tai host mai. BO can bang tai do cac ket not TCP tren mai host vi sau khi ket not TCP hiEn tai cua chfing holm thank, ket not tiep theo tir cac may khkh bj inh huong se duqc xir 15r btri host mai. Do d6, cac . host nen duqc bo suns vio nh6m nhftn thtri diem tai tang qui manh nham ten thieu hod hiEn turyng ngat quang cac phien. De trinh van de nay, trong thai phien phai duqc , quan bei 1mg dung may chit sao cho n6 co the duqc ten du true hay duce tra lai tir bat Icy mOt may chit nio trong nhom. Vi du, trong thai phien co the duce day den may chit ca sec dft lieu va lint trong the cookies dm may khach.
3.2. Gaol thieu mOt so thu#t twin can bAng tai 3.2.1. Thu#t twin Round Robin