Kapalı

Selective repeate with java

I need you to develop some java code for me. I would like this project to be developed using Java. I need some one to this on java

SR sender

Sliding Window – Selective-Repeat

1. Get Input:

if any there is any input from the users (chars or words) add to a list or queue

private static ArrayBlockingQueue<Packet> queue; // Blocking version is thread save if there is not more input then once we have send off all the packets (and got acks) we are done so set a flag or something similar

2. Send Packets

if input Queue has packets to send AND Sliding Window has slots send packets

while (![url removed, login to view]()) AND (lastSent - snd_base < WINDOW_SIZE) do get a packet from input Queue (p = [url removed, login to view](); )

make datagram from p (Packet has method for this)

send datagram ([url removed, login to view](datagram);)

set timer and thread for resending (Packet has method for this)

note the sequence number of the packet, we are going to have to wait for an acknowledgement

add sseq_num to the Set Set_of_UnaAcked_Packets (Packet has method for this) Note the Set is a SortedSet<Integer> // ordered/sorted set

3. Receive Acknowledgements

if Sliding Window has slots used slots (snd_base <= lastSent)

try to get all possible acks

make packet and datagram

receive datagram ([url removed, login to view](datagram);)

make packet from datagram (Packet has method)

get sequence number from packet (rseq_num = [url removed, login to view]();) if sequence number too big then

ignore packet (continue)

if less than Window base (snd_base) then ignore packet (continue)

if sequence number in-between snd_base and snd_base + WINDOW_SIZE then check if sequence number is in Set_of_UnaAcked_Packets

if it is an unAcknowledged Packet then

unschedule Thread resend task & timer (Packet) and see if we can move Windows base

identify contiguous sequence of acknowledged packets and update Window base snd_base = largest sequence_number of contiguous acknowledged packets . starting with snd_base

for example, if we received ack for 6 and had Set with {6 7 8 11 13} note set is a ordered set (sorted)

then we would set snd_base to 8 and remove from 6, 7, and 8 from the Set if packet is ack for LAST (we sent our LAST packet and this is an ack for it)

and Set is and queue are empty we are DONE

SR receiver

1. Receive packet

get packet sequence_number

if sequence number is less that rcv_base then we have already received (and acknowledged) this packet but the sender has sent it again (lost ack?) so send an ACK packet again

if sequence number is greater than rcv_base+WINDOW_SIXE -1 then it is outside windows, we just ignore it (continue)

if sequence number is in between rcv_base and rcv_base+WINDOW_SIXE -1 then receiver’s window

and we need to send a selective ACK packet

If the packet was not previously received, it is buffered. (added to a small list)

If this packet has a sequence number equal to the base of the receive window, then this packet, and any previously . buffered and consecutively numbered (beginning with rcv_base) packets are printed out (in order)

And then receive window base (rcv_bas) is then moved forward by the number of packets printed For example if we have rcv_base=2 and received i packets 2, 3, 4, 6,8 can printout 2, 3, and 4 And set rcv_base to 5

Beceriler: Java, Yazılım Mimarisi

Daha fazlasını gör: selective repeat algorithm, selective repeat arq implementation in java, selective repeat udp java, stop and wait in java, selective repeat sliding window protocol program in java, selective repeat github, selective repeat code in c, selective repeat protocol program in c++, code java hide windows task manager, windows task scheduler run java, network status windows task manager java, find windows task manager java, java program windows task, java windows task, schedule task windows task manager, windows task automation, macro windows task open webpage search, vbnet hide process windows task manager processes, hide process windows task manager net, java text file unix windows

İşveren Hakkında:
( 0 değerlendirme ) United States

Proje NO: #15870022

Bu iş için 19 freelancer ortalamada $164 teklif veriyor

in %bids___i_period_sub_35% gün içinde160%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(262 Değerlendirme)
7.0
hawkscodeaus

Hi, I can start work on your project immediately once you confirm me and i am also open for further discussion if you want. I have 7+ years in web designing & development with good experience in following skills Daha Fazla

in %bids___i_period_sub_35% gün içinde200%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(53 Değerlendirme)
6.9
in %bids___i_period_sub_35% gün içinde150%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(207 Değerlendirme)
6.9
hbxfnzwpf

I am very proficient in java. I have 16 years java developing experience now, and have worked for more than 6 years. My work is online game developing, and mainly focus on server side, using java under windows environm Daha Fazla

in %bids___i_period_sub_35% gün içinde180%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(67 Değerlendirme)
6.6
in %bids___i_period_sub_35% gün içinde310%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(50 Değerlendirme)
5.7
lazermann

Hi! My name is Ihor, I will be glad to help you with your project. I have strong experience in Java and Android development for 3+ years. Feel free to contact me any time so we can discuss details.

in %bids___i_period_sub_35% gün içinde150%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(12 Değerlendirme)
5.8
algispetkuns

A proposal has not yet been provided

in %bids___i_period_sub_35% gün içinde200%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(52 Değerlendirme)
5.6
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(26 Değerlendirme)
5.3
in %bids___i_period_sub_35% gün içinde150%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(27 Değerlendirme)
5.5
vorasiddh4it

View my last projects based on Data Mining, Machine Learning, Artificial Intelligence, python, java and I can complete your project perfectly. www.freelancer.com/u/vorasiddh4it#/reviews We have 10+ years experience Daha Fazla

in %bids___i_period_sub_35% gün içinde200%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(23 Değerlendirme)
5.2
in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(27 Değerlendirme)
5.1
othmane7

Hello sir, i am a software developer JAVA/J2EE i worked in a lot of projects Web and Desktop, i am ready to start working with you.

in %bids___i_period_sub_35% gün içinde166%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(5 Değerlendirme)
3.7
panjvirsingh

I would like to offer myself as a probable candidate for this assignment as I am confident of delivering a quality output. I have excellent expertise in this area. I have total 7 years or experience in web developme Daha Fazla

in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(16 Değerlendirme)
3.9
in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(8 Değerlendirme)
3.4
in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(7 Değerlendirme)
3.1
eslamsoda

hello: I am a Java and Android developer. nowadays I have small steps to finish and application like shareit . this app is for windows and Android . so I have recent back ground that is very close to your task.

in %bids___i_period_sub_35% gün içinde61%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0
datotahost

We have experts on JAVA application development we working on Spring, Hibernate and Struts framework

in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0
Codingtech1

I have gone check your project description I can do it very well, I have 7 years of experience with Software architecture, Windows, Coding, C, C++, C# Programming, Python, Java, JavaScript, Angular.js, React.js, MySQL, Daha Fazla

in %bids___i_period_sub_35% gün içinde100%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0
nestorpan

I have experience in Java programming and sockets. Relevant Skills and Experience Java, sockets.

in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0