Perhubungan data dan ramgkaian merupakan salah satu bidang teknologi yang
membangun dengan cepat dalam dunia sekarang akibat daripada keperluan yang hebat
daripada pengguna-pengguna dunia. Dalam pembaharuan perhubungan data, banyak
protokol telah dibangunkan untuk menambahkan kemampuan perhubungan. Salah satu
daripada protokol-protokol ini ialah pohon ulang automatik Pergi-Balik-N. Protokol ini
merupakan pengubahsuaian bagi pohon ulang automatik Henti-Dan-Tunggu.
Kedua–dua protokol ini adalah dibangunkan berdasarkan teori akuan. Dalam project ini
pohon ulang automatik Pergi-Balik-N dilaksanakan. Satu pengaturcaraan dilaksanakan
untuk menyelakukan keseluruhan proses protokol ini. Kebaikan pengaturcaraan Java
dalam perhubungan memberikan cara yang sesuai yang untuk meyelaku protokol ini.
Dalam protokol ini sekurang-kurangnya melibatkan dua buah terminal iaitu pengirim
dan penerima. Pengirim menghantar perutusan dan maklumat kepada penerima dalam
bentuk bingkisan dan dibahagikan dalam kerangka-kerangka. Untuk menjayakan
perhubungan, kerangka-kerangka ini dinomborkan untuk kenal beza. Penerima akan
mengenalpatikan perutusan-perutusan yang diterima dengan menyemak nombor
kerangka dan oleh itu mengirim perakuan yang betul kembali ke pengirim. Pada hujung
pada projek ini, aturcara sepatutnya boleh berjalan pada komputer tunggal atau banyak
komputer. Aturcara ini juga berupaya tukar mod pengendalian daripada satu kepada yang lain untuk menyelakukan situasi yang tidak dihendakkan seperti kehilangan maklumat. Keputusan projek ini boleh diperhatikan melalui penyelakuan aturcara. Keputusan terjangka boleh dilihatkan daripada ‘text area’ dalam penerima dan pengirim. Perutusan yang dihantar disimpan dalam tatasusunan. Perutusan ini boleh dibaca dengan menekan butang, perutusan ini akan dipaparkan pada GUI pengirim. Seperti pengirim,
penerima juga menyimpan perutusan yang diterima dalam tatasusunan. Perutusan ini boleh dibaca dengan menekan butang dan perutusan ini dipaparkan pada GUI penerima. Untuk mengesahkan keputusan, membandingkan kedua-dua set keputusan, jika mereka adalah sama, ini bermakna protokol ini adalah berjaya.
_________________________________________________________________________________________
Data communication and networking is one of the fastest growing technologies in the world today due to the increased in demand. In the evolution of data communication, many protocols are developed to increase the communication ability. One of these protocols is Go-Back-N automatic repeat request. This protocol is the modified version of Stop-And-Wait automatic repeat request. These two protocols are developed based on
theories of acknowledgement. In this project Go-Back-N automatic repeat request is implemented. A program is developed to simulate the complete process of this protocol. The advantages of Java programming in communication have provided a convenient way to simulate the protocol. In this protocol there are, at least, two terminals involved in the process which are sender and receiver. The sender sends messages and
information to receiver in packet form and they are divided into frames. In order to make the communication successful, these frames are numbered to distinguish them. The receiver will identify the received messages by checking the frames’ number, and sends proper acknowledgement back to sender. At the end of this project, the programs should be able to run on a single computer or many computers. The programs also
should be able to switch its simulation modes from one to another to simulate some undesired situations like loss of information. The results are obtained through simulation. The expected results can be seen from the text area in the receiver and the sender. They should be the same for both sender and receiver. The messages sent are saved and they can be read by pressing the buttons, and then are shown on the sender
GUI window. On the other hand, the receiver stores the received messages into array. They can be read by pressing the buttons and they are shown on the receiver GUI window. To verify the results, compare these two sets of data, if they are the same then it means that the communication protocol has been successful.