Method and system for data processing

Information

  • Patent Application
  • 20070223532
  • Publication Number
    20070223532
  • Date Filed
    March 21, 2007
    17 years ago
  • Date Published
    September 27, 2007
    16 years ago
Abstract
A method and system for processing data between communication protocol layers are discussed. According to an embodiment, a memory is formed in a data link layer to store data received from a lower layer and to transmit the stored data to an upper layer, so that a data loss due to a data processing difference between different layers can be prevented.
Description

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principle of the invention. In the drawings:



FIG. 1 is a view illustrating layers for transmitting and receiving data in a communication system according to an embodiment of the present invention;



FIG. 2 is a view illustrating an example of a DLL in which a memory buffer is provided and a related layer thereof according to an embodiment of the present invention;



FIG. 3 is a view illustrating an example of a ring buffer according to an embodiment of the present invention;



FIG. 4 is a flowchart explaining an operation of setting, at an LLC sublayer, a ring buffer according to an embodiment of the present invention;



FIG. 5 is a block diagram illustrating an example of a ring buffer managed by an LLC sublayer according to the present invention; and



FIG. 6 is a flowchart illustrating a method of processing data through a ring buffer of an LLC sublayer according to an embodiment of the present invention.


Claims
  • 1. A method for processing data in transmitting data through a plurality of layers, the method comprising: storing, in a buffer memory provided in a first sublayer of one of the layers, data received from a second sublayer of the one layer; andtransmitting the stored data from the first sublayer to an upper layer above the one layer.
  • 2. The method according to claim 1, wherein the buffer memory is set in the first sublayer of the one layer according to a setting command of at least one service primitive.
  • 3. The method according to claim 2, wherein the at least one service primitive includes a first service primitive of ‘L_Data.Status_Request’, which includes data regarding whether the buffer memory is required in the first sublayer of the one layer, and/or a maximum buffer amount display data.
  • 4. The method according to claim 2, wherein the at least one service primitive includes a second service primitive of ‘L_Data.Indication’, which includes data regarding the second sublayer for transmitting data, an identifier, data regarding an amount or number of data transmitted from the first sublayer to the upper layer, and N which is a number of total data to be transmitted to the upper layer.
  • 5. The method according to claim 4, wherein the amount or number of the data transmitted from the first sublayer to the upper layer, is determined depending on a delay degree of transmission from the first sublayer to the upper layer.
  • 6. The method according to claim 4, wherein the amount or number of the data transmitted from the first sublayer to the upper layer, is determined on the basis of a transmission processing difference between the first and second sublayers.
  • 7. The method according to claim 1, further comprising: judging whether or not assigning of the buffer memory in the first sublayer is appropriate.
  • 8. The method according to claim 7, wherein the judging step determines whether a size of the buffer memory assigned to the first sublayer is appropriate on the basis of a transmission processing difference between the first and second sublayers.
  • 9. The method according to claim 7, further comprising: generating a response to the determination of whether the size of the buffer memory assigned to the first sublayer is appropriate, wherein the response is a service primitive of L_Data.Status_Response (Set_Status[OK/NOT_OK]).
  • 10. The method according to claim 1, further comprising: judging whether data stored in the buffer memory of the first sublayer is overwritten.
  • 11. The method according to claim 10, wherein if the data stored in the buffer memory of the first sublayer is judged to be overwritten, the method further comprises: informing the upper layer about the overwriting of the data in the first sublayer.
  • 12. The method according to claim 11, wherein the overwriting of the data is informed using a service primitive of L_Data.Status_Error.
  • 13. The method according to claim 1, wherein the first and second sublayers are respectively a logical link control (LLC) sublayer and a media access control (MAC) sublayer formed in a data link layer (DLL).
  • 14. A method for controlling transmission of data, the method comprising: determining an amount or number of data to be transmitted to an upper layer of a data link layer on the basis of one of a processing amount and a processing speed of a logical link control sublayer of the data link layer; andsetting a memory in the logical link control sublayer based on the determination result.
  • 15. A method for processing data at a logical link control layer of a communication protocol, the method comprising: setting a ring buffer in the logical link control layer for temporarily storing data in response to a control message;sequentially storing received data in the ring buffer; andjudging whether the received data are transmittable to an upper layer, and transmitting the data stored in the ring buffer to the upper layer based on the judging result.
  • 16. The method according to claim 15, wherein the control message comprises data regarding a size of the ring buffer and/or data regarding whether or not the ring buffer is set.
  • 17. The method according to claim 15, wherein the control message is defined as a service primitive of L_Data.Status_Request.
  • 18. The method according to claim 15, wherein the control message is controlled to perform: setting whether the ring buffer is to be used; andif the ring buffer is to be used, setting a size of the ring buffer.
  • 19. The method according to claim 15, wherein a service primitive of L_Data.Indication is redefined in order to store the received data in the ring buffer and transmit the stored data.
  • 20. The method according to claim 15, wherein the ring buffer comprises a head in which data is initially stored, and a tail in which data is last stored, and latest data are sequentially stored last.
  • 21. The method according to claim 15, wherein the ring buffer is set to store M data according to the control message.
  • 22. The method according to claim 15, further comprising: deleting a portion of data stored in the ring buffer that has been transmitted to the upper layer, after the portion of data stored in the ring buffer has been transmitted to the upper layer.
  • 23. A communication protocol structure for processing data, the structure comprising: a data link layer (DLL) including a logical link control (LLC) sublayer and a medium access control (MAC) sublayer; andan upper layer, above the DLL, for receiving data from the LLC sublayer,wherein the DLL receives a first service primitive for setting a memory in the LLC sublayer and sets the memory in the LLC sublayer according to the first service primitive.
  • 24. The structure according to claim 23, wherein the LLC sublayer receives a second service primitive for performing at least one operation of storing data received from the MAC sublayer in the set memory and transmitting the stored data to the upper layer, and performs the at least one operation according to the second service primitive.
  • 25. The structure according to claim 23, wherein the first service primitive performs: a function of defining whether the memory is to be used; anda function of setting a size of the memory.
  • 26. The structure according to claim 24, wherein the second service primitive is a service primitive of L_Data.Indication.
  • 27. The structure according to claim 23, wherein the memory is a ring buffer defined to store N data starting from a head to a tail of the ring buffer.
Priority Claims (1)
Number Date Country Kind
10-2006-0026316 Mar 2006 KR national