Programmers for Hire
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgrammers for Hire

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 24th, 2004, 09:44 PM
DinoH DinoH is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 4 DinoH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Need Java or C programmers...

here is the problem:

Quote:

Write a program to simulate a Stop-and-wait ARQ. This protocol should groups of asynchronous characters together for transmission and compute a checksum, which is appended to the end of the block.

The checksum is obtained by first taking the sum of the ASCII value of each data character in the block and dividing that sum by 255. Then the quotient is discarded and the remainder is appended to the block as the checksum.

The receiving device performs the same operation and this "Internally" generated checksum is compared to the transmitted checksum. If the two checksums match, the block is considered to have been received error-free.

You need to implement all aspects of the Data link layer.

There should be Line control, Flow control, and error control.



Format of the Frame:

First byte: Start of header ASCII SOH: 00000001

Next byte: Block number or Sequence number

Next byte: One's complement Obtained by subtracting block number from 255.

Next byte: Checksum value

Followed by 128 characters of data.

Size of frame: 132



Error detection

1. If SOH is damaged send back a NAK.

2. If the block number or the one's complement is damaged, they will not be one's complement of each other. Send backs a NAK.

3. Checksum produced by the receiver does not match the transmitted value, transmit a NAK.

* For all three situations the negative acknowledgement will serve as a request to the transmitting station to retransmit the previously transmitted block.

You need to demonstrate error handling in the following situations:
  1. Damaged Frame 2. Lost Ack 3. Lost NAK.

    Error checking to be demonstrated by use of signals
    (ie ^C – Damaged Frame ^Z – Lost ACK ^\ - Lost NAK)
You need to have a "layer" that sits on top of this layer.

The job of this layer is "End-to-End" transmission.

At the sender's end: read a line of text from a file.

At the reciver's end: discard duplicates,reorder frames and write to a file.

Simulate the physical layer by the use of "pipes".



if you feel you can do this...email me at dinohood@yahoo.com

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgrammers for Hire > Need Java or C programmers...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway