* * * * *

Implementation of fragmentation concept using C program.

Following assumptions are taken while implementing this program.
  • Assume MTU size is 5 characters. 
  • Assuming Source IP= and Destination IP=
  • All fragments will be displayed on screen.
  • For sample input content: "Hello Student. How are you?" Output generated will be as under:
         1,,, stud
         3,,,How a
         4,,,re yo
         Total fragments created=6

UDP Header implementation
This C program generates UDP Header with following assumptions:

1. Sample data in input.txt file: ABC
2. Source Port=1100, Destination Port=1101
3. Total length=50
4. You may use your logic for Checksum calculation.
5. Output of the program is stored in UDP Header.txt file.

For the given input "ABC", output in the UDPHeader file is as under:


* * * * *

Simulation of Framing Concept using C language.


1. Header contains following parameters:
    FrameNumber, SourceIP, DestinationIP,FiveCharacters of Data
2. SourceIP=
3. DestinationIP=
4. Input data is taken from input.txt file.
5. Generated Frames will be stored in output.txt file.

Click here to check C program.

1 comment: