Data Communication Networks - Program #1 - CS-Sublayer

Assignment:

Program #1

Assigned:

Feb. 28, 2001, Wednesday

Due:

March 14, 2001, Wednesday, beginning of class

Note:

No late programs accepted

Program #1 simulates the CS-sublayer of AAL. The program is to be written in C++ and submitted by:

The program must include within comments:

The program consists of a C++ class simulating the CS-sublayer of AAL. The class should include:

The program will:

  1. Either generate or read from a file a long string of characters (make sure it is at least five times {plus a few characters} as long as the maximum length for the information field).
  2. Generate CS-pdus from the input, keeping the order of the pdus generated as the integer in the header (i.e., header = 0, 1, 2, 3, etc.), and cutting the data given into the information fields. If the information is too small, pad the information field with zeros.
  3. Put these CS-pdus into a large list so they can be sent to the SAR layer (which is not in this program).
  4. Print out the list of pdus.

 

Good Luck - this should be a short program!