IMPLEMENTATION OF SLIDING WINDOW PROTOCOL
PROGRAM:
#include
#include
void main()
{
int a[20],b[20],i=0,j=0,k=0,l=0,n;
clrscr();
printf("\nEnter the size of window:");
scanf("%d",&n);
printf("\nenter the values:\n");
for(i=n-1;i>=0;i--)
scanf("%d",&a[i]);
printf("\nValues of sender and receiver:\n");
for(i=0;i
for(j=0;j
for(i=n-1,j=0;i>=0;i--,j++)
{
b[j]=a[i];
a[i]=0;
printf("\nSENDER\n");
for(k=0;k
printf("\nRECEIVER\n");
for(l=0;l
printf("\nDATA RECEIVED\n");
}
for(k=0;k
b[k]=0;
}
printf("\nDATA RECEIVED SUCCESSFULLY\n");
getch();
}
OUTPUT:
Enter the size of window:4
enter the values:
1
5
7
4
Values of sender and receiver:
4 7 5 1 0 0 0 0
SENDER
4 7 5 0
RECEIVER
1 0 0 0
DATA RECEIVED
SENDER
4 7 0 0
RECEIVER
1 5 0 0
DATA RECEIVED
SENDER
4 0 0 0
RECEIVER
1 5 7 0
DATA RECEIVED
SENDER
0 0 0 0
RECEIVER
1 5 7 4
DATA RECEIVED
DATA RECEIVED SUCCESSFULLY
CIET college Programs,LAB Programs for Engineering Students,Computer Networks LAB Programs,Remoboys,karthik,Remokn,Student3k,TCP programs source code
Wednesday, September 22, 2010
IMPLEMENTATION OF SLIDING WINDOW PROTOCOL


Popular Posts( Last 7 Days )
-
Prateik Babbar & Aamir Khan on the cover of Man's World, Aamir Khan on the cover of Man's World Magazine, Prateik Babbar on the...
-
1,76,652,00,00,000. ஒரு சராசரி இந்தியன் இந்தத் தொகையைக் குழப்பமின்றி எழுத்துக் கூட்டிக் கணக்கிட சில நிமிஷங்கள் ஆகும். இந்தியத் தொலைத்தொடர...
-
Final squads of the 14 participating teams: Australia: Ricky Ponting (capt), Michael Clarke, Doug Bollinger, Brad Haddin, John Hastings,...
-
Melyssa Ford hot wallpapers Melyssa Ford wallpapers Melyssa Ford wallpaper
-
Actress Anjali,Monica at Muthuku Muthaga Movie Audio Launch,tamil actress anjali new cute stills at muthuku muthaga music launch function g...