Bandwidth adjustment method, service transmission device and storage medium
By adjusting the bandwidth of PTN and OTN services in stages, the problem of service data loss during lossless system-level bandwidth adjustment in existing technologies has been solved, thereby improving the reliability of service transmission equipment.
Patent Information
- Application Number
- CN202010507199.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-05
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2040-06-05
AI Technical Summary
Existing technologies cannot effectively coordinate with the adjustment of PTN and OTN services when performing system-level lossless bandwidth adjustment in service transmission equipment, resulting in service data loss.
By adjusting the bandwidth of PTN and OTN services in stages, we can ensure that the bandwidth of OTN services can always meet the bandwidth requirements of PTN services, thus avoiding data loss.
It enables lossless coordination between PTN and OTN services during system-level bandwidth adjustments, improving the reliability of service transmission equipment and preventing data loss.
Smart Images

Figure CN113766365B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a bandwidth adjustment method, a service transmission device, and a storage medium. Background Technology
[0002] Service transmission equipment includes POTN (Packet Optical Transport Network) equipment, which deeply integrates PTN (Packet Transport Network) and OTN (Optical Transport Network) services, meaning it can handle both PTN and OTN services. Within this equipment, both PTN and OTN services can be individually adjusted for lossless bandwidth. However, when performing system-level lossless bandwidth adjustment, one technique involves adjusting only the OTN bandwidth, and another involves adjusting only the PTN bandwidth. Neither of these methods effectively coordinates adjustments for both PTN and OTN services, easily leading to data loss. Summary of the Invention
[0003] Based on this, this application provides a bandwidth adjustment method, a service transmission device, and a storage medium, so that the service transmission device can avoid loss of service data when performing system-level lossless bandwidth adjustment.
[0004] In a first aspect, this application provides a bandwidth adjustment method for a service transmission device, the service transmission device being used to process PTN services and OTN services, the method comprising:
[0005] According to the bandwidth adjustment instruction, the bandwidth of the PTN service and the bandwidth of the OTN service are adjusted step by step.
[0006] In a second aspect, this application provides a service transmission device, including a processor and a memory; the memory is used to store a computer program; the processor is used to execute the computer program and, when executing the computer program, implement the bandwidth adjustment method as described in the first aspect.
[0007] Thirdly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to implement the bandwidth adjustment method as described in the first aspect.
[0008] This application provides a bandwidth adjustment method, service transmission equipment, and storage medium. The method includes: adjusting the bandwidth of PTN services and OTN services in stages according to bandwidth adjustment instructions. For example, for one associated PTN service and one associated OTN service, the bandwidth of the PTN service and the OTN service can be adjusted in stages according to bandwidth increase or decrease instructions, so that the lossless bandwidth adjustment of the PTN service and the OTN service can be coordinated to avoid data loss. Based on this, during the system-level bandwidth adjustment process of the service transmission equipment, this method can be applied multiple times to adjust multiple associated PTN services and OTN services, thus avoiding data loss during the entire system-level adjustment and improving the reliability of the service transmission equipment. Attached Figure Description
[0009] Figure 1 This is a schematic diagram of an optional application scenario of various embodiments of this application;
[0010] Figure 2 yes Figure 1 A schematic diagram of a medium-speed service transmission equipment;
[0011] Figure 3 This is a schematic flowchart of a bandwidth adjustment method provided in an embodiment of this application;
[0012] Figure 4 This is a schematic flowchart of a bandwidth adjustment method in another embodiment of this application;
[0013] Figure 5 This is a schematic diagram illustrating the process of the service transmission device adjusting according to the bandwidth increase instruction in another embodiment of this application;
[0014] Figure 6 This is a schematic diagram illustrating the process of the service transmission device adjusting according to the bandwidth reduction instruction in another embodiment of this application;
[0015] Figure 7 This is a schematic flowchart of a bandwidth adjustment method in another embodiment of this application;
[0016] Figure 8 This is a schematic diagram of a data structure for a flow control message in another embodiment of this application;
[0017] Figure 9 This is a schematic flowchart of a bandwidth adjustment method in another embodiment of this application;
[0018] Figure 10 This is a schematic diagram of a data structure for a bandwidth announcement message in another embodiment of this application;
[0019] Figure 11This is a schematic diagram illustrating the process of a service transmission device repeatedly applying the method described in the embodiments of this application to perform system-level lossless bandwidth adjustment;
[0020] Figure 12 This is a schematic block diagram of a service transmission device provided in an embodiment of this application. Detailed Implementation
[0021] The technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments in this specification. All other embodiments obtained by those skilled in the art based on the embodiments in this specification without creative effort are within the scope of protection of this specification.
[0022] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the described order. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0023] The following detailed description, in conjunction with the accompanying drawings, outlines some embodiments of this specification. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0024] The bandwidth adjustment method provided in this application embodiment can be used in service transmission equipment. This method enables the service transmission equipment to perform system-level lossless bandwidth adjustment, so that the bandwidth adjustment between PTN service and OTN service can be well coordinated, thereby avoiding the loss of service data.
[0025] The embodiments of this application can be applied to, for example, Figure 1 In the illustrated scenario, the service transmission equipment includes a POTN device capable of transmitting service data with each client and with the optical transmission network. In some implementations, the data transmission method may include at least one of the following: data service is transmitted from the client to the service transmission equipment, and then from the service transmission equipment to the optical transmission network; or data service is transmitted from the optical transmission network to the service transmission equipment, and then from the service transmission equipment to the client.
[0026] In this scenario, such as Figure 2As shown, the service transmission equipment includes a PTN service module and an OTN service module. In some embodiments, the PTN service module and the OTN service module can be located on the same service board or on different service boards. The PTN service module transmits service data with multiple clients and can be used to process multiple PTN services. It can be understood that the service data transmission between the PTN service module and one client can be understood as one PTN service. The OTN service module transmits service data with the optical transmission network and can be used to process multiple OTN services, processing multiple OTN services into one ODU (Optical Channel Data Unit). It can be understood that one OTN service corresponds to one PTN service. Correspondingly, the OTN service module can also be used to process ODUs, processing them into multiple OTN services.
[0027] This application provides a bandwidth adjustment method for service transmission equipment, such as... Figure 3 As shown, the method includes, but is not limited to, step S100.
[0028] Step S100: Adjust the bandwidth of PTN service and OTN service step by step according to the bandwidth adjustment instruction.
[0029] In system-level lossless bandwidth adjustment of service transmission equipment, to ensure good coordination between lossless bandwidth adjustment of PTN and OTN services, the bandwidth adjustment of PTN and OTN services can be performed step-by-step according to the bandwidth adjustment command. It is understood that the method provided in this application embodiment can be applied to one associated PTN and OTN service. If the service transmission equipment needs to adjust multiple associated PTN and OTN services during the entire system-level adjustment process, the method in this application embodiment can be executed multiple times.
[0030] In some implementations, bandwidth adjustment commands include bandwidth increase commands and bandwidth decrease commands. These commands can be triggered by administrators for management purposes or automatically triggered when the service transmission equipment detects an adjustment decision. It is understood that multiple bandwidth adjustment commands can exist during the system-wide adjustment process of the service transmission equipment; that is, the method described in this application can be executed multiple times to adjust multiple associated PTN and OTN services.
[0031] In some implementations, when the service transmission equipment is operating normally, the bandwidth of the PTN service is substantially aligned with the bandwidth of the OTN service; that is, the bandwidth of the PTN service is approximately equal to the bandwidth of the OTN service, and the bandwidth of the PTN service depends on the client's traffic. Therefore, before bandwidth adjustment, the bandwidth of the PTN service is aligned with the bandwidth of the OTN service, and similarly, after bandwidth adjustment, the bandwidth of the PTN service should also be aligned with the bandwidth of the OTN service. For example, before adjustment, the client's traffic is 10G, and correspondingly, the bandwidth of both the PTN and OTN services is also 10G. If the client's traffic increases to 12.5G, the service transmission equipment adjusts the bandwidth of both the PTN and OTN services to 12.5G according to the bandwidth adjustment instruction.
[0032] In some embodiments, such as Figure 4 As shown, step S100 includes, but is not limited to, step S110.
[0033] In step S110, if the bandwidth adjustment instruction includes a bandwidth increase instruction, the bandwidth of the OTN service is adjusted first, and then the bandwidth of the PTN service is adjusted.
[0034] If the traffic of a client corresponding to the PTN service increases, the bandwidth adjustment command can include a bandwidth increase command to handle the increased traffic. In some implementations, the PTN service module has a buffer to cache service data sent by the client, while the OTN service module does not have a buffer and cannot cache service data. Therefore, when increasing bandwidth, the bandwidth carrying capacity of the OTN service should be given priority. That is, throughout the entire bandwidth increase process, the bandwidth of the OTN service should always be able to carry the bandwidth of the PTN service to avoid service data loss. Therefore, according to the bandwidth increase command, the bandwidth of the OTN service is adjusted first so that the adjusted bandwidth of the OTN service can carry the adjusted bandwidth of the PTN service, and then the bandwidth of the PTN service is adjusted.
[0035] For example, such as Figure 5As shown, the service transmission equipment includes PTN equipment. Before the service transmission equipment adjustment, the client's traffic is 10G, so the bandwidth of both PTN and OTN services is also 10G. If the client's traffic increases to 12.5G, the service transmission equipment needs to increase the bandwidth of both PTN and OTN services to 12.5G. Based on this, since OTN services cannot cache data, the bandwidth of OTN services is first adjusted to 12.5G. This ensures that the current 12.5G bandwidth of OTN services can not only support the current 10G bandwidth of PTN services but also the adjusted 12.5G bandwidth. After the OTN service bandwidth is adjusted, the bandwidth of PTN services is then adjusted to 12.5G. Therefore, throughout the entire bandwidth increase process, because the bandwidth of OTN services can always support the bandwidth of PTN services, even if OTN services cannot cache data, OTN services can still process the service data transmitted from OTN services in a timely manner, avoiding data loss and improving reliability. It is understandable that if the bandwidth is not adjusted in the manner described above during the bandwidth increase process, data loss may occur. For example, if the bandwidth of the PTN service is adjusted first and then the bandwidth of the OTN service is adjusted, after the PTN service bandwidth is adjusted, the PTN service bandwidth is 12.5G, while the OTN service bandwidth is only 10G. Since the OTN service cannot cache data and its bandwidth cannot support the PTN service bandwidth, the OTN service cannot process the service data transmitted from the PTN service in a timely manner, thus causing data loss.
[0036] In some embodiments, such as Figure 4 As shown, step S100 includes, but is not limited to, step S120.
[0037] In step S120, if the bandwidth adjustment instruction includes a bandwidth reduction instruction, the bandwidth of the PTN service is adjusted first, and then the bandwidth of the OTN service is adjusted.
[0038] If the traffic of clients corresponding to the PTN service decreases, the bandwidth adjustment command can include a bandwidth reduction command. Referring to the above discussion, when reducing bandwidth, the bandwidth carrying capacity of the OTN service should be prioritized. That is, throughout the entire bandwidth reduction process, the OTN service bandwidth must always be able to carry the PTN service bandwidth to avoid data loss. Therefore, according to the bandwidth reduction command, the PTN service bandwidth should be adjusted first so that the current OTN service bandwidth can carry the adjusted PTN service bandwidth, and then the OTN service bandwidth should be adjusted further.
[0039] For example, such as Figure 6As shown, the service transmission equipment includes PTN equipment. Before the service transmission equipment adjustment, the client's traffic is 10G, so the bandwidth of both PTN and OTN services is also 10G. If the client's traffic decreases to 7.5G, the service transmission equipment needs to reduce the bandwidth of both PTN and OTN services to 7.5G as well. Based on this, since OTN services cannot cache data, the bandwidth of PTN services is first adjusted to 7.5G. This ensures that the current 10G bandwidth of OTN services can support both the 10G bandwidth of PTN services before the adjustment and the 7.5G bandwidth of PTN services after the adjustment. After the bandwidth of PTN services is adjusted, the bandwidth of OTN services is then adjusted to 7.5G. Therefore, throughout the entire bandwidth reduction process, because the bandwidth of OTN services can always support the bandwidth of PTN services, even if OTN services cannot cache data, OTN services can still process the service data transmitted from OTN services in a timely manner, avoiding data loss and improving reliability. It is understandable that if the bandwidth reduction is not adjusted in the manner described above, data loss may occur. For example, if the bandwidth of the OTN service is adjusted first, and then the bandwidth of the PTN service is adjusted, the bandwidth of the OTN service will be 7.5G after the adjustment, while the bandwidth of the PTN service will still be 10G. Since the OTN service cannot cache data and its bandwidth cannot support the bandwidth of the PTN service, the OTN service cannot process the service data transmitted from the PTN service in a timely manner, thus causing data loss.
[0040] In some embodiments, "adjusting the bandwidth of the PTN service" in this method includes, but is not limited to, step S130.
[0041] Step S130: Adjust the bandwidth threshold of the service port of PTN service and / or adjust the number of service ports of PTN service.
[0042] In some implementations, the bandwidth threshold and number of service ports for the PTN service determine the bandwidth capacity of the PTN service to carry client traffic. Therefore, adjusting the bandwidth of the PTN service can be achieved by adjusting the bandwidth threshold of the PTN service's service ports, by adjusting the number of PTN service ports, or by a combination of both. It is understandable that adjusting using both methods simultaneously provides greater flexibility.
[0043] For example, when increasing the bandwidth of PTN service, it can be done by increasing the bandwidth threshold of the PTN service port or by increasing the number of PTN service ports; when decreasing the bandwidth of PTN service, it can be done by decreasing the bandwidth threshold of the PTN service port or by decreasing the number of PTN service ports.
[0044] In some embodiments, "adjusting the bandwidth of the OTN service" in the method includes, but is not limited to, step S140.
[0045] Step S140: Adjust the number of time slots for OTN services.
[0046] In some implementations, the number of time slots for an OTN service determines its bandwidth capacity to support PTN services. One time slot corresponds to approximately 1.25G of bandwidth; therefore, adjusting the bandwidth of an OTN service can be achieved by adjusting the number of time slots. For example, when the bandwidth of an OTN service is 10G, the number of time slots is 8. In some implementations, the bandwidth of the OTN service can be adjusted using the G.HAO (Hitless Adjustment of ODUflex (GFP)) protocol.
[0047] For example, when increasing the bandwidth of an OTN service, the number of timeslots for the OTN service can be increased; when decreasing the bandwidth of an OTN service, the number of timeslots for the OTN service can be decreased.
[0048] In some embodiments, such as Figure 7 As shown, the method may include, but is not limited to, step S150 after adjusting the bandwidth of the PTN service.
[0049] Step S150: Monitor the cached traffic of PTN service; if the cached traffic reaches the congestion threshold, send a flow control message to the client of the corresponding PTN service so that the client can suspend sending service data.
[0050] As discussed above, PTN services can cache service data sent by clients. This means that when OTN services cannot process service data sent by PTN services in a timely manner, PTN services will first cache the client's data and then send the cached data to OTN services later. Therefore, the service transmission equipment can monitor the cached traffic of PTN services. When the cached traffic reaches a set congestion threshold, it sends a flow control message to the client, causing the client to suspend sending service data. This allows the service transmission equipment time to process the cached data, preventing data loss. In some implementations, the congestion threshold can be set based on the maximum cached traffic, for example, set to 80% of the maximum cached traffic.
[0051] For example, such as Figure 8 As shown, from left to right, the flow control message includes the following fields: 6-bit DMAC (Destination MAC), 6-bit SMAC (Source MAC), 4-bit VLAN, 2-bit TYPE, 2-bit OPCODE, 2-bit PAUSE_TIMING (Control Field), 42-bit PAD (Reserved Field), and 4-bit FCS (Checksum Field). The control field of the flow control message is valid; the client can pause sending service data when this field is valid. The reserved field does not contain valid data. Therefore, after adjusting the bandwidth of the PTN service, if the buffered traffic of the PTN service is detected to have reached the congestion threshold, this flow control message is sent to the client. The client will then pause sending service data based on the valid control field in the flow control message.
[0052] In some embodiments, such as Figure 9 As shown, the method may include, but is not limited to, step S160 after adjusting the bandwidth of the PTN service.
[0053] Step S160: Configure flow control messages to obtain bandwidth announcement messages; send the bandwidth announcement messages to the client of the corresponding PTN service so that the client knows the current bandwidth of the PTN service; wherein, the flow control messages are used to cause the client to suspend sending service data when sent to the client.
[0054] To ensure clients are promptly informed of PTN service bandwidth status, a bandwidth announcement message can be sent to them after bandwidth adjustments. This allows administrators to take timely and effective management measures. In one implementation, the bandwidth announcement message can be obtained by configuring flow control messages.
[0055] In some embodiments, step S160 includes, but is not limited to, step S161.
[0056] Step S161: Fill the reserved field of the flow control message with the current bandwidth information of the PTN service, and set the control field of the flow control message to invalid to obtain the bandwidth announcement message.
[0057] In some implementations, the reserved fields of the flow control message do not include valid data. Therefore, the current bandwidth information of the PTN service can be filled into this field. Furthermore, when sending the bandwidth announcement message to the client, it is crucial to prevent the client from pausing service data transmission. Therefore, the control field of the flow control message must also be set to invalid, i.e., set to invalid data. In this way, a bandwidth announcement message is obtained. After adjusting the bandwidth of the PTN service, sending this bandwidth announcement message to the client allows the client to be informed of the PTN service bandwidth status without causing the client to pause service data transmission.
[0058] For example, the data structure of a flow control message is as follows: Figure 8 As shown, Figure 10 As shown, a 4-digit BANDWIDTH (bandwidth value) can be entered into the reserved field of the flow control message, and the control field of the flow control message can be set to invalid, thus obtaining a bandwidth announcement message. Therefore, after adjusting the bandwidth of the PTN service, this bandwidth announcement message can be sent to the client, so that the client knows the bandwidth status of the PTN service, without causing the client to suspend sending service data.
[0059] In some embodiments, if the bandwidth adjustment instruction includes a bandwidth increase instruction, the method may further include, but is not limited to, step S170.
[0060] In step S170, if the bandwidth adjustment for the OTN service fails, the bandwidth adjustment for the PTN service is abandoned; if the bandwidth adjustment for the PTN service fails, the current bandwidth of the OTN service is adjusted back to the bandwidth before the adjustment.
[0061] During bandwidth increases, adjustments may inevitably fail due to equipment malfunctions or external factors. Therefore, to prevent these failures from impacting the normal operation of service transmission equipment, when OTN service bandwidth adjustment fails, PTN service bandwidth adjustment is not continued, ensuring that OTN and PTN bandwidths remain aligned. Conversely, when PTN service bandwidth adjustment fails, since OTN service bandwidth has already been adjusted, the current OTN service bandwidth needs to be reverted to its pre-adjustment state to maintain alignment with PTN service bandwidth. Thus, normal data transmission and processing for both PTN and OTN services are not affected, meaning the normal operation of the service transmission equipment is not impacted. In some implementations, the service transmission equipment can send adjustment failure information to the upper-level management platform for appropriate handling by administrators.
[0062] In some embodiments, if the bandwidth adjustment instruction includes a bandwidth reduction instruction, the method may further include, but is not limited to, step S180.
[0063] In step S180, if the bandwidth adjustment for the PTN service fails, the bandwidth adjustment for the OTN service is abandoned; if the bandwidth adjustment for the OTN service fails, the current bandwidth of the PTN service is adjusted back to the bandwidth before the adjustment.
[0064] During bandwidth reduction, adjustments may inevitably fail due to equipment malfunctions or external factors. Therefore, to prevent these failures from impacting the normal operation of service transmission equipment, when PTN service bandwidth adjustment fails, OTN service bandwidth adjustment is not continued, ensuring that OTN and PTN bandwidths remain aligned. Conversely, when OTN service bandwidth adjustment fails, since PTN service bandwidth has already been adjusted, the current PTN service bandwidth needs to be reverted to its pre-adjustment state to maintain alignment. Thus, normal data transmission and processing for both PTN and OTN services are not affected, meaning the normal operation of the service transmission equipment is not impacted. In some implementations, the service transmission equipment can send adjustment failure information to the upper-level management platform for appropriate handling by administrators.
[0065] Based on the above discussion, for example, such as Figure 11 As shown, this application embodiment can be applied to a service transmission device, which may include a POTN device. This service transmission device processes two PTN services and an OTN service. Assuming that during system-level lossless bandwidth adjustment in this service transmission device, the bandwidth of the two services needs to be adjusted, the service transmission device can execute the method of this application embodiment at least twice.
[0066] Before the system-level adjustment, the traffic of both clients 1 and 2 was 10G, therefore the bandwidth of both PTN services 1 and 2 was 10G, and the bandwidth of both ONT services 1 and 2 was 10G, equivalent to 8 time slots. Assuming that the traffic of client 1 needs to be reduced to 7.5G and the traffic of client 2 needs to be increased to 12.5G, then this system-level adjustment requires adjusting the bandwidth of both services. It should be noted that the service transmission equipment can adjust the bandwidth of the first service first, and then the bandwidth of the second service; or it can adjust the bandwidth of both services simultaneously. This application does not impose any restrictions on this. The following discussion assumes that the service transmission equipment adjusts the bandwidth of the first service first, and then the bandwidth of the second service.
[0067] First, since the traffic of client 1 is reduced to 7.5G, the bandwidth adjustment instruction at this time includes a bandwidth reduction instruction. The service transmission device can apply the method of this application embodiment to first reduce the bandwidth of PTN service 1 to 7.5G, and then reduce the bandwidth of OTN service 1 to 6 time slots, that is, approximately 7.5G. Therefore, the OTN service board will have 2 more idle time slots. In some embodiments, after successfully reducing the bandwidth of PTN service 1, the service transmission device can send a bandwidth announcement message to client 1 to inform client 1 of the bandwidth information of PTN service 1; at the same time, it can also monitor the buffered traffic of PTN service 1. When the buffered traffic is detected to have reached the congestion threshold, a flow control message is sent to client 1 to make client 1 suspend sending service data. In some embodiments, if adjusting the bandwidth of PTN service 1 fails, the bandwidth of OTN service 1 will not be adjusted further; if adjusting the bandwidth of OTN service 1 fails, the current bandwidth of PTN service 1 will be adjusted back to the bandwidth before adjustment. In some implementations, after adjusting the bandwidth of OTN service 1, the service transmission device can send information such as "adjustment successful" to the upper-layer management platform so that the upper-layer management platform can make further adjustment strategies.
[0068] Next, since the traffic of client 2 increases to 12.5G, the bandwidth adjustment command at this time includes a bandwidth increase command. The service transmission equipment can again apply the method of this application embodiment to first increase the bandwidth of OTN service 2 to 10 time slots, that is, approximately 12.5G, and then increase the bandwidth of PTN service 2 to 12.5G. Therefore, the OTN service board will add the 2 idle time slots to the original 8 time slots of OTN service 2. In some embodiments, after successfully increasing the bandwidth of PTN service 2, the PONT device can send a bandwidth announcement message to client 2 to inform client 2 of the bandwidth information of PTN service 2; at the same time, it can also monitor the buffered traffic of PTN service 2. When the buffered traffic is detected to have reached the congestion threshold, a flow control message is sent to client 2 to make client 2 suspend the transmission of service data. In some embodiments, if adjusting the bandwidth of OTN service 2 fails, the bandwidth of PTN service 2 will not be adjusted further; if adjusting the bandwidth of PTN service 2 fails, the current bandwidth of OTN service 2 will be adjusted back to the bandwidth before adjustment. In some implementations, after adjusting the bandwidth of PTN service 2, the service transmission device can send information such as "adjustment successful" to the upper-layer management platform so that the upper-layer management platform can make further adjustment strategies.
[0069] In this way, the service transmission equipment can complete the system-level lossless bandwidth adjustment. It can be seen that during the entire system-level lossless bandwidth adjustment process, the service transmission equipment can execute the method in this application embodiment multiple times, so that the lossless bandwidth adjustment of PTN service and OTN service can be well coordinated, avoiding the loss of service data and improving the reliability of the service transmission equipment.
[0070] This application also provides a service transmission device in its embodiments, such as... Figure 12 As shown, it includes a processor and a memory, the memory being used to store a computer program; the processor being used to execute the computer program and, when executing the computer program, to implement any of the bandwidth adjustment methods provided in the embodiments of this application.
[0071] It should be understood that the processor can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among these, a general-purpose processor can be a microprocessor or any conventional processor.
[0072] The embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to implement any of the bandwidth adjustment methods provided in the embodiments of this application.
[0073] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer-readable storage media (or non-transitory media) and communication media (or transient media).
[0074] As is known to those skilled in the art, the term computer-readable storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer-readable storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0075] For example, the computer-readable storage medium may be an internal storage unit of the service transmission device described in the foregoing embodiments, such as the hard disk or memory of the service transmission device. The computer-readable storage medium may also be an external storage device of the service transmission device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the service transmission device.
[0076] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A bandwidth adjustment method for a traffic transmission device, characterized by, The service transmission device comprises a POTN device, the POTN device comprises a PTN service module and an OTN service module, the PTN service module is used for processing a plurality of PTN services, the OTN service module is used for processing a plurality of OTN services, one of the OTN services corresponds to one of the PTN services, and the PTN service module is provided with a buffer area; the method comprises: If the bandwidth adjustment instruction comprises a bandwidth increase instruction, the bandwidth of the OTN service is adjusted first, and then the bandwidth of the PTN service is adjusted; If the bandwidth adjustment instruction comprises a bandwidth decrease instruction, the bandwidth of the PTN service is adjusted first, and then the bandwidth of the OTN service is adjusted; Wherein, the bandwidth of the PTN service and the bandwidth of the OTN service before the bandwidth adjustment, and the bandwidth of the PTN service after the bandwidth adjustment should also be aligned with the bandwidth of the OTN service.
2. The bandwidth adjustment method of claim 1, wherein, The adjustment of the bandwidth of the PTN service comprises: Adjusting the bandwidth threshold of the service port of the PTN service and / or adjusting the number of service ports of the PTN service.
3. The bandwidth adjustment method of claim 1, wherein, The adjustment of the bandwidth of the OTN service comprises: Adjusting the number of time slots of the OTN service.
4. The bandwidth adjustment method of claim 1, wherein, After the adjustment of the bandwidth of the PTN service, the method further comprises: Monitoring the buffer traffic of the PTN service; If the buffer traffic is monitored to reach a congestion threshold, a flow control packet is sent to a client corresponding to the PTN service, so that the client pauses to send service data.
5. The bandwidth adjustment method of claim 1, wherein, After the adjustment of the bandwidth of the PTN service, the method further comprises: Configuring a flow control packet to obtain a bandwidth announcement packet; Sending the bandwidth announcement packet to a client corresponding to the PTN service, so that the client knows the current bandwidth of the PTN service; Wherein, the flow control packet is used to pause the client to send service data when sent to the client.
6. The bandwidth adjustment method of claim 5, wherein, The configuration of the flow control packet to obtain the bandwidth announcement packet comprises: Filling the current bandwidth information of the PTN service into the reserved field of the flow control packet, and setting the control field of the flow control packet to be invalid to obtain the bandwidth announcement packet.
7. The bandwidth adjustment method according to claim 1, wherein, if the bandwidth adjustment instruction comprises a bandwidth increase instruction, the method further comprises: If the bandwidth adjustment of the OTN service fails, the bandwidth adjustment of the PTN service is abandoned; If the bandwidth adjustment of the PTN service fails, the current bandwidth of the OTN service is adjusted back to the bandwidth before the adjustment; If the bandwidth adjustment instruction comprises a bandwidth decrease instruction, the method further comprises: If the bandwidth adjustment of the PTN service fails, the bandwidth adjustment of the OTN service is abandoned; If the bandwidth adjustment of the OTN service fails, the current bandwidth of the PTN service is adjusted back to the bandwidth before the adjustment. comprise a processor and a memory; 8. A service transmission apparatus characterized by comprising: The memory is used to store a computer program; The processor is used to execute the computer program and realize the bandwidth adjustment method according to any one of claims 1 to 7 when executing the computer program. 9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to implement the bandwidth adjustment method according to any one of claims 1 to 7.