CN106936734B - Information reporting method and device - Google Patents

Information reporting method and device Download PDF

Info

Publication number
CN106936734B
CN106936734B CN201511020236.2A CN201511020236A CN106936734B CN 106936734 B CN106936734 B CN 106936734B CN 201511020236 A CN201511020236 A CN 201511020236A CN 106936734 B CN106936734 B CN 106936734B
Authority
CN
China
Prior art keywords
reported
value
data volume
service
token
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201511020236.2A
Other languages
Chinese (zh)
Other versions
CN106936734A (en
Inventor
刘毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanechips Technology Co Ltd
Original Assignee
Sanechips Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanechips Technology Co Ltd filed Critical Sanechips Technology Co Ltd
Priority to CN201511020236.2A priority Critical patent/CN106936734B/en
Priority to PCT/CN2016/102269 priority patent/WO2017113935A1/en
Publication of CN106936734A publication Critical patent/CN106936734A/en
Application granted granted Critical
Publication of CN106936734B publication Critical patent/CN106936734B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an information reporting method and device, wherein the method comprises the following steps: the ONU determines the data volume of the service which needs to be reported currently, and acquires the numerical value of a token in a token bucket, wherein the numerical value of the token is used for indicating the maximum value of the data volume of the service which can be uploaded by the ONU; comparing the data volume of the service needing to be reported currently with the maximum data volume which can be uploaded to the OLT, and selecting a numerical value with a smaller data volume; and when a first set period comes, reporting the numerical value of the selected data quantity to the OLT.

Description

Information reporting method and device
Technical Field
The present invention relates to optical network communication technologies, and in particular, to an information reporting method and apparatus.
Background
A passive Optical Network is composed of a local end device such as an Optical Line Terminal (OLT) and a plurality of end devices such as Optical Network Units (ONUs). The ONU uploads the message in a time division multiplexing mode, and the time for each ONU to upload the message is distributed and controlled by the OLT. And the OLT issues the bandwidth of the ONU through a dynamic bandwidth allocation DBA algorithm according to the reported condition of the ONU bandwidth.
In the ONU equipment, when the message is successfully enqueued, the byte number of the message buffer in the current queue is reported to the OLT equipment. When the message is output to a Passive Optical Network media access Control (PON MAC), the ONU device may select to perform rate-limiting processing on the service. When the speed limit processing of the service is not carried out, the service can be scheduled and output to the PON MAC according to the bandwidth allocated by the OLT, and is sent to the OLT equipment after being packaged; when the service is scheduled to limit the speed, the bandwidth of the message sent to the OLT device may be smaller than the bandwidth allocated to the ONU by the OLT due to the influence of the speed limit.
The general method of the ONU is to directly report the number of bytes of the message in the buffer to the OLT device through the reporting mechanism of the ONU, and the OLT allocates and manages the bandwidth issued to each ONU, without considering the situation that the bandwidth reported by the ONU is very large all the time. If there is a large difference between the actual bandwidth of the message sent by the ONU and the bandwidth sent by the OLT to the ONU, that is, the number of bytes of the reported buffer bytes of the message is large, but the number of bytes of the message actually sent to the OLT is small, which will cause the waste of bandwidth resources uploaded to the OLT by the ONU, and each time the ONU reports and applies for a large bandwidth, the OLT allocates the bandwidth according to the number of bytes reported, which may affect the service upload of other ONUs working normally because of these false applications.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide an information reporting method and apparatus.
A method for reporting information, the method comprising:
an Optical Network Unit (ONU) determines the data volume of the service which needs to be reported currently, and acquires the value of a token in a token bucket, wherein the value of the token is used for indicating the maximum value of the data volume of the service which can be uploaded by the ONU;
comparing the data volume of the service needing to be reported currently with the maximum data volume which can be uploaded to the OLT, and selecting a numerical value with a smaller data volume;
and reporting the value of the selected data volume.
As an implementation, the method further comprises:
when the speed limit processing is determined to be needed, adding tokens;
adding the added tokens and the existing tokens in the token bucket to obtain a new token number;
and taking the new token number as the current token number in the token bucket.
As an implementation, the method further comprises:
and when the number of the remaining tokens in the token bucket or the data volume of the service needing to be reported currently is updated, selecting a smaller numerical value as the data volume numerical value reported to the OLT.
As an implementation manner, the determining the data volume of the service that needs to be reported currently includes:
and when the service is aged, subtracting the data quantity value of the aged service from the data quantity value of the current service to be reported, and taking the difference value as the updated data quantity value of the current service to be reported.
As an implementation, the method further comprises:
when a second set period comes, adding the tokens to be added and the existing tokens in the token bucket to obtain a new token number; taking the new token number as the maximum data volume which can be uploaded to the OLT; and
updating the data volume of the service needing to be reported currently;
before a first set period comes, continuously updating the number of tokens in a token bucket and the data volume of the service needing to be reported currently;
when a first set period comes, comparing the updated token number with the updated data volume of the current service to be reported, and selecting a smaller value as a data volume value reported to the OLT;
and the second set period is less than the period of reporting the value of the selected data volume.
As an implementation manner, after reporting the value of the selected data amount to the OLT, the method further includes:
subtracting the numerical value of the reported data quantity from the numerical value of the data quantity of the service to be reported, and taking the obtained difference value as the numerical value of the data quantity of the current service to be reported;
and subtracting the reported data quantity value from the residual token number in the token bucket, and taking the difference value as the updated residual token number.
As an implementation, the method further comprises:
and when a new message is enqueued, taking the sum of the data volume of the newly enqueued message and the data volume of the current message in the queue as the data volume of the current service to be reported.
An information reporting apparatus, the apparatus comprising: the device comprises a first determining unit, an acquiring unit, a comparing unit and a reporting unit, wherein:
the first determining unit is used for determining the data volume of the service needing to be reported currently;
the acquiring unit is used for acquiring a value of a token in a token bucket, wherein the value of the token is used for indicating the maximum value of the data volume of the service which can be uploaded by the ONU;
a comparing unit, configured to compare the data volume of the current service to be reported with the maximum data volume that can be uploaded to the OLT, and select a numerical value with a smaller data volume;
and the reporting unit is used for reporting the value of the selected data quantity to the OLT.
As one implementation, the apparatus includes: a second determining unit, an adding unit, and a calculating unit, wherein:
the second determining unit is used for determining whether speed limiting processing is needed or not and triggering the adding unit when needed;
an adding unit for adding a token;
the computing unit is used for adding the added tokens and the existing tokens in the token bucket to obtain a new token number; and taking the new token number as the current token number in the token bucket.
As an implementation manner, the comparing unit is configured to select a smaller value as the data quantity value reported to the OLT when the remaining number of tokens in the token bucket or the data quantity of the service that needs to be reported currently is updated.
As an implementation manner, the first determining unit is further configured to subtract, when the service is aged, the data volume value of the aged service from the data volume value of the service that needs to be reported currently, and use a difference value of the data volume value of the service that needs to be reported currently as the updated data volume value of the service that needs to be reported currently.
As an implementation manner, the obtaining unit is further configured to, when a second set period comes, add a token to be added to an existing token in the token bucket to obtain a new token number; taking the new token number as the maximum data volume which can be uploaded to the OLT; and
updating the data volume of the service needing to be reported currently; before a first set period comes, continuously updating the number of tokens in a token bucket and the data volume of the service needing to be reported currently; when a first set period comes, comparing the updated token number with the updated data volume of the current service to be reported, and selecting a smaller value as a data volume value reported to the OLT;
wherein the second setting period is less than the reporting period of the reporting unit.
As an implementation manner, after reporting the value of the selected data amount to the OLT, the obtaining unit is further configured to subtract the value of the reported data amount from the value of the data amount of the service to be reported, and use an obtained difference value as the value of the data amount of the service to be reported currently;
and subtracting the reported data quantity value from the residual token number in the token bucket, and taking the difference value as the updated residual token number.
As an implementation, the apparatus further comprises:
and the queue management unit is used for taking the sum of the data volume of the newly enqueued message and the data volume of the current message in the queue as the data volume of the current service to be reported when the new message is enqueued.
In the technical scheme of the embodiment of the invention, the ONU determines the data volume of the service which needs to be reported currently, and calculates the maximum data volume which can be uploaded to the OLT; comparing the data volume of the service needing to be reported currently with the maximum data volume which can be uploaded to the OLT, and selecting a numerical value with a smaller data volume; and when a first set period comes, reporting the numerical value of the selected data quantity to the OLT. By adopting the technical scheme of the embodiment of the invention, the condition that the difference between the issued bandwidth and the actual transmission bandwidth is too large when the bandwidth is reported is eliminated, so that the OLT is more accurate when Dynamic Bandwidth Allocation (DBA) processing is carried out, the bandwidth waste when the ONU uploads the message and the problem of preemption when the ONU carries out bandwidth allocation are avoided, and the utilization rate of ONU bandwidth uploading under the whole OLT equipment is improved.
Drawings
Fig. 1 is a schematic flow chart of an information reporting method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a specific implementation structure of an information reporting apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating bandwidth information calculation according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a logic structure of an information reporting apparatus according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
Fig. 1 is a flowchart illustrating an information reporting method according to an embodiment of the present invention, and as shown in fig. 1, the information reporting method of this example includes the following steps:
step 101, the ONU determines the data volume of the service which needs to be reported currently, and acquires the numerical value of the token in the token bucket.
In the embodiment of the present invention, the value of the token is used to indicate the maximum value of the data volume of the service that the ONU can upload.
In the embodiment of the present invention, the method further includes: when the speed limit processing is determined to be needed, adding tokens;
adding the added tokens and the existing tokens in the token bucket to obtain a new token number;
and taking the new token number as the current token number in the token bucket.
In the embodiment of the present invention, the determining the data volume of the service that needs to be reported currently includes:
and when the service is aged, subtracting the data quantity value of the aged service from the data quantity value of the current service to be reported, and taking the difference value as the updated data quantity value of the current service to be reported.
In the embodiment of the invention, the message aging means setting the latest transmission time for all messages in the queue, and if the current time passes the latest transmission time of the messages, the messages in the queue are considered to be aged, that is, the messages still cannot be sent at the latest transmission time, the messages are sent again meaninglessly and need to be removed from the queue.
And 102, the ONU compares the data volume of the service which needs to be reported currently with the maximum data volume which can be uploaded to the OLT, and selects a numerical value with smaller data volume.
In the embodiment of the invention, when the number of the remaining tokens in the token bucket or the data volume of the service needing to be reported currently is updated, a smaller numerical value is selected as the data volume numerical value reported to the OLT.
In the embodiment of the present invention, it is further necessary to perform enqueue management on the packet in real time, and specifically, when a new packet is enqueued, the sum of the data volume of the newly enqueued packet and the data volume of the current packet in the queue is used as the data volume of the service that needs to be reported currently.
And 103, reporting the value of the selected data quantity to the OLT when the first set period comes.
In the embodiment of the invention, when the second set period comes, the token is added; adding the added tokens and the existing tokens in the token bucket to obtain a new token number; taking the new token number as the maximum data volume which can be uploaded to the OLT; and
updating the data volume of the service needing to be reported currently;
before a first set period comes, continuously updating the number of tokens in a token bucket and the data volume of the service needing to be reported currently;
when a first set period comes, comparing the updated token number with the updated data volume of the current service to be reported, and selecting a smaller value as a data volume value reported to the OLT;
wherein the second setting period is less than the first setting period. Specifically, the first setting period is a period for reporting a value of a current to-be-transmitted data amount to the OLT, and when the first setting period comes, the to-be-transmitted data amount is reported to the OLT; and the second set period is the update period of the token bucket. The first setting period may be an integer multiple of the second setting period, for example, the first setting period is at least 2 times or more the second setting period.
In this embodiment of the present invention, after reporting the value of the selected data amount to the OLT, the information reporting method of this example further includes:
subtracting the numerical value of the reported data quantity from the data quantity of the service to be reported, and taking the difference value as the numerical value of the data quantity of the current service to be reported;
and subtracting the reported data quantity value from the residual token number in the token bucket, and taking the difference value as the updated residual token number.
According to the technical scheme of the embodiment of the invention, the condition that the difference between the issued bandwidth and the actual transmission bandwidth is too large when the bandwidth is reported is eliminated, so that the OLT carries out DBA processing more accurately, the bandwidth waste when the ONU uploads the message and the problem of seizing when the ONU carries out bandwidth allocation are avoided, and the utilization rate of ONU bandwidth uploading under the whole OLT equipment is improved.
The essence of the technical solution of the embodiments of the present invention is further clarified by specific examples below.
The embodiment of the invention is provided for solving the problems and defects of bandwidth waste of ONU service uploading and bandwidth preemption among ONUs caused by mismatching of ONU reported bandwidth and actual uploaded bandwidth in the prior art. The implementation of which is explained in detail below.
Fig. 2 is a schematic diagram of a specific implementation structure of an information reporting apparatus according to an embodiment of the present invention, and as shown in fig. 2, the information reporting apparatus according to the embodiment of the present invention can be implemented by the structure shown in fig. 2, and includes the following processing units: the device comprises a queue management unit, a scheduling unit, a message output unit, a PON MAC unit and a bandwidth reporting and calculating unit; wherein:
a queue management unit: and carrying out message enqueue management, and sending the byte number of the enqueued message to a bandwidth report calculation unit when carrying out bandwidth report processing.
A scheduling unit: scheduling and outputting the message, limiting the speed of the service and aging the message; and when the bandwidth is reported, the aged byte number is sent to a bandwidth reporting calculation unit.
A message output unit: and responding to the request of the PON MAC unit of the ONU, outputting the message to the PON MAC unit, and simultaneously sending the output message information to the bandwidth reporting calculation unit.
PON MAC unit: receiving bandwidth authorization information issued by an OLT side, and requesting data transmission to a message output unit; and sends bandwidth report information to the OLT.
A bandwidth reporting and calculating unit: and finishing the bandwidth reporting calculation. And calculating and comparing according to the speed limit requirement of the service, the byte number of the newly added message managed by the queue, the actually reported byte number and the actually output message byte number to obtain a reported result, sending the reported result to the PON MAC unit, and finishing the bandwidth information reporting by the PON MAC unit.
According to the technical scheme of the embodiment of the invention, the condition that the difference between the issued bandwidth and the actual transmission bandwidth is too large when the bandwidth is reported is eliminated, so that the OLT carries out DBA processing more accurately, the bandwidth waste when the ONU uploads the message and the problem of seizing when the ONU carries out bandwidth allocation are avoided, and the utilization rate of ONU bandwidth uploading under the whole OLT equipment is improved.
Fig. 3 is a schematic diagram of calculating bandwidth information according to an embodiment of the present invention, and as shown in fig. 3, the calculating of bandwidth information according to the embodiment of the present invention includes the following processing steps:
when the bandwidth reporting calculation is carried out, the byte number of the service which needs to be reported currently in the cache is compared with the maximum byte number of the message which can be uploaded to the OLT, namely the residual token, and the smaller value of the two values is selected. When the set time is reached, the numerical value of the reported message data volume is accumulated and reported to the PON MAC unit, and the PON MAC unit carries out reporting processing according to the accumulated numerical value.
① when the enqueue of the message is successful, the byte number of the new enqueue message is sent to the bandwidth reporting calculation unit, and the bandwidth reporting calculation unit calculates the byte number of the message in the buffer memory according to the newly added reported byte number.
② when the service in the scheduling unit is aged, the byte number of the aged message is sent to the bandwidth reporting computing unit, and the bandwidth reporting computing unit recalculates the byte number of the message in the cache according to the byte number of the aged message.
③ bandwidth reporting and calculating unit adds token according to whether the service carries out speed limit treatment, adds the added token and the token bucket to obtain new token number.
④ when the remaining token number of the token bucket and the byte number of the message in the cache are updated, the new token number is compared with the byte number of the message in the cache, and the smaller value is selected as the byte number which really needs to be reported.
⑤ to prevent the reporting from being too fast and affecting the reporting process inside the PON MAC, choose to send the reporting data to the PON MAC according to the fixed time, accumulate the number of bytes that need to be reported here, and output the reporting information after the configured time is reached.
⑥ when the reported information is output to PON MAC, the byte number reported and output is subtracted from the byte number in buffer to update the byte number in buffer.
⑦ when the report information is output to PON MAC, the residual token bucket subtracts the byte number of the report output message, and updates the residual token number.
⑧ after obtaining OLT bandwidth authorization, the PON MAC unit sends a request to the message output unit, which outputs the scheduled message to the PON MAC, which packages and sends it to the OLT device.
The implementation of the technical solution of the embodiment of the present invention is further illustrated with reference to fig. 3 below:
1) suppose that queue management receives a packet with a packet length of 128 bytes, and sends the packet information to a bandwidth report calculation unit. Here, it is assumed that the number of bytes of the original message in the cache is 200; after receiving the new number of reported bytes, the number of messages in the cache is changed into 328 bytes.
2) And (3) triggering report calculation when the number of messages in the cache changes, reading the current token number, wherein the current token number is assumed to be 0, and comparing the number of cache bytes with the token number without performing report accumulated calculation at this time.
3) An aging processing request is received, and the length of an aging message is 64. The number of bytes of the cached message needs to be updated, the number of bytes of the cached message is updated to 264 by subtracting the number of bytes of the aged byte from the original number of bytes of the cached message.
4) After the byte number of the cache message is updated, triggering the reporting calculation, reading the current token number, wherein the token number is still 0, and after the byte number of the cache message is compared with the token number, the reporting accumulated calculation is not needed.
5) After 1 Δ T1, tokens are added, and if the number of added tokens is 16, the number of remaining tokens is updated to 16.
6) The update token also triggers the reporting calculation, reads the number of bytes of the report in the cache, and the value is 264. The number of the rest tokens is compared with the number of bytes of the message in the cache, 16 is selected as the report number and is sent to a report accumulation output part.
7) Here, assuming that the original accumulated value of the reported accumulated output is 0, the updated accumulated reported value is 16.
8) Because the reported number is already sent to the reporting accumulation part, the number of bytes of the report in the cache and the number of the remaining tokens both need to be updated, after subtracting the number of bytes of the report, the number of bytes of the cache message is 248, and the number of the remaining tokens is 0;
9) and adding tokens after 1 Δ T1, wherein the number of the added tokens is 16, and the number of the remaining tokens is updated to 16. The same operations as those of 6), 7) and 8) are performed, the number of bytes of the message in the buffer is 232, and the number of remaining tokens is 0.
10) At this time, the updated report is accumulated to 32.
11) After 6 Δ T1, the same operations of 6), 7), and 8) are repeated, the number of messages in the buffer is 136, the remaining tokens are 0, and the updated report is 128 in total.
12) At this time, when the time Δ T2 is reached, the cumulative report value 128 needs to be sent to the PON MAC, and the cumulative report value is cleared.
13) After 8 Δ T1 cycles, the same operations as 6), 7), and 8) are repeated, the number of messages in the buffer becomes 8, and the remaining tokens become 0. The updated reports amount to 128.
14) After 1 Δ T1, the same operations as those of 6), 7), and 8) are repeated, and the number of messages in the buffer becomes 0 and the remaining tokens become 8. The updated reports accumulate to 136.
15) At time Δ T2, the cumulative report value 136 needs to be sent to the PON MAC, and the cumulative report value is cleared.
16) After 1 Δ T1, the number of the remaining tokens is updated to 24, the number of the buffered messages is 0, and the buffered messages are not accumulated after comparison.
According to the technical scheme of the embodiment of the invention, the condition that the difference between the issued bandwidth and the actual transmission bandwidth is too large when the bandwidth is reported is eliminated, so that the OLT carries out DBA processing more accurately, the bandwidth waste when the ONU uploads the message and the problem of seizing when the ONU carries out bandwidth allocation are avoided, and the utilization rate of ONU bandwidth uploading under the whole OLT equipment is improved.
Fig. 4 is a schematic logical structure diagram of an information reporting apparatus according to an embodiment of the present invention, and as shown in fig. 4, the information reporting apparatus according to the embodiment of the present invention includes a first determining unit 40, an obtaining unit 41, a comparing unit 42, and a reporting unit 43, where:
a first determining unit 40, configured to determine a data volume of a service that needs to be reported currently;
an obtaining unit 41, configured to obtain a value of a token in a token bucket, where the value of the token is used to indicate a maximum value of a data amount of a service that the ONU can upload;
a comparing unit 42, configured to compare the data amount of the service that needs to be reported currently with the maximum data amount that can be uploaded to the OLT, and select a numerical value with a smaller data amount;
a reporting unit 43, configured to report the value of the selected data amount to the OLT.
In this embodiment of the present invention, on the basis of the information reporting apparatus shown in fig. 4, the information reporting apparatus further includes: a second determining unit (not shown in fig. 4), an adding unit (not shown in fig. 4), and a calculating unit (not shown in fig. 4), wherein:
the second determining unit is used for determining whether speed limiting processing is needed or not and triggering the adding unit when needed;
an adding unit for adding a token;
the computing unit is used for adding the added tokens and the existing tokens in the token bucket to obtain a new token number; and taking the new token number as the current token number in the token bucket.
In this embodiment of the present invention, the comparing unit 42 is configured to select a smaller value as the data quantity value reported to the OLT when the remaining number of tokens in the token bucket or the data quantity of the service that needs to be reported currently is updated.
In this embodiment of the present invention, the first determining unit 40 is further configured to subtract the data volume value of the aged service from the data volume value of the current service to be reported when the service is aged, and use a difference value of the data volume value of the current service to be reported as the updated data volume value of the current service to be reported.
In the embodiment of the invention, the message aging means setting the latest transmission time for all messages in the queue, and if the current time passes the latest transmission time of the messages, the messages in the queue are considered to be aged, that is, the messages still cannot be sent at the latest transmission time, the messages are sent again meaninglessly and need to be removed from the queue.
As an implementation manner, in the embodiment of the present invention, the obtaining unit 41 is further configured to add a token when a second setting period comes; adding the added tokens and the existing tokens in the token bucket to obtain a new token number; taking the new token number as the maximum data volume which can be uploaded to the OLT; and
updating the data volume of the service needing to be reported currently; before a first set period comes, continuously updating the number of tokens in a token bucket and the data volume of the service needing to be reported currently; when a first set period comes, comparing the updated token number with the updated data volume of the current service to be reported, and selecting a smaller value as a data volume value reported to the OLT;
wherein the second setting period is smaller than a reporting period (referred to as a first setting period) of the reporting unit. Specifically, the first setting period is a period for reporting a value of a current to-be-transmitted data amount to the OLT, and when the first setting period comes, the to-be-transmitted data amount is reported to the OLT; and the second set period (the reporting period of the reporting unit) is the update period of the token bucket. The first setting period may be an integer multiple of the second setting period, for example, the first setting period is at least 2 times or more the second setting period.
As an implementation manner, in the embodiment of the present invention, after reporting the value of the selected data amount to the OLT, the obtaining unit 41 is further configured to subtract the value of the reported data amount from the data amount of the service to be reported, and use the difference as the data amount value of the service to be reported currently;
and subtracting the reported data quantity value from the residual token number in the token bucket, and taking the difference value as the updated residual token number.
On the basis of the information reporting apparatus shown in fig. 4, the information reporting apparatus according to the embodiment of the present invention further includes:
and a queue management unit (not shown in fig. 4) configured to, when a new message is enqueued, take a sum of a data amount of the newly enqueued message and a data amount of a current message in the queue as a data amount of a service that needs to be reported currently.
Those skilled in the art should understand that the implementation functions of the above units can be understood by referring to the relevant description of the information reporting method in the foregoing embodiments. The functions of the units may be implemented by a program running on a processor, or may be implemented by specific logic circuits. As described above, the determining unit 40, the obtaining unit 41, the comparing unit 42, etc. can be implemented by an FPGA, a microprocessor, and a DSP, and the reporting unit 43 can be implemented by a data port, an antenna system, etc.
The technical schemes described in the embodiments of the present invention can be combined arbitrarily without conflict.
In the embodiments provided in the present invention, it should be understood that the disclosed method and intelligent device may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one second processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (14)

1. An information reporting method, the method comprising:
an Optical Network Unit (ONU) determines the data volume of the service which needs to be reported currently, and acquires the value of a token in a token bucket, wherein the value of the token is used for indicating the maximum value of the data volume of the service which can be uploaded by the ONU;
comparing the data volume of the service needing to be reported currently with the maximum data volume which can be uploaded to the OLT, and selecting a numerical value with a smaller data volume;
and reporting the value of the selected data volume.
2. The method of claim 1, further comprising:
when the speed limit processing is determined to be needed, adding tokens;
adding the added tokens and the existing tokens in the token bucket to obtain a new token number;
and taking the new token number as the current token number in the token bucket.
3. The information reporting method according to claim 1 or 2, wherein the method further comprises:
and when the number of the remaining tokens in the token bucket or the data volume of the service needing to be reported currently is updated, selecting a smaller numerical value as the data volume numerical value reported to the OLT.
4. The information reporting method of claim 1, wherein the determining the data volume of the service to be reported currently comprises:
and when the service is aged, subtracting the data quantity value of the aged service from the data quantity value of the current service to be reported, and taking the difference value as the updated data quantity value of the current service to be reported.
5. The information reporting method of claim 2, further comprising:
when a second set period comes, adding the tokens to be added and the existing tokens in the token bucket to obtain a new token number; taking the new token number as the maximum data volume which can be uploaded to the OLT; and
updating the data volume of the service needing to be reported currently;
before a first set period comes, continuously updating the number of tokens in a token bucket and the data volume of the service needing to be reported currently;
when a first set period comes, comparing the updated token number with the updated data volume of the current service to be reported, and selecting a smaller value as a data volume value reported to the OLT;
and the second set period is less than the period of reporting the value of the selected data volume.
6. An information reporting method as claimed in claim 1, wherein after reporting the value of the selected data amount to the OLT, the method further comprises:
subtracting the numerical value of the reported data quantity from the numerical value of the data quantity of the service to be reported, and taking the obtained difference value as the numerical value of the data quantity of the current service to be reported;
and subtracting the reported data quantity value from the residual token number in the token bucket, and taking the difference value as the updated residual token number.
7. The method of claim 1, further comprising:
and when a new message is enqueued, taking the sum of the data volume of the newly enqueued message and the data volume of the current message in the queue as the data volume of the current service to be reported.
8. An information reporting apparatus, comprising: the device comprises a first determining unit, an acquiring unit, a comparing unit and a reporting unit, wherein:
the first determining unit is used for determining the data volume of the service needing to be reported currently;
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the value of a token in a token bucket, and the value of the token is used for indicating the maximum value of the data volume of the service which can be uploaded by an ONU;
a comparing unit, configured to compare the data volume of the current service to be reported with the maximum data volume that can be uploaded to the OLT, and select a numerical value with a smaller data volume;
and the reporting unit is used for reporting the value of the selected data quantity to the OLT.
9. The information reporting apparatus according to claim 8, wherein the apparatus comprises: a second determining unit, an adding unit, and a calculating unit, wherein:
the second determining unit is used for determining whether speed limiting processing is needed or not and triggering the adding unit when needed;
an adding unit for adding a token;
the computing unit is used for adding the added tokens and the existing tokens in the token bucket to obtain a new token number; and taking the new token number as the current token number in the token bucket.
10. The apparatus according to claim 8 or 9, wherein the comparing unit is configured to select a smaller value as the data quantity value reported to the OLT when the remaining number of tokens in the token bucket or the data quantity of the service that needs to be reported currently is updated.
11. The apparatus according to claim 8, wherein the first determining unit is further configured to subtract, when the service is aged, the data quantity value of the aged service from the data quantity value of the current service to be reported, and use the difference as the updated data quantity value of the current service to be reported.
12. The information reporting device according to claim 9, wherein the obtaining unit is further configured to add the token to be added to the existing token in the token bucket to obtain a new token number when a second set period comes; taking the new token number as the maximum data volume which can be uploaded to the OLT; and
updating the data volume of the service needing to be reported currently; before a first set period comes, continuously updating the number of tokens in a token bucket and the data volume of the service needing to be reported currently; when a first set period comes, comparing the updated token number with the updated data volume of the current service to be reported, and selecting a smaller value as a data volume value reported to the OLT;
wherein the second setting period is less than the reporting period of the reporting unit.
13. The information reporting apparatus according to claim 8, wherein after reporting the value of the selected data amount to the OLT, the obtaining unit is further configured to subtract the value of the reported data amount from the value of the data amount of the service to be reported, and use an obtained difference as the value of the data amount of the service to be reported currently;
and subtracting the reported data quantity value from the residual token number in the token bucket, and taking the difference value as the updated residual token number.
14. The information reporting apparatus according to claim 8, wherein the apparatus further comprises:
and the queue management unit is used for taking the sum of the data volume of the newly enqueued message and the data volume of the current message in the queue as the data volume of the current service to be reported when the new message is enqueued.
CN201511020236.2A 2015-12-30 2015-12-30 Information reporting method and device Active CN106936734B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201511020236.2A CN106936734B (en) 2015-12-30 2015-12-30 Information reporting method and device
PCT/CN2016/102269 WO2017113935A1 (en) 2015-12-30 2016-10-17 Information report method, device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511020236.2A CN106936734B (en) 2015-12-30 2015-12-30 Information reporting method and device

Publications (2)

Publication Number Publication Date
CN106936734A CN106936734A (en) 2017-07-07
CN106936734B true CN106936734B (en) 2020-04-24

Family

ID=59224635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511020236.2A Active CN106936734B (en) 2015-12-30 2015-12-30 Information reporting method and device

Country Status (2)

Country Link
CN (1) CN106936734B (en)
WO (1) WO2017113935A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635739A (en) * 2003-12-26 2005-07-06 上海贝尔阿尔卡特股份有限公司 An apparatus and method of dynamic bandwidth allocation for passive optical network
CN101888342A (en) * 2010-07-23 2010-11-17 中兴通讯股份有限公司 Bandwidth distribution method and device
CN102104549A (en) * 2011-03-04 2011-06-22 中兴通讯股份有限公司 Method and device for distributing dynamic bandwidth of passive optical network
CN102684975A (en) * 2011-03-10 2012-09-19 中兴通讯股份有限公司 Dynamic bandwidth source allocation method and dynamic bandwidth source allocation device
CN104980367A (en) * 2014-04-03 2015-10-14 深圳市中兴微电子技术有限公司 Token bucket limiting speed method and apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100506209B1 (en) * 2003-06-16 2005-08-05 삼성전자주식회사 Dynamic bandwidth allocation method considering multiple servics for ethernet passive optical network
KR100526553B1 (en) * 2003-09-04 2005-11-03 삼성전자주식회사 Method and apparatus for controlling up stream traffic in ethernet passive optical network
CN101583056B (en) * 2009-06-12 2012-10-03 华为技术有限公司 Bandwidth processing method, network device and network system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635739A (en) * 2003-12-26 2005-07-06 上海贝尔阿尔卡特股份有限公司 An apparatus and method of dynamic bandwidth allocation for passive optical network
CN101888342A (en) * 2010-07-23 2010-11-17 中兴通讯股份有限公司 Bandwidth distribution method and device
CN102104549A (en) * 2011-03-04 2011-06-22 中兴通讯股份有限公司 Method and device for distributing dynamic bandwidth of passive optical network
CN102684975A (en) * 2011-03-10 2012-09-19 中兴通讯股份有限公司 Dynamic bandwidth source allocation method and dynamic bandwidth source allocation device
CN104980367A (en) * 2014-04-03 2015-10-14 深圳市中兴微电子技术有限公司 Token bucket limiting speed method and apparatus

Also Published As

Publication number Publication date
WO2017113935A1 (en) 2017-07-06
CN106936734A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
KR101279312B1 (en) Communication apparatus, communication system, and band allocating method
KR102369305B1 (en) Client transfer method and device
EP2466769B1 (en) Bandwidth allocation method and optical line terminal
JP5084919B2 (en) Master station apparatus and grant allocation method
JP6765572B1 (en) Network controller, communication resource allocation method and communication system
EP2608438A1 (en) Dynamic bandwidth allocation method and device
WO2016050022A1 (en) Method, device, system and computer storage medium for allocating uplink bandwidth
CN106936734B (en) Information reporting method and device
CN109479023B (en) Link control circuit
CN107872739B (en) Allocation method of LLID of ONU, OLT and EPON system
CN115314442A (en) Congestion control and Group-based speed limit window device and method and speed limit window method
JP4877483B2 (en) Transmission allocation method and apparatus
JP5276143B2 (en) Optical communication system
JP6829147B2 (en) Subscriber line end station equipment and band allocation method
JP2014165634A (en) Communication system, communication device and communication band control method
WO2021068639A1 (en) Method and device for sending bandwidth request, and storage medium and electronic device
JP2014011666A (en) Method for allocating band for uplink data and communication device
JP5826125B2 (en) BAND ALLOCATION METHOD, BAND ALLOCATION DEVICE, STATION TERMINAL TERMINAL DEVICE, AND PASSIVE OPTICAL NETWORK SYSTEM
JP6324915B2 (en) Bandwidth allocation method and communication apparatus
JP2019022143A (en) Office side optical termination device
CN117081930A (en) Uplink bandwidth allocation method and PON system
JP5992858B2 (en) Buffer control method and buffer device in station side terminal device
CN112262551A (en) Subscriber line terminal station apparatus and band allocation method
CN111866622A (en) Reducing power consumption of communication devices
JP2012151577A (en) Pon system and bandwidth allocation method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant