WO2023098550A1 - Data transmission method, light transmitting device, and light receiving device - Google Patents
Data transmission method, light transmitting device, and light receiving device Download PDFInfo
- Publication number
- WO2023098550A1 WO2023098550A1 PCT/CN2022/133920 CN2022133920W WO2023098550A1 WO 2023098550 A1 WO2023098550 A1 WO 2023098550A1 CN 2022133920 W CN2022133920 W CN 2022133920W WO 2023098550 A1 WO2023098550 A1 WO 2023098550A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- olt
- onu
- target data
- transmission bandwidth
- data
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/76—Admission 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/80—Actions related to the user profile or the type of traffic
Definitions
- the present application relates to the technical field of optical communication, and in particular to a data transmission method, an optical sending device, and an optical receiving device.
- the existing computing power system includes a global server load balancing (GSLB) server 101 and multiple service nodes.
- Each service node is registered with the GSLB server 101 .
- the request terminal 102 requests the GSLB server 101 to acquire resources.
- the request terminal 102 sends a request message to the GSLB server 101 .
- the GSLB server 101 can determine that the service node 103 has stored the resource requested by the requesting terminal 102 .
- the GSLB server 101 sends the address of the service node 103 to the requesting terminal 102 .
- the requesting terminal 102 can obtain the resource from the service node 103 according to the address of the service node 103 .
- the transmission bandwidth for the service node 103 to send the resource to the requesting terminal 102 is fixed. If the transmission bandwidth is too small, the service node 103 cannot successfully transmit the resource, and if the transmission bandwidth is too large, there is a disadvantage of wasting transmission bandwidth resources.
- the embodiment of the present invention provides a data transmission method, an optical sending device and an optical receiving device, which can flexibly realize the adjustment of the transmission bandwidth and improve the utilization rate of the transmission bandwidth.
- the first aspect of the embodiment of the present application provides a data transmission method, the method includes: the optical line terminal OLT receives the first OMCI message from the optical network unit ONU through the optical network unit management control interface OMCI channel, and the first The OMCI message is used to indicate the computing resources that can be allocated by the ONU; the OLT allocates a first transmission bandwidth between the OLT and the ONU according to the first OMCI message, and the first transmission bandwidth is related to the ONU.
- the computing resource indicated by the first OMCI message corresponds to; the OLT obtains the data amount information of the target data, the target data is the data to be transmitted between the OLT and the ONU, and the data amount information is related to the The target data is related to the data volume transmitted between the OLT and the ONU; the OLT adjusts the first transmission bandwidth to the second transmission bandwidth according to the data volume information of the target data; the OLT and transmitting the target data with the ONU through the second transmission bandwidth.
- the OLT obtains the first OMCI message used to indicate the computing power resource of the ONU through the OMCI channel, which effectively improves the security and efficiency of the ONU reporting the computing power resource to the OLT.
- the OLT can dynamically adjust the first transmission bandwidth to obtain the second transmission bandwidth according to the computing resources of the ONU and the data volume information of the target data to be transmitted, which effectively improves the flexibility of adjusting the transmission bandwidth.
- the transmission bandwidth can match the computing resources of the ONU, it can also match the transmission of the target data, which improves the utilization rate of the transmission bandwidth.
- the first OMCI message includes an extended message, and the extended message is used to carry the computing resources that can be allocated by the ONU.
- the extended message is in java script object notation format or tag length value TLV format.
- the first OMCI message carries the computing power resource of the ONU, which improves the security of the ONU reporting the computing power resource to the OLT.
- the OLT obtaining the data amount information of the target data includes: the OLT receiving a second OMCI message from the ONU through the OMCI channel, and the second OMCI The message carries the data volume information of the target data; the OLT acquires the data volume information of the target data according to the second OMCI message.
- the second OMCI message transmitted through the OMCI channel carries the data volume information of the target data, which effectively improves the security of the ONU reporting the data volume information of the target data to the OLT.
- the method further includes: the OLT sending bandwidth allocation information to the ONU, where the bandwidth allocation information is used to indicate the second transmission bandwidth.
- the ONU can determine the second transmission bandwidth for transmitting the target data according to the bandwidth allocation information. Effectively guarantee the successful transmission of the target data.
- the OLT acquiring the data amount information of the target data includes: the OLT receiving the target data from a server; the OLT acquiring the data according to the target data amount of information.
- the OLT can obtain the data volume information of the target data according to the target data, so that the second transmission bandwidth adjusted by the OLT can match the demand of the data volume information of the target data, effectively ensuring the successful transmission of the target data , and can also improve the utilization rate of bandwidth resources between the OLT and the ONU.
- the acquiring the data volume information of the target data by the OLT includes: the OLT receiving the data volume information of the target data from a server.
- the OLT can receive the data amount information of the target data from the server, and the OLT adjusts the first transmission bandwidth according to the data amount information of the target data to obtain the second transmission bandwidth, which effectively improves the acquisition of the second transmission bandwidth. s efficiency.
- the OLT obtaining the data amount information of the target data includes: the OLT obtaining a bandwidth allocation list, and the bandwidth allocation list includes different data amount information and corresponding transmission bandwidth Relationship; the OLT determines the second transmission bandwidth corresponding to the data volume information of the target data according to the bandwidth allocation list.
- the OLT can determine the second transmission bandwidth corresponding to the data volume information of the target data based on the bandwidth allocation list, which improves the efficiency and accuracy of adjusting the second transmission bandwidth.
- the size of the second transmission bandwidth is positively correlated with the size of the parameters included in the data amount information, and the parameters included in the data amount information include the following At least one of:
- the rate of the target data the code rate of the target data, the traffic of the target data, the frame rate of the target data, the peak traffic of the target data, or the average traffic of the target data.
- the first OMCI message includes an extended message, and the extended message is used to carry the computing resources that can be allocated by the ONU.
- the extended message is in java script object notation format or tag length value TLV format.
- the method before the ONU transmits the target data to the OLT through the second transmission bandwidth, the method further includes: the ONU sends to the OLT through the OMCI channel A second OMCI message, where the second OMCI message carries data amount information of the target data.
- the method before the ONU transmits the target data with the OLT through the second transmission bandwidth, the method further includes: the ONU receives bandwidth allocation information from the OLT, The bandwidth allocation information is used to indicate the second transmission bandwidth.
- the size of the second transmission bandwidth is positively correlated with the size of the parameters included in the data amount information, and the parameters included in the data amount information include the following At least one of:
- the rate of the target data the code rate of the target data, the traffic of the target data, the frame rate of the target data, the peak traffic of the target data, or the average traffic of the target data.
- the third aspect of the embodiment of the present application provides an optical line terminal OLT, including: a processor, a memory, and an optical transceiver, wherein the processor is connected to the memory and the optical transceiver through a line; the The optical transceiver is used to receive the first OMCI message from the optical network unit ONU through the optical network unit management control interface OMCI channel, and the first OMCI message is used to indicate the computing resources that can be allocated by the ONU; the processor Calling the program code in the memory is used to allocate the first transmission bandwidth between the OLT and the ONU according to the first OMCI message, and the first transmission bandwidth is the same as that indicated by the first OMCI message Corresponding to computing power resources; the processor is also used to obtain data volume information of target data, the target data is data to be transmitted between the OLT and the ONU, and the data volume information is related to the target data The amount of data transmitted between the OLT and the ONU is related; the processor is further configured to adjust the first transmission bandwidth to the second transmission bandwidth according to
- the first OMCI message includes an extended message, and the extended message is used to carry the computing resources that can be allocated by the ONU.
- the extended message is in java script object notation format or tag length value TLV format.
- the optical transceiver is further configured to receive a second OMCI message from the ONU through the OMCI channel, the second OMCI message carrying the target data the data volume information of the target data; the processor is further configured to acquire the data volume information of the target data according to the second OMCI message.
- the fourth aspect of the embodiment of the present application provides an optical network unit ONU, including: a processor, a memory, and an optical transceiver, wherein the processor is connected to the memory and the optical transceiver through lines respectively;
- the processor calls the program code in the memory to obtain a first OMCI message according to the allocated computing power resources of the ONU, and the first OMCI message is used to indicate the allocated computing power resources of the ONU;
- the optical transceiver is used to send the first OMCI message to the optical line terminal OLT through the optical network unit management control interface OMCI channel;
- the optical transceiver is also used to transmit target data with the OLT through the second transmission bandwidth , wherein the second transmission bandwidth is adjusted according to the first transmission bandwidth and the data volume information of the target data, the first transmission bandwidth corresponds to the computing resources indicated by the first OMCI message, and the The data volume information of the target data is related to the data volume of the target data transmitted between the OLT and the ONU.
- the first OMCI message includes an extended message, and the extended message is used to carry the computing resources that can be allocated by the ONU.
- the extended message is in java script object notation format or tag length value TLV format.
- the optical transceiver is further configured to send a second OMCI message to the OLT through the OMCI channel, the second OMCI message carrying the target data Data volume information.
- the fifth aspect of the embodiment of the present application provides an optical line terminal OLT
- the OLT includes: a receiving unit, configured to receive the first OMCI message from the optical network unit ONU through the optical network unit management control interface OMCI channel, the first The OMCI message is used to indicate the computing resources that can be deployed by the ONU; the allocation unit is used to allocate the first transmission bandwidth between the OLT and the ONU according to the first OMCI message, and the first transmission bandwidth Corresponding to the computing resources indicated by the first OMCI message; an adjustment unit, configured to obtain data volume information of target data, the target data being data to be transmitted between the OLT and the ONU, the data The volume information is related to the data volume of the target data transmitted between the OLT and the ONU; it is also used to adjust the first transmission bandwidth to the second transmission bandwidth according to the data volume information of the target data a transmission unit, configured to transmit the target data with the ONU through the second transmission bandwidth.
- the sixth aspect of the embodiment of the present application provides an optical network unit ONU, the ONU includes: an acquisition unit, configured to acquire a first OMCI message according to the computing resources that can be allocated by the ONU, and the first OMCI message is used for Indicate the computing resources that the ONU can be allocated; the sending unit is used to send the first OMCI message to the optical line terminal OLT through the optical network unit management control interface OMCI channel; the transmission unit is used to use the second transmission bandwidth and The OLT transmits the target data, wherein the second transmission bandwidth is adjusted according to the first transmission bandwidth and the data amount information of the target data, and the first transmission bandwidth is the same as that indicated by the first OMCI message Corresponding to computing resources, the data volume information of the target data is related to the data volume of the target data transmitted between the OLT and the ONU.
- an embodiment of the present invention provides a computer-readable storage medium, including instructions, which, when run on a computer, cause the computer to execute the method in any implementation manner of the first aspect or the second aspect above.
- an embodiment of the present invention provides a computer program product containing instructions, which, when run on a computer, cause the computer to execute the method in any implementation manner of the first aspect or the second aspect above.
- Figure 1 is an example structure diagram of an embodiment of a computing power system of an existing solution
- Fig. 2 is a structural example diagram of an embodiment of the computing power system provided by the present application.
- FIG. 3 is a flow chart of the steps of the first embodiment of the data transmission method provided by the embodiment of the present application.
- FIG. 4 is a flow chart of the steps of the second embodiment of the data transmission method provided by the embodiment of the present application.
- FIG. 5 is a structural example diagram of an embodiment of an optical network device provided in an embodiment of the present application.
- FIG. 6 is a structural example diagram of an embodiment of an optical line terminal provided in an embodiment of the present application.
- FIG. 7 is a structural example diagram of an embodiment of an optical network unit provided in an embodiment of the present application.
- FIG. 2 is a structural example diagram of an embodiment of the computing power system provided by the present application.
- the computing power system shown in this embodiment is applied to a passive optical network (passive optical network, PON).
- the PON shown in this embodiment may adopt a gigabit-capable passive optical network (GPON) network type, a 10GPON network type, a 40GPON network type, or a 100GPON network type, etc.
- GPON gigabit-capable passive optical network
- the computing power system shown in this embodiment includes a GSLB server 201 .
- the GSLB server 201 is connected to multiple computing domains. This embodiment does not limit the number of computing power domains connected to the GSLB server 201.
- This embodiment uses the GSLB server 201 to connect two computing power domains as an example for illustration, that is, the connection between the GSLB server 201 shown in this embodiment Computing power domain 210 and computing power domain 220 .
- the computing power domain 210 includes an optical line terminal (optical line terminal, OLT) 211.
- the computing power domain 210 also includes a plurality of optical network units (optical network units, ONUs) connected to the OLT.
- the OLT 211 included in the computing power domain 210 and a plurality of ONUs can be connected through an optical splitter. Among them, ONU is also called optical network termination (ONT) in some scenarios, and ONU in this article also includes ONT.
- OLT optical line terminal
- the computing power domain 210 shown in this embodiment includes ONU212, ONU213, etc. connected to the OLT211, and this embodiment does not limit the number of ONUs connected to the OLT211.
- the computing power domain 220 connected to the GSLB server 201 includes OLT221, and ONU222 and ONU223 connected to the OLT221.
- OLT221 For the description of the specific structure of the computing power domain 220, please refer to the description of the specific structure of the computing power domain 210, and details will not be repeated. .
- Figure 3 is the first step of the data transmission method provided by the embodiment of the present application
- Figure 3 is the first step of the data transmission method provided by the embodiment of the present application
- Step 301 the ONU sends the first OMCI to the OLT.
- Step 302 the OLT receives the first OMCI message from the ONU.
- the OLT 211 acts as a secondary computing power gateway to manage resources of each ONU in the computing power domain 210 . For this reason, after the ONU in the computing power domain 210 is powered on, it needs to register with the OLT.
- the ONU sends registration information to the OLT.
- the registration information carries the media access control layer (media access control, mac) address of the ONU.
- the OLT needs to allocate a first uplink transmission bandwidth to the ONU, and the first uplink transmission bandwidth corresponds to the computing resources that can be allocated by the ONU.
- the ONU In order to achieve the purpose of the OLT assigning the first uplink transmission bandwidth corresponding to the ONU's computing resources for the ONU, the ONU needs to send a first optical network unit management control interface (ONU management and control interface, OMCI) message to the OLT, the first OMCI The message is used to indicate the allocated computing power resources of the ONU.
- the computing resources that can be deployed by the ONU are generally all or part of the remaining computing resources after subtracting the occupied computing resources from the total computing resources of the ONU; the computing resources can be computing resources or storage resources. Taking the application of ONU to computing tasks as an example, the computing resources that can be deployed in the ONU are not used to execute any computing tasks.
- the storage resources that can be allocated in the ONU have not yet stored any audio and video files.
- the calculation resource is the number of cores and main frequency of the processor of the ONU.
- ONU storage resources include ONU disk storage capacity, memory capacity, and external storage capacity.
- the computing power resources may also include chip types included in the ONU.
- the ONU includes an artificial intelligence (artificial intelligence, AI) chip, a graphics processing unit (graphics processing unit, GPU) chip or a video codec chip, and the like.
- AI artificial intelligence
- GPU graphics processing unit
- the GPU chip is suitable for processing various types of computing tasks. These computing tasks include tasks such as machine learning, deep learning, data mining, and high performance computing.
- the way for the ONU to send the first OMCI to the OLT is as follows: first, the ONU establishes an OMCI channel during the process of registering with the OLT.
- the OLT manages and controls the ONU through the OMCI channel between the OLT and the ONU.
- the ONU sends configuration information for requesting establishment of an OMCI channel to the OLT, and the configuration information includes the identification (ONU-ID) and port identification of the ONU, and the like.
- the OLT creates an OMCI channel between the OLT and the ONU according to the configuration information. After the OMCI channel between the OLT and the ONU is successfully created, the ONU sends the first OMCI message based on the OMCI channel.
- the OLT shown in this embodiment can receive the first OMCI message from the ONU through the OMCI channel.
- the format of the OMCI message transmitted by the OMCI channel shown in this embodiment is described below in conjunction with Table 1:
- the first OMCI message shown in this embodiment may contain N bytes.
- the first and second bytes of the OMCI message are the transaction correlation identifier (transaction correlation identifier) field, and the highest bit of this field indicates the priority level of the OMCI.
- the value of the field transaction correlation identifier is 1, indicating High priority, value 0 means low priority.
- the third byte of the OMCI message is the message type field, which is used to indicate the message type.
- the fourth byte of the OMCI message is the device identifier (device identifier) used to indicate the device type of the ONU.
- the 5th to 8th bytes of the OMCI message are managed entity identifier (managed entity identifier) fields.
- the 9th to 10th bytes of the OMCI message are the message contents length (message contents length) field.
- the 11th to (N-4) bytes of the OMCI message are the message contents field.
- the (N-3) to Nth bytes of the OMCI message are message integrity check (message integrity check) fields.
- N is a positive integer greater than or equal to 16. The value of N can be determined according to the message carried by OMCI.
- an extended message can be set in the message contents field, and the extended message is used to carry the computing resources that can be allocated by the ONU.
- the extended message includes "DISK: 100GB”, and the extended message is used to indicate that the allocated storage space in the disk storage space of the ONU is 100 gigabytes (gigabyte, GB).
- the extended message includes "AI: 8T@fp16", and the extended message is used to indicate that the 16-bit half-precision floating-point computing power of the AI chip that can be deployed is 8T.
- the format of the extended message shown in this embodiment is any format such as javascript object notation (JSON) format or tag length value (tag length value, TLV) format.
- JSON javascript object notation
- tag length value tag length value, TLV
- Step 303 the OLT allocates the first uplink transmission bandwidth according to the first OMCI message.
- the OLT when the OLT receives the first OMCI message from the ONU, the OLT can allocate the first uplink transmission bandwidth according to the first OMCI message.
- the first uplink transmission bandwidth shown in this embodiment is the uplink transmission bandwidth.
- the first uplink transmission bandwidth corresponds to the computing resources indicated by the first OMCI message. Specifically, there is a positive correlation between the first uplink transmission bandwidth allocated by the OLT and the size of the computing resources indicated by the first OMCI message. If the computing resources of the ONU indicated by the first OMCI message are greater, then the first uplink transmission bandwidth allocated by the OLT to the ONU is greater. If the computing resource of the ONU indicated by the first OMCI message is smaller, then the first uplink transmission bandwidth allocated by the OLT to the ONU is smaller.
- Step 304 the OLT obtains the data volume information of the uplink target data.
- the uplink target data shown in this embodiment is the data to be sent by the ONU to the OLT.
- the ONU 213 included in the computing power domain 210 has already stored the uplink target data.
- the requesting terminal needs to obtain the uplink target data stored by the ONU213.
- the requesting terminal may be a device connected to the GSLB server 201 , or the requesting terminal may be an ONU included in any computing power domain connected to the GSLB server 201 .
- the ONU 223 of the computing power domain 220 shown in FIG. 2 sends the data request message to the GSLB server 201 through the OLT 221 .
- the requesting terminal sends a data request message for requesting the uplink target data to the GSLB server 201 .
- the data request message carries the identifier of the uplink target data and the address of the requesting terminal.
- the data request message may be a hypertext transfer protocol (hyper text transfer protocol, HTTP) get message.
- the GSLB server 201 has stored the first data list.
- the first data list includes a correspondence between data identifiers and OLT Internet Protocol (internet protocol, IP) addresses.
- IP Internet Protocol
- the GSLB server 201 determines the address of the OLT 211 corresponding to the identification of the uplink target data requested by the requesting terminal according to the first data list.
- the GSLB server 201 determines that the upstream target data is stored on the ONU connected to the OLT 211 .
- the GSLB server 201 sends a redirect message to the requesting terminal, where the redirect message includes the address of the OLT 211 .
- the requesting terminal receives the redirection message, it can determine that the uplink target data is stored on the ONU connected to the OLT 211 .
- the requesting terminal sends the data request message to the OLT211.
- the OLT 211 has stored the second data list.
- the second data list includes the corresponding relationship between the identifier of the data and the mac address of the ONU.
- the OLT 211 determines the mac address of the ONU 213 corresponding to the identification of the uplink target data according to the second data list.
- the OLT determines that the ONU 213 is the ONU that has stored the upstream target data.
- the OLT211 sends the data request message to the ONU213, and the ONU213 determines that the uplink target data needs to be sent to the OLT211 according to the identification of the uplink target data included in the data request message.
- this embodiment does not limit the type of uplink target data.
- the uplink target data is an audio and video file.
- the uplink target data is the calculation result obtained after calculation by the computing chip included in the ONU, and the computing chip can be the above-mentioned AI chip, GPU chips etc.
- the OLT Before the OLT shown in this embodiment receives the uplink target data stored by the ONU, the OLT first needs to obtain the data volume information of the uplink target data. Specifically, during the process of ONU213 registering with OLT211, an OMCI channel has been established between ONU213 and OLT211. When the ONU213 receives the data request message from the OLT211, the ONU213 may send a second OMCI message to the OLT211 through the OMCI channel, and the second OMCI message carries the data volume information of the uplink target data.
- the data volume information of the uplink target data is related to the data volume of the uplink target data. For example, the data amount information of the uplink target data can be at least one of the flow rate, frame rate, code rate, resolution, rate, peak flow rate, and average flow rate of the uplink target data.
- the data volume information of the uplink target data carried in the second OMCI message shown in this embodiment may also include the service type of the uplink target data.
- the service type of the uplink target data may be a computing service or a video file storage service.
- Step 305 the OLT adjusts the first uplink transmission bandwidth to the second uplink transmission bandwidth according to the data volume information of the uplink target data.
- the second uplink transmission bandwidth is the transmission bandwidth used by the ONU to send the uplink target data to the OLT. It can be seen from the above that, at the stage when the ONU registers with the OLT, the OLT has allocated the first uplink transmission bandwidth to the ONU.
- the OLT can dynamically adjust the first uplink transmission bandwidth to the second uplink transmission bandwidth according to the data volume information of the uplink target data, so that the second uplink transmission bandwidth readjusted by the OLT is more suitable for the transmission of the uplink target data , realizing the flexible adjustment of the second uplink transmission bandwidth between the ONU and the OLT, and effectively improving the utilization rate of the second uplink transmission bandwidth.
- a manner in which the OLT determines the second uplink transmission bandwidth may be that the OLT pre-stores an uplink bandwidth allocation list.
- the uplink bandwidth allocation list includes correspondence between different data amount information and transmission bandwidth.
- the OLT determines the data volume information of the uplink target data according to the second OMCI message.
- the OLT can then determine that the transmission bandwidth corresponding to the data volume information of the uplink target data is the second uplink transmission bandwidth by querying the uplink bandwidth allocation list.
- the OLT may dynamically determine the second uplink transmission bandwidth according to the data volume information of the uplink target data.
- the size of the second uplink transmission bandwidth determined by the OLT is positively correlated with the size of the parameters included in the data volume information of the uplink target data, and the parameters included in the data volume information include at least one of the following:
- the OLT determines that the code rate of the upstream target data is relatively large, it means that during the process of transmitting the upstream target data by the ONU, the number of data bits transmitted per unit time is relatively large. Therefore, the OLT can allocate a larger code rate for the upstream target data.
- the second uplink transmission bandwidth For another example, if the OLT determines that the frame rate of the uplink target data is relatively high, it means that the ONU needs to transmit the uplink target data through a relatively large transmission bandwidth to ensure the frame rate of the uplink target data and ensure the clarity of the uplink target data.
- the OLT may allocate a smaller second uplink transmission bandwidth for the uplink target data with the AI type. For another example, the OLT may allocate a larger second uplink transmission bandwidth for audio and video storage services.
- the OLT obtains the first OMCI message used to indicate the computing power resources of the ONU through the OMCI channel, which effectively improves the security and efficiency of the ONU reporting the computing power resources to the OLT.
- This embodiment does not limit the size relationship between the first uplink transmission bandwidth and the second uplink transmission bandwidth. For example, if the first uplink transmission bandwidth allocated by the OLT according to the computing resources of the ONU is relatively small, the uplink target data cannot be satisfied. In order to obtain the second uplink transmission bandwidth, the OLT may expand the first uplink transmission bandwidth according to the requirement of the data volume information.
- the OLT can reduce the first uplink transmission bandwidth to the second uplink transmission bandwidth, and the reduced second uplink transmission bandwidth can meet the transmission requirements of uplink target data , and can also effectively improve the utilization efficiency of uplink bandwidth resources between the OLT and the ONU.
- the OLT shown in this embodiment adjusts on the basis of the first uplink transmission bandwidth to obtain the second uplink transmission bandwidth, which improves the efficiency of the OLT in allocating the second uplink transmission bandwidth to the ONU.
- the OLT can allocate a transmission container (transmission CONT, T-CONT) frame for the ONU according to the data amount information of the upstream target data and the first upstream transmission bandwidth, so as to realize the purpose of the OLT to allocate the second upstream transmission bandwidth to the ONU.
- the T-CONT is used to carry uplink target data from the ONU.
- the second uplink transmission bandwidth refers to the frame length of the T-CONT frame allocated by the OLT to the ONU for transmitting uplink target data.
- the T-CONT frame has the first frame length (ie, the first uplink transmission bandwidth).
- the OLT determines that the first uplink transmission bandwidth needs to be expanded, and then the OLT expands the T-CONT frame from the first frame length to the second frame length. It can be seen that the second frame length is greater than the first frame length.
- the OLT determines that the first uplink transmission bandwidth needs to be reduced according to the data volume information of the uplink target data, then the OLT reduces the T-CONT frame from the first frame length to the third frame length.
- the length of the third frame is smaller than the length of the first frame.
- the description that the OLT implements the adjustment of the second uplink transmission bandwidth by allocating the frame length of the T-CONT frame is an optional example without limitation.
- the OLT may also use The GPON encapsulation method (G-PON encapsulation method port, GEM) is used as a unit to allocate the second uplink transmission bandwidth, and the OLT can also use the logical link number (logical link identifier, LLID) as a unit to allocate the second uplink transmission bandwidth.
- GEM The GPON encapsulation method
- LLID logical link number
- Step 306 the OLT sends bandwidth allocation information to the ONU.
- the OLT determines to adjust the first uplink transmission bandwidth to the second uplink transmission bandwidth
- the OLT sends the bandwidth allocation information to the ONU, where the bandwidth allocation information is used to indicate the second uplink transmission bandwidth.
- the bandwidth allocation information is used to indicate the start time slot and end time slot of the T-CONT frame allocated to the ONU.
- the bandwidth between the start time slot and the end time slot in the data frame is the second uplink transmission bandwidth allocated by the OLT to the ONU.
- Step 307 the ONU sends the uplink target data to the OLT through the second uplink transmission bandwidth.
- the OLT can send the uplink target data to the OLT according to the bandwidth between the start time slot and the end time slot (that is, the second uplink transmission bandwidth) indicated by the bandwidth allocation information.
- the OLT receives the uplink target data, it can forward the uplink target data to the requesting terminal.
- the OLT obtains the first OMCI message used to indicate the computing power resources of the ONU through the OMCI channel, which effectively improves the security and efficiency of the ONU reporting the computing power resources to the OLT.
- the OLT can dynamically allocate the second uplink transmission bandwidth for the ONU according to the computing resources of the ONU and the data volume information of the uplink target data to be transmitted, effectively improving the flexibility of adjusting the second uplink transmission bandwidth for transmitting uplink target data sex.
- the second uplink transmission bandwidth shown in this embodiment can match the computing resources of the ONU, it can also match the transmission of uplink target data.
- the utilization rate of the uplink bandwidth resource between the OLT and the ONU can also be improved.
- the OLT shown in this embodiment adjusts on the basis of the first uplink transmission bandwidth to obtain the second uplink transmission bandwidth, which improves the efficiency of the OLT in allocating the second uplink transmission bandwidth to the ONU.
- the second uplink transmission bandwidth dynamically adjusted by the OLT can improve the reliability of uplink target data transmission, and the adjusted second uplink transmission bandwidth can ensure the quality of service (quality of service, QoS) of the transmitted uplink target data.
- the embodiment shown in Fig. 3 illustrates the process that the OLT dynamically allocates the second uplink transmission bandwidth for the ONU, so as to realize the process that the ONU realizes uplink target data transmission based on the second uplink transmission bandwidth.
- Step 401 the ONU sends the first OMCI to the OLT.
- Step 402 the OLT receives the first OMCI message from the ONU.
- step 401 to step 402 For the description of the execution process of step 401 to step 402 shown in this embodiment, please refer to step 301 to step 302 in the embodiment corresponding to FIG. 3 , and the specific execution process will not be repeated.
- Step 403 the OLT allocates the first downlink transmission bandwidth according to the first OMCI message.
- the OLT when the OLT receives the first OMCI message from the ONU, the OLT can allocate the first downlink transmission bandwidth according to the first OMCI message.
- the first downlink transmission bandwidth shown in this embodiment is the downlink transmission bandwidth.
- the first downlink transmission bandwidth corresponds to the computing resource indicated by the first OMCI message. Specifically, there is a positive correlation between the first downlink transmission bandwidth allocated by the OLT and the computing resources indicated by the first OMCI message. If the computing resources of the ONU indicated by the first OMCI message are greater, then the first downlink transmission bandwidth allocated by the OLT to the ONU is greater. If the computing resource of the ONU indicated by the first OMCI message is smaller, then the first downlink transmission bandwidth allocated by the OLT to the ONU is smaller.
- Step 404 the OLT obtains the data volume information of the downlink target data.
- the downlink target data shown in this embodiment is the data to be sent by the OLT to the ONU.
- the requesting terminal requests the GSLB server 201 to store downlink target data. For this reason, the requesting terminal sends the data storage request message to the GSLB server 201.
- the description of the requesting terminal refer to the description of the corresponding embodiment in FIG. 2 , specifically in this embodiment I won't go into details.
- the GSLB server 201 After the GSLB server 201 receives the data storage request message from the requesting terminal, if the GSLB server 201 determines to store the downlink target data through the computing power domain 210 , the GSLB server 201 forwards the data storage request message to the OLT 211 .
- the OLT 211 can determine the ONU for storing the downlink target data according to the computing resources of the connected ONUs. For example, the OLT 211 can determine the storage space of each ONU according to the first OMCI message from each ONU.
- the OLT 211 may be configured with a storage priority list, and the storage priority list may sort the remaining storage space of each ONU included in the computing power domain 210 in descending order.
- the OLT 211 selects the ONU with the highest priority in the storage priority list as the ONU for storing the downlink target data. For example, the OLT 211 shown in this embodiment selects the ONU 212 for storing the downlink target data.
- the manner in which the OLT acquires the data amount information of the downlink target data can be two optional manners as shown below:
- the OLT can obtain the data volume information of the downlink target data according to the downlink target data.
- the downlink target data data volume information please refer to Fig.
- the description of the data amount information of the uplink target data in the embodiment corresponding to 3 will not be described in detail.
- the GSLB server acquires the data volume information of the downlink target data according to the downlink target data.
- the GSLB server sends the data volume information of the downlink target data to the OLT.
- Step 405 the OLT adjusts the first downlink transmission bandwidth to the second downlink transmission bandwidth according to the data volume information of the downlink target data.
- the second downlink transmission bandwidth is the downlink transmission bandwidth used by the OLT to send the downlink target data to the ONU. It can be seen from the above that, at the stage when the ONU registers with the OLT, the OLT has allocated the first downlink transmission bandwidth to the ONU. In this embodiment, the OLT can dynamically adjust the first downlink transmission bandwidth to the second downlink transmission bandwidth according to the data amount information of the downlink target data, so that the second downlink transmission bandwidth readjusted by the OLT can be more suitable for the downlink target data The transmission effectively improves the rate of downlink target data transmission to the ONU, and effectively improves the utilization rate of the bandwidth in the process of the OLT sending the downlink target data to the ONU.
- a manner for the OLT to determine the second downlink transmission bandwidth may be that the OLT pre-stores a downlink bandwidth allocation list.
- the downlink bandwidth allocation list includes correspondence between different data amount information and downlink transmission bandwidth.
- the OLT determines the data volume information of the downlink target data according to the second OMCI message.
- the OLT can determine that the transmission bandwidth corresponding to the data volume information of the downlink target data is the second downlink transmission bandwidth by querying the downlink bandwidth allocation list.
- the OLT may dynamically determine the second downlink transmission bandwidth according to the data volume information of the downlink target data.
- the size of the second downlink transmission bandwidth determined by the OLT is positively correlated with the size of the parameters included in the data amount information of the downlink target data. For specific instructions, refer to the OLT shown in step 305 corresponding to FIG. The description of the process of information determining the second uplink transmission bandwidth will not be described in detail.
- This embodiment does not limit the size relationship between the first downlink transmission bandwidth and the second downlink transmission bandwidth.
- the data volume information of the target data is required. Therefore, the OLT may expand the first downlink transmission bandwidth to obtain the second downlink transmission bandwidth.
- the OLT may expand the first downlink transmission bandwidth to obtain the second downlink transmission bandwidth.
- the OLT can reduce the first downlink transmission bandwidth to the second downlink transmission bandwidth, and the reduced second downlink transmission bandwidth can meet the transmission of downlink target data It can also effectively improve the utilization efficiency of downlink bandwidth resources between the OLT and the ONU.
- the OLT shown in this embodiment adjusts on the basis of the first downlink transmission bandwidth to obtain the second downlink transmission bandwidth, which improves the efficiency of the OLT in allocating the second downlink transmission bandwidth.
- the OLT may allocate a GEM frame for transmitting the downlink target data to the ONU according to the data volume information of the downlink target data and the first downlink transmission bandwidth.
- the quantity and length of the GEM frames allocated by the OLT are the second downlink transmission bandwidth.
- Step 406 the OLT sends downlink target data to the ONU through the second downlink transmission bandwidth.
- the OLT 211 sends the GEM frame carrying the downlink target data to all ONUs connected to the OLT 211 such as the ONU 212 and the ONU 213 by broadcasting.
- OLT211 determines that ONU212 is the ONU used to store the downlink target data
- OLT211 sends the target GEM frame mark to ONU212, and the target GEM frame mark is used to indicate the start time slot and the end time slot of the GEM frame carrying the downlink target data .
- the ONU 212 decapsulates the downlink target data from the GEM frame at the start time slot and the end time slot indicated by the target GEM frame ID.
- the OLT obtains the first OMCI message used to indicate the computing power resources of the ONU through the OMCI channel, which effectively improves the security and efficiency of the ONU reporting the computing power resources to the OLT.
- the OLT can dynamically allocate the second downlink transmission bandwidth according to the computing resources of the ONU and the data volume information of the downlink target data to be transmitted. It can be seen that, when the second downlink transmission bandwidth shown in this embodiment can match the computing power resources of the ONU, it can also match the transmission of downlink target data. Under the condition that the transmission of downlink target data is guaranteed, the utilization rate of downlink bandwidth resources between the OLT and the ONU can also be improved.
- the OLT shown in this embodiment adjusts on the basis of the first downlink transmission bandwidth to obtain the second downlink transmission bandwidth, which improves the efficiency of the second downlink transmission bandwidth allocated by the OLT.
- the second downlink transmission bandwidth dynamically adjusted by the OLT can improve the reliability of downlink target data transmission, and the adjusted second downlink transmission bandwidth can guarantee the QoS of the transmitted downlink target data.
- the foregoing embodiment is described by taking a gigabit-capable passive optical network (GPON) as an example.
- the GEM frame is transmitted between the OLT and the ONU in the GPON network.
- this method can also be applied to other PON networks, such as 10GPON, 40GPON and 100GPON networks, just replace the GEM frame described above with the corresponding frame.
- the optical network device shown in this embodiment includes a processor 501 , a memory 502 and an optical transceiver 503 .
- the processor 501, memory 502 and optical transceiver 503 are interconnected by wires.
- the memory 502 is used to store program instructions and data.
- the optical transceiver 503 is used to receive the first OMCI message from the optical network unit ONU through the optical network unit management control interface OMCI channel, and the first OMCI The message is used to indicate the computing resources that can be deployed by the ONU;
- the processor 501 calls the program code in the memory 502 to allocate a first transmission bandwidth between the OLT and the ONU according to the first OMCI message, and the first transmission bandwidth and the first Correspondence to computing resources indicated by an OMCI message;
- the processor 502 is further configured to acquire data amount information of target data, the target data is data to be transmitted between the OLT and the ONU, and the data amount information and the target data are stored in the OLT It is related to the amount of data transmitted between the ONUs;
- the processor 502 is further configured to adjust the first transmission bandwidth to a second transmission bandwidth according to the data volume information of the target data;
- the optical transceiver 503 is further configured to transmit the target data with the ONU through the second transmission bandwidth.
- the processor 501 invokes the program code in the memory 502 to obtain the first OMCI message according to the computing resources that can be deployed by the ONU, so The first OMCI message is used to indicate the computing resources that the ONU can be allocated;
- the optical transceiver 503 is configured to send the first OMCI message to the optical line terminal OLT through the optical network unit management control interface OMCI channel;
- the optical transceiver 503 is further configured to transmit target data with the OLT through a second transmission bandwidth, wherein the second transmission bandwidth is adjusted according to the first transmission bandwidth and the data volume information of the target data,
- the first transmission bandwidth corresponds to the computing resource indicated by the first OMCI message, the data volume information of the target data and the data volume of the target data transmitted between the OLT and the ONU relevant.
- FIG. 6 is a structural example diagram of an embodiment of an optical line terminal provided by an embodiment of the present application.
- the OLT shown in this embodiment includes: a receiving unit 601, configured to receive a first OMCI message from an optical network unit ONU through an optical network unit management control interface OMCI channel, and the first OMCI message is used to indicate that the ONU can be Deployed computing resources;
- An allocating unit 602 configured to allocate a first transmission bandwidth between the OLT and the ONU according to the first OMCI message, where the first transmission bandwidth corresponds to the computing resources indicated by the first OMCI message;
- An adjustment unit 603 configured to acquire data volume information of target data, the target data being data to be transmitted between the OLT and the ONU, the data volume information and the target data being transmitted between the OLT and the ONU The amount of data transmitted between the ONUs is related; it is also used to adjust the first transmission bandwidth to the second transmission bandwidth according to the data amount information of the target data;
- a transmission unit 604 configured to transmit the target data with the ONU through the second transmission bandwidth.
- FIG. 7 is a structural example diagram of an embodiment of an optical network unit provided by an embodiment of the present application.
- the ONU shown in this embodiment includes: an acquisition unit 701, configured to acquire a first OMCI message according to the allocated computing power resources of the ONU, and the first OMCI message is used to indicate the allocated computing power of the ONU resource;
- the sending unit 702 is configured to send the first OMCI message to the optical line terminal OLT through the optical network unit management control interface OMCI channel;
- the transmission unit 703 is configured to transmit target data with the OLT through a second transmission bandwidth, wherein the second transmission bandwidth is adjusted according to the first transmission bandwidth and the data volume information of the target data, and the first The transmission bandwidth corresponds to the computing resources indicated by the first OMCI message, and the data volume information of the target data is related to the data volume of the target data transmitted between the OLT and the ONU.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
Disclosed in embodiments of the present invention are a data transmission method, a light transmitting device, and a light receiving device, used for flexibly adjusting a transmission bandwidth and improving the utilization rate of the transmission bandwidth. The method comprises: an optical line terminal (OLT) receives, by means of an optical network unit management control interface (OMCI) channel, a first OMCI message from an optical network unit (ONU), the first OMCI message being used for indicating a computing resource, which can be deployed, of the ONU; the OLT allocates a first transmission bandwidth between the OLT and the ONU according to the first OMCI message, the first transmission bandwidth corresponding to the computing resource indicated by the first OMCI message; the OLT obtains data amount information of target data, the target data being data to be transmitted between the OLT and the ONU; the OLT adjusts the first transmission bandwidth to a second transmission bandwidth according to the data amount information of the target data; and the OLT transmits the target data with the ONU by means of the second transmission bandwidth.
Description
本申请要求于2021年11月30日提交中国国家知识产权局、申请号202111453392.3、申请名称为“一种数据的传输方法,光发送设备以及光接收设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the State Intellectual Property Office of China on November 30, 2021, with the application number 202111453392.3, and the application name is "A data transmission method, optical sending device and optical receiving device", all of which The contents are incorporated by reference in this application.
本申请涉及光通信技术领域,尤其涉及一种数据的传输方法,光发送设备以及光接收设备。The present application relates to the technical field of optical communication, and in particular to a data transmission method, an optical sending device, and an optical receiving device.
如图1所示,已有的算力系统包括全局负载均衡(global server load balancing,GSLB)服务器101和多个服务节点。各个服务节点注册至GSLB服务器101。例如,若请求终端102请求GSLB服务器101获取资源。那么,该请求终端102向GSLB服务器101发送请求消息。GSLB服务器101根据该请求消息可确定服务节点103已存储该请求终端102所请求的该资源。GSLB服务器101向请求终端102发送该服务节点103的地址。请求终端102能够根据该服务节点103的地址从该服务节点103获取该资源。As shown in Figure 1, the existing computing power system includes a global server load balancing (GSLB) server 101 and multiple service nodes. Each service node is registered with the GSLB server 101 . For example, if the requesting terminal 102 requests the GSLB server 101 to acquire resources. Then, the request terminal 102 sends a request message to the GSLB server 101 . According to the request message, the GSLB server 101 can determine that the service node 103 has stored the resource requested by the requesting terminal 102 . The GSLB server 101 sends the address of the service node 103 to the requesting terminal 102 . The requesting terminal 102 can obtain the resource from the service node 103 according to the address of the service node 103 .
但是,服务节点103向请求终端102发送该资源的传输带宽是固定的。若传输带宽过小,那么服务节点103无法成功地传输该资源,若传输带宽过大,那么存在传输带宽资源浪费的弊端。However, the transmission bandwidth for the service node 103 to send the resource to the requesting terminal 102 is fixed. If the transmission bandwidth is too small, the service node 103 cannot successfully transmit the resource, and if the transmission bandwidth is too large, there is a disadvantage of wasting transmission bandwidth resources.
发明内容Contents of the invention
本发明实施例提供了一种数据的传输方法,光发送设备以及光接收设备,其能够灵活的实现对传输带宽的调整,提高传输带宽的利用率。The embodiment of the present invention provides a data transmission method, an optical sending device and an optical receiving device, which can flexibly realize the adjustment of the transmission bandwidth and improve the utilization rate of the transmission bandwidth.
本申请实施例第一方面提供了一种数据的传输方法,所述方法包括:光线路终端OLT通过光网络单元管理控制接口OMCI通道接收来自光网络单元ONU的第一OMCI消息,所述第一OMCI消息用于指示所述ONU可被调配的算力资源;所述OLT根据所述第一OMCI消息分配所述OLT和所述ONU之间的第一传输带宽,所述第一传输带宽与所述第一OMCI消息所指示的算力资源对应;所述OLT获取目标数据的数据量信息,所述目标数据为所述OLT和所述ONU之间待传输的数据,所述数据量信息与所述目标数据在所述OLT和所述ONU之间所传输的数据量大小相关;所述OLT根据所述目标数据的数据量信息将所述第一传输带宽调整至第二传输带宽;所述OLT通过所述第二传输带宽与所述ONU传输所述目标数据。The first aspect of the embodiment of the present application provides a data transmission method, the method includes: the optical line terminal OLT receives the first OMCI message from the optical network unit ONU through the optical network unit management control interface OMCI channel, and the first The OMCI message is used to indicate the computing resources that can be allocated by the ONU; the OLT allocates a first transmission bandwidth between the OLT and the ONU according to the first OMCI message, and the first transmission bandwidth is related to the ONU. The computing resource indicated by the first OMCI message corresponds to; the OLT obtains the data amount information of the target data, the target data is the data to be transmitted between the OLT and the ONU, and the data amount information is related to the The target data is related to the data volume transmitted between the OLT and the ONU; the OLT adjusts the first transmission bandwidth to the second transmission bandwidth according to the data volume information of the target data; the OLT and transmitting the target data with the ONU through the second transmission bandwidth.
本方面所示的方法,OLT通过OMCI通道获取用于指示ONU的算力资源的第一OMCI消息,有效地提高了ONU向OLT上报算力资源的安全性和效率。OLT能够根据ONU的算力资源以及待传输的目标数据的数据量信息,动态的对第一传输带宽进行调整以获取第二传输带宽,有效地提高了调整传输带宽的灵活性。而且该传输带宽能够匹配ONU的算力资源的情况下,还能够匹配 目标数据的传输,提高了传输带宽的利用率。In the method shown in this aspect, the OLT obtains the first OMCI message used to indicate the computing power resource of the ONU through the OMCI channel, which effectively improves the security and efficiency of the ONU reporting the computing power resource to the OLT. The OLT can dynamically adjust the first transmission bandwidth to obtain the second transmission bandwidth according to the computing resources of the ONU and the data volume information of the target data to be transmitted, which effectively improves the flexibility of adjusting the transmission bandwidth. Moreover, when the transmission bandwidth can match the computing resources of the ONU, it can also match the transmission of the target data, which improves the utilization rate of the transmission bandwidth.
基于第一方面,一种可选地实现方式中,所述第一OMCI消息包括扩展消息,所述扩展消息用于携带所述ONU可被调配的算力资源。Based on the first aspect, in an optional implementation manner, the first OMCI message includes an extended message, and the extended message is used to carry the computing resources that can be allocated by the ONU.
基于第一方面,一种可选地实现方式中,所述扩展消息为java脚本对象表示法格式或标签长度值TLV格式。Based on the first aspect, in an optional implementation manner, the extended message is in java script object notation format or tag length value TLV format.
本实现方式所示通过第一OMCI消息携带ONU的算力资源,提高了ONU向OLT上报算力资源的安全性。As shown in this implementation manner, the first OMCI message carries the computing power resource of the ONU, which improves the security of the ONU reporting the computing power resource to the OLT.
基于第一方面,一种可选地实现方式中,所述OLT获取目标数据的数据量信息包括:所述OLT通过所述OMCI通道接收来自所述ONU的第二OMCI消息,所述第二OMCI消息携带所述目标数据的数据量信息;所述OLT根据所述第二OMCI消息获取所述目标数据的数据量信息。Based on the first aspect, in an optional implementation manner, the OLT obtaining the data amount information of the target data includes: the OLT receiving a second OMCI message from the ONU through the OMCI channel, and the second OMCI The message carries the data volume information of the target data; the OLT acquires the data volume information of the target data according to the second OMCI message.
本实现方式所示,通过OMCI通道所传输的第二OMCI消息携带目标数据的数据量信息,有效地提高了ONU向OLT上报目标数据的数据量信息的安全性。As shown in this implementation manner, the second OMCI message transmitted through the OMCI channel carries the data volume information of the target data, which effectively improves the security of the ONU reporting the data volume information of the target data to the OLT.
基于第一方面,一种可选地实现方式中,所述OLT根据所述目标数据的数据量信息将所述第一传输带宽调整至第二传输带宽之后,所述方法还包括:所述OLT向所述ONU发送带宽分配信息,所述带宽分配信息用于指示所述第二传输带宽。Based on the first aspect, in an optional implementation manner, after the OLT adjusts the first transmission bandwidth to the second transmission bandwidth according to the data amount information of the target data, the method further includes: the OLT sending bandwidth allocation information to the ONU, where the bandwidth allocation information is used to indicate the second transmission bandwidth.
本实现方式,ONU能够根据该带宽分配信息,确定用于传输该目标数据的第二传输带宽。有效地保证了目标数据的成功传输。In this implementation manner, the ONU can determine the second transmission bandwidth for transmitting the target data according to the bandwidth allocation information. Effectively guarantee the successful transmission of the target data.
基于第一方面,一种可选地实现方式中,所述OLT获取目标数据的数据量信息包括:所述OLT接收来自服务器的所述目标数据;所述OLT根据所述目标数据获取所述数据量信息。Based on the first aspect, in an optional implementation manner, the OLT acquiring the data amount information of the target data includes: the OLT receiving the target data from a server; the OLT acquiring the data according to the target data amount of information.
本实现方式,OLT能够根据目标数据获取该目标数据的数据量信息,使得OLT所调整的第二传输带宽能够匹配目标数据的数据量信息的需求,有效地保证了目标数据的成功传输的情况下,还能够提高OLT和ONU之间的带宽资源的利用率。In this implementation mode, the OLT can obtain the data volume information of the target data according to the target data, so that the second transmission bandwidth adjusted by the OLT can match the demand of the data volume information of the target data, effectively ensuring the successful transmission of the target data , and can also improve the utilization rate of bandwidth resources between the OLT and the ONU.
基于第一方面,一种可选地实现方式中,所述OLT获取目标数据的数据量信息包括:所述OLT接收来自服务器的所述目标数据的数据量信息。Based on the first aspect, in an optional implementation manner, the acquiring the data volume information of the target data by the OLT includes: the OLT receiving the data volume information of the target data from a server.
本实现方式,OLT能够接收来自服务器的目标数据的数据量信息,OLT再根据该目标数据的数据量信息调整第一传输带宽以获取到该第二传输带宽,有效地提高了获取第二传输带宽的效率。In this implementation mode, the OLT can receive the data amount information of the target data from the server, and the OLT adjusts the first transmission bandwidth according to the data amount information of the target data to obtain the second transmission bandwidth, which effectively improves the acquisition of the second transmission bandwidth. s efficiency.
基于第一方面,一种可选地实现方式中,所述OLT获取目标数据的数据量信息包括:所述OLT获取带宽分配列表,所述带宽分配列表包括不同的数据量信息和传输带宽的对应关系;所述OLT根据所述带宽分配列表,确定与所述目标数据的数据量信息对应的所述第二传输带宽。Based on the first aspect, in an optional implementation manner, the OLT obtaining the data amount information of the target data includes: the OLT obtaining a bandwidth allocation list, and the bandwidth allocation list includes different data amount information and corresponding transmission bandwidth Relationship; the OLT determines the second transmission bandwidth corresponding to the data volume information of the target data according to the bandwidth allocation list.
本实现方式,OLT能够基于带宽分配列表,确定目标数据的数据量信息对应的第二传输带宽,提高了调整第二传输带宽的效率和准确性。In this implementation manner, the OLT can determine the second transmission bandwidth corresponding to the data volume information of the target data based on the bandwidth allocation list, which improves the efficiency and accuracy of adjusting the second transmission bandwidth.
基于第一方面,一种可选地实现方式中,所述第二传输带宽的大小与所述数据量信息所包括的参数大小呈正相关关系,所述数据量信息所包括的参数包括如下所示的至少一项:Based on the first aspect, in an optional implementation manner, the size of the second transmission bandwidth is positively correlated with the size of the parameters included in the data amount information, and the parameters included in the data amount information include the following At least one of:
所述目标数据的速率,所述目标数据的码率,所述目标数据的流量,所述目标数据的帧率,所述目标数据的峰值流量,或所述目标数据的平均流量。The rate of the target data, the code rate of the target data, the traffic of the target data, the frame rate of the target data, the peak traffic of the target data, or the average traffic of the target data.
本申请实施例第二方面提供了一种数据的传输方法,所述方法包括:光网络单元ONU根据所述ONU可被调配的算力资源获取第一OMCI消息,所述第一OMCI消息用于指示所述ONU 可被调配的算力资源;所述ONU通过光网络单元管理控制接口OMCI通道向光线路终端OLT发送所述第一OMCI消息;所述ONU通过第二传输带宽与所述OLT传输目标数据,其中,所述第二传输带宽为根据第一传输带宽以及所述目标数据的数据量信息调整而成,所述第一传输带宽与所述第一OMCI消息所指示的算力资源对应,所述目标数据的数据量信息与所述目标数据在所述OLT和所述ONU之间所传输的数据量大小相关。The second aspect of the embodiment of the present application provides a data transmission method, the method includes: an optical network unit ONU obtains a first OMCI message according to the computing resources that can be allocated by the ONU, and the first OMCI message is used for Indicate the computing resources that the ONU can be deployed; the ONU sends the first OMCI message to the optical line terminal OLT through the optical network unit management control interface OMCI channel; the ONU transmits the message with the OLT through the second transmission bandwidth Target data, wherein the second transmission bandwidth is adjusted according to the first transmission bandwidth and the data amount information of the target data, and the first transmission bandwidth corresponds to the computing resource indicated by the first OMCI message , the data volume information of the target data is related to the data volume of the target data transmitted between the OLT and the ONU.
本方面所示的有益效果的说明,请参见第一方面所示,具体不做赘述。For the description of the beneficial effects shown in this aspect, please refer to the first aspect, and details will not be repeated.
基于第二方面,一种可选地实现方式中,所述第一OMCI消息包括扩展消息,所述扩展消息用于携带所述ONU可被调配的算力资源。Based on the second aspect, in an optional implementation manner, the first OMCI message includes an extended message, and the extended message is used to carry the computing resources that can be allocated by the ONU.
基于第二方面,一种可选地实现方式中,所述扩展消息为java脚本对象表示法格式或标签长度值TLV格式。Based on the second aspect, in an optional implementation manner, the extended message is in java script object notation format or tag length value TLV format.
基于第二方面,一种可选地实现方式中,所述ONU通过第二传输带宽与所述OLT传输目标数据之前,所述方法还包括:所述ONU通过所述OMCI通道向所述OLT发送第二OMCI消息,所述第二OMCI消息携带所述目标数据的数据量信息。Based on the second aspect, in an optional implementation manner, before the ONU transmits the target data to the OLT through the second transmission bandwidth, the method further includes: the ONU sends to the OLT through the OMCI channel A second OMCI message, where the second OMCI message carries data amount information of the target data.
基于第二方面,一种可选地实现方式中,所述ONU通过第二传输带宽与所述OLT传输目标数据之前,所述方法还包括:所述ONU接收来自所述OLT的带宽分配信息,所述带宽分配信息用于指示所述第二传输带宽。Based on the second aspect, in an optional implementation manner, before the ONU transmits the target data with the OLT through the second transmission bandwidth, the method further includes: the ONU receives bandwidth allocation information from the OLT, The bandwidth allocation information is used to indicate the second transmission bandwidth.
基于第二方面,一种可选地实现方式中,所述第二传输带宽的大小与所述数据量信息所包括的参数大小呈正相关关系,所述数据量信息所包括的参数包括如下所示的至少一项:Based on the second aspect, in an optional implementation manner, the size of the second transmission bandwidth is positively correlated with the size of the parameters included in the data amount information, and the parameters included in the data amount information include the following At least one of:
所述目标数据的速率,所述目标数据的码率,所述目标数据的流量,所述目标数据的帧率,所述目标数据的峰值流量,或所述目标数据的平均流量。The rate of the target data, the code rate of the target data, the traffic of the target data, the frame rate of the target data, the peak traffic of the target data, or the average traffic of the target data.
本申请实施例第三方面提供了一种光线路终端OLT,包括:处理器,存储器以及光收发器,其中,所述处理器分别与所述存储器以及所述光收发器通过线路互联;所述光收发器用于,通过光网络单元管理控制接口OMCI通道接收来自光网络单元ONU的第一OMCI消息,所述第一OMCI消息用于指示所述ONU可被调配的算力资源;所述处理器调用所述存储器中的程序代码用于,根据所述第一OMCI消息分配所述OLT和所述ONU之间的第一传输带宽,所述第一传输带宽与所述第一OMCI消息所指示的算力资源对应;所述处理器还用于,获取目标数据的数据量信息,所述目标数据为所述OLT和所述ONU之间待传输的数据,所述数据量信息与所述目标数据在所述OLT和所述ONU之间所传输的数据量大小相关;所述处理器还用于,根据所述目标数据的数据量信息将所述第一传输带宽调整至第二传输带宽;所述光收发器还用于,通过所述第二传输带宽与所述ONU传输所述目标数据。The third aspect of the embodiment of the present application provides an optical line terminal OLT, including: a processor, a memory, and an optical transceiver, wherein the processor is connected to the memory and the optical transceiver through a line; the The optical transceiver is used to receive the first OMCI message from the optical network unit ONU through the optical network unit management control interface OMCI channel, and the first OMCI message is used to indicate the computing resources that can be allocated by the ONU; the processor Calling the program code in the memory is used to allocate the first transmission bandwidth between the OLT and the ONU according to the first OMCI message, and the first transmission bandwidth is the same as that indicated by the first OMCI message Corresponding to computing power resources; the processor is also used to obtain data volume information of target data, the target data is data to be transmitted between the OLT and the ONU, and the data volume information is related to the target data The amount of data transmitted between the OLT and the ONU is related; the processor is further configured to adjust the first transmission bandwidth to the second transmission bandwidth according to the data amount information of the target data; The optical transceiver is further configured to transmit the target data with the ONU through the second transmission bandwidth.
本方面有益效果的说明,请参见第一方面所示,具体不做赘述。For the description of the beneficial effects of this aspect, please refer to the first aspect, and details will not be repeated.
基于第三方面,一种可选地实现方式中,所述第一OMCI消息包括扩展消息,所述扩展消息用于携带所述ONU可被调配的算力资源。Based on the third aspect, in an optional implementation manner, the first OMCI message includes an extended message, and the extended message is used to carry the computing resources that can be allocated by the ONU.
基于第三方面,一种可选地实现方式中,所述扩展消息为java脚本对象表示法格式或标签长度值TLV格式。Based on the third aspect, in an optional implementation manner, the extended message is in java script object notation format or tag length value TLV format.
基于第三方面,一种可选地实现方式中,所述光收发器还用于,通过所述OMCI通道接收来自所述ONU的第二OMCI消息,所述第二OMCI消息携带所述目标数据的数据量信息;所述处理器还用于,根据所述第二OMCI消息获取所述目标数据的数据量信息。Based on the third aspect, in an optional implementation manner, the optical transceiver is further configured to receive a second OMCI message from the ONU through the OMCI channel, the second OMCI message carrying the target data the data volume information of the target data; the processor is further configured to acquire the data volume information of the target data according to the second OMCI message.
本申请实施例第四方面提供了一种光网络单元ONU,包括:处理器,存储器以及光收发 器,其中,所述处理器分别与所述存储器以及所述光收发器通过线路互联;所述处理器调用所述存储器中的程序代码用于,根据所述ONU可被调配的算力资源获取第一OMCI消息,所述第一OMCI消息用于指示所述ONU可被调配的算力资源;所述光收发器用于,通过光网络单元管理控制接口OMCI通道向光线路终端OLT发送所述第一OMCI消息;所述光收发器还用于,通过第二传输带宽与所述OLT传输目标数据,其中,所述第二传输带宽为根据第一传输带宽以及所述目标数据的数据量信息调整而成,所述第一传输带宽与所述第一OMCI消息所指示的算力资源对应,所述目标数据的数据量信息与所述目标数据在所述OLT和所述ONU之间所传输的数据量大小相关。The fourth aspect of the embodiment of the present application provides an optical network unit ONU, including: a processor, a memory, and an optical transceiver, wherein the processor is connected to the memory and the optical transceiver through lines respectively; The processor calls the program code in the memory to obtain a first OMCI message according to the allocated computing power resources of the ONU, and the first OMCI message is used to indicate the allocated computing power resources of the ONU; The optical transceiver is used to send the first OMCI message to the optical line terminal OLT through the optical network unit management control interface OMCI channel; the optical transceiver is also used to transmit target data with the OLT through the second transmission bandwidth , wherein the second transmission bandwidth is adjusted according to the first transmission bandwidth and the data volume information of the target data, the first transmission bandwidth corresponds to the computing resources indicated by the first OMCI message, and the The data volume information of the target data is related to the data volume of the target data transmitted between the OLT and the ONU.
本方面有益效果的说明,请参见第二方面所示,具体不做赘述。For the description of the beneficial effects of this aspect, please refer to the second aspect, and details will not be repeated.
基于第四方面,一种可选地实现方式中,所述第一OMCI消息包括扩展消息,所述扩展消息用于携带所述ONU可被调配的算力资源。Based on the fourth aspect, in an optional implementation manner, the first OMCI message includes an extended message, and the extended message is used to carry the computing resources that can be allocated by the ONU.
基于第四方面,一种可选地实现方式中,所述扩展消息为java脚本对象表示法格式或标签长度值TLV格式。Based on the fourth aspect, in an optional implementation manner, the extended message is in java script object notation format or tag length value TLV format.
基于第四方面,一种可选地实现方式中,所述光收发器还用于,通过所述OMCI通道向所述OLT发送第二OMCI消息,所述第二OMCI消息携带所述目标数据的数据量信息。Based on the fourth aspect, in an optional implementation manner, the optical transceiver is further configured to send a second OMCI message to the OLT through the OMCI channel, the second OMCI message carrying the target data Data volume information.
本申请实施例第五方面提供了一种光线路终端OLT,该OLT包括:接收单元,用于通过光网络单元管理控制接口OMCI通道接收来自光网络单元ONU的第一OMCI消息,所述第一OMCI消息用于指示所述ONU可被调配的算力资源;分配单元,用于根据所述第一OMCI消息分配所述OLT和所述ONU之间的第一传输带宽,所述第一传输带宽与所述第一OMCI消息所指示的算力资源对应;调整单元,用于获取目标数据的数据量信息,所述目标数据为所述OLT和所述ONU之间待传输的数据,所述数据量信息与所述目标数据在所述OLT和所述ONU之间所传输的数据量大小相关;还用于根据所述目标数据的数据量信息将所述第一传输带宽调整至第二传输带宽;传输单元,用于通过所述第二传输带宽与所述ONU传输所述目标数据。The fifth aspect of the embodiment of the present application provides an optical line terminal OLT, the OLT includes: a receiving unit, configured to receive the first OMCI message from the optical network unit ONU through the optical network unit management control interface OMCI channel, the first The OMCI message is used to indicate the computing resources that can be deployed by the ONU; the allocation unit is used to allocate the first transmission bandwidth between the OLT and the ONU according to the first OMCI message, and the first transmission bandwidth Corresponding to the computing resources indicated by the first OMCI message; an adjustment unit, configured to obtain data volume information of target data, the target data being data to be transmitted between the OLT and the ONU, the data The volume information is related to the data volume of the target data transmitted between the OLT and the ONU; it is also used to adjust the first transmission bandwidth to the second transmission bandwidth according to the data volume information of the target data a transmission unit, configured to transmit the target data with the ONU through the second transmission bandwidth.
有益效果的说明,请参见上述第一方面所示,具体不做赘述。For the description of the beneficial effects, please refer to the above-mentioned first aspect, and details will not be repeated.
本申请实施例第六方面提供了一种光网络单元ONU,该ONU包括:获取单元,用于根据所述ONU可被调配的算力资源获取第一OMCI消息,所述第一OMCI消息用于指示所述ONU可被调配的算力资源;发送单元,用于通过光网络单元管理控制接口OMCI通道向光线路终端OLT发送所述第一OMCI消息;传输单元,用于通过第二传输带宽与所述OLT传输目标数据,其中,所述第二传输带宽为根据第一传输带宽以及所述目标数据的数据量信息调整而成,所述第一传输带宽与所述第一OMCI消息所指示的算力资源对应,所述目标数据的数据量信息与所述目标数据在所述OLT和所述ONU之间所传输的数据量大小相关。The sixth aspect of the embodiment of the present application provides an optical network unit ONU, the ONU includes: an acquisition unit, configured to acquire a first OMCI message according to the computing resources that can be allocated by the ONU, and the first OMCI message is used for Indicate the computing resources that the ONU can be allocated; the sending unit is used to send the first OMCI message to the optical line terminal OLT through the optical network unit management control interface OMCI channel; the transmission unit is used to use the second transmission bandwidth and The OLT transmits the target data, wherein the second transmission bandwidth is adjusted according to the first transmission bandwidth and the data amount information of the target data, and the first transmission bandwidth is the same as that indicated by the first OMCI message Corresponding to computing resources, the data volume information of the target data is related to the data volume of the target data transmitted between the OLT and the ONU.
有益效果的说明,请参见上述第二方面所示,具体不做赘述。For the description of the beneficial effects, please refer to the above-mentioned second aspect, and details will not be repeated.
第七方面,本发明实施例提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行上述第一方面或第二方面的任一实施方式中的方法。In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, including instructions, which, when run on a computer, cause the computer to execute the method in any implementation manner of the first aspect or the second aspect above.
第八方面,本发明实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面或第二方面的任一实施方式中的方法。In an eighth aspect, an embodiment of the present invention provides a computer program product containing instructions, which, when run on a computer, cause the computer to execute the method in any implementation manner of the first aspect or the second aspect above.
图1为已有方案的算力系统的一种实施例结构示例图;Figure 1 is an example structure diagram of an embodiment of a computing power system of an existing solution;
图2为本申请所提供的算力系统的一种实施例结构示例图;Fig. 2 is a structural example diagram of an embodiment of the computing power system provided by the present application;
图3为本申请实施例所提供的数据的传输方法的第一种实施例步骤流程图;FIG. 3 is a flow chart of the steps of the first embodiment of the data transmission method provided by the embodiment of the present application;
图4为本申请实施例所提供的数据的传输方法的第二种实施例步骤流程图;FIG. 4 is a flow chart of the steps of the second embodiment of the data transmission method provided by the embodiment of the present application;
图5为本申请实施例所提供的光网络设备的一种实施例结构示例图;FIG. 5 is a structural example diagram of an embodiment of an optical network device provided in an embodiment of the present application;
图6为本申请实施例所提供的光线路终端的一种实施例结构示例图;FIG. 6 is a structural example diagram of an embodiment of an optical line terminal provided in an embodiment of the present application;
图7为本申请实施例所提供的光网络单元的一种实施例结构示例图。FIG. 7 is a structural example diagram of an embodiment of an optical network unit provided in an embodiment of the present application.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
本申请提供了一种数据的传输方法,以下结合图2所示对本申请所提供的数据的传输方法所应用的算力系统的结构进行说明。其中,图2为本申请所提供的算力系统的一种实施例结构示例图。The present application provides a data transmission method, and the structure of the computing power system applied to the data transmission method provided in the present application will be described below in conjunction with FIG. 2 . Among them, FIG. 2 is a structural example diagram of an embodiment of the computing power system provided by the present application.
本实施例所示的该算力系统应用至无源光纤网络(passive optical network,PON)。本实施例所示的PON可采用吉比特无源光网络(gigabit-capable passive optical network,GPON)网络类型,10GPON网络类型,40GPON网络类型或100GPON网络类型等。The computing power system shown in this embodiment is applied to a passive optical network (passive optical network, PON). The PON shown in this embodiment may adopt a gigabit-capable passive optical network (GPON) network type, a 10GPON network type, a 40GPON network type, or a 100GPON network type, etc.
本实施例所示的的算力系统包括GSLB服务器201。该GSLB服务器201连接多个算力域。本实施例对GSLB服务器201所连接的算力域的数量不做限定,本实施例以GSLB服务器201连接两个算力域为例进行示例性说明,即本实施例所示的GSLB服务器201连接算力域210以及算力域220。以算力域210为例,该算力域210包括光线路终端(optical line terminal,OLT)211。该算力域210还包括与OLT连接的多个光网络单元(optical network unit,ONU)。该算力域210所包括的OLT211和多个ONU之间可通过分光器(optical splitter)连接。其中ONU在一些场景下也被称为光网络终端(optical network termination,ONT),本文中的ONU也包含ONT。The computing power system shown in this embodiment includes a GSLB server 201 . The GSLB server 201 is connected to multiple computing domains. This embodiment does not limit the number of computing power domains connected to the GSLB server 201. This embodiment uses the GSLB server 201 to connect two computing power domains as an example for illustration, that is, the connection between the GSLB server 201 shown in this embodiment Computing power domain 210 and computing power domain 220 . Taking the computing power domain 210 as an example, the computing power domain 210 includes an optical line terminal (optical line terminal, OLT) 211. The computing power domain 210 also includes a plurality of optical network units (optical network units, ONUs) connected to the OLT. The OLT 211 included in the computing power domain 210 and a plurality of ONUs can be connected through an optical splitter. Among them, ONU is also called optical network termination (ONT) in some scenarios, and ONU in this article also includes ONT.
例如,本实施例所示的算力域210包括与OLT211连接的ONU212,ONU213等,本实施例对与OLT211所连接的ONU的数量不做限定。与GSLB服务器201所连接的算力域220包括OLT221,以及与OLT221连接的ONU222以及ONU223,对算力域220的具体结构的说明,请参见算力域210的具体结构的说明,具体不做赘述。For example, the computing power domain 210 shown in this embodiment includes ONU212, ONU213, etc. connected to the OLT211, and this embodiment does not limit the number of ONUs connected to the OLT211. The computing power domain 220 connected to the GSLB server 201 includes OLT221, and ONU222 and ONU223 connected to the OLT221. For the description of the specific structure of the computing power domain 220, please refer to the description of the specific structure of the computing power domain 210, and details will not be repeated. .
基于图2所示的算力系统,以下结合图3所示的实施例,说明基于该算力系统实现数据传输的过程,其中,图3为本申请实施例所提供的数据的传输方法的第一种实施例步骤流程图。Based on the computing power system shown in Figure 2, the following describes the process of realizing data transmission based on the computing power system in conjunction with the embodiment shown in Figure 3, wherein Figure 3 is the first step of the data transmission method provided by the embodiment of the present application A flow chart of the steps of an embodiment.
步骤301、ONU向OLT发送第一OMCI。Step 301, the ONU sends the first OMCI to the OLT.
步骤302、OLT接收来自ONU的第一OMCI消息。Step 302, the OLT receives the first OMCI message from the ONU.
在一个算力域中,例如以算力域210为例,OLT211作为二级的算力网关,管理该算力域210中的每个ONU的资源。为此,该算力域210中的ONU上电后,需要注册至OLT。ONU向OLT发送注册信息。该注册信息携带ONU的媒体介入控制层(media access control,mac)地址。为实 现OLT和ONU之间数据的传输,OLT需要为ONU分配第一上行传输带宽,该第一上行传输带宽与ONU可被调配的算力资源对应。In a computing power domain, for example, taking the computing power domain 210 as an example, the OLT 211 acts as a secondary computing power gateway to manage resources of each ONU in the computing power domain 210 . For this reason, after the ONU in the computing power domain 210 is powered on, it needs to register with the OLT. The ONU sends registration information to the OLT. The registration information carries the media access control layer (media access control, mac) address of the ONU. In order to realize data transmission between the OLT and the ONU, the OLT needs to allocate a first uplink transmission bandwidth to the ONU, and the first uplink transmission bandwidth corresponds to the computing resources that can be allocated by the ONU.
为实现OLT为ONU分配与ONU的算力资源对应的第一上行传输带宽的目的,ONU需要向OLT发送第一光网络单元管理控制接口(ONU management and control interface,OMCI)消息,该第一OMCI消息用于指示所述ONU可被调配的算力资源。其中,该ONU可被调配的算力资源一般是ONU总的算力资源减去已占用的算力资源后剩下的全部或部分算力资源;算力资源可以是计算资源或存储资源。以ONU应用至计算任务为例,ONU中可被调配的计算资源未用于执行任一计算任务。以ONU应用至音视频文件存储为例,ONU中可被调配的存储资源尚未存储任一音视频文件。具体地,计算资源为ONU的处理器的核数及主频。ONU的存储资源包括ONU的磁盘存储容量,内存容量以及外存容量等。该算力资源还可包括ONU所包括的芯片类型。例如,ONU包括人工智能(artificial intelligence,AI)芯片,图形处理器(graphics processing unit,GPU)芯片或视频编解码芯片等。以GPU芯片为例,由于GPU芯片特有性质,GPU芯片适合于处理多种类型的计算任务。这些计算任务例如机器学习(machine learning),深度学习(deep learning),数据挖掘(data mining),高性能计算(high performance computing)等任务。In order to achieve the purpose of the OLT assigning the first uplink transmission bandwidth corresponding to the ONU's computing resources for the ONU, the ONU needs to send a first optical network unit management control interface (ONU management and control interface, OMCI) message to the OLT, the first OMCI The message is used to indicate the allocated computing power resources of the ONU. Wherein, the computing resources that can be deployed by the ONU are generally all or part of the remaining computing resources after subtracting the occupied computing resources from the total computing resources of the ONU; the computing resources can be computing resources or storage resources. Taking the application of ONU to computing tasks as an example, the computing resources that can be deployed in the ONU are not used to execute any computing tasks. Taking the application of ONU to the storage of audio and video files as an example, the storage resources that can be allocated in the ONU have not yet stored any audio and video files. Specifically, the calculation resource is the number of cores and main frequency of the processor of the ONU. ONU storage resources include ONU disk storage capacity, memory capacity, and external storage capacity. The computing power resources may also include chip types included in the ONU. For example, the ONU includes an artificial intelligence (artificial intelligence, AI) chip, a graphics processing unit (graphics processing unit, GPU) chip or a video codec chip, and the like. Taking a GPU chip as an example, due to the unique properties of the GPU chip, the GPU chip is suitable for processing various types of computing tasks. These computing tasks include tasks such as machine learning, deep learning, data mining, and high performance computing.
ONU向OLT发送该第一OMCI的方式为:首先,ONU在向OLT注册的过程中建立OMCI通道。OLT通过和ONU之间的OMCI通道,实现对ONU的管理和控制。例如,在注册阶段,ONU向OLT发送用于请求建立OMCI通道的配置信息,该配置信息包括ONU的标识(ONU-ID)和端口标识等。OLT根据该配置信息创建OLT和ONU之间的OMCI通道。在OLT和ONU之间的OMCI通道创建成功后,ONU基于该OMCI通道发送该第一OMCI消息。The way for the ONU to send the first OMCI to the OLT is as follows: first, the ONU establishes an OMCI channel during the process of registering with the OLT. The OLT manages and controls the ONU through the OMCI channel between the OLT and the ONU. For example, in the registration phase, the ONU sends configuration information for requesting establishment of an OMCI channel to the OLT, and the configuration information includes the identification (ONU-ID) and port identification of the ONU, and the like. The OLT creates an OMCI channel between the OLT and the ONU according to the configuration information. After the OMCI channel between the OLT and the ONU is successfully created, the ONU sends the first OMCI message based on the OMCI channel.
可知,本实施例所示的OLT能够通过OMCI通道接收来自ONU的第一OMCI消息。以下结合表1对本实施例所示的OMCI通道所传输的OMCI消息的格式进行说明:It can be known that the OLT shown in this embodiment can receive the first OMCI message from the ONU through the OMCI channel. The format of the OMCI message transmitted by the OMCI channel shown in this embodiment is described below in conjunction with Table 1:
表1Table 1
本实施例所示的第一OMCI消息可站N个字节(byte)。其中,OMCI消息的第1和第2个字节为事务相关标识符(transaction correlation identifier)字段,该字段的最高位表示该OMCI的优先级的高低,例如,字段transaction correlation identifier取值1,表示高优先级,取值0表示低优先级。OMCI消息的第3个字节为消息类型(message type)字段,该字段用于指示消息类型。OMCI消息的第4个字节为设备标识(device identifier)用于指示ONU的设备类型。OMCI消息的第5至8字节为托管实体标识符(managed entity identifier)字段。OMCI消息的第9至10字节为消息内容长度(message contents length)字段。OMCI消息的第11至(N-4)字节为报文净荷(message contents)字段。OMCI消息的第(N-3)至第N字节为消息完整性检查(message integrity check)字段。本实施例对N的取值不做限定,例如,N为取值为大于或等于16的正整数,该N的取值可根据OMCI所携带的消息确定N的大小。The first OMCI message shown in this embodiment may contain N bytes. Among them, the first and second bytes of the OMCI message are the transaction correlation identifier (transaction correlation identifier) field, and the highest bit of this field indicates the priority level of the OMCI. For example, the value of the field transaction correlation identifier is 1, indicating High priority, value 0 means low priority. The third byte of the OMCI message is the message type field, which is used to indicate the message type. The fourth byte of the OMCI message is the device identifier (device identifier) used to indicate the device type of the ONU. The 5th to 8th bytes of the OMCI message are managed entity identifier (managed entity identifier) fields. The 9th to 10th bytes of the OMCI message are the message contents length (message contents length) field. The 11th to (N-4) bytes of the OMCI message are the message contents field. The (N-3) to Nth bytes of the OMCI message are message integrity check (message integrity check) fields. This embodiment does not limit the value of N. For example, N is a positive integer greater than or equal to 16. The value of N can be determined according to the message carried by OMCI.
本实施例可在message contents字段中设置扩展消息,该扩展消息用于携带所述ONU可被调配的算力资源。例如,该扩展消息包括包括“DISK:100GB”,该扩展消息用于指示ONU的磁盘存储空间中可被调配的存储空间为100吉字节(gigabyte,GB)。该扩展消息包括“AI:8T@fp16”,该扩展消息用于指示可被调配的AI芯片的16位半精度浮点运算的算力为8T。In this embodiment, an extended message can be set in the message contents field, and the extended message is used to carry the computing resources that can be allocated by the ONU. For example, the extended message includes "DISK: 100GB", and the extended message is used to indicate that the allocated storage space in the disk storage space of the ONU is 100 gigabytes (gigabyte, GB). The extended message includes "AI: 8T@fp16", and the extended message is used to indicate that the 16-bit half-precision floating-point computing power of the AI chip that can be deployed is 8T.
本实施例所示的扩展消息的格式为java脚本对象表示法(javascript objectnotation,JSON)格式或标签长度值(tag length value,TLV)格式等任意格式。The format of the extended message shown in this embodiment is any format such as javascript object notation (JSON) format or tag length value (tag length value, TLV) format.
步骤303、OLT根据第一OMCI消息分配第一上行传输带宽。Step 303, the OLT allocates the first uplink transmission bandwidth according to the first OMCI message.
本实施例中,OLT在接收到来自ONU的第一OMCI消息的情况下,OLT能够根据该第一OMCI消息分配第一上行传输带宽。本实施例所示的第一上行传输带宽为上行传输带宽。In this embodiment, when the OLT receives the first OMCI message from the ONU, the OLT can allocate the first uplink transmission bandwidth according to the first OMCI message. The first uplink transmission bandwidth shown in this embodiment is the uplink transmission bandwidth.
其中,所述第一上行传输带宽与所述第一OMCI消息所指示的算力资源对应。具体的,OLT所分配的第一上行传输带宽和第一OMCI消息所指示的算力资源的大小呈正相关关系。若第一OMCI消息所指示的ONU的算力资源越大,那么,OLT为ONU所分配的第一上行传输带宽越大。若第一OMCI消息所指示的ONU的算力资源越小,那么,OLT为ONU所分配的第一上行传输带宽越小。Wherein, the first uplink transmission bandwidth corresponds to the computing resources indicated by the first OMCI message. Specifically, there is a positive correlation between the first uplink transmission bandwidth allocated by the OLT and the size of the computing resources indicated by the first OMCI message. If the computing resources of the ONU indicated by the first OMCI message are greater, then the first uplink transmission bandwidth allocated by the OLT to the ONU is greater. If the computing resource of the ONU indicated by the first OMCI message is smaller, then the first uplink transmission bandwidth allocated by the OLT to the ONU is smaller.
步骤304、OLT获取上行目标数据的数据量信息。Step 304, the OLT obtains the data volume information of the uplink target data.
本实施例所示的该上行目标数据为ONU待向OLT发送的数据。例如,继续参见图2所示,算力域210所包括的ONU213已存储该上行目标数据。请求终端需要获取该ONU213已存储的该上行目标数据。其中,该请求终端可为与GSLB服务器201连接的设备,或者,该请求终端可为与GSLB服务器201所连接的任一算力域所包括的ONU。例如,图2所示的算力域220的ONU223通过OLT221向GSLB服务器201发送该数据请求消息。The uplink target data shown in this embodiment is the data to be sent by the ONU to the OLT. For example, continue referring to FIG. 2 , the ONU 213 included in the computing power domain 210 has already stored the uplink target data. The requesting terminal needs to obtain the uplink target data stored by the ONU213. Wherein, the requesting terminal may be a device connected to the GSLB server 201 , or the requesting terminal may be an ONU included in any computing power domain connected to the GSLB server 201 . For example, the ONU 223 of the computing power domain 220 shown in FIG. 2 sends the data request message to the GSLB server 201 through the OLT 221 .
请求终端为获取上行目标数据,请求终端向GSLB服务器201发送用于请求该上行目标数据的数据请求消息。该数据请求消息携带上行目标数据的标识以及请求终端的地址。该数据请求消息可为超文本传输协议(hyper text transfer protocol,HTTP)get消息。In order to obtain the uplink target data, the requesting terminal sends a data request message for requesting the uplink target data to the GSLB server 201 . The data request message carries the identifier of the uplink target data and the address of the requesting terminal. The data request message may be a hypertext transfer protocol (hyper text transfer protocol, HTTP) get message.
GSLB服务器201已存储第一数据列表。该第一数据列表包括数据的标识和OLT的网际互连协议(internet protocol,IP)地址的对应关系。GSLB服务器201根据该第一数据列表确定与请求终端所请求的上行目标数据的标识对应的为OLT211的地址。GSLB服务器201确定该上行目标数据存储于与该OLT211所连接的ONU上。GSLB服务器201向请求终端发送重定向消息,该重定向消息包括OLT211的地址。请求终端接收到该重定向消息的情况下,可确定该上行目标数据存储于与该OLT211所连接的ONU上。请求终端为获取该上行目标数据,请求终端向OLT211发送该数据请求消息。The GSLB server 201 has stored the first data list. The first data list includes a correspondence between data identifiers and OLT Internet Protocol (internet protocol, IP) addresses. The GSLB server 201 determines the address of the OLT 211 corresponding to the identification of the uplink target data requested by the requesting terminal according to the first data list. The GSLB server 201 determines that the upstream target data is stored on the ONU connected to the OLT 211 . The GSLB server 201 sends a redirect message to the requesting terminal, where the redirect message includes the address of the OLT 211 . When the requesting terminal receives the redirection message, it can determine that the uplink target data is stored on the ONU connected to the OLT 211 . In order to obtain the uplink target data, the requesting terminal sends the data request message to the OLT211.
OLT211已存储第二数据列表。该第二数据列表包括数据的标识和ONU的mac地址的对应关系。OLT211根据该第二数据列表确定与上行目标数据的标识对应的为ONU213的mac地址。OLT确定该ONU213为已存储该上行目标数据的ONU。OLT211向该ONU213发送该数据请求消息,ONU213根据该数据请求消息所包括的上行目标数据的标识,确定需要向OLT211发送该上行目标数据。OLT 211 has stored the second data list. The second data list includes the corresponding relationship between the identifier of the data and the mac address of the ONU. The OLT 211 determines the mac address of the ONU 213 corresponding to the identification of the uplink target data according to the second data list. The OLT determines that the ONU 213 is the ONU that has stored the upstream target data. The OLT211 sends the data request message to the ONU213, and the ONU213 determines that the uplink target data needs to be sent to the OLT211 according to the identification of the uplink target data included in the data request message.
需明确地是,本实施例对上行目标数据的类型不做限定,例如,若本实施例所示的方法应用于音视频文件存储业务,那么,该上行目标数据为音视频文件。又如,若本实施例所示的方法应用于计算业务,那么,该上行目标数据为ONU所包括的计算芯片计算后所得到的计算结果,该计算芯片可为上述所示的AI芯片,GPU芯片等。It should be clear that this embodiment does not limit the type of uplink target data. For example, if the method shown in this embodiment is applied to an audio and video file storage service, then the uplink target data is an audio and video file. As another example, if the method shown in this embodiment is applied to computing services, then the uplink target data is the calculation result obtained after calculation by the computing chip included in the ONU, and the computing chip can be the above-mentioned AI chip, GPU chips etc.
本实施例所示的OLT在接收来自ONU所存储的上行目标数据之前,OLT先需要获取该上行目标数据的数据量信息。具体地,在ONU213注册至OLT211的过程中,ONU213和OLT211之间已创建OMCI通道。ONU213接收到来自OLT211的数据请求消息的情况下,ONU213可通过OMCI通道向OLT211发送第二OMCI消息,该第二OMCI消息携带上行目标数据的数据量信息。该上行目标数据的数据量信息为与上行目标数据的数据量大小相关。例如,该上行目标数据的数据量信息 可为该上行目标数据的流量,帧率,码率,分辨率,速率,峰值流量,平均流量中的至少一项。Before the OLT shown in this embodiment receives the uplink target data stored by the ONU, the OLT first needs to obtain the data volume information of the uplink target data. Specifically, during the process of ONU213 registering with OLT211, an OMCI channel has been established between ONU213 and OLT211. When the ONU213 receives the data request message from the OLT211, the ONU213 may send a second OMCI message to the OLT211 through the OMCI channel, and the second OMCI message carries the data volume information of the uplink target data. The data volume information of the uplink target data is related to the data volume of the uplink target data. For example, the data amount information of the uplink target data can be at least one of the flow rate, frame rate, code rate, resolution, rate, peak flow rate, and average flow rate of the uplink target data.
本实施例所示的第二OMCI消息所携带的上行目标数据的数据量信息还可包括该上行目标数据的业务类型。例如,该上行目标数据的业务类型可为计算业务或视频文件存储业务等。The data volume information of the uplink target data carried in the second OMCI message shown in this embodiment may also include the service type of the uplink target data. For example, the service type of the uplink target data may be a computing service or a video file storage service.
步骤305、OLT根据上行目标数据的数据量信息将第一上行传输带宽调整至第二上行传输带宽。Step 305, the OLT adjusts the first uplink transmission bandwidth to the second uplink transmission bandwidth according to the data volume information of the uplink target data.
该第二上行传输带宽为ONU用于向OLT发送该上行目标数据的传输带宽。由上述所示可知,在ONU向OLT注册的阶段,OLT已为ONU分配了第一上行传输带宽。本实施例中,OLT能够根据上行目标数据的数据量信息,动态的将第一上行传输带宽调整至第二上行传输带宽,从而使得OLT重新调整的第二上行传输带宽更适应上行目标数据的传输,实现了对ONU和OLT之间的第二上行传输带宽的灵活调节,而且有效地提高了第二上行传输带宽的利用率。The second uplink transmission bandwidth is the transmission bandwidth used by the ONU to send the uplink target data to the OLT. It can be seen from the above that, at the stage when the ONU registers with the OLT, the OLT has allocated the first uplink transmission bandwidth to the ONU. In this embodiment, the OLT can dynamically adjust the first uplink transmission bandwidth to the second uplink transmission bandwidth according to the data volume information of the uplink target data, so that the second uplink transmission bandwidth readjusted by the OLT is more suitable for the transmission of the uplink target data , realizing the flexible adjustment of the second uplink transmission bandwidth between the ONU and the OLT, and effectively improving the utilization rate of the second uplink transmission bandwidth.
OLT确定第二上行传输带宽的方式可为,OLT预先存储上行带宽分配列表。所述上行带宽分配列表包括不同的数据量信息和传输带宽的对应关系。OLT根据第二OMCI消息确定上行目标数据的数据量信息。OLT即可通过查询该上行带宽分配列表的方式,确定与该上行目标数据的数据量信息对应的传输带宽为该第二上行传输带宽。A manner in which the OLT determines the second uplink transmission bandwidth may be that the OLT pre-stores an uplink bandwidth allocation list. The uplink bandwidth allocation list includes correspondence between different data amount information and transmission bandwidth. The OLT determines the data volume information of the uplink target data according to the second OMCI message. The OLT can then determine that the transmission bandwidth corresponding to the data volume information of the uplink target data is the second uplink transmission bandwidth by querying the uplink bandwidth allocation list.
还可选地,OLT可根据该上行目标数据的数据量信息,动态的确定该第二上行传输带宽。OLT所确定的第二上行传输带宽的大小与上行目标数据的数据量信息所包括的参数大小呈正相关关系,所述数据量信息所包括的参数包括如下所示的至少一项:Alternatively, the OLT may dynamically determine the second uplink transmission bandwidth according to the data volume information of the uplink target data. The size of the second uplink transmission bandwidth determined by the OLT is positively correlated with the size of the parameters included in the data volume information of the uplink target data, and the parameters included in the data volume information include at least one of the following:
所述上行目标数据的速率,所述上行目标数据的码率,所述上行目标数据的流量,所述上行目标数据的帧率,所述上行目标数据的峰值流量,所述上行目标数据的平均流量。The rate of the target uplink data, the code rate of the target uplink data, the flow rate of the target uplink data, the frame rate of the target uplink data, the peak flow rate of the target uplink data, the average value of the target uplink data flow.
例如,若OLT确定上行目标数据的码率比较大,说明ONU传输上行目标数据的过程中,单位时间内所传输的数据位数比较大,为此,OLT可针对该上行目标数据分配较大的第二上行传输带宽。又如,若OLT确定上行目标数据的帧率较大,说明ONU传输上行目标数据需要通过较大的传输带宽才能保证该上行目标数据的帧率,以保证该上行目标数据的清晰度。For example, if the OLT determines that the code rate of the upstream target data is relatively large, it means that during the process of transmitting the upstream target data by the ONU, the number of data bits transmitted per unit time is relatively large. Therefore, the OLT can allocate a larger code rate for the upstream target data. The second uplink transmission bandwidth. For another example, if the OLT determines that the frame rate of the uplink target data is relatively high, it means that the ONU needs to transmit the uplink target data through a relatively large transmission bandwidth to ensure the frame rate of the uplink target data and ensure the clarity of the uplink target data.
又如,若上行目标数据的数据量信息为上行目标数据的业务类型。OLT可针对具有AI类型的上行目标数据,分配较小的第二上行传输带宽。又如,OLT可针对音视频存储业务,分配较大的第二上行传输带宽。For another example, if the data volume information of the uplink target data is the service type of the uplink target data. The OLT may allocate a smaller second uplink transmission bandwidth for the uplink target data with the AI type. For another example, the OLT may allocate a larger second uplink transmission bandwidth for audio and video storage services.
本实施例所示的方法,OLT通过OMCI通道获取用于指示ONU的算力资源的第一OMCI消息,有效地提高了ONU向OLT上报算力资源的安全性和效率。本实施例对第一上行传输带宽和第二上行传输带宽之间的大小关系不做限定,例如,若OLT根据ONU的算力资源所分配的第一上行传输带宽比较小,无法满足上行目标数据的数据量信息的需求,为此,OLT可扩大第一上行传输带宽以获取该第二上行传输带宽。又如,若OLT根据ONU的算力资源所分配的第一上行传输带宽比较大,第一上行传输带宽满足该上行目标数据的数据量信息的需求的情况下,还能够有上行传输带宽的剩余,为提高OLT和ONU之间的上行传输带宽资源的利用效率,OLT可将该第一上行传输带宽缩小至第二上行传输带宽,缩小后的第二上行传输带宽能够满足上行目标数据的传输需求,还能够有效地提高OLT和ONU之间的上行带宽资源的利用效率。本实施例所示的OLT在第一上行传输带宽的基础上进行调整以获取第二上行传输带宽,提高了OLT向ONU分配该第二上行传输带宽的效率。In the method shown in this embodiment, the OLT obtains the first OMCI message used to indicate the computing power resources of the ONU through the OMCI channel, which effectively improves the security and efficiency of the ONU reporting the computing power resources to the OLT. This embodiment does not limit the size relationship between the first uplink transmission bandwidth and the second uplink transmission bandwidth. For example, if the first uplink transmission bandwidth allocated by the OLT according to the computing resources of the ONU is relatively small, the uplink target data cannot be satisfied. In order to obtain the second uplink transmission bandwidth, the OLT may expand the first uplink transmission bandwidth according to the requirement of the data volume information. For another example, if the first uplink transmission bandwidth allocated by the OLT according to the ONU's computing resources is relatively large, and the first uplink transmission bandwidth meets the requirements of the data volume information of the uplink target data, there may still be remaining uplink transmission bandwidth , in order to improve the utilization efficiency of the uplink transmission bandwidth resources between the OLT and the ONU, the OLT can reduce the first uplink transmission bandwidth to the second uplink transmission bandwidth, and the reduced second uplink transmission bandwidth can meet the transmission requirements of uplink target data , and can also effectively improve the utilization efficiency of uplink bandwidth resources between the OLT and the ONU. The OLT shown in this embodiment adjusts on the basis of the first uplink transmission bandwidth to obtain the second uplink transmission bandwidth, which improves the efficiency of the OLT in allocating the second uplink transmission bandwidth to the ONU.
以下对OLT为ONU分配第二上行传输带宽的过程进行示例性说明:The following is an exemplary description of the process in which the OLT allocates the second uplink transmission bandwidth to the ONU:
OLT可针对上行目标数据的数据量信息以及第一上行传输带宽为ONU分配传输容器(transmission CONT,T-CONT)帧的方式,以实现OLT为ONU分配第二上行传输带宽的目的。该T-CONT用于承载来自ONU的上行目标数据。该第二上行传输带宽是指,OLT为ONU分配的用于传输上行目标数据的T-CONT帧的帧长度。The OLT can allocate a transmission container (transmission CONT, T-CONT) frame for the ONU according to the data amount information of the upstream target data and the first upstream transmission bandwidth, so as to realize the purpose of the OLT to allocate the second upstream transmission bandwidth to the ONU. The T-CONT is used to carry uplink target data from the ONU. The second uplink transmission bandwidth refers to the frame length of the T-CONT frame allocated by the OLT to the ONU for transmitting uplink target data.
具体地,若OLT根据ONU的算力资源,为ONU所分配的T-CONT帧具有第一帧长度(即第一上行传输带宽)。OLT根据上行目标数据的数据量信息,确定需要扩大该第一上行传输带宽,那么,OLT将T-CONT帧由第一帧长度扩大至第二帧长度。可知,第二帧长度大于第一帧长度。同样地,若OLT根据上行目标数据的数据量信息,确定需要缩小该第一上行传输带宽,那么,OLT将T-CONT帧由第一帧长度缩小至第三帧长度。可知,第三帧长度小于第一帧长度。需明确地是,本实施例以OLT通过分配T-CONT帧的帧长度的方式实现第二上行传输带宽的调整的说明为可选地示例,不做限定,在其他示例中,OLT也可通过GPON封装方式(G-PON encapsulation method port,GEM)为单位进行第二上行传输带宽的分配,OLT也可通过逻辑链路号(logical link identifier,LLID)为单位进行第二上行传输带宽的分配,具体分配方式可参见OLT根据T-CONT帧分配第二上行传输带宽的过程的说明,具体不做赘述。Specifically, if the OLT allocates the T-CONT frame for the ONU according to the computing resources of the ONU, the T-CONT frame has the first frame length (ie, the first uplink transmission bandwidth). According to the data volume information of the uplink target data, the OLT determines that the first uplink transmission bandwidth needs to be expanded, and then the OLT expands the T-CONT frame from the first frame length to the second frame length. It can be seen that the second frame length is greater than the first frame length. Similarly, if the OLT determines that the first uplink transmission bandwidth needs to be reduced according to the data volume information of the uplink target data, then the OLT reduces the T-CONT frame from the first frame length to the third frame length. It can be seen that the length of the third frame is smaller than the length of the first frame. It should be clear that, in this embodiment, the description that the OLT implements the adjustment of the second uplink transmission bandwidth by allocating the frame length of the T-CONT frame is an optional example without limitation. In other examples, the OLT may also use The GPON encapsulation method (G-PON encapsulation method port, GEM) is used as a unit to allocate the second uplink transmission bandwidth, and the OLT can also use the logical link number (logical link identifier, LLID) as a unit to allocate the second uplink transmission bandwidth. For the specific allocation method, refer to the description of the process of the OLT allocating the second uplink transmission bandwidth according to the T-CONT frame, and details are not repeated here.
步骤306、OLT向ONU发送带宽分配信息。Step 306, the OLT sends bandwidth allocation information to the ONU.
在OLT确定将第一上行传输带宽调整至第二上行传输带宽的情况下,OLT向ONU发送该带宽分配信息,其中,所述带宽分配信息用于指示第二上行传输带宽。以OLT以T-CONT帧为单位进行第二上行传输带宽的调整为例,该带宽分配信息用于指示为ONU所分配的T-CONT帧的起始时隙以及结束时隙。数据帧中的起始时隙和结束时隙之间的带宽,为OLT为ONU所分配的第二上行传输带宽。When the OLT determines to adjust the first uplink transmission bandwidth to the second uplink transmission bandwidth, the OLT sends the bandwidth allocation information to the ONU, where the bandwidth allocation information is used to indicate the second uplink transmission bandwidth. Taking the OLT as an example to adjust the second uplink transmission bandwidth in units of T-CONT frames, the bandwidth allocation information is used to indicate the start time slot and end time slot of the T-CONT frame allocated to the ONU. The bandwidth between the start time slot and the end time slot in the data frame is the second uplink transmission bandwidth allocated by the OLT to the ONU.
步骤307、ONU通过第二上行传输带宽向OLT发送上行目标数据。Step 307, the ONU sends the uplink target data to the OLT through the second uplink transmission bandwidth.
OLT能够根据该带宽分配信息所指示的起始时隙和结束时隙之间的带宽(即第二上行传输带宽),向OLT发送该上行目标数据。OLT接收到该上行目标数据的情况下,即可向请求终端转发该上行目标数据。The OLT can send the uplink target data to the OLT according to the bandwidth between the start time slot and the end time slot (that is, the second uplink transmission bandwidth) indicated by the bandwidth allocation information. When the OLT receives the uplink target data, it can forward the uplink target data to the requesting terminal.
采用本实施例所示的方法,OLT通过OMCI通道获取用于指示ONU的算力资源的第一OMCI消息,有效地提高了ONU向OLT上报算力资源的安全性和效率。OLT能够根据ONU的算力资源以及待传输的上行目标数据的数据量信息,动态的为ONU分配第二上行传输带宽,有效地提高了调整用于传输上行目标数据的第二上行传输带宽的灵活性。本实施例所示的第二上行传输带宽能够匹配ONU的算力资源的情况下,还能够匹配上行目标数据的传输。在保证了上行目标数据的传输的情况下,还能够提高OLT和ONU之间的上行带宽资源的利用率。而且本实施例所示的OLT在第一上行传输带宽的基础上进行调整以获取第二上行传输带宽,提高了OLT向ONU分配该第二上行传输带宽的效率。OLT动态调整的第二上行传输带宽能够提高上行目标数据传输的可靠性,而且所调整的第二上行传输带宽能够保证所传输的上行目标数据的服务质量(quality of service,QoS)。By adopting the method shown in this embodiment, the OLT obtains the first OMCI message used to indicate the computing power resources of the ONU through the OMCI channel, which effectively improves the security and efficiency of the ONU reporting the computing power resources to the OLT. The OLT can dynamically allocate the second uplink transmission bandwidth for the ONU according to the computing resources of the ONU and the data volume information of the uplink target data to be transmitted, effectively improving the flexibility of adjusting the second uplink transmission bandwidth for transmitting uplink target data sex. In the case where the second uplink transmission bandwidth shown in this embodiment can match the computing resources of the ONU, it can also match the transmission of uplink target data. Under the condition that the transmission of the uplink target data is guaranteed, the utilization rate of the uplink bandwidth resource between the OLT and the ONU can also be improved. Moreover, the OLT shown in this embodiment adjusts on the basis of the first uplink transmission bandwidth to obtain the second uplink transmission bandwidth, which improves the efficiency of the OLT in allocating the second uplink transmission bandwidth to the ONU. The second uplink transmission bandwidth dynamically adjusted by the OLT can improve the reliability of uplink target data transmission, and the adjusted second uplink transmission bandwidth can ensure the quality of service (quality of service, QoS) of the transmitted uplink target data.
图3所示的实施例说明了OLT为ONU动态分配第二上行传输带宽的过程,以实现ONU基于该第二上行传输带宽实现上行目标数据传输的过程,以下结合图4所示说明,OLT动态分配第二下行传输带宽的过程,以实现OLT基于该第二下行传输带宽向ONU发送下行目标数据的过程。The embodiment shown in Fig. 3 illustrates the process that the OLT dynamically allocates the second uplink transmission bandwidth for the ONU, so as to realize the process that the ONU realizes uplink target data transmission based on the second uplink transmission bandwidth. A process of allocating the second downlink transmission bandwidth, so as to realize the process of the OLT sending downlink target data to the ONU based on the second downlink transmission bandwidth.
步骤401、ONU向OLT发送第一OMCI。Step 401, the ONU sends the first OMCI to the OLT.
步骤402、OLT接收来自ONU的第一OMCI消息。Step 402, the OLT receives the first OMCI message from the ONU.
本实施例所示的步骤401至步骤402的执行过程的说明,请参见图3对应的实施例中的步骤301至步骤302,具体执行过程不做赘述。For the description of the execution process of step 401 to step 402 shown in this embodiment, please refer to step 301 to step 302 in the embodiment corresponding to FIG. 3 , and the specific execution process will not be repeated.
步骤403、OLT根据第一OMCI消息分配第一下行传输带宽。Step 403, the OLT allocates the first downlink transmission bandwidth according to the first OMCI message.
本实施例中,OLT在接收到来自ONU的第一OMCI消息的情况下,OLT能够根据该第一OMCI消息分配第一下行传输带宽。本实施例所示的第一下行传输带宽为下行传输带宽。In this embodiment, when the OLT receives the first OMCI message from the ONU, the OLT can allocate the first downlink transmission bandwidth according to the first OMCI message. The first downlink transmission bandwidth shown in this embodiment is the downlink transmission bandwidth.
其中,所述第一下行传输带宽与所述第一OMCI消息所指示的算力资源对应。具体的,OLT所分配的第一下行传输带宽和第一OMCI消息所指示的算力资源的大小呈正相关关系。若第一OMCI消息所指示的ONU的算力资源越大,那么,OLT为ONU所分配的第一下行传输带宽越大。若第一OMCI消息所指示的ONU的算力资源越小,那么,OLT为ONU所分配的第一下行传输带宽越小。Wherein, the first downlink transmission bandwidth corresponds to the computing resource indicated by the first OMCI message. Specifically, there is a positive correlation between the first downlink transmission bandwidth allocated by the OLT and the computing resources indicated by the first OMCI message. If the computing resources of the ONU indicated by the first OMCI message are greater, then the first downlink transmission bandwidth allocated by the OLT to the ONU is greater. If the computing resource of the ONU indicated by the first OMCI message is smaller, then the first downlink transmission bandwidth allocated by the OLT to the ONU is smaller.
步骤404、OLT获取下行目标数据的数据量信息。Step 404, the OLT obtains the data volume information of the downlink target data.
本实施例所示的下行目标数据为OLT待向ONU发送的数据。请求终端请求GSLB服务器201存储下行目标数据,为此,请求终端向GSLB服务器201发送该数据存储请求消息,该请求终端的说明,可参见图2对应的实施例的说明,具体在本实施例中不做赘述。The downlink target data shown in this embodiment is the data to be sent by the OLT to the ONU. The requesting terminal requests the GSLB server 201 to store downlink target data. For this reason, the requesting terminal sends the data storage request message to the GSLB server 201. For the description of the requesting terminal, refer to the description of the corresponding embodiment in FIG. 2 , specifically in this embodiment I won't go into details.
GSLB服务器201接收到来自请求终端的数据存储请求消息后,若GSLB服务器201确定通过算力域210存储该下行目标数据,GSLB服务器201向OLT211转发该数据存储请求消息。OLT211根据该数据存储请求消息可根据所连接的各ONU的算力资源,确定用于存储该下行目标数据的ONU。例如,OLT211根据来自各个ONU的第一OMCI消息能够确定各个ONU的存储空间。若确定下行目标数据需要的存储空间为50GB,那么,OLT211在算力域210中所选择的用于存储该下行目标数据的ONU的剩余存储空间大于50GB。可选地,OLT211可配置存储优先级列表,该存储优先级列表可对算力域210所包括的各个ONU的剩余存储空间的大小,按照由大到小的顺序进行排序。OLT211选定该存储优先级列表中,具有最高优先级的ONU为用于存储该下行目标数据的ONU,例如,本实施例所示的OLT211选定ONU212用于存储该下行目标数据。After the GSLB server 201 receives the data storage request message from the requesting terminal, if the GSLB server 201 determines to store the downlink target data through the computing power domain 210 , the GSLB server 201 forwards the data storage request message to the OLT 211 . According to the data storage request message, the OLT 211 can determine the ONU for storing the downlink target data according to the computing resources of the connected ONUs. For example, the OLT 211 can determine the storage space of each ONU according to the first OMCI message from each ONU. If it is determined that the storage space required by the downlink target data is 50 GB, then the remaining storage space of the ONU selected by the OLT 211 in the computing power domain 210 for storing the downlink target data is greater than 50 GB. Optionally, the OLT 211 may be configured with a storage priority list, and the storage priority list may sort the remaining storage space of each ONU included in the computing power domain 210 in descending order. The OLT 211 selects the ONU with the highest priority in the storage priority list as the ONU for storing the downlink target data. For example, the OLT 211 shown in this embodiment selects the ONU 212 for storing the downlink target data.
OLT获取该下行目标数据的数据量信息的方式可为如下所示的两种可选地方式:The manner in which the OLT acquires the data amount information of the downlink target data can be two optional manners as shown below:
可选方式1,在OLT接收到来自GSLB服务器的下行目标数据后,OLT能够根据该下行目标数据获取该下行目标数据的数据量信息,对下行目标数据的数据量信息的具体说明,请参见图3对应的实施例中上行目标数据的数据量信息的说明,具体不做赘述。Optional method 1. After the OLT receives the downlink target data from the GSLB server, the OLT can obtain the data volume information of the downlink target data according to the downlink target data. For the specific description of the downlink target data data volume information, please refer to Fig. The description of the data amount information of the uplink target data in the embodiment corresponding to 3 will not be described in detail.
可选方式2,GSLB服务器接收到下行目标数据后,GSLB服务器根据该下行目标数据获取该下行目标数据的数据量信息。GSLB服务器向OLT发送该下行目标数据的数据量信息。Optional way 2, after the GSLB server receives the downlink target data, the GSLB server acquires the data volume information of the downlink target data according to the downlink target data. The GSLB server sends the data volume information of the downlink target data to the OLT.
步骤405、OLT根据下行目标数据的数据量信息将第一下行传输带宽调整至第二下行传输带宽。Step 405, the OLT adjusts the first downlink transmission bandwidth to the second downlink transmission bandwidth according to the data volume information of the downlink target data.
该第二下行传输带宽为OLT用于向ONU发送该下行目标数据的下行传输带宽。由上述所示可知,在ONU向OLT注册的阶段,OLT已为ONU分配了第一下行传输带宽。本实施例中,OLT能够根据下行目标数据的数据量信息,动态的将第一下行传输带宽调整至第二下行传输带宽,从而使得OLT重新调整的第二下行传输带宽能够更适应下行目标数据的传输,有效地提高了下行目标数据传输至ONU的速率,有效地提高了OLT向ONU发送下行目标数据的过程中的带宽的利用率。The second downlink transmission bandwidth is the downlink transmission bandwidth used by the OLT to send the downlink target data to the ONU. It can be seen from the above that, at the stage when the ONU registers with the OLT, the OLT has allocated the first downlink transmission bandwidth to the ONU. In this embodiment, the OLT can dynamically adjust the first downlink transmission bandwidth to the second downlink transmission bandwidth according to the data amount information of the downlink target data, so that the second downlink transmission bandwidth readjusted by the OLT can be more suitable for the downlink target data The transmission effectively improves the rate of downlink target data transmission to the ONU, and effectively improves the utilization rate of the bandwidth in the process of the OLT sending the downlink target data to the ONU.
OLT确定第二下行传输带宽的方式可为,OLT预先存储下行带宽分配列表。所述下行带宽分配列表包括不同的数据量信息和下行传输带宽的对应关系。OLT根据第二OMCI消息确定下行目标数据的数据量信息。OLT即可通过查询该下行带宽分配列表的方式,确定与该下行目标数 据的数据量信息对应的传输带宽为该第二下行传输带宽。还可选地,OLT可根据该下行目标数据的数据量信息,动态的确定该第二下行传输带宽。OLT所确定的第二下行传输带宽的大小与下行目标数据的数据量信息所包括的参数大小呈正相关关系,具体说明,可参见图3对应的步骤305所示的OLT根据上行目标数据的数据量信息确定第二上行传输带宽的过程的说明,具体不做赘述。A manner for the OLT to determine the second downlink transmission bandwidth may be that the OLT pre-stores a downlink bandwidth allocation list. The downlink bandwidth allocation list includes correspondence between different data amount information and downlink transmission bandwidth. The OLT determines the data volume information of the downlink target data according to the second OMCI message. The OLT can determine that the transmission bandwidth corresponding to the data volume information of the downlink target data is the second downlink transmission bandwidth by querying the downlink bandwidth allocation list. Alternatively, the OLT may dynamically determine the second downlink transmission bandwidth according to the data volume information of the downlink target data. The size of the second downlink transmission bandwidth determined by the OLT is positively correlated with the size of the parameters included in the data amount information of the downlink target data. For specific instructions, refer to the OLT shown in step 305 corresponding to FIG. The description of the process of information determining the second uplink transmission bandwidth will not be described in detail.
本实施例对第一下行传输带宽和第二下行传输带宽之间的大小关系不做限定,例如,若OLT根据ONU的算力资源所分配的第一下行传输带宽比较小,无法满足下行目标数据的数据量信息的需求,为此,OLT可扩大第一下行传输带宽以获取该第二下行传输带宽。又如,若OLT根据ONU的算力资源所分配的第一下行传输带宽比较大,第一下行传输带宽满足该下行目标数据的数据量信息的需求的情况下,还能够有传输带宽的剩余,为提高OLT和ONU之间的下行带宽资源的利用效率,OLT可将该第一下行传输带宽缩小至第二下行传输带宽,缩小后的第二下行传输带宽能够满足下行目标数据的传输需求,还能够有效地提高OLT和ONU之间的下行带宽资源的利用效率。而且本实施例所示的OLT在第一下行传输带宽的基础上进行调整以获取第二下行传输带宽,提高了OLT分配该第二下行传输带宽的效率。This embodiment does not limit the size relationship between the first downlink transmission bandwidth and the second downlink transmission bandwidth. The data volume information of the target data is required. Therefore, the OLT may expand the first downlink transmission bandwidth to obtain the second downlink transmission bandwidth. For another example, if the first downlink transmission bandwidth allocated by the OLT according to the computing resources of the ONU is relatively large, and the first downlink transmission bandwidth meets the requirements of the data volume information of the downlink target data, there may also be transmission bandwidth In addition, in order to improve the utilization efficiency of downlink bandwidth resources between the OLT and the ONU, the OLT can reduce the first downlink transmission bandwidth to the second downlink transmission bandwidth, and the reduced second downlink transmission bandwidth can meet the transmission of downlink target data It can also effectively improve the utilization efficiency of downlink bandwidth resources between the OLT and the ONU. Moreover, the OLT shown in this embodiment adjusts on the basis of the first downlink transmission bandwidth to obtain the second downlink transmission bandwidth, which improves the efficiency of the OLT in allocating the second downlink transmission bandwidth.
具体地,OLT为实现第二下行传输带宽的调整,OLT可针对下行目标数据的数据量信息以及第一下行传输带宽为ONU分配用于传输该下行目标数据的GEM帧。OLT所分配的GEM帧的数量以及长度,为该第二下行传输带宽。Specifically, in order to realize the adjustment of the second downlink transmission bandwidth, the OLT may allocate a GEM frame for transmitting the downlink target data to the ONU according to the data volume information of the downlink target data and the first downlink transmission bandwidth. The quantity and length of the GEM frames allocated by the OLT are the second downlink transmission bandwidth.
步骤406、OLT通过第二下行传输带宽向ONU发送下行目标数据。Step 406, the OLT sends downlink target data to the ONU through the second downlink transmission bandwidth.
继续参见图2所示,OLT211通过广播向与ONU212以及ONU213等与该OLT211所连接的所有ONU发送承载该下行目标数据的GEM帧。OLT211在确定ONU212为用于存储该下行目标数据的ONU,那么,OLT211向ONU212发送目标GEM帧标识,该目标GEM帧标识用于指示承载下行目标数据的GEM帧的起始时隙以及结束时隙。ONU212根据该目标GEM帧标识,在该目标GEM帧标识所指示的起始时隙和结束时隙,ONU212从GEM帧中解封装出下行目标数据。Continuing to refer to FIG. 2 , the OLT 211 sends the GEM frame carrying the downlink target data to all ONUs connected to the OLT 211 such as the ONU 212 and the ONU 213 by broadcasting. When OLT211 determines that ONU212 is the ONU used to store the downlink target data, then OLT211 sends the target GEM frame mark to ONU212, and the target GEM frame mark is used to indicate the start time slot and the end time slot of the GEM frame carrying the downlink target data . According to the target GEM frame ID, the ONU 212 decapsulates the downlink target data from the GEM frame at the start time slot and the end time slot indicated by the target GEM frame ID.
采用本实施例所示的方法,OLT通过OMCI通道获取用于指示ONU的算力资源的第一OMCI消息,有效地提高了ONU向OLT上报算力资源的安全性和效率。OLT能够根据ONU的算力资源以及待传输的下行目标数据的数据量信息,动态的分配第二下行传输带宽。可知,本实施例所示的第二下行传输带宽能够匹配ONU的算力资源的情况下,还能够匹配下行目标数据的传输。在保证了下行目标数据的传输的情况下,还能够提高OLT和ONU之间的下行带宽资源的利用率。而且本实施例所示的OLT在第一下行传输带宽的基础上进行调整以获取第二下行传输带宽,提高了OLT所分配的该第二下行传输带宽的效率。OLT动态调整的第二下行传输带宽能够提高下行目标数据传输的可靠性,而且所调整的第二下传输带宽能够保证所传输的下行目标数据的QoS。By adopting the method shown in this embodiment, the OLT obtains the first OMCI message used to indicate the computing power resources of the ONU through the OMCI channel, which effectively improves the security and efficiency of the ONU reporting the computing power resources to the OLT. The OLT can dynamically allocate the second downlink transmission bandwidth according to the computing resources of the ONU and the data volume information of the downlink target data to be transmitted. It can be seen that, when the second downlink transmission bandwidth shown in this embodiment can match the computing power resources of the ONU, it can also match the transmission of downlink target data. Under the condition that the transmission of downlink target data is guaranteed, the utilization rate of downlink bandwidth resources between the OLT and the ONU can also be improved. Moreover, the OLT shown in this embodiment adjusts on the basis of the first downlink transmission bandwidth to obtain the second downlink transmission bandwidth, which improves the efficiency of the second downlink transmission bandwidth allocated by the OLT. The second downlink transmission bandwidth dynamically adjusted by the OLT can improve the reliability of downlink target data transmission, and the adjusted second downlink transmission bandwidth can guarantee the QoS of the transmitted downlink target data.
上述实施例以吉比特无源光网络(gigabit-capable passive optical network,GPON)为例进行的说明,GPON网络中的OLT和ONU之间是传输的GEM帧。但本方式也可以应用到其他PON网络,比如10GPON,40GPON和100GPON等网络,只需将上述描述的GEM帧替换成对应的帧即可。The foregoing embodiment is described by taking a gigabit-capable passive optical network (GPON) as an example. The GEM frame is transmitted between the OLT and the ONU in the GPON network. However, this method can also be applied to other PON networks, such as 10GPON, 40GPON and 100GPON networks, just replace the GEM frame described above with the corresponding frame.
下面结合图5,对本申请所提供的光网络设备的结构进行说明。本实施例所示的光网络设备包括处理器501、存储器502和光收发器503。该处理器501、存储器502和光收发器503通过线路互联。其中,存储器502用于存储程序指令和数据。The structure of the optical network device provided by the present application will be described below with reference to FIG. 5 . The optical network device shown in this embodiment includes a processor 501 , a memory 502 and an optical transceiver 503 . The processor 501, memory 502 and optical transceiver 503 are interconnected by wires. Among them, the memory 502 is used to store program instructions and data.
若本实施例所示的光网络设备为OLT,那么,所述光收发器503用于,通过光网络单元管 理控制接口OMCI通道接收来自光网络单元ONU的第一OMCI消息,所述第一OMCI消息用于指示所述ONU可被调配的算力资源;If the optical network device shown in this embodiment is an OLT, then the optical transceiver 503 is used to receive the first OMCI message from the optical network unit ONU through the optical network unit management control interface OMCI channel, and the first OMCI The message is used to indicate the computing resources that can be deployed by the ONU;
所述处理器501调用所述存储器502中的程序代码用于,根据所述第一OMCI消息分配所述OLT和所述ONU之间的第一传输带宽,所述第一传输带宽与所述第一OMCI消息所指示的算力资源对应;The processor 501 calls the program code in the memory 502 to allocate a first transmission bandwidth between the OLT and the ONU according to the first OMCI message, and the first transmission bandwidth and the first Correspondence to computing resources indicated by an OMCI message;
所述处理器502还用于,获取目标数据的数据量信息,所述目标数据为所述OLT和所述ONU之间待传输的数据,所述数据量信息与所述目标数据在所述OLT和所述ONU之间所传输的数据量大小相关;The processor 502 is further configured to acquire data amount information of target data, the target data is data to be transmitted between the OLT and the ONU, and the data amount information and the target data are stored in the OLT It is related to the amount of data transmitted between the ONUs;
所述处理器502还用于,根据所述目标数据的数据量信息将所述第一传输带宽调整至第二传输带宽;The processor 502 is further configured to adjust the first transmission bandwidth to a second transmission bandwidth according to the data volume information of the target data;
所述光收发器503还用于,通过所述第二传输带宽与所述ONU传输所述目标数据。The optical transceiver 503 is further configured to transmit the target data with the ONU through the second transmission bandwidth.
具体执行过程以及有益效果的说明,请参见图3以及图4对应的实施例的说明,具体不做赘述。For the description of the specific execution process and beneficial effects, please refer to the description of the embodiment corresponding to FIG. 3 and FIG. 4 , and details are not repeated here.
若本实施例所示的光网络设备为ONU,那么,所述处理器501调用所述存储器502中的程序代码用于,根据所述ONU可被调配的算力资源获取第一OMCI消息,所述第一OMCI消息用于指示所述ONU可被调配的算力资源;If the optical network device shown in this embodiment is an ONU, then the processor 501 invokes the program code in the memory 502 to obtain the first OMCI message according to the computing resources that can be deployed by the ONU, so The first OMCI message is used to indicate the computing resources that the ONU can be allocated;
所述光收发器503用于,通过光网络单元管理控制接口OMCI通道向光线路终端OLT发送所述第一OMCI消息;The optical transceiver 503 is configured to send the first OMCI message to the optical line terminal OLT through the optical network unit management control interface OMCI channel;
所述光收发器503还用于,通过第二传输带宽与所述OLT传输目标数据,其中,所述第二传输带宽为根据第一传输带宽以及所述目标数据的数据量信息调整而成,所述第一传输带宽与所述第一OMCI消息所指示的算力资源对应,所述目标数据的数据量信息与所述目标数据在所述OLT和所述ONU之间所传输的数据量大小相关。The optical transceiver 503 is further configured to transmit target data with the OLT through a second transmission bandwidth, wherein the second transmission bandwidth is adjusted according to the first transmission bandwidth and the data volume information of the target data, The first transmission bandwidth corresponds to the computing resource indicated by the first OMCI message, the data volume information of the target data and the data volume of the target data transmitted between the OLT and the ONU relevant.
以下结合图6所示,从功能模块的角度对OLT的结构进行说明,其中,图6为本申请实施例所提供的光线路终端的一种实施例结构示例图。The following describes the structure of the OLT from the perspective of functional modules as shown in FIG. 6 , wherein FIG. 6 is a structural example diagram of an embodiment of an optical line terminal provided by an embodiment of the present application.
本实施例所示的OLT包括:接收单元601,用于通过光网络单元管理控制接口OMCI通道接收来自光网络单元ONU的第一OMCI消息,所述第一OMCI消息用于指示所述ONU可被调配的算力资源;The OLT shown in this embodiment includes: a receiving unit 601, configured to receive a first OMCI message from an optical network unit ONU through an optical network unit management control interface OMCI channel, and the first OMCI message is used to indicate that the ONU can be Deployed computing resources;
分配单元602,用于根据所述第一OMCI消息分配所述OLT和所述ONU之间的第一传输带宽,所述第一传输带宽与所述第一OMCI消息所指示的算力资源对应;An allocating unit 602, configured to allocate a first transmission bandwidth between the OLT and the ONU according to the first OMCI message, where the first transmission bandwidth corresponds to the computing resources indicated by the first OMCI message;
调整单元603,用于获取目标数据的数据量信息,所述目标数据为所述OLT和所述ONU之间待传输的数据,所述数据量信息与所述目标数据在所述OLT和所述ONU之间所传输的数据量大小相关;还用于根据所述目标数据的数据量信息将所述第一传输带宽调整至第二传输带宽;An adjustment unit 603, configured to acquire data volume information of target data, the target data being data to be transmitted between the OLT and the ONU, the data volume information and the target data being transmitted between the OLT and the ONU The amount of data transmitted between the ONUs is related; it is also used to adjust the first transmission bandwidth to the second transmission bandwidth according to the data amount information of the target data;
传输单元604,用于通过所述第二传输带宽与所述ONU传输所述目标数据。A transmission unit 604, configured to transmit the target data with the ONU through the second transmission bandwidth.
具体执行过程以及有益效果的说明,请参见图3以及图4对应的实施例的说明,具体不做赘述。For the description of the specific execution process and beneficial effects, please refer to the description of the embodiment corresponding to FIG. 3 and FIG. 4 , and details are not repeated here.
以下结合图7所示,从功能模块的角度对ONU的结构进行说明,其中,图7为本申请实施例所提供的光网络单元的一种实施例结构示例图。The following describes the structure of the ONU from the perspective of functional modules as shown in FIG. 7 , wherein FIG. 7 is a structural example diagram of an embodiment of an optical network unit provided by an embodiment of the present application.
本实施例所示的ONU包括:获取单元701,用于根据所述ONU可被调配的算力资源获取第一OMCI消息,所述第一OMCI消息用于指示所述ONU可被调配的算力资源;The ONU shown in this embodiment includes: an acquisition unit 701, configured to acquire a first OMCI message according to the allocated computing power resources of the ONU, and the first OMCI message is used to indicate the allocated computing power of the ONU resource;
发送单元702,用于通过光网络单元管理控制接口OMCI通道向光线路终端OLT发送所述第一OMCI消息;The sending unit 702 is configured to send the first OMCI message to the optical line terminal OLT through the optical network unit management control interface OMCI channel;
传输单元703,用于通过第二传输带宽与所述OLT传输目标数据,其中,所述第二传输带宽为根据第一传输带宽以及所述目标数据的数据量信息调整而成,所述第一传输带宽与所述第一OMCI消息所指示的算力资源对应,所述目标数据的数据量信息与所述目标数据在所述OLT和所述ONU之间所传输的数据量大小相关。The transmission unit 703 is configured to transmit target data with the OLT through a second transmission bandwidth, wherein the second transmission bandwidth is adjusted according to the first transmission bandwidth and the data volume information of the target data, and the first The transmission bandwidth corresponds to the computing resources indicated by the first OMCI message, and the data volume information of the target data is related to the data volume of the target data transmitted between the OLT and the ONU.
具体执行过程以及有益效果的说明,请参见图3以及图4对应的实施例的说明,具体不做赘述。For the description of the specific execution process and beneficial effects, please refer to the description of the embodiment corresponding to FIG. 3 and FIG. 4 , and details are not repeated here.
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (23)
- 一种数据的传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method comprises:光线路终端OLT通过光网络单元管理控制接口OMCI通道接收来自光网络单元ONU的第一OMCI消息,所述第一OMCI消息用于指示所述ONU可被调配的算力资源;The optical line terminal OLT receives the first OMCI message from the optical network unit ONU through the optical network unit management control interface OMCI channel, and the first OMCI message is used to indicate the computing resources that can be allocated by the ONU;所述OLT根据所述第一OMCI消息分配所述OLT和所述ONU之间的第一传输带宽,所述第一传输带宽与所述第一OMCI消息所指示的算力资源对应;The OLT allocates a first transmission bandwidth between the OLT and the ONU according to the first OMCI message, and the first transmission bandwidth corresponds to the computing resources indicated by the first OMCI message;所述OLT获取目标数据的数据量信息,所述目标数据为所述OLT和所述ONU之间待传输的数据,所述数据量信息与所述目标数据在所述OLT和所述ONU之间所传输的数据量大小相关;The OLT obtains data amount information of target data, the target data is data to be transmitted between the OLT and the ONU, and the data amount information and the target data are between the OLT and the ONU The amount of data transmitted is related to the size;所述OLT根据所述目标数据的数据量信息将所述第一传输带宽调整至第二传输带宽;The OLT adjusts the first transmission bandwidth to a second transmission bandwidth according to the data amount information of the target data;所述OLT通过所述第二传输带宽与所述ONU传输所述目标数据。The OLT transmits the target data with the ONU through the second transmission bandwidth.
- 根据权利要求1所述的方法,其特征在于,所述第一OMCI消息包括扩展消息,所述扩展消息用于携带所述ONU可被调配的算力资源。The method according to claim 1, wherein the first OMCI message includes an extended message, and the extended message is used to carry the computing resources that can be allocated by the ONU.
- 根据权利要求2所述的方法,其特征在于,所述扩展消息为java脚本对象表示法格式或标签长度值TLV格式。The method according to claim 2, characterized in that the extended message is in java script object notation format or tag length value TLV format.
- 根据权利要求1至3任一项所述的方法,其特征在于,所述OLT获取目标数据的数据量信息包括:The method according to any one of claims 1 to 3, wherein the OLT obtains the data volume information of the target data comprising:所述OLT通过所述OMCI通道接收来自所述ONU的第二OMCI消息,所述第二OMCI消息携带所述目标数据的数据量信息;The OLT receives a second OMCI message from the ONU through the OMCI channel, and the second OMCI message carries the data volume information of the target data;所述OLT根据所述第二OMCI消息获取所述目标数据的数据量信息。The OLT obtains the data volume information of the target data according to the second OMCI message.
- 根据权利要求4所述的方法,其特征在于,所述OLT根据所述目标数据的数据量信息将所述第一传输带宽调整至第二传输带宽之后,所述方法还包括:The method according to claim 4, wherein after the OLT adjusts the first transmission bandwidth to the second transmission bandwidth according to the data volume information of the target data, the method further comprises:所述OLT向所述ONU发送带宽分配信息,所述带宽分配信息用于指示所述第二传输带宽。The OLT sends bandwidth allocation information to the ONU, where the bandwidth allocation information is used to indicate the second transmission bandwidth.
- 根据权利要求1至3任一项所述的方法,其特征在于,所述OLT获取目标数据的数据量信息包括:The method according to any one of claims 1 to 3, wherein the OLT obtains the data volume information of the target data comprising:所述OLT接收来自服务器的所述目标数据;the OLT receives the target data from a server;所述OLT根据所述目标数据获取所述数据量信息。The OLT acquires the data amount information according to the target data.
- 根据权利要求1至3任一项所述的方法,其特征在于,所述OLT获取目标数据的数据量信息包括:The method according to any one of claims 1 to 3, wherein the OLT obtains the data volume information of the target data comprising:所述OLT接收来自服务器的所述目标数据的数据量信息。The OLT receives data volume information of the target data from a server.
- 根据权利要求1至7任一项所述的方法,其特征在于,所述OLT获取目标数据的数据量信息包括:The method according to any one of claims 1 to 7, wherein the OLT obtains the data amount information of the target data comprising:所述OLT获取带宽分配列表,所述带宽分配列表包括不同的数据量信息和传输带宽的对应关系;The OLT obtains a bandwidth allocation list, and the bandwidth allocation list includes the corresponding relationship between different data volume information and transmission bandwidth;所述OLT根据所述带宽分配列表,确定与所述目标数据的数据量信息对应的所述第二传输带宽。The OLT determines the second transmission bandwidth corresponding to the data amount information of the target data according to the bandwidth allocation list.
- 根据权利要求1至8任一项所述的方法,其特征在于,所述第二传输带宽的大小与所述数据量信息所包括的参数大小呈正相关关系,所述数据量信息所包括的参数包括如下所示的至少一项:The method according to any one of claims 1 to 8, characterized in that the size of the second transmission bandwidth is positively correlated with the size of the parameters included in the data volume information, and the parameters included in the data volume information Include at least one of the following:所述目标数据的速率,所述目标数据的码率,所述目标数据的流量,所述目标数据的帧率,所述目标数据的峰值流量,或所述目标数据的平均流量。The rate of the target data, the code rate of the target data, the traffic of the target data, the frame rate of the target data, the peak traffic of the target data, or the average traffic of the target data.
- 一种数据的传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method comprises:光网络单元ONU根据所述ONU可被调配的算力资源获取第一OMCI消息,所述第一OMCI消息用于指示所述ONU可被调配的算力资源;The optical network unit ONU obtains a first OMCI message according to the computing power resources that can be allocated by the ONU, and the first OMCI message is used to indicate the computing power resources that can be allocated by the ONU;所述ONU通过光网络单元管理控制接口OMCI通道向光线路终端OLT发送所述第一OMCI消息;The ONU sends the first OMCI message to the optical line terminal OLT through the optical network unit management control interface OMCI channel;所述ONU通过第二传输带宽与所述OLT传输目标数据,其中,所述第二传输带宽为根据第一传输带宽以及所述目标数据的数据量信息调整而成,所述第一传输带宽与所述第一OMCI消息所指示的算力资源对应,所述目标数据的数据量信息与所述目标数据在所述OLT和所述ONU之间所传输的数据量大小相关。The ONU transmits the target data through the second transmission bandwidth and the OLT, wherein the second transmission bandwidth is adjusted according to the first transmission bandwidth and the data amount information of the target data, and the first transmission bandwidth and the The computing resources indicated by the first OMCI message correspond to the data volume information of the target data and the data volume of the target data transmitted between the OLT and the ONU.
- 根据权利要求10所述的方法,其特征在于,所述第一OMCI消息包括扩展消息,所述扩展消息用于携带所述ONU可被调配的算力资源。The method according to claim 10, wherein the first OMCI message includes an extended message, and the extended message is used to carry the computing resources that can be allocated by the ONU.
- 根据权利要求11所述的方法,其特征在于,所述扩展消息为java脚本对象表示法格式或标签长度值TLV格式。The method according to claim 11, characterized in that the extended message is in java script object notation format or tag length value TLV format.
- 根据权利要求10至12任一项所述的方法,其特征在于,所述ONU通过第二传输带宽与所述OLT传输目标数据之前,所述方法还包括:The method according to any one of claims 10 to 12, wherein, before the ONU transmits target data with the OLT through the second transmission bandwidth, the method further comprises:所述ONU通过所述OMCI通道向所述OLT发送第二OMCI消息,所述第二OMCI消息携带所述目标数据的数据量信息。The ONU sends a second OMCI message to the OLT through the OMCI channel, and the second OMCI message carries the data volume information of the target data.
- 根据权利要求13所述的方法,其特征在于,所述ONU通过第二传输带宽与所述OLT传输目标数据之前,所述方法还包括:The method according to claim 13, wherein, before the ONU transmits the target data with the OLT through the second transmission bandwidth, the method further comprises:所述ONU接收来自所述OLT的带宽分配信息,所述带宽分配信息用于指示所述第二传输带宽。The ONU receives bandwidth allocation information from the OLT, where the bandwidth allocation information is used to indicate the second transmission bandwidth.
- 根据权利要求10至14任一项所述的方法,其特征在于,所述第二传输带宽的大小与所述数据量信息所包括的参数大小呈正相关关系,所述数据量信息所包括的参数包括如下所示的至少一项:The method according to any one of claims 10 to 14, wherein the size of the second transmission bandwidth is positively correlated with the size of the parameters included in the data volume information, and the parameters included in the data volume information Include at least one of the following:所述目标数据的速率,所述目标数据的码率,所述目标数据的流量,所述目标数据的帧率,所述目标数据的峰值流量,或所述目标数据的平均流量。The rate of the target data, the code rate of the target data, the traffic of the target data, the frame rate of the target data, the peak traffic of the target data, or the average traffic of the target data.
- 一种光线路终端OLT,其特征在于,包括:处理器,存储器以及光收发器,其中,所述处理器分别与所述存储器以及所述光收发器通过线路互联;An optical line terminal OLT, characterized in that it includes: a processor, a memory and an optical transceiver, wherein the processor is connected to the memory and the optical transceiver through lines respectively;所述光收发器用于,通过光网络单元管理控制接口OMCI通道接收来自光网络单元ONU的第一OMCI消息,所述第一OMCI消息用于指示所述ONU可被调配的算力资源;The optical transceiver is used to receive a first OMCI message from an optical network unit ONU through an optical network unit management control interface OMCI channel, and the first OMCI message is used to indicate the computing resources that can be allocated by the ONU;所述处理器调用所述存储器中的程序代码用于,根据所述第一OMCI消息分配所述OLT和所述ONU之间的第一传输带宽,所述第一传输带宽与所述第一OMCI消息所指示的算力资源对应;The processor invokes the program code in the memory for allocating a first transmission bandwidth between the OLT and the ONU according to the first OMCI message, the first transmission bandwidth and the first OMCI Correspondence to the computing resource indicated by the message;所述处理器还用于,获取目标数据的数据量信息,所述目标数据为所述OLT和所述ONU 之间待传输的数据,所述数据量信息与所述目标数据在所述OLT和所述ONU之间所传输的数据量大小相关;The processor is also used to acquire data amount information of the target data, the target data is data to be transmitted between the OLT and the ONU, the data amount information and the target data are between the OLT and the ONU The amount of data transmitted between the ONUs is related to the size;所述处理器还用于,根据所述目标数据的数据量信息将所述第一传输带宽调整至第二传输带宽;The processor is further configured to adjust the first transmission bandwidth to a second transmission bandwidth according to the data volume information of the target data;所述光收发器还用于,通过所述第二传输带宽与所述ONU传输所述目标数据。The optical transceiver is further configured to transmit the target data with the ONU through the second transmission bandwidth.
- 根据权利要求16所述的OLT,其特征在于,所述第一OMCI消息包括扩展消息,所述扩展消息用于携带所述ONU可被调配的算力资源。The OLT according to claim 16, wherein the first OMCI message includes an extended message, and the extended message is used to carry the computing resources that can be allocated by the ONU.
- 根据权利要求17所述的OLT,其特征在于,所述扩展消息为java脚本对象表示法格式或标签长度值TLV格式。The OLT according to claim 17, characterized in that, the extended message is in java script object notation format or tag length value TLV format.
- 根据权利要求16至18任一项所述的OLT,其特征在于,所述光收发器还用于,通过所述OMCI通道接收来自所述ONU的第二OMCI消息,所述第二OMCI消息携带所述目标数据的数据量信息;The OLT according to any one of claims 16 to 18, wherein the optical transceiver is further configured to receive a second OMCI message from the ONU through the OMCI channel, the second OMCI message carrying Data volume information of the target data;所述处理器还用于,根据所述第二OMCI消息获取所述目标数据的数据量信息。The processor is further configured to acquire data amount information of the target data according to the second OMCI message.
- 一种光网络单元ONU,其特征在于,包括:处理器,存储器以及光收发器,其中,所述处理器分别与所述存储器以及所述光收发器通过线路互联;An optical network unit ONU, characterized in that it includes: a processor, a memory and an optical transceiver, wherein the processor is interconnected with the memory and the optical transceiver through lines respectively;所述处理器调用所述存储器中的程序代码用于,根据所述ONU可被调配的算力资源获取第一OMCI消息,所述第一OMCI消息用于指示所述ONU可被调配的算力资源;The processor calls the program code in the memory to obtain a first OMCI message according to the allocated computing power resources of the ONU, and the first OMCI message is used to indicate the allocated computing power of the ONU resource;所述光收发器用于,通过光网络单元管理控制接口OMCI通道向光线路终端OLT发送所述第一OMCI消息;The optical transceiver is used to send the first OMCI message to the optical line terminal OLT through the optical network unit management control interface OMCI channel;所述光收发器还用于,通过第二传输带宽与所述OLT传输目标数据,其中,所述第二传输带宽为根据第一传输带宽以及所述目标数据的数据量信息调整而成,所述第一传输带宽与所述第一OMCI消息所指示的算力资源对应,所述目标数据的数据量信息与所述目标数据在所述OLT和所述ONU之间所传输的数据量大小相关。The optical transceiver is further configured to transmit the target data through the second transmission bandwidth and the OLT, wherein the second transmission bandwidth is adjusted according to the first transmission bandwidth and the data volume information of the target data, so The first transmission bandwidth corresponds to the computing resources indicated by the first OMCI message, and the data volume information of the target data is related to the data volume of the target data transmitted between the OLT and the ONU .
- 根据权利要求20所述的ONU,其特征在于,所述第一OMCI消息包括扩展消息,所述扩展消息用于携带所述ONU可被调配的算力资源。The ONU according to claim 20, wherein the first OMCI message includes an extended message, and the extended message is used to carry computing power resources that can be allocated by the ONU.
- 根据权利要求21所述的ONU,其特征在于,所述扩展消息为java脚本对象表示法格式或标签长度值TLV格式。The ONU according to claim 21, characterized in that, the extended message is in java script object notation format or tag length value TLV format.
- 根据权利要求20至22任一项所述的ONU,其特征在于,所述光收发器还用于,通过所述OMCI通道向所述OLT发送第二OMCI消息,所述第二OMCI消息携带所述目标数据的数据量信息。The ONU according to any one of claims 20 to 22, wherein the optical transceiver is further configured to send a second OMCI message to the OLT through the OMCI channel, and the second OMCI message carries the Describe the data volume information of the target data.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111453392.3 | 2021-11-30 | ||
CN202111453392.3A CN116208565A (en) | 2021-11-30 | 2021-11-30 | Data transmission method, optical transmitting device and optical receiving device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023098550A1 true WO2023098550A1 (en) | 2023-06-08 |
Family
ID=86513490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/133920 WO2023098550A1 (en) | 2021-11-30 | 2022-11-24 | Data transmission method, light transmitting device, and light receiving device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116208565A (en) |
WO (1) | WO2023098550A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116743878A (en) * | 2023-08-14 | 2023-09-12 | 新华三技术有限公司 | Computing power registration method, computing power registration device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101330450A (en) * | 2007-06-22 | 2008-12-24 | 华为技术有限公司 | Method, system and equipment for distributing bandwidth of optical network |
CN102316015A (en) * | 2010-07-09 | 2012-01-11 | 中兴通讯股份有限公司 | Method and system for notifying state change of optical network unit |
CN103139105A (en) * | 2011-12-05 | 2013-06-05 | 中兴通讯股份有限公司 | Uplink bandwidth distribution method and system in passive optical network (PON) system |
CN103518355A (en) * | 2013-04-19 | 2014-01-15 | 华为技术有限公司 | Bandwidth allocation method, device and system |
US20140099101A1 (en) * | 2012-10-05 | 2014-04-10 | Hassan Elhage | Traffic generation and analysis for onu emulation |
WO2015085543A1 (en) * | 2013-12-12 | 2015-06-18 | 华为技术有限公司 | Method and device for allocating dynamic bandwidth in passive optical network |
-
2021
- 2021-11-30 CN CN202111453392.3A patent/CN116208565A/en active Pending
-
2022
- 2022-11-24 WO PCT/CN2022/133920 patent/WO2023098550A1/en unknown
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101330450A (en) * | 2007-06-22 | 2008-12-24 | 华为技术有限公司 | Method, system and equipment for distributing bandwidth of optical network |
CN102316015A (en) * | 2010-07-09 | 2012-01-11 | 中兴通讯股份有限公司 | Method and system for notifying state change of optical network unit |
CN103139105A (en) * | 2011-12-05 | 2013-06-05 | 中兴通讯股份有限公司 | Uplink bandwidth distribution method and system in passive optical network (PON) system |
US20140099101A1 (en) * | 2012-10-05 | 2014-04-10 | Hassan Elhage | Traffic generation and analysis for onu emulation |
CN103518355A (en) * | 2013-04-19 | 2014-01-15 | 华为技术有限公司 | Bandwidth allocation method, device and system |
WO2015085543A1 (en) * | 2013-12-12 | 2015-06-18 | 华为技术有限公司 | Method and device for allocating dynamic bandwidth in passive optical network |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116743878A (en) * | 2023-08-14 | 2023-09-12 | 新华三技术有限公司 | Computing power registration method, computing power registration device, computer equipment and storage medium |
CN116743878B (en) * | 2023-08-14 | 2023-10-27 | 新华三技术有限公司 | Computing power registration method, computing power registration device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN116208565A (en) | 2023-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8081661B2 (en) | Dynamic bandwidth allocation device for an optical network and method thereof | |
TWI725274B (en) | Data communication system, optical line terminal and baseband unit | |
US8351436B2 (en) | Apparatus and method for efficient bandwidth allocation on time division multiple access-based passive optical network (TDMA-PON) | |
KR20040048102A (en) | Dynamic Bandwidth Allocation based on Class of Service over Ethernet Passive Optical Network | |
US12034654B2 (en) | Data reassembly method and apparatus | |
WO2023098550A1 (en) | Data transmission method, light transmitting device, and light receiving device | |
KR20110060310A (en) | Apparatus and method for assigning dynamic bandwidth | |
CN113329276B (en) | Data transmission method, device, gateway, chip and storage medium | |
WO2009107519A1 (en) | Band allocation method and passive optical communication network system | |
WO2022001732A1 (en) | Cdn scheduling method, access device, cdn scheduler, and storage medium | |
US11695478B2 (en) | Apparatuses, methods, and computer programs for a remote unit and a central unit of an optical line terminal | |
JP2015507419A (en) | Method, device, and nested system for allocating uplink and downlink bandwidth | |
WO2021052199A1 (en) | Server load balancing method and apparatus, and cdn node | |
WO2013108577A1 (en) | Wavelength bandwidth allocation method | |
WO2019114544A1 (en) | Data transport method, device and system | |
US11418261B2 (en) | Data transmission method and device | |
WO2009000194A1 (en) | Bandwidth allocation method, system and apparatus in optical network | |
US20220239996A1 (en) | Bandwidth Assignment Method and Apparatus, and Bandwidth Check Method and Apparatus | |
WO2024077988A1 (en) | Configuration information sending method and apparatus, and storage medium and electronic apparatus | |
US20150195039A1 (en) | System and method for interchanging data in a hybrid ethernet-based passive optical network | |
CN112262551B (en) | Subscriber line terminal station apparatus and band allocation method | |
JP4877483B2 (en) | Transmission allocation method and apparatus | |
JP5900375B2 (en) | COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION BAND CONTROL METHOD | |
WO2021068639A1 (en) | Method and device for sending bandwidth request, and storage medium and electronic device | |
KR20050002048A (en) | Dynamic Bandwidth Allocation Scheme for Ethernet Passive Optical Networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22900355 Country of ref document: EP Kind code of ref document: A1 |