CN115967996A - Time slot resource allocation method, terminal and storage medium for flexible Ethernet - Google Patents
Time slot resource allocation method, terminal and storage medium for flexible Ethernet Download PDFInfo
- Publication number
- CN115967996A CN115967996A CN202111183791.2A CN202111183791A CN115967996A CN 115967996 A CN115967996 A CN 115967996A CN 202111183791 A CN202111183791 A CN 202111183791A CN 115967996 A CN115967996 A CN 115967996A
- Authority
- CN
- China
- Prior art keywords
- channel
- time slot
- flexe
- channel switching
- sending device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 238000003860 storage Methods 0.000 title claims abstract description 23
- 238000013468 resource allocation Methods 0.000 title abstract description 10
- 230000004044 response Effects 0.000 claims abstract description 50
- 230000015654 memory Effects 0.000 claims description 17
- 230000005540 biological transmission Effects 0.000 claims description 11
- 239000013589 supplement Substances 0.000 claims description 5
- 238000004590 computer program Methods 0.000 claims description 3
- 230000006854 communication Effects 0.000 description 29
- 230000008569 process Effects 0.000 description 25
- 238000004891 communication Methods 0.000 description 23
- 230000003287 optical effect Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 7
- 230000009471 action Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000003111 delayed effect Effects 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000009469 supplementation Effects 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/04—Wireless resource allocation
- H04W72/044—Wireless resource allocation based on the type of the allocated resource
- H04W72/0446—Resources in time domain, e.g. slots or frames
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a flexible Ethernet time slot resource allocation method, a terminal and a storage medium. The method includes that a flexible Ethernet forwarding channel Flexe Client comprises a first channel and a second channel, a channel switching mode of the forwarding channel Flexe Client where a sending device and a receiving device are located is configured, when the sending device sends a channel switching instruction to the receiving device through an overhead frame, a response time length of the channel switching instruction is determined, when the channel switching mode is a cut-by-force mode and the response time length is larger than an overhead frame negotiation period, the receiving device scans the overhead frame sent by the sending device and obtains a current time slot corresponding to the sending device on the overhead frame, then the sending device is switched from the first channel to the second channel, when the current time slot is different from a time slot of the receiving device, the receiving device is also switched from the first channel to the second channel, and therefore when the sending device cannot receive a response signal returned by the receiving device, channel switching can be normally performed, and service damage time is reduced.
Description
Technical Field
The embodiment of the invention relates to the technical field of data input, in particular to a time slot resource allocation method, a terminal and a storage medium for flexible Ethernet.
Background
A negotiation method for modifying the time slot configuration content is defined in a flexible Ethernet (Flexe) protocol, and the time slot of the client service uploaded by members in a time slot resource pool group of a Flexe group can be dynamically modified. When a member in a flexible ethernet time slot resource pool FlexE group fails or needs capacity expansion, the service data uploaded by the member is delayed. In the related art, when a member in a FlexE group fails or needs to expand capacity, a sending device sends a request signal to a receiving device, and switches a current channel to a second channel after receiving a response signal returned by a receiving end according to the request signal, so as to perform client service interaction through the second channel. In this way, when the sending device cannot receive the response signal returned by the receiving device, the channel switching cannot be performed, thereby increasing the number of packet losses.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The embodiment of the invention provides a flexible Ethernet time slot resource allocation method, a terminal and a storage medium, which can improve the channel switching efficiency.
In a first aspect, an embodiment of the present invention provides a time slot resource configuration method for a flexible ethernet, where a forwarding channel FlexE Client of the flexible ethernet includes a first channel and a second channel, and the method includes:
configuring a channel switching mode of the forwarding channel Flexe Client where a sending device and a receiving device are located;
when the sending equipment sends a channel switching instruction to the receiving equipment through an overhead frame, determining the response time length of the channel switching instruction;
when the channel switching mode is a cut-to-force mode and the response time length is greater than an overhead frame negotiation period, the receiving device scans the overhead frame sent by the sending device and obtains a current time slot corresponding to the sending device on the overhead frame, and the sending device switches from the first channel to the second channel;
and when the current time slot is different from the time slot of the receiving equipment, the receiving equipment is switched from the first channel to the second channel.
In a second aspect, an embodiment of the present invention further provides a terminal, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing:
the flexible Ethernet time slot resource allocation method.
In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions, where the computer-executable instructions are configured to:
and executing the flexible Ethernet time slot resource allocation method.
The embodiment of the invention comprises the following steps: the flexible ethernet forwarding channel FlexE Client in this embodiment includes a first channel and a second channel, and configures a channel switching mode of the forwarding channel FlexE Client in which the sending device and the receiving device are located, when the sending device sends a channel switching instruction to the receiving device through an overhead frame, determines a response time length of the channel switching instruction, and when the channel switching mode is a cut-by-force mode and the response time length is greater than an overhead frame negotiation period, the receiving device scans the overhead frame sent by the sending device, and obtains a current time slot on the overhead frame corresponding to the sending device, and then the sending device switches from the first channel to the second channel, and when the current time slot is different from a time slot of the receiving device, the receiving device also switches from the first channel to the second channel, so that when the sending device cannot receive a response signal returned by the receiving device, channel switching efficiency can be normally performed, and service damage time can be reduced.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic diagram of a FlexE timeslot port hierarchy according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a cut-through mode provided by one embodiment of the present invention;
FIG. 3 is a flow diagram of a standard negotiation mode provided by one embodiment of the present invention;
FIG. 4 is a flow diagram of a standard negotiation mode provided by another embodiment of the present invention;
fig. 5 is a schematic diagram of a FlexE Client time slot application according to an embodiment of the present invention;
fig. 6 is a schematic diagram of FlexE Client timeslot switching according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
It is noted that while functional block divisions are provided in device diagrams and logical sequences are shown in flowcharts, in some cases, steps shown or described may be performed in sequences other than block divisions within devices or flowcharts. The terms first, second and the like in the description and in the claims, as well as in the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
With the increase of interface speed of communication equipment from 10M bandwidth to 100M, 1G and 10G, the service speed is doubled every few years to meet the requirement of service flow on the network. The speed of the commercial optical module for communication equipment has reached 100G at present, and the commercial use of the optical module is started. When the speed of the optical module starts to exceed 100G, the difficulty in the development technology of the optical module is increased, and the production cost of the optical module is increased sharply. In the development from 100G to 400G, although the 400G optical module has been developed, the price of the 400G optical module is expensive, exceeding the price of 4 100G optical modules, resulting in a lack of commercial economic value for the 400G optical module. In order to solve the delivery requirement of 400G traffic without increasing the cost, the international standards organization defines a flexible ethernet (FlexE) protocol to be able to deliver the 400G traffic on a 100G optical module.
According to the standard of a Flexe protocol, two different channel information, namely Calendar (Calendar) information, are recorded under the Flexe, and channels corresponding to the two different channel information are respectively defined as a first channel (Calendar A) and a second channel (Calendar B), namely a channel A and a channel B. The bandwidth of the FlexE may be the same in the calenar a and the calenar B, or may be different, and the local and the remote end are intercommunicated through the overhead frame to realize the switching. For example, if the bandwidth of the FlexE is 200M in total, the calenar a may be allocated 100M and the calenar B may be allocated 100M, or the calenar a may be allocated 50M and the calenar B may be allocated 150M. The bandwidth of FlexE is defined as the sending device at one end and the receiving device at the other end during communication. When the sending equipment and the receiving equipment are currently communicated by using the Calendar A, the Calendar A is a main channel, and the Calendar B is a standby channel; conversely, when the sending device and the receiving device are currently using the caledar B for intercommunication, the caledar B is the main channel, and the caledar a is the standby channel.
At present, in the process of interworking, when a first channel and a second channel need to be switched, for example, when a current channel needs to be expanded or the current channel fails, the sending device sends a channel switching instruction CR to the receiving device through an overhead frame, the receiving device returns a response instruction CA to the sending device after receiving the channel switching instruction CR, and the sending device switches the currently intercommunicated channel from the main channel to the standby channel after receiving the response instruction CA. The channel switching process depends on stable Flexe, and in the actual working process, a plurality of factors influencing the communication stability exist, so that the phenomenon of packet loss of the Flexe can occur at irregular time in the communication process. When the FlexE communication process cannot transmit the channel switching instruction or the response instruction in time, the channel switching cannot be completed in time by the way that both parties respond to perform the channel switching, so that the packet loss rate in the communication process is increased.
Based on this, embodiments of the present invention provide a flexible ethernet timeslot resource configuration method, a terminal, and a storage medium, where a channel switching mode is configured between a sending device and a receiving device, and when the channel switching mode is a cut-to-length mode, whether to execute the cut-to-length mode is determined according to a response duration of a channel switching instruction sent by the sending device to the receiving device, and when the response duration is greater than an overhead frame negotiation period, the sending device executes the cut-to-length mode to switch a channel from a first channel to a second channel, and meanwhile, when the receiving device determines that a current time slot of the sending device is different from a time slot of the receiving device, the receiving device also switches from the first channel to the second channel, so that channel switching is completed in time under a condition that FlexE is unstable.
Specifically, in the method for configuring time slot resources of a flexible ethernet provided in the embodiment of the present invention, a forwarding channel FlexE Client of the flexible ethernet includes a first channel and a second channel. When the flexible Ethernet sending equipment and the flexible Ethernet receiving equipment need to communicate, the flexible Ethernet forwarding channel Flexe Client applies for time slots to the flexible Ethernet time slot resource pool Flexe Group according to the bandwidth demand, and when the available time slots in the flexible Ethernet time slot resource pool Flexe Group meet the time slots applied by the flexible Ethernet forwarding channel Flexe Client, the flexible Ethernet forwarding channel Flexe Client performs time slot binding on the flexible Ethernet Group; and caching the time slot request of the current forwarding channel Flexe Client when the available time slot in the time slot resource pool Flexe Group does not meet the bandwidth demand, and waiting for the available time slot in the time slot resource pool Flexe Group to meet the time slot applied by the forwarding channel Flexe Client. For example, as shown in fig. 1, the time slot resource pool FlexE Group includes a certain amount of time slot resources, the time slot resources in each time slot resource pool FlexE Group may be allocated to multiple forwarding channels FlexE clients, the time slot sizes occupied by the forwarding channels FlexE clients may be the same or different, and as can be seen from fig. 1, the forwarding channel FlexE Client1 occupies two grids of time slot resources, the forwarding channel FlexE Client2 occupies two and a half grids of time slot resources, and the forwarding channels FlexE Client3 and FlexE Client4 both occupy one grid of time slot resources.
In some embodiments, in a time slot resource pool FlexE Group, when one FlexE Client of multiple forwarding channels applies for a time slot or releases the time slot from the time slot resource pool FlexE Group, all the time slots in the time slot resource pool FlexE Group will be changed. Therefore, whether the forwarding channel FlexE Client applies for the time slot to the time slot resource pool FlexE Group or releases the time slot, all the forwarding channels FlexE clients bound by the forwarding channel FlexE Client need to be adjusted, and therefore switching between the first channel and the second channel in each forwarding channel FlexE Client may be caused.
In some embodiments, in a time slot resource pool FlexE Group, when a time slot bound by a forwarding channel FlexE Client is changed from an available state to an unavailable state, the time slot bound by the forwarding channel FlexE Client is deleted from the forwarding channel FlexE Client, and a channel switching mode is triggered. For example, when the time slot of the calenar a in the forwarding channel FlexE Client is not available due to the influence of external factors, the calenar a cannot perform data transmission, and at the moment, the forwarding channel FlexE Client is switched from the calenar a to the calenar B, so that the time slot occupied by the calenar a is released to be used by other forwarding channels FlexE clients, and the effective utilization rate of time slot resources is improved.
In some embodiments, when the flexible ethernet uses the calenar a as the main channel of the forwarding channel FlexE Client1 for communication, the calenar B is used as the standby channel of the forwarding channel FlexE Client 1. In the communication process, if the time slot size of the calenar a cannot meet the communication requirements of the two communication ends, the calenar a needs to be expanded or switched. If the capacity of the calenar a is directly expanded, the current communication is delayed or the communication content is lost in the capacity expansion preparation process. Therefore, the Calendar A is directly switched to a channel with a larger time slot, and the communication delay can be effectively reduced. It can be understood that when it is determined that the current time slot of the calenar a cannot meet the current communication requirement, the calenar B of the forwarding channel FlexE Client is expanded, and meanwhile, the calenar a continues to execute the communication process. After the Calendar B is bound to a larger time slot, the sending equipment sends a channel switching instruction CR to the receiving equipment, the receiving equipment returns a response instruction CA to the sending equipment after receiving the channel switching instruction CR, and after the sending equipment receives the response instruction CA, the sending equipment and the receiving equipment synchronously switch the forwarding channel FlexeClient from the Calendar A to the Calendar B, namely, the Calendar B is changed into a main channel, and the Calendar A is changed into a standby channel, so that the communication time delay is effectively reduced, and the packet loss rate is reduced. In this process, the channel switching instruction CR is sent to the receiving device via an overhead frame, which is transmitted over an overhead channel with a small bandwidth, and the transmission process of the overhead channel is not affected by the first channel and the second channel. For example, if the total bandwidth size of the forwarding channel FlexE Client is 200M, 2M may be allocated to the overhead channel, and the remaining 198M may be allocated to the first channel and the second channel equally or unequally.
In the switching process of the caledar A and caledar B, in order to improve the transmission efficiency and accuracy of communication data and reduce the influence caused by untimely transmission of a channel switching instruction or a response instruction due to unstable communication, channel switching modes at two ends of a channel, such as a standard negotiation mode or a forced switching mode, can be configured before communication, and in the actual working process, the channel switching modes can be selected according to the stability of the current channel.
Referring to fig. 2, the forced switching mode of the channel timeslot resource allocation method includes the following steps:
and S110, when the sending equipment sends a channel switching instruction to the receiving equipment through an overhead frame, determining the response time length of the channel switching instruction.
It can be understood that the response time duration can be determined by calculation according to the sending time point and the current time point of the channel switching instruction sent by the sending device to the receiving device. And the current time point is the time when the response instruction returned by the receiving equipment is not received. For example, if the transmission time point is 1 point 50 minutes 50 seconds, and the current time point is 1 point 51 minutes 05 seconds, the response time period is 15 seconds. It is understood that the response time duration may also be determined by calculation according to the sending timestamp and the current timestamp of the channel switching instruction sent by the sending device to the receiving device.
S120, when the response time length is longer than the negotiation period of the overhead frame, the receiving equipment scans the overhead frame sent by the sending equipment, acquires the current time slot of the sending equipment corresponding to the overhead frame, and then the sending equipment is switched from the first channel to the second channel.
It is understood that the overhead frame negotiation period is a preset duration, and may be set according to the normal handshake time of each channel. For example, in the normal handshake process, if the time point from the time point when the sending device sends the channel switching instruction CR to the time point when the response instruction CA of the channel switching instruction CR is received is 5 seconds, the overhead frame negotiation period may be set to 5 seconds. And when the response time is longer than 5 seconds, the current overhead channel is defaulted to be incapable of normally transmitting the instruction. At this time, the receiving device scans the overhead frame on the overhead channel at regular time to switch according to the time slot carried on the overhead frame. Wherein the time slots carried on the overhead frames are associated with the channels. For example, if the currently operating channel is calenar a, the CR instruction on the overhead frame sent by the sending device is 0, and the CR instruction on the overhead frame received by the receiving device is also 0. If the sending device wants to switch from calenar a to calenar B, the CR instruction on the overhead frame sent by the sending device to the receiving device becomes 1. That is to say, in the channel switching process, the CR instruction on the overhead frame is not the same, and therefore, the current timeslot on the overhead frame corresponding to the transmitting device can be obtained according to the characteristic. After the current time slot of the sending device is obtained, the sending end corresponding to the sending device is forcibly switched from the first channel Calendar A to the second channel Calendar B.
S130, when the current time slot is different from the time slot of the receiving device, the receiving device is switched from the first channel to the second channel.
It can be understood that, since the sending device is performing the cut-through procedure, the CR instruction sent to the receiving device may change when the sending device is about to perform the channel switching. For example, before the channel is switched, the CR instruction sent by the sending device to the receiving device is 0; when the channel switching is to be performed, the CR instruction transmitted to the receiving device by the transmitting device is 1. And the receiving device does not perform the cut-through, so that the CR instruction received by the receiving device from the sending device should be 0, and when the CR instruction received by the sending device becomes 1, the receiving device can determine that the sending device has performed the cut-through process, and therefore, the receiving device also performs the cut-through process to switch from the calenar a to the calenar B, and the cut-through process is maintained in the same time slot as the sending device, thereby improving the accuracy of data transmission. In the process, after the sending equipment sends the converted channel switching instruction CR to the receiving equipment, the channel switching process is executed again, so that the time difference when the two ends of the sending equipment and the receiving equipment execute forced switching is shortened, and the data transmission accuracy is improved.
In some embodiments, a stable communication environment may exist during the channel communication, and therefore, in the case that the environment is stable, a standard negotiation mode may be configured at both ends of the communication as a channel switching mode. Specifically, as shown in fig. 3, the standard negotiation mode includes the following steps:
s210, the sending equipment sends a channel switching instruction to the receiving equipment and waits for receiving a response instruction returned by the receiving equipment according to the channel switching instruction.
S220, when the sending equipment receives the response instruction, the sending equipment and the receiving equipment are switched to the second channel from the first channel.
It will be appreciated that in the standard negotiation mode, when a channel needs to be switched, the transmitting device changes CR from 0 to 1 by changing the value of the channel switch instruction CR on the overhead frame. The receiving device, upon receiving the switching command CR of 1, can determine that the transmitting device wants to perform channel switching, and therefore returns a response command CA to the transmitting device, which also changes from 0 to 1, indicating that channel switching is approved. When receiving the response instruction CA of 1, the sending device sends a control instruction C, where the control instruction C is also changed from 0 to 1, so as to control the receiving device to synchronously perform timeslot switching, that is, switch from caledar a to caledar B. After the channel switching is completed, CR, CA, and C on the overhead frame are all restored to 0 to prepare for the next channel switching.
In some embodiments, when the channel switching mode is configured as the standard negotiation mode, as shown in fig. 4, the standard negotiation mode further includes the following steps:
and S230, when the response time length is longer than the negotiation period of the overhead frame, restoring the channel switching instruction of the sending equipment.
It can be understood that the response time duration can be determined by calculation according to the sending time point and the current time point of the channel switching instruction sent by the sending device to the receiving device. And the current time point is the time when the response instruction returned by the receiving equipment is not received. In the flexible Ethernet communication process, data interaction at two ends is involved, when one end requests to switch channels and the other end does not agree with the switched channels, the original channels are maintained in a standard negotiation mode, and the accuracy of data transmission can be effectively improved. Therefore, in this embodiment, after the sending device sends the channel switching instruction to the receiving device, the receiving device may not return a response instruction. For example, the sending device sends a channel switching instruction with CR of 1 to the receiving device, and if the receiving device does not return a response instruction, after an overhead frame negotiation period, the sending device recovers the value of the channel switching instruction CR, that is, changes CR from 1 to 0, if the response instruction CA is not received, so as to improve the accuracy of the next channel switching process.
In some embodiments, when the states of the physical ports at both ends of the flexible ethernet slot resource pool FlexE Group are set to one state, that is, only to the physical state, when the devices at both ends of the FlexE Group are connected, the slot resource pool FlexE Group randomly allocates slots to the channels between the current devices. However, the ports of the two devices are in the UP state at this time, for example, the two devices are connected by a network cable, and the two devices are in the UP state at this time. In this UP state, for the user side, the user is the default that the ports of the two devices are in the normal connection state. If the timeslot allocated to the device channel by the timeslot resource pool FlexE Group is an unavailable timeslot, the two devices in the UP state cannot perform normal communication even if the ports of the two devices are in the UP state. Based on this, the present embodiment sets the states of the physical ports at both ends of the slot resource pool FlexE Group to the physical state and the slot available state. Wherein, the physical state is an overhead channel state, that is, used for data transmission; the available time slot state is a state for configuring an available time slot for a physical state, namely when ports of two devices are in an UP state, the available time slot is selected from a time slot resource pool Flexe Group and allocated to the device channel, so that a user only needs to pay attention to the state of the device and does not need to pay attention to the time slot state of the channel, whether the device can normally communicate is judged according to the state, the configuration process of the user is simplified, and the network planning amount of the user is increased.
In some embodiments, when the physical port of the time slot resource pool FlexE Group is changed from the unavailable state to the available state, the forwarding channel FlexE Client bound to the time slot resource pool FlexE Group is triggered to perform time slot supplementation, and the channel switching mode is triggered. It can be understood that when a physical port changes from the unavailable state to the available state, it may be determined that the timeslot of the current physical port may be insufficient, and therefore, the timeslot is supplemented to the physical port through the timeslot resource pool FlexE Group. When time slot supplement is carried out, if the time slot in the time slot resource pool Flexe Group is insufficient, the supplement process is put into a cache, and when the time slot in the time slot resource pool Flexe Group is sufficient to be supplemented, the time slot supplement process is executed again.
In some embodiments, when devices at two ends of a forwarding channel FlexE Client change, for example, card plugging and card plugging, board plugging and card plugging, and the like, time slot deletion of a corresponding channel on the forwarding channel FlexE Client is caused. And when the time slot deletion occurs to the corresponding channel, switching the transmitting channel FlexeE Client to the second channel, and completing the next data transmission process by utilizing the time slot of the second channel.
In some embodiments, in the flexible ethernet application process, the method specifically includes the following steps:
step one, the Flexe Client applies for and releases time slots to a Flexe Group according to the bandwidth demand. As shown in fig. 1, a plurality of FlexE clients can apply for a time slot from a time slot resource pool FlexE Group according to their own bandwidth demand; or when the time slot is not needed, releasing the time slot to the time slot resource pool Flexe Group so that other Flexe clients can utilize the released time slot. When the time slot is applied, if the time slot in the time slot resource pool Flexe Group is insufficient, the time slot is supplemented by the Flexe Client after the available time slot in the time slot resource pool Flexe Group is increased.
And step two, after the time slot allocation of the time slot resource pool FlexE Group to the FlexE Client is completed, the FlexE Client performs time slot binding on the time slot resource pool FlexE Group, so that only the FlexE Client can utilize the time slot during the time slot binding period of the FlexE Client.
And step three, in the normal working process of the time slot of the Flexe Client, judging whether the real-time Flexe Client needs to perform Calendar switching, if so, checking whether CR actions which do not receive CA responses exist in the Flexe Group bound by the Flexe Client, if so, putting the current updating operation of the Flexe Client into a cache, after the CA responses are received by the Flexe Group corresponding to the CR actions which do not receive CA responses, completing the previous Calendar switching of the Flexe Group, and then performing channel switching instruction CR requests corresponding to the Calendar of all the other Flexe clients to be switched. And if the Flexe Group bound by the Flexe Client does not have the CR action of not receiving the CA response, updating the standby Calendar of the Flexe Client and sending a time slot switching CR request of the Flexe Group. In the process of switching between the Calendar A and the Calendar B, the switching is realized through a Request-Acknowledge mechanism (Request-Acknowledge mechanism) embedded in an overhead channel. In an overhead frame transmitted in an overhead channel, the following three instructions are included: the method comprises the steps of a calendar switching request, a calendar switching response and an effective calendar, namely a channel switching instruction CR, a response instruction CA and a control instruction C. As can be appreciated, in the effective Calendar, calenar a is represented by code 0 and calenar B is represented by code 1.
Step four, as shown in fig. 5, after receiving the response of the receiving device CA, first updating the calenar control of the hardware corresponding to the FlexE Client, changing the current standby calenar into the primary calenar, changing the current primary calenar into the standby calenar, updating the primary time slot into the standby time slot, and updating the C bit value into the current calenar control value. And when receiving the response timeout of the receiving equipment CA, recovering the CR bit value of the sending equipment, namely using the current active Calendar.
And step five, scanning an overhead frame of a physical Port (PHY) at regular time for the direction of the receiving equipment of the Flexe Client, and updating a main Calendar time slot value of the receiving equipment of the Flexe Client after acquiring the current time slot of the current sending direction of the sending equipment, namely updating the time slot of the receiving equipment of the Flexe Client to the current time slot of the sending equipment. As shown in fig. 6, in the switching process between the Calendar a and the Calendar B, the Calendar a and the Calendar B are switched in a dynamic process, that is, after a certain dynamic switching period, the active Calendar on the FlexE Client becomes the standby Calendar, and the standby Calendar becomes the active Calendar.
Step six, when the time slot of the physical port bound by the Flexe Group is changed from an available state to an unavailable state, or the physical port is subjected to phenomena of daughter card plugging, home board plugging and the like, deleting the Flexe Client time slot of the physical port, and initiating the Calendar switching action of the step three; and if the state of the physical port bound by the FlexE Group is changed from the unavailable state to the available state, triggering the FlexE Client under the bound FlexE Group to carry out time slot allocation so as to supplement the FlexE Client with insufficient bandwidth, and simultaneously initiating the switching action of the step three. Wherein, the physical port state definition implementation includes but is not limited to the following aspects: first, a sending device is a FlexE port, a receiving device is an ethernet port, for example, if the sending device is in an UP state but cannot receive an overhead frame, the sending device is a line receiving side signal loss warning (LOF warning), that is, a link state UP, but a time slot is in an unavailable state; secondly, the transmitting device is configured as a FlexE port, and the receiving device is configured as a FlexE port, for example, the device of the transmitting device is in an UP state and can receive an overhead frame, and if the physical port of the receiving device is in an error warning (RPF warning), the link state is UP, but the time slot is in an unavailable state. In this embodiment, the sending device and the receiving device are relative, that is, the local end is the sending device, and the opposite end is the receiving device; the home terminal is a receiving device, and the opposite terminal is a sending device.
In the switching process of the caledar A and caledar B from the first step to the sixth step, although lossless switching can be completed, the switching is premised that the receiving device and the sending device can complete normal handshake process. However, if the network link oscillates, the transmitting device and the receiving device cannot handshake normally.
Based on this, considering the unstable network communication situation, adding configuration parameter constraints of the sending device and the receiving device to the FlexE Group, that is, configuring a channel switching mode at the sending device and the receiving device, where the channel switching mode includes a standard negotiation mode and a cut-through mode. The standard negotiation mode only changes the overhead frame according to the CR mark, namely the receiving equipment informs a Flexe Client to change the time slot according to the CR mark; in the forced switching mode, a timing scanning overhead frame is added in the standard negotiation mode, a time slot value in the current sending direction of the sending equipment is obtained, and the main Calendar time slot of the receiving equipment is updated according to the current time slot value sent by the sending equipment.
When the sending device selects the Calendar switching mode, if the standard negotiation mode is selected, as shown in the third step and the fourth step, the mode can realize lossless switching under the condition of normal handshake; when the strong switching mode is selected, when the response received in the step four is overtime, the transmitting equipment of the Flexe Client performs forced switching, and the receiving equipment performs forced switching according to the scanned overhead frame, so that the communication is normally executed, and the reliability of the channel switching process is improved.
In addition, an embodiment of the present invention further provides a terminal, including: the present invention relates to a flexible ethernet time slot resource allocation method, and a computer program stored in a memory and executable on a processor.
Specifically, the terminal includes: one or more processors and memory, which may be connected by a bus or otherwise.
The memory, as a non-transitory computer-readable storage medium, may be used to store non-transitory software programs and non-transitory computer-executable programs, such as the flexible ethernet timeslot resource configuration methods of fig. 2, 3, or 4. The processor implements the flexible ethernet time slot resource configuration method of fig. 2, 3 or 4 by running a non-transitory software program and instructions stored in the memory.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data and the like required to perform the flexible ethernet slot resource allocation method of fig. 2, 3, or 4. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Non-transitory software programs and instructions required to implement the flexible ethernet time slot resource configuration method of fig. 2, 3 or 4 are stored in the memory and, when executed by the one or more processors, perform the flexible ethernet time slot resource configuration method of fig. 2, 3 or 4, e.g., performing the above-described method steps S110 to S140 in fig. 2, method steps S210 to S220 in fig. 3, method step S230 in fig. 4.
The embodiment of the invention also provides a computer-readable storage medium, which stores computer-executable instructions, wherein the computer-executable instructions are used for executing the flexible Ethernet time slot resource configuration method.
In an embodiment, the computer-readable storage medium stores computer-executable instructions, which are executed by one or more control processors, for example, by one of the processors in the terminal, and may cause the one or more processors to perform the flexible ethernet timeslot resource configuration method of fig. 2, 3, or 4, for example, to perform the method steps S110 to S140 in fig. 2, S210 to S220 in fig. 3, and S230 in fig. 4 described above.
The above described node embodiments are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Furthermore, an embodiment of the present invention also provides a computer-readable storage medium storing computer-executable instructions, which are executed by a processor or controller, for example, by a processor in the node embodiment, and may cause the processor to execute the method for dynamically adjusting the database model in the node embodiment, for example, the method step S100 in fig. 2, the method step S200 in fig. 3, the method steps S300 to S400 in fig. 4, the method steps S410 to S420 in fig. 5, and the method steps S430 to S440 in fig. 6 described above.
It will be understood by those of ordinary skill in the art that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, or suitable combinations thereof. Some or all of the 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. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
While the preferred embodiments of the present invention have been described, the present invention is not limited to the above embodiments, and those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention, and such equivalent modifications or substitutions are to be included within the scope of the present invention defined by the appended claims.
Claims (10)
1. The time slot resource configuration method of the flexible Ethernet is characterized in that a forwarding channel FlexE Client of the flexible Ethernet comprises a first channel and a second channel, and the method comprises the following steps:
configuring a channel switching mode of the forwarding channel Flexe Client where a sending device and a receiving device are located;
when the sending equipment sends a channel switching instruction to the receiving equipment through an overhead frame, determining the response time length of the channel switching instruction;
when the channel switching mode is a cut-to-force mode and the response time length is greater than an overhead frame negotiation period, the receiving device scans the overhead frame sent by the sending device and obtains a current time slot corresponding to the sending device on the overhead frame, and the sending device switches from the first channel to the second channel;
and when the current time slot is different from the time slot of the receiving equipment, the receiving equipment is switched from the first channel to the second channel.
2. The method of claim 1, further comprising:
when the channel switching mode is a standard negotiation mode, the sending equipment waits for receiving a response instruction returned by the receiving equipment according to the channel switching instruction;
when the sending device receives the response instruction, the sending device and the receiving device are switched from the first channel to the second channel.
3. The method of claim 1, further comprising:
the states of the physical ports at the two ends of the flexible Ethernet time slot resource pool Flexe Group comprise a physical state and a time slot available state; the physical state is an overhead channel state for data transmission, and the timeslot availability state is a state for configuring an available timeslot for the physical state.
4. The method according to claim 1, wherein before configuring the channel switching mode of the forwarding channel FlexE Client in which the sending device and the receiving device are located, the method further comprises:
the forwarding channel Flexe Client applies for time slots or releases time slots to the flexible Ethernet time slot resource pool Flexe Group according to the bandwidth demand;
and when the available time slot in the time slot resource pool Flexe Group meets the time slot applied by the forwarding channel Flexe Client, the forwarding channel Flexe Client performs time slot binding on the time slot resource pool Flexe Group.
5. The method of claim 4, further comprising:
and when the available time slot in the time slot resource pool Flexe Group does not meet the time slot applied by the forwarding channel Flexe Client, caching the current time slot request of the forwarding channel Flexe Client.
6. The method of claim 4, further comprising:
and when the time slot bound by the forwarding channel Flexe Client is changed from an available state to an unavailable state, deleting the time slot bound by the forwarding channel Flexe Client from the forwarding channel Flexe Client, and triggering the channel switching mode.
7. The method of claim 3, further comprising:
and when the physical port of the time slot resource pool Flexe Group is changed from an unavailable state to an available state, triggering a forwarding channel Flexe Client bound with the time slot resource pool Flexe Group to perform time slot supplement, and triggering the channel switching mode.
8. The method of claim 2, further comprising:
and when the channel switching mode is the standard negotiation mode and the response time length is greater than the negotiation period of the overhead frame, recovering the channel switching instruction of the sending equipment.
9. A terminal, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing:
the method for time slot resource configuration of flexible ethernets according to any of claims 1-8.
10. A computer-readable storage medium having stored thereon computer-executable instructions for:
the method of time slot resource configuration for flexible ethernet of any one of claims 1-8 is performed.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111183791.2A CN115967996A (en) | 2021-10-11 | 2021-10-11 | Time slot resource allocation method, terminal and storage medium for flexible Ethernet |
PCT/CN2022/118516 WO2023061134A1 (en) | 2021-10-11 | 2022-09-13 | Flexible ethernet time slot resource configuration method, terminal, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111183791.2A CN115967996A (en) | 2021-10-11 | 2021-10-11 | Time slot resource allocation method, terminal and storage medium for flexible Ethernet |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115967996A true CN115967996A (en) | 2023-04-14 |
Family
ID=85889316
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111183791.2A Pending CN115967996A (en) | 2021-10-11 | 2021-10-11 | Time slot resource allocation method, terminal and storage medium for flexible Ethernet |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115967996A (en) |
WO (1) | WO2023061134A1 (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101031132A (en) * | 2006-02-28 | 2007-09-05 | 华为技术有限公司 | Wireless resource management system and switch controlling method based on it |
CN108777667B (en) * | 2018-05-31 | 2021-12-21 | 华为技术有限公司 | Method and device for adjusting bandwidth of transmission channel in flexible Ethernet |
CN112491492B (en) * | 2019-09-12 | 2022-03-08 | 华为技术有限公司 | Method and device for time slot negotiation |
CN111641979B (en) * | 2020-04-30 | 2021-12-03 | 华为技术有限公司 | Method for realizing Wi-Fi point-to-point service and related equipment |
CN112787844B (en) * | 2020-06-28 | 2022-01-25 | 中兴通讯股份有限公司 | Flexe client state processing method and device, network equipment and readable storage medium |
-
2021
- 2021-10-11 CN CN202111183791.2A patent/CN115967996A/en active Pending
-
2022
- 2022-09-13 WO PCT/CN2022/118516 patent/WO2023061134A1/en unknown
Also Published As
Publication number | Publication date |
---|---|
WO2023061134A1 (en) | 2023-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102447624B (en) | Load balancing method in server cluster, as well as node server and cluster | |
CN112214441A (en) | Communication switching method, equipment and system based on serial bus polling protocol | |
CN110943878A (en) | Heartbeat packet transmission method, terminal and device with storage function | |
CN111147573A (en) | Data transmission method and device | |
CN109391691A (en) | The restoration methods and relevant apparatus that NAS is serviced under a kind of single node failure | |
CN112134763B (en) | Method, system, equipment and medium for transmitting layered messages among cluster nodes | |
CN108600100B (en) | Member port selection method and device | |
CN102055644A (en) | Method, device and system for load management in distributed directory service system | |
CN108551679A (en) | Wireless device communication means based on LAN Mesh technologies and system | |
JP2002057699A (en) | Packet transmission system, packet transmission method and recording medium | |
CN112822102A (en) | Link switching method, device, equipment, system and storage medium | |
CN113179228B (en) | Method, device, equipment and medium for improving switch stacking reliability | |
CN106790354B (en) | Communication method and device for preventing data congestion | |
CN110661836B (en) | Message routing method, device and system, and storage medium | |
CN107104813B (en) | Information transmission method, gateway and controller | |
CN115967996A (en) | Time slot resource allocation method, terminal and storage medium for flexible Ethernet | |
CN109831467B (en) | Data transmission method, equipment and system | |
CN113992609B (en) | Method and system for processing multilink service data disorder | |
CN113098709B (en) | Network recovery method and device based on distributed networking system and computer equipment | |
CN115086617A (en) | Video stream storage method, device, system, equipment and medium | |
CN110753043B (en) | Communication method, device, server and medium | |
CN105430044A (en) | Router adaptive recommendation method | |
CN113992732B (en) | Terminal management control method, device, server and storage medium | |
CN111224803A (en) | Multi-master detection method in stacking system and stacking system | |
CN115550973B (en) | 4G/5G multi-terminal video communication network topology structure determination method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination |