answersLogoWhite

0


Best Answer

Basically the frame are sent from the sender side by assigning a frame id,which could be a number.During the transmission of frames across the link the frames can be transmitted out of order w.r.t the frame id assigned to each of the frame.

The frames need to be in order to maintain integrity.

Even though the frames are sent in order,during the transmission the frames may experience delay or routing or any other event which can shuffle the order.

Thus frame sorting is done at the receiver side at the buffer at the DATA Link layer

before sending it to the higher layers.

The sorting can be done in many sorting techniques like bubble sort,merge sort etc.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

#include<stdio.h>

struct frame{

int num;

char str[20];

};

struct frame arr[10];

int n;

void sort() /*Bubble sort */

{

int i,j;

struct frame temp;

for(i=0;i<n-1;i++)

for(j=0;j<n-i-1;j++)

if(arr[j].num>arr[j+1].num)

{ temp=arr[j];

arr[j]=arr[j+1];

arr[j+1]=temp;

}

}

int main()

{

int i;

system("clear");

printf("Enter the number of frames\n");

scanf("%d",&n);

printf("Enter the frame sequence number and frame contents\n");

for(i=0;i<n;i++)

scanf("s",&arr[i].num,&arr[i].str);

sort();

printf("The frame in sequences\n");

for(i=0;i<n;i++)

printf("%d\t%s\n",arr[i].num,arr[i].str);

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Frame sorting technique used in buffers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Do buffers react to acids and bases to keep pH in a?

Buffers are used to maintain the pH constant.


A what concentration is DTT used in buffers?

1mM


Why water don't used instead of buffer?

In many experiments, buffers are used instead of water becuase buffers control pH, whereas water does not.


Are electric paint buffers harmful to your cars finish?

No. Electric paint buffers are used to quickly repair a car's finish.


What is the chemistry of common buffers used in microbiological media?

Some of the chemistry of common buffers used in microbiological media include amino acids and peptones. Usually, an acidic buffer is used.


Weak acid or base that prevents sharp swings in pH?

A buffer is the substance that prevents rapid or large swings in pH. There are two types of buffers; acidic buffers and basic buffers.


What is the structural frame?

Structual Frame- What materials have been used? (technique) What signs or symbols have been used? What values and beliefs are respresented? How has the artwork been organised? Look at focal point, blance cospositional devices. they include the 5 elements of design: colour,tone,shape,line and texture


What is a buffers function in regards to normal cell formation.?

Buffers do play a very important part in cell function. With out buffers cells could die. This is why buffers are put in affect. A buffer is a compound used to release H or accept it to change the cells H concentration.


What is micro motion study?

micromotion is the most refined technique for the analysis of an existing work center. videotapes or motion pictures and using frame-by-frame are used to uncover every possible opportunity for improvement.


What is micro-motion study?

micromotion is the most refined technique for the analysis of an existing work center. videotapes or motion pictures and using frame-by-frame are used to uncover every possible opportunity for improvement.


What are the uses of a buffer?

Buffers are used to maintain pH of the solution


What propaganda technique is used in What propaganda technique is used in this example?

Loaded Words is the technique that is used.