Business interface creation method, device, system, equipment and medium
By implementing the dynamic negotiation creation method of business interfaces in communication devices, the complex and cumbersome problem of manually configuring time slots is solved, and the operation and maintenance efficiency is improved and the ease of use and reliability of business interfaces is achieved.
Patent Information
- Application Number
- CN202010364459.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-30
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2040-04-30
AI Technical Summary
In the prior art, due to manual configuration of massive time slots, operation and maintenance work is complicated and cumbersome, prone to errors, affecting equipment docking.
By implementing the dynamic negotiation creation method of the service interface in the communication device, the first communication device receives the service interface configuration information, obtains the time slot resource information, and negotiates with the second communication device to determine the interface time slot pre-select result, so as to realize the service interface Create dynamically by self-negotiation.
It reduces operation and maintenance costs, improves operation and maintenance efficiency, simplifies interface time slot configuration process, and improves the ease of use and reliability of business interface technology.
Smart Images

Figure CN113595670B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device, system, equipment and medium for creating a service interface. Background Art
[0002] FlexE (Flex Ethernet) is an improved technology based on high-speed Ethernet interface, which meets the needs of high-speed transmission and flexible bandwidth configuration. Compared with traditional bearers, 5G bearers require larger interface bandwidth and more sophisticated network slices, so FlexE is particularly important in the context of 5G networks.
[0003] The core idea of FlexE technology is: first, multiple physical ports are bundled to form a large logical channel FlexE group (FlexEGroup), then each physical port in the FlexE Group is divided into independent time slot particles, and finally the time slots are combined in any number to form a data bearing channel FlexE Client (FlexE client) with different bandwidths to achieve more flexible multi-rate bearing. When the FlexE interface is forwarded, the sending FlexE device uses the time slot combination corresponding to the FlexE Client to send the client message, and the receiving FlexE device extracts the recovery message from the time slot combination corresponding to the FlexE Client. FlexE technology decouples the customer bandwidth and the physical interface bandwidth, meeting more flexible Ethernet bandwidth requirements, and thus network devices no longer need to be constrained by the physical interface rate system determined by the IEEE802.3 standard when transmitting customer flows.
[0004] When supporting FlexE technology, existing network equipment vendors generally use static configuration to create customer flow bearer interfaces. Although this static configuration method simplifies the software implementation, with the widespread application of FlexE technology, it makes operation and maintenance work increasingly complex and error-prone. Therefore, how to simplify the interface time slot configuration process, reduce manual configuration operations, and improve operation and maintenance efficiency is an urgent problem to be solved. Summary of the invention
[0005] The present application provides a method, device, system, equipment and medium for creating a business interface to overcome the problems in the prior art of complex, tedious and error-prone operation and maintenance work caused by manual configuration of massive time slots, which affects device docking, realize dynamic negotiated creation of business interfaces, reduce operation and maintenance costs, improve operation and maintenance efficiency, and the usability and reliability of business interface technology.
[0006] In a first aspect, an embodiment of the present application provides a method for creating a service interface, which is applied to a first communication device, including:
[0007] Receiving service interface configuration information for a target protocol interface bundling group, obtaining time slot resource information of a first communication device end and time slot resource information of a second communication device end corresponding to the target protocol interface bundling group; wherein the first communication device establishes a communication connection with the second communication device;
[0008] Determine the interface time slot pre-selection result according to the service interface configuration information, the time slot resource information of the first communication device end, and the time slot resource information of the second communication device end;
[0009] Sending the interface time slot pre-selection result to the second communication device, wherein the interface time slot pre-selection result is used by the second communication device to perform a service interface creation operation for the target protocol interface bundling group;
[0010] If it is determined that the second communication device has completed the creation operation of the service interface matching the interface time slot pre-selection result for the target protocol interface bundling group, the creation operation of the service interface matching the interface time slot pre-selection result is performed for the target protocol interface bundling group.
[0011] In a second aspect, an embodiment of the present application provides a method for creating a service interface, which is applied to a second communication device, including:
[0012] Receive an interface time slot pre-selection result sent by a first communication device; wherein the interface time slot pre-selection result is determined by the first communication device according to the received service interface configuration information for the target protocol interface bundling group, and the first communication device-side time slot resource information and the second communication device-side time slot resource information corresponding to the target protocol interface bundling group, and the first communication device establishes a communication connection with the second communication device;
[0013] A creation operation of a service interface matching the interface time slot pre-selection result is performed for the target protocol interface bundling group, and the creation execution result is fed back to the first communication device; wherein, the creation execution result is used by the first communication device to perform a creation operation of a service interface matching the interface time slot pre-selection result for the target protocol interface bundling group when it is determined that the second communication device has completed the creation operation of the service interface matching the interface time slot pre-selection result for the target protocol interface bundling group.
[0014] In a third aspect, an embodiment of the present application provides a device for creating a service interface, which is applied to a first communication device, including:
[0015] A time slot resource information acquisition module is configured to receive service interface configuration information for a target protocol interface bundle group, and then obtain time slot resource information of a first communication device end and time slot resource information of a second communication device end corresponding to the target protocol interface bundle group; wherein the first communication device establishes a communication connection with the second communication device;
[0016] An interface time slot pre-selection result determination module, configured to determine an interface time slot pre-selection result according to the service interface configuration information, the first communication device end time slot resource information, and the second communication device end time slot resource information;
[0017] An interface time slot pre-selection result sending module, configured to send the interface time slot pre-selection result to a second communication device, wherein the interface time slot pre-selection result is used by the second communication device to perform a service interface creation operation for the target protocol interface bundling group;
[0018] The service interface creation module is configured to execute a service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group if it is determined that the second communication device has completed the service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group.
[0019] In a fourth aspect, an embodiment of the present application provides a device for creating a service interface, which is applied to a second communication device, including:
[0020] An interface time slot pre-selection result receiving module is configured to receive an interface time slot pre-selection result sent by a first communication device; wherein the interface time slot pre-selection result is determined by the first communication device according to the received service interface configuration information for the target protocol interface bundling group, and the first communication device-side time slot resource information and the second communication device-side time slot resource information corresponding to the target protocol interface bundling group, and the first communication device establishes a communication connection with the second communication device;
[0021] A service interface creation module is configured to execute a service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group, and feed back the creation execution result to the first communication device; wherein the creation execution result is used by the first communication device to execute a service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group when it is determined that the second communication device has completed the service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group.
[0022] In a fifth aspect, an embodiment of the present application provides a system for creating a service interface, including: a first communication device and at least one second communication device;
[0023] Wherein, the first communication device and the second communication device establish a communication connection;
[0024] The first communication setting executes the method for creating a service interface applied to the first communication device as described in any embodiment of the present application;
[0025] The second communication device executes the method for creating a service interface applied to the second communication device as described in any embodiment of the present application.
[0026] In a sixth aspect, an embodiment of the present application provides a communication device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement a method for creating a service interface applied to a first communication device as described in any embodiment of the present application.
[0027] In the seventh aspect, an embodiment of the present application provides a communication device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method for creating a service interface applied to a second communication device as described in any embodiment of the present application.
[0028] In an eighth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method for creating a business interface as described in any embodiment of the present application is implemented.
[0029] In the technical solution provided by this embodiment, the first communication device that receives the service interface configuration information for the target protocol interface bundling group actively initiates the service interface creation process, and after obtaining the time slot resource information on the first communication device side and the time slot resource information on the second communication device side corresponding to the target protocol bundling group, determines the interface time slot pre-selection result according to the service interface configuration information, the time slot resource information on the first communication device side and the time slot resource information on the second communication device side, and sends it to the second communication device. After the second communication device receives the interface time slot pre-selection result, it executes the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group, and feeds back the creation execution result to the first communication device. If the first communication device determines that the second communication device has completed the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group, then the creation operation of the service interface that matches the interface time slot pre-selection result is performed on this end for the target protocol interface bundling group, thereby realizing the self-negotiated dynamic creation of the service interface in the target protocol interface bundling group between the first communication device and the second communication device, overcoming the problem in the prior art that the operation and maintenance work is complicated, tedious, error-prone, and affects equipment docking due to manual configuration of massive time slots, reducing the operation and maintenance costs, improving the operation and maintenance efficiency, and the usability and reliability of the time slot bundling service interface technology.
[0030] With regard to the above embodiments and other aspects of the present application and their implementation, further description is provided in the accompanying drawings, detailed description and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A flowchart of a method for creating a business interface provided in this application;
[0032] Figure 2 A flowchart of a method for creating a business interface provided in this application;
[0033] Figure 3 A flowchart of a method for creating a business interface provided in this application;
[0034] Figure 4 A flowchart of a method for implementing a time slot granularity negotiation provided in this application;
[0035] Figure 5 A flowchart of a method for creating a FlexE Client interface provided in this application;
[0036] Figure 6 A schematic diagram of the module structure of a device for creating a business interface provided by this application;
[0037] Figure 7A schematic diagram of the module structure of a device for creating a business interface provided by this application;
[0038] Figure 8 A schematic diagram of the structure of a business interface creation system provided for this application;
[0039] Fig. 9 A schematic diagram of the structure of a communication device provided for this application;
[0040] Fig.10 A schematic diagram of the structure of a communication device provided in this application. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present application more clear, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other arbitrarily without conflict.
[0042] The terms "first" and "second" in this application are used to distinguish different objects rather than to describe a specific order.
[0043] For ease of understanding, the main inventive concept of the embodiment of the present application is briefly described by taking the service interface as FlexE Client as an example.
[0044] Currently, when FlexE technology is used, hierarchical interface configuration is required based on the Group / Client interface structure. When multiple physical ports are bundled to form a large logical channel FlexE Group, the binding relationship between the time slot and the FlexE Client is further specified through static configuration. The configuration process is as follows:
[0045] 1) N 100G physical links are aggregated into one FlexE Group;
[0046] 2) Configure the same time slot granularity of 5G (default value of time slot in the standard) on the FlexE Group interfaces at both ends of the link to ensure that the time slot cutting granularity is consistent at both ends of the link. At this time, the number of time slots in each 100G physical port is 20, and the total number of time slots under the FlexE Group is 20*N;
[0047] 3) Further create FlexE Client interfaces at both ends of the link. Assuming that the customer bandwidth requires a 40G interface, 8 time slots are required to carry traffic according to the 5G time slot granularity calculation. Therefore, 8 idle available time slots are selected from the total 20*N time slot resources and bound to the FlexE Client interface. Since the sender and receiver of the same customer flow need to use the same time slot channel combination, the time slot information selected at both ends of the link needs to be consistent. After the FlexE Client interface is successfully bound to the time slot, it can be used as the actual service interface for carrying user flows and allocated to customers.
[0048] In the present application, of the two end devices that create a service interface for a certain target protocol interface bundling group, one is a master device, that is, a device that actively initiates the creation of a service interface under the user's service interface configuration information, and the target protocol interface bundling group it includes is a target protocol interface master bundling group, and the other is a slave device, and the target protocol interface bundling group it includes is a target protocol interface slave bundling group. After the master device obtains the local time slot resource information and the remote time slot resource information corresponding to the target protocol interface bundling group, it selects the available time slots at both ends according to the user's service interface configuration information, obtains the interface time slot pre-selection result, and sends the interface time slot pre-selection result to the slave device. After the slave device receives the interface time slot pre-selection result, if the local resources are satisfied, it executes the creation operation of the service interface matching the interface time slot pre-selection result for the target protocol interface slave bundling group, and feeds back the creation execution result to the master device. If the master device determines that the slave device has completed the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface slave bundling group, then it executes the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface master bundling group on this end, thereby realizing the self-negotiation creation of the service interface in the target protocol interface bundling group between the master device and the slave device.
[0049] In an exemplary embodiment, Figure 1 A flow chart of a method for creating a service interface provided by the present application. The method is applicable to the case where both ends of a link create a service interface for time slot binding for a target protocol interface bundling group, such as creating a FlexE Client interface for a FlexE Group. The method can be executed by a service interface creation device applied to a first communication device provided by the present application, and the service interface creation device can be implemented by software and / or hardware and integrated in the communication device.
[0050] like Figure 1 As shown, the method for creating a service interface applied to a first communication device provided by the present application includes:
[0051] S110. Receive service interface configuration information for a target protocol interface bundling group, and obtain time slot resource information of a first communication device end and time slot resource information of a second communication device end corresponding to the target protocol interface bundling group; wherein the first communication device establishes a communication connection with the second communication device.
[0052] The target protocol interface bundling group refers to an interface bundling group formed by aggregating multiple interfaces whose interface protocol is the target protocol. When the target protocol is FlexE, the target protocol interface bundling group is FlexE Group; when the target protocol is MTN (Metro Transpot Network), the target protocol interface bundling group is MTN Group. In this embodiment, the target protocol is not specifically limited.
[0053] In one example, when the target protocol interface bundling group is a FlexE group, the corresponding service interface is a FlexE Client interface. In another example, when the target protocol interface bundling group is an MTN group, the corresponding service interface is an MTN Client interface.
[0054] Among them, the corresponding target protocol interface bundling group in the first communication device and the second communication device has been created before the implementation of the service interface creation method provided in this embodiment, and this embodiment does not specifically limit its creation method. Multiple links can be created between the first communication device and the second communication device, and the group identifier of the target protocol interface bundling group corresponding to the same link in the devices at both ends is consistent.
[0055] The service interface configuration information refers to the simplified configuration information of a target protocol interface bundle group according to actual application requirements, such as the bandwidth size of the service interface expected to be created in the target protocol interface bundle group and the number of such service interfaces.
[0056] In one example, multiple groups of service interfaces with different bandwidths can be configured in the service interface configuration information. It is worth noting that the service interface creation method provided in this embodiment can be a creation method for any service interface in the target protocol interface bundle group, and repeated execution can achieve the creation of multiple groups of service interfaces in the target protocol interface bundle group. Suppose, it is expected to create 5 service interfaces with a bandwidth of 10G, it is expected to create 10 service interfaces with a bandwidth of 20G, and so on.
[0057] At the same time, the service interface configuration information may also include the implementation time slot granularity, which refers to the user's requirement for the time slot granularity, which may be consistent with the default time slot granularity or inconsistent with the default time slot granularity. If the implementation time slot granularity is consistent with the default time slot granularity of the communication device, the user may not configure the implementation time slot granularity.
[0058] It is worth noting that the bandwidth size of the service interface configured by the user should be an integer multiple of the implemented time slot granularity (or the default time slot granularity).
[0059] In addition, the service interface configuration information may also include a time slot allocation strategy, which refers to the requirements for time slot selection, such as selecting in ascending order of time slot numbers, selecting across physical interfaces, and the like.
[0060] In this embodiment, assuming that the first communication device receives the service interface configuration information for the target protocol interface bundle group sent by the user, the first communication device is the master device that initiates the service interface creation for the target protocol interface bundle group, and the target protocol interface bundle group included therein is the target protocol interface master bundle group. Correspondingly, the second communication device that establishes a communication connection with the first communication device (which may be a direct physical interface connection through multiple optical fibers) is the slave device that responds to the service interface creation, and the target protocol interface bundle group included therein is the target protocol interface slave bundle group.
[0061] The time slot resource information at the first communication device end corresponding to the target protocol interface bundling group is the local time slot resource information of the first communication device of the target protocol interface bundling group; the time slot resource information at the second communication device end corresponding to the target protocol interface bundling group is the remote time slot resource information of the first communication device of the target protocol interface bundling group. The time slot resource information refers to the time slot information of each physical interface in the target protocol interface bundling group in the communication device, which can specifically exist in the form of a time slot resource table.
[0062] In one example, the time slot resource information on the first communication device side includes a list of unused time slots, a list of used time slots, and a list of unusable time slots in the target protocol interface bundling group on the first communication device side. Specifically, the first communication device can calculate the time slot resource information on the first communication device side corresponding to the target protocol interface bundling group based on its local physical port time slot resource information.
[0063] In one example, the time slot resource information on the second communication device side includes a list of unused time slots, a list of used time slots, and a list of unusable time slots in the target protocol interface bundling group on the second communication device side. Taking the target protocol interface bundling group as FlexE Group as an example, the first communication device can extract the time slot resource information on the second communication device side corresponding to the target protocol interface bundling group based on the calendar information in the overhead frame of the opposite end received at the bottom layer. Among them, the extraction method is based on the definition of the client calendar in the overhead frame. For example, the Client calendar of the time slot (Slot) is marked as 0x0000 to indicate that it is not used, the Client calendar of the Slot is marked as 0xFFFF to indicate that it cannot be used (the specific reason may be bandwidth limitation, etc.), and the Client calendar of the slot is marked as other values to indicate that it has been occupied by other service interfaces (FlexEClient) (for details, please refer to the OIF FlexE standard). In another example, the time slot resource information on the second communication device side obtained by the first communication device may also be notified by the second communication device, and this embodiment does not make specific limitations on this.
[0064] At the same time, the second communication device can calculate the second communication device-side time slot resource information corresponding to the target protocol interface bundling group based on its local physical port time slot resource information, that is, the unused time slot list, used time slot list and unusable time slot list in the target protocol interface bundling group on the second communication device side.
[0065] Among them, a single time slot resource can be represented by (PHY Number, Slot Number). PHY Number represents the physical interface number of the target protocol interface bundle group. The PHY Number of the interfaces at both ends of the same physical link is the same. This information is configured when the target protocol interface bundle group is established; Slot Number represents the time slot number within the physical interface. This information is allocated when the time slot is divided.
[0066] Specifically, the information of each time slot in the unused time slot list, the used time slot list and the unusable time slot list can be identified by the above-mentioned representation method of a single time slot resource.
[0067] In one example, before S120, the method further includes:
[0068] If the service interface configuration information includes the implementation time slot granularity, and the implementation time slot granularity is different from the default time slot granularity, the implementation time slot granularity is sent to the second communication device, and the implementation time slot granularity is used to instruct the second communication device to perform time slot division switching for the target protocol interface bundling group;
[0069] If it is determined that the second communication device has completed the time slot division switching operation matching the implementation time slot granularity for the target protocol interface binding group, a time slot division switching operation matching the implementation time slot granularity is performed for the target protocol interface binding group.
[0070] Before formally creating the service interface, you can first negotiate the time slot granularity within the dual-end target protocol interface bundling group. If the implementation time slot granularity included in the service interface configuration information is the same as the default time slot granularity, there is no need to negotiate the time slot granularity within the dual-end target protocol interface bundling group.
[0071] The first communication device sends the implementation time slot granularity corresponding to the target protocol interface bundling group to the second communication device. The second communication device determines whether the received implementation time slot granularity is consistent with the default time slot granularity of the local end. If they are consistent, no switching is required. If they are inconsistent, it is necessary to determine whether the target protocol interface bundling group on the local end supports the time slot division corresponding to the implementation time slot granularity. If supported, the time slots in the target protocol interface bundling group will be re-divided according to the implementation time slot granularity, and the time slot division switching execution result will be fed back to the first communication device. If the first communication device determines that the second communication device has completed the time slot division switching operation that matches the implementation time slot granularity for the target protocol interface bundling group, it will re-divide the time slots in the target protocol interface bundling group according to the implementation time slot granularity on the local end, thereby realizing the negotiation of the time slot granularity within the target protocol interface bundling group on both ends.
[0072] In a specific example, the target protocol interface master bundling group of the first communication device sends a time slot negotiation request message to the target protocol interface slave bundling group of the second communication device. The time slot negotiation request message may carry: implementation time slot granularity and negotiation sequence number.
[0073] The second communication device receives the time slot negotiation request message, finds the corresponding target protocol interface slave bundle group, and determines whether to allow time slot division with the implementation time slot granularity according to the implementation capability of the time slot granularity of all physical ports in the target protocol interface slave bundle group. A time slot negotiation request response message is sent according to the judgment result, and the time slot negotiation request response message may carry: a negotiation sequence number (the same as the time slot negotiation request message), and a negotiation success status or a negotiation failure status.
[0074] The first communication device receives the time slot negotiation request response message. If the time slot negotiation request response message carries a negotiation success status, it sends a time slot switching message. The time slot switching message may carry: implementation time slot granularity, negotiation sequence number (the same as the time slot negotiation request response message).
[0075] The second communication device receives the time slot switching message and checks whether the sequence number carried in the time slot switching message is consistent with the sequence number of the most recently sent time slot negotiation request response message. If they are consistent, it indicates that the negotiation has been successful before, and the target protocol interface is immediately divided from all physical ports in the bundle group according to the implementation time slot granularity. After the second communication device successfully re-divides the target protocol interface from all physical ports in the bundle group, it sends a time slot switching response message. The time slot switching response message can carry: implementation time slot granularity, negotiation sequence number (the same as the time slot switching message), switching success status or switching failure status.
[0076] The first communication device receives the time slot switching response message. If the time slot switching response message carries the switching success status, it means that the second communication device has completed the time slot granularity switching of the target protocol interface from the bundle group, and starts to perform the time slot granularity division corresponding to the implementation time slot granularity on all physical ports in the main bundle group of the target protocol interface. When the time slot granularity in the bundle group of the target protocol interface at both ends is successfully switched, the physical link is re-divided according to the desired implementation time slot granularity.
[0077] Further, in one example, if it is determined that the second communication device has not completed the time slot division switching operation matching the implementation time slot granularity for the target protocol interface bundling group, a reconfiguration prompt operation of the implementation time slot granularity is performed according to the time slot granularity support information fed back by the second communication device.
[0078] If the time slot negotiation request response message fed back by the second communication device carries a negotiation failure status, the first communication device may prompt the user, for example, "Both ends of the link do not support the time slot granularity negotiation."
[0079] Furthermore, when the second communication device determines that it is not allowed to divide time slots with time slot granularity, the time slot negotiation request response message fed back to the first communication device may also carry: time slot granularity support information, and the time slot granularity support information may exist in the form of a time slot granularity support list.
[0080] When the first communication device parses and obtains the time slot granularity support information of the second communication device, it can also prompt the user of the time slot granularity support information, prompting the user to perform a time slot granularity reconfiguration operation based on the time slot granularity support information of the second communication device.
[0081] In addition, when the first communication device sends a time slot negotiation request message and / or a time slot switching message, it can also start a timer. If the timer times out and the corresponding time slot negotiation request response message and / or time slot switching response message from the second communication device is not received, the first communication device can reallocate a negotiation sequence number and re-initiate a time slot negotiation request.
[0082] It is worth pointing out that in the time slot granularity negotiation phase, the negotiation messages between the first communication device and the second communication device can all be sent based on the target protocol interface bundling group. Taking the target protocol interface bundling group as FlexE Group as an example, these negotiation messages can all be encapsulated in the Section layer management channel field of the FlexE overhead frame structure and sent based on FlexEGroup.
[0083] S120. Determine the interface time slot pre-selection result according to the service interface configuration information, the time slot resource information of the first communication device end, and the time slot resource information of the second communication device end.
[0084] The interface time slot pre-selection result refers to the time slot combination actively decided for the creation of one or more service interfaces in the target protocol interface bundle group, which may specifically be composed of multiple single time slot resources, that is, a set of (PHYNumber, Slot Number).
[0085] In one example, the service interface configuration information includes at least an expected value of the service interface bandwidth and a time slot allocation strategy; correspondingly, according to the service interface configuration information, the time slot resource information of the first communication device end, and the time slot resource information of the second communication device end, the interface time slot pre-selection result is determined, which can be specifically:
[0086] Based on the time slot resource information on the first communication device end and the time slot resource information on the second communication device end, determine the intersection of unused interface time slots corresponding to the first communication device, the second communication device and the target protocol interface bundling group; based on the expected value of the service interface bandwidth and the time slot allocation strategy, determine the interface time slot pre-selection result in the intersection of unused interface time slots.
[0087] The intersection of unused interface time slots can be specifically determined based on a list of unused time slots corresponding to the first communication device and the target protocol interface binding group and a list of unused time slots corresponding to the second communication device and the target protocol interface binding group.
[0088] Assuming that the expected value of the service interface bandwidth is Y, the number of time slots required for the service interface with bandwidth Y = bandwidth Y / implementation time slot granularity. The first communication device selects a plurality of time slots equal to the required number of time slots from the intersection of unused interface time slots according to the time slot allocation strategy as the interface time slot pre-selection result, and can also allocate a client identifier (CLIENT ID) as the service interface identifier for the interface time slot pre-selection result to identify a target protocol interface bundling group client.
[0089] S130. Send the interface time slot pre-selection result to the second communication device. The interface time slot pre-selection result is used by the second communication device to perform a service interface creation operation for the target protocol interface bundling group.
[0090] The target protocol interface main bundling group of the first communication device sends the interface time slot pre-selection result to the target protocol interface slave bundling group of the second communication device. After receiving the result, the target protocol interface slave bundling group of the second communication device executes the creation operation of the service interface corresponding to the interface time slot pre-selection result, and sends the creation execution result to the target protocol interface main bundling group of the first communication device.
[0091] S140. If it is determined that the second communication device has completed the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group, then perform the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group.
[0092] If the first communication device determines that the target protocol interface of the second communication device has completed the creation operation of the service interface matching the interface time slot pre-selection result at the remote end from the bundling group, it executes the creation operation of the service interface matching the interface time slot pre-selection result for the target protocol interface main bundling group at the local end.
[0093] At this point, the negotiation and creation of a service interface for the target protocol interface binding group between the first communication device and the second communication device is completed.
[0094] If the first communication device determines that the target protocol interface of the second communication device has not completed the creation operation of the service interface that matches the interface time slot pre-selection result at the remote end from the bundling group, then the first communication device will not perform the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface main bundling group on this end, so as to avoid the problem of erroneous creation of the service interface.
[0095] In the technical solution provided by this embodiment, the first communication device that receives the service interface configuration information for the target protocol interface bundling group actively initiates the service interface creation process, and after obtaining the time slot resource information on the first communication device side and the time slot resource information on the second communication device side corresponding to the target protocol bundling group, determines the interface time slot pre-selection result according to the service interface configuration information, the time slot resource information on the first communication device side and the time slot resource information on the second communication device side, and sends it to the second communication device. After the second communication device receives the interface time slot pre-selection result, it executes the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group, and feeds back the creation execution result to the first communication device. If the first communication device determines that the second communication device has completed the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group, then the creation operation of the service interface that matches the interface time slot pre-selection result is performed on this end for the target protocol interface bundling group, thereby realizing the self-negotiated dynamic creation of the service interface in the target protocol interface bundling group between the first communication device and the second communication device, overcoming the problem in the prior art that the operation and maintenance work is complicated, tedious, error-prone, and affects equipment docking due to manual configuration of massive time slots, reducing the operation and maintenance costs, improving the operation and maintenance efficiency, and the usability and reliability of the time slot bundling service interface technology.
[0096] In one example, the first communication device sends the interface time slot pre-selection result to the second communication device, which may be specifically: sending the interface time slot pre-selection result to the second communication device via a service interface negotiation request message;
[0097] Correspondingly, determining that the second communication device has completed the creation operation of the service interface matching the interface time slot pre-selection result for the target protocol interface bundling group may specifically be:
[0098] Receive a service interface negotiation request reply message fed back by the second communication device in response to the service interface negotiation request message; if the service interface negotiation request reply message indicates that the local resources of the second communication device meet the interface time slot pre-selection result, send a service interface creation message to the second communication device, and the service interface creation message is used to instruct the second communication device to perform a service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group; receive a service interface creation reply message fed back by the second communication device in response to the service interface creation message; if the service interface creation reply message indicates that the second communication device has completed the service interface creation operation for the target protocol interface bundling group, determine that the second communication device has completed the service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group.
[0099] The target protocol interface master bundling group of the first communication device encapsulates the interface time slot pre-selection result in the service interface negotiation request message and sends it to the target protocol interface slave bundling group of the second communication device. After receiving the second communication device, it parses the message to obtain the interface time slot pre-selection result, and determines whether the local resources meet the interface time slot pre-selection result, and encapsulates the judgment result in the service interface negotiation request response message for the service interface negotiation request message feedback and sends it to the target protocol interface master bundling group of the first communication device. The service interface negotiation request response message carries the negotiation success status or the negotiation failure status.
[0100] After the target protocol interface main binding group of the first communication device receives the service interface negotiation request response message, it parses the message to determine whether the response status is a negotiation success status or a negotiation failure status. If it is a negotiation failure status, the service interface creation process ends. If it is a negotiation success status, a service interface creation message corresponding to the service interface negotiation request response message is immediately initiated.
[0101] After the target protocol interface of the second communication device receives the service interface creation message from the bundling group, it executes the service interface creation operation corresponding to the interface time slot pre-selection result, and encapsulates the creation result (creation success or creation failure) in the service interface creation response message corresponding to the service interface creation message, and feeds it back to the first communication device.
[0102] After the target protocol interface main bundle group of the first communication device receives the service interface creation response message, it analyzes the response status. If it is a creation failure status, the creation process of this service interface ends. If it is a creation success status, the creation operation of the service interface corresponding to the interface time slot pre-selection result is immediately performed on this end. At this point, the negotiation creation of a service interface for the target protocol interface bundle group between the first communication device and the second communication device is completed.
[0103] It is worth pointing out that in the creation phase of the service interface, the negotiation messages between the first communication device and the second communication device can all be sent based on the target protocol interface bundle group. Taking the target protocol interface bundle group as FlexE Group as an example, these negotiation messages can all be encapsulated in the Section layer management channel field of the FlexE overhead frame structure and sent based on FlexEGroup.
[0104] In a specific implementation, device A and device B create a series of service interfaces (FlexE Client) in the FlexEGroup according to user expectations, wherein device A reads the service interface configuration information and time slot allocation strategy configured by the user, and triggers the dynamic negotiation creation of the service interface as the active party, and explains it by taking the negotiation to create the first FlexE Client interface with a bandwidth of Y as an example.
[0105] The number of timeslots required for the FlexE Client interface with bandwidth Y = bandwidth Y / timeslot granularity. Device A selects a timeslot from the common intersection of the unused timeslot list of FlexEGroup_A (FlexE Group in device A) and the unused timeslot list of FlexE Group_B (FlexEGroup in device B) according to the timeslot allocation policy algorithm, and allocates ClientID information as the FlexE Client interface identifier to identify a FlexE Group client.
[0106] Device A sends a service interface negotiation request message carrying the interface time slot pre-selection result. Specifically, the service interface negotiation request response message may carry: the Client ID of the FlexE Client interface to be created, the time slot combination (multiple (PHY Number, Slot Number) sets) of the FlexE Client interface to be created, and the negotiation sequence number.
[0107] Device B receives the service interface negotiation request message and finds the corresponding FlexE Group_B. Based on the local unused time slot list of FlexEGroup_B, it determines whether the local end can create a FlexE Client interface with the expected time slot combination and whether the Client ID is not occupied by other FlexE Client interfaces. If the local end can create a FlexE Client interface with the expected time slot combination and the Client ID is not occupied, it agrees to the negotiation content and sends a service interface negotiation request response message. The service interface negotiation request response message can carry: negotiation sequence number (consistent with the service interface negotiation request message), negotiation success status or negotiation failure status.
[0108] Device A receives the service interface negotiation request response message. If the service interface negotiation request response message carries the negotiation success status, it continues to send a service interface creation message to device B. The service interface creation message can carry: negotiation sequence number (consistent with the service interface negotiation request response message), Client ID, time slot combination for creating FlexE Client interface (multiple (PHY Number, Slot Number) sets), etc.
[0109] Device B receives the service interface creation message and verifies whether the negotiation sequence number it carries is consistent with the one in the service interface negotiation request response message that was sent most recently. If they are consistent, it immediately starts to create a FlexE Client interface that corresponds to the Client ID specified in the service interface creation message, configures the FlexEShim logic layer of the underlying chip, updates the Client calendar information, and changes the Client calendar of the allocated Slot from 0x0000 to the Client ID, indicating that these time slots are used to transmit the customer traffic corresponding to the Client ID. If the FlexE Client interface is successfully created, a service interface creation response message is sent to device A. The service interface creation response message can carry: the negotiation sequence number (consistent with the service interface creation message), the creation success status or the creation failure status, and if the creation fails, it can also carry the reason for the creation failure.
[0110] Device A receives the service interface creation response message. If it carries the creation success status, it starts the local FlexEClient interface creation operation. The FlexE Client interface corresponds to the Client ID specified in the service interface creation message, configures the FlexE Shim logic layer of the underlying chip, updates the Client calendar information, and changes the Client calendar of the allocated Slot from 0x0000 to the Client ID, indicating that the customer traffic corresponding to the Client ID is transmitted in these time slots.
[0111] At this point, the first pair of FlexE Client interfaces with bandwidth Y is created on Device A and Device B. The above steps are repeated until all FlexE Client interfaces required by the user are negotiated and created. The details are not repeated here.
[0112] In the above implementation, an additional logic layer is inserted between the MAC and PHY (PCS sublayer) of the traditional Ethernet architecture to implement time slot mapping. Specifically, in the FlexE technology, it refers to the FlexE Shim layer, which implements the core architecture of the FlexE technology through a Calendar-based Slot distribution mechanism.
[0113] The above technical solution no longer requires manual specification of complex time slot binding relationships during configuration; compared with the traditional solution that requires configuration on both ends of the link, the above technical solution only requires the user to log in to one end of the device to configure, and then the collaborative creation of service interfaces on both ends of the link can be completed. In the above technical solution, the control plane protocol is extended to complete the negotiation of time slot granularity and the negotiation of the binding relationship between service interfaces and time slot members, converting manual configuration into automatic negotiation creation, and performing parameter consistency negotiation on both ends and automatic creation of service interfaces through the control plane protocol, which also improves the ease of use and reliability of FlexE technology.
[0114] In an exemplary embodiment, Figure 2 A flow chart of a method for creating a service interface provided by the present application. The method is applicable to the case where both ends of a link create a service interface for time slot binding for a target protocol interface bundling group, such as creating a FlexE Client interface for a FlexE Group. The method can be executed by a service interface creation device provided by the present application and applied to a second communication device, and the service interface creation device can be implemented by software and / or hardware and integrated in the communication device.
[0115] like Figure 2 As shown, the method for creating a service interface applied to a second communication device provided by the present application includes:
[0116] S210. Receive the interface time slot pre-selection result sent by the first communication device; wherein the interface time slot pre-selection result is determined by the first communication device based on the received service interface configuration information for the target protocol interface bundling group, and the first communication device-side time slot resource information and the second communication device-side time slot resource information corresponding to the target protocol interface bundling group, and the first communication device establishes a communication connection with the second communication device.
[0117] The target protocol interface bundling group refers to an interface bundling group formed by aggregating multiple interfaces whose interface protocol is the target protocol. When the target protocol is FlexE, the target protocol interface bundling group is FlexE Group; when the target protocol is MTN (Metro Transpot Network), the target protocol interface bundling group is MTN Group. In this embodiment, the target protocol is not specifically limited.
[0118] In one example, when the target protocol interface bundling group is a FlexE group, the corresponding service interface is a FlexE Client interface. In another example, when the target protocol interface bundling group is an MTN group, the corresponding service interface is an MTN Client interface.
[0119] The service interface configuration information refers to the simplified configuration information of a target protocol interface bundle group according to actual application requirements, such as the bandwidth size of the service interface expected to be created in the target protocol interface bundle group and the number of such service interfaces.
[0120] At the same time, the service interface configuration information may also include the implementation time slot granularity, which refers to the user's requirement for the time slot granularity, which may be consistent with the default time slot granularity or inconsistent with the default time slot granularity. If the implementation time slot granularity is consistent with the default time slot granularity of the communication device, the user may not configure the implementation time slot granularity.
[0121] In addition, the service interface configuration information may also include a time slot allocation strategy, which refers to the requirements for time slot selection, such as selecting in ascending order of time slot numbers, selecting across physical interfaces, and the like.
[0122] In this embodiment, assuming that the first communication device receives the service interface configuration information for the target protocol interface bundle group sent by the user, the first communication device is the master device that initiates the service interface creation for the target protocol interface bundle group, and the target protocol interface bundle group included therein is the target protocol interface master bundle group. Correspondingly, the second communication device that establishes a communication connection with the first communication device (which may be a direct physical interface connection through multiple optical fibers) is the slave device that responds to the service interface creation, and the target protocol interface bundle group included therein is the target protocol interface slave bundle group.
[0123] In one example, the time slot resource information on the first communication device side includes a list of unused time slots, a list of used time slots, and a list of unusable time slots in the target protocol interface bundling group on the first communication device side. Specifically, the first communication device can calculate the time slot resource information on the first communication device side corresponding to the target protocol interface bundling group based on its local physical port time slot resource information.
[0124] In one example, the time slot resource information on the second communication device side includes a list of unused time slots, a list of used time slots, and a list of unusable time slots in the target protocol interface bundling group on the second communication device side. Taking the target protocol interface bundling group as FlexE Group as an example, the first communication device can extract the time slot resource information on the second communication device side corresponding to the target protocol interface bundling group based on the calendar information in the overhead frame of the opposite end received at the bottom layer. Among them, the extraction method is based on the definition of the Client calendar in the overhead frame. For example, the Client calendar of the time slot (Slot) is marked as 0x0000 to indicate that it is not used, the client calendar of the Slot is marked as 0xFFFF to indicate that it cannot be used (the specific reason may be bandwidth limitation, etc.), and the Client calendar of the Slot is marked as other values to indicate that it has been occupied by other service interfaces (FlexEClient) (for details, please refer to the OIF FlexE standard). In another example, the time slot resource information on the second communication device side obtained by the first communication device may also be notified by the second communication device, and this embodiment does not make specific limitations on this.
[0125] At the same time, the second communication device can calculate the second communication device-side time slot resource information corresponding to the target protocol interface bundling group based on its local physical port time slot resource information, that is, the unused time slot list, used time slot list and unusable time slot list in the target protocol interface bundling group on the second communication device side.
[0126] Among them, a single time slot resource can be represented by (PHY Number, Slot Number). PHY Number represents the physical interface number of the target protocol interface bundle group. The PHY Number of the interfaces at both ends of the same physical link is the same. This information is configured when the target protocol interface bundle group is established; Slot Number represents the time slot number within the physical interface. This information is allocated when the time slot is divided.
[0127] In one example, the service interface configuration information includes at least an expected value of the service interface bandwidth and a time slot allocation strategy; correspondingly, the first communication device determines the interface time slot pre-selection result according to the service interface configuration information, the time slot resource information of the first communication device end, and the time slot resource information of the second communication device end, which can be specifically as follows:
[0128] The first communication device determines the intersection of unused interface time slots corresponding to the first communication device, the second communication device and the target protocol interface bundling group based on the time slot resource information on the first communication device side and the time slot resource information on the second communication device side; and determines the interface time slot pre-selection result in the intersection of unused interface time slots based on the expected value of the service interface bandwidth and the time slot allocation strategy.
[0129] The target protocol interface master bundling group of the first communication device sends the interface time slot pre-selection result to the target protocol interface slave bundling group of the second communication device, and the target protocol interface slave bundling group of the second communication device receives the interface time slot pre-selection result.
[0130] In one example, before S210, the method further includes:
[0131] Receiving an implementation time slot granularity sent by a first communication device; wherein the implementation time slot granularity is sent by the first communication device when determining that the service interface configuration information includes the implementation time slot granularity and the implementation time slot granularity is different from the default time slot granularity;
[0132] A time slot division switching operation matching the implementation time slot granularity is performed for the target protocol interface bundling group, and the switching execution result is fed back to the first communication device; wherein the switching execution result is used by the first communication device to perform a time slot division switching operation matching the implementation time slot granularity for the target protocol interface bundling group when it is determined that the second communication device has completed the time slot division switching operation matching the implementation time slot granularity for the target protocol interface bundling group.
[0133] Before formally creating the service interface, you can first negotiate the time slot granularity within the dual-end target protocol interface bundling group. If the implementation time slot granularity included in the service interface configuration information is the same as the default time slot granularity, there is no need to negotiate the time slot granularity within the dual-end target protocol interface bundling group.
[0134] The first communication device sends the implementation time slot granularity corresponding to the target protocol interface bundling group to the second communication device. The second communication device determines whether the received implementation time slot granularity is consistent with the default time slot granularity of the local end. If they are consistent, no switching is required. If they are inconsistent, it is necessary to determine whether the target protocol interface bundling group on the local end supports the time slot division corresponding to the implementation time slot granularity. If supported, the time slots in the target protocol interface bundling group will be re-divided according to the implementation time slot granularity, and the time slot division switching execution result will be fed back to the first communication device. If the first communication device determines that the second communication device has completed the time slot division switching operation that matches the implementation time slot granularity for the target protocol interface bundling group, it will re-divide the time slots in the target protocol interface bundling group according to the implementation time slot granularity on the local end, thereby realizing the negotiation of the time slot granularity within the target protocol interface bundling group on both ends.
[0135] In one example, if the switching execution result indicates that the second communication device has not completed the time slot division switching operation that matches the implementation time slot granularity for the target protocol interface bundling group, the time slot granularity support information of the second communication device is fed back to the first communication device together with the switching execution result; wherein the time slot granularity support information is used to instruct the first communication device to perform the reconfiguration prompt operation of the implementation time slot granularity.
[0136] It is worth pointing out that in the time slot granularity negotiation stage, the first communication device and the second communication device can negotiate the time slot granularity based on the negotiation message, wherein the negotiation message can be sent based on the target protocol interface bundling group. Taking the target protocol interface bundling group as FlexE Group as an example, these negotiation messages can be encapsulated in the Section layer management channel field of the FlexE overhead frame structure and sent based on the FlexE Group.
[0137] S220. Execute a creation operation of a service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group, and feed back the creation execution result to the first communication device; wherein, the creation execution result is used by the first communication device to execute a creation operation of a service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group when it determines that the second communication device has completed the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group.
[0138] After receiving the target protocol interface from the bundling group, the target protocol interface of the second communication device executes a creation operation of the service interface corresponding to the interface time slot pre-selection result, and sends the creation execution result to the target protocol interface main bundling group of the first communication device.
[0139] If the first communication device determines that the target protocol interface of the second communication device has completed the creation operation of the service interface matching the interface time slot pre-selection result at the remote end from the bundling group, it executes the creation operation of the service interface matching the interface time slot pre-selection result for the target protocol interface main bundling group at the local end.
[0140] At this point, the negotiation and creation of a service interface for the target protocol interface binding group between the first communication device and the second communication device is completed.
[0141] If the first communication device determines that the target protocol interface of the second communication device has not completed the creation operation of the service interface that matches the interface time slot pre-selection result at the remote end from the bundling group, then the first communication device will not perform the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface main bundling group on this end, so as to avoid the problem of erroneous creation of the service interface.
[0142] In the technical solution provided by this embodiment, the first communication device that receives the service interface configuration information for the target protocol interface bundling group actively initiates the service interface creation process, and after obtaining the time slot resource information on the first communication device side and the time slot resource information on the second communication device side corresponding to the target protocol bundling group, determines the interface time slot pre-selection result according to the service interface configuration information, the time slot resource information on the first communication device side and the time slot resource information on the second communication device side, and sends it to the second communication device. After the second communication device receives the interface time slot pre-selection result, it executes the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group, and feeds back the creation execution result to the first communication device. If the first communication device determines that the second communication device has completed the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group, then the creation operation of the service interface that matches the interface time slot pre-selection result is performed on this end for the target protocol interface bundling group, thereby realizing the self-negotiated dynamic creation of the service interface in the target protocol interface bundling group between the first communication device and the second communication device, overcoming the problem in the prior art that the operation and maintenance work is complicated, tedious, error-prone, and affects equipment docking due to manual configuration of massive time slots, reducing the operation and maintenance costs, improving the operation and maintenance efficiency, and the usability and reliability of the time slot bundling service interface technology.
[0143] In one example, the second communication device receives the interface time slot pre-selection result sent by the first communication device, which may be specifically:
[0144] Receiving a service interface negotiation request message encapsulating an interface time slot pre-selection result and sent by the first communication device;
[0145] Correspondingly, the second communication device executes a creation operation of a service interface matching the interface time slot pre-selection result for the target protocol interface bundling group, and feeds back the creation execution result to the first communication device, which may be specifically:
[0146] Feedback a service interface negotiation request response message to the first communication device in response to the service interface negotiation request message, wherein the service interface negotiation request response message indicates whether the local resources of the second communication device meet the interface time slot pre-selection result;
[0147] If a service interface creation message is received from the first communication device, a service interface creation operation matching the interface time slot pre-selection result is performed for the target protocol interface bundling group, and the creation execution result is sent to the first communication device via a service interface creation response message fed back to the service interface creation message.
[0148] It is worth pointing out that in the creation phase of the service interface, the negotiation messages between the first communication device and the second communication device can all be sent based on the target protocol interface bundle group. Taking the target protocol interface bundle group as FlexE Group as an example, these negotiation messages can all be encapsulated in the Section layer management channel field of the FlexE overhead frame structure and sent based on FlexEGroup.
[0149] For details not explained in this embodiment, please refer to the aforementioned embodiment and will not be repeated here.
[0150] In a specific embodiment, Figure 3 The following is a flow chart of a method for creating a business interface provided by this application. Figure 3 As shown, the present application provides a method for creating a business interface, which specifically includes:
[0151] S310. The first communication device receives service interface configuration information for a target protocol interface bundling group, and obtains first communication device-side time slot resource information and second communication device-side time slot resource information corresponding to the target protocol interface bundling group.
[0152] The first communication device establishes a communication connection with the second communication device.
[0153] S320: If the service interface configuration information includes the implementation time slot granularity, and the implementation time slot granularity is different from the default time slot granularity, the first communication device sends the implementation time slot granularity to the second communication device.
[0154] S330. The second communication device receives the implementation time slot granularity sent by the first communication device, performs a time slot division switching operation matching the implementation time slot granularity for the target protocol interface bundling group, and feeds back the switching execution result to the first communication device.
[0155] S340. If the first communication device determines that the second communication device has completed the time slot division switching operation matching the implementation time slot granularity for the target protocol interface bundling group, the local end performs the time slot division switching operation matching the implementation time slot granularity for the target protocol interface bundling group.
[0156] S350. The first communication device determines the intersection of unused interface time slots corresponding to the first communication device, the second communication device and the target protocol interface bundling group based on the time slot resource information of the first communication device and the time slot resource information of the second communication device.
[0157] S360. The first communication device determines an interface time slot pre-selection result in the intersection of unused interface time slots according to the expected value of the service interface bandwidth and the time slot allocation strategy, and sends the interface time slot pre-selection result to the second communication device.
[0158] S370. The second communication device receives the interface time slot pre-selection result sent by the first communication device, executes a creation operation of a service interface matching the interface time slot pre-selection result for the target protocol interface bundling group, and feeds back the creation execution result to the first communication device.
[0159] S380. If the first communication device determines that the second communication device has completed the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group, the first communication device performs the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group.
[0160] At this point, the negotiation and creation of a service interface for the target protocol interface binding group between the first communication device and the second communication device is completed.
[0161] For details not explained in this embodiment, please refer to the aforementioned embodiment and will not be repeated here.
[0162] The present application also provides a specific implementation method. In this implementation method, a flexible configuration module (virtual function module) can be configured on device A and device B, which is responsible for implementing dynamic negotiation and creation of service interfaces on the target protocol interface bundle group, and starts loading the virtual function module after the device is powered on.
[0163] Assume that device A has physical interfaces 1, 2, and 3, and device B has physical interfaces 1, 2, and 3, all of which are 100G ports and are in FlexE working mode, with two interfaces directly connected. Create a target protocol interface bundling group FlexE Group_A on device A, and add physical interfaces 1, 2, and 3 to FlexE Group_A; create a target protocol interface bundling group FlexEGroup_B on device B, and add physical interfaces 1, 2, and 3 to FlexE Group_B. When each interface is added to the target protocol interface bundling group, it is divided according to the 5G time slot recommended by the standard.
[0164] The target protocol interface binding groups at both ends of the link are the target protocol interface master binding group at one end and the target protocol interface slave binding group at the other end. In this embodiment, the user selects FlexE Group_A as the target protocol interface master binding group and FlexE Group_B as the target protocol interface slave binding group.
[0165] The user performs simplified configuration of the service interface based on FlexE Group_A: 1) The expected implementation time slot granularity is configured to 1G; 2) It is expected to create 20 FlexE Client interfaces with a bandwidth of 10G; 3) The time slot allocation policy of each FlexE Client interface is cross-physical port allocation to play a link protection function.
[0166] After receiving the service interface configuration information simply configured by the user, device A begins to enter the active negotiation process. Among them, all negotiation messages between device A and device B are encapsulated in the Section layer management channel field of the FlexE overhead frame structure and sent based on the FlexE Group. As the two ends of the bundled link, FlexE Group_A and FlexE Group_B have the same FlexE Group Number information. When sending messages, the sender fills the FlexE Group Number information into the fixed field FlexE Group Number in the overhead frame structure, and the receiver reversely queries the local FlexE Group for processing based on the FlexE Group Number information. It is worth pointing out that the key information of all negotiation messages between device A and device B can be based on the existing control plane protocol such as LLDP (Link Layer Discovery Protocol) to add corresponding negotiation information, or it can be a new control plane protocol.
[0167] First, device A and device B negotiate the timeslot granularity of the physical ports in the FlexE Group.
[0168] like Figure 4 As shown, the present application provides a negotiation method for implementing time slot granularity, specifically including:
[0169] S410 , device A sends a timeslot negotiation request message to device B, requesting the opposite end FlexE Group_B to configure the physical ports in the group according to the expected timeslot granularity 1G.
[0170] The key information carried in the time slot negotiation request message may be shown in Table 1.
[0171] Table 1
[0172] Key Information illustrate Message carrying value Message Type Timeslot Negotiation Request Message 0x01 Desired implementation time slot granularity Desired time slot granularity of the physical port 1G Negotiate Sequence Number Used to identify this negotiation. When a new negotiation is restarted, the sequence number is incremented. 0x0001
[0173] S420, after receiving the time slot negotiation request message, device B finds the local FlexE Group_B through the fixed field FlexEGroup Number of the overhead frame structure, and pre-determines whether the time slot division can be performed with the desired implementation time slot granularity according to the time slot division capability of all physical ports in FlexE Group_B. Assume that, after checking and confirming the resources of device B, all physical ports in FlexE Group_B can support 1G time slot granularity division.
[0174] S430. Device B agrees to the content of this negotiation based on the pre-judgment result and sends a time slot negotiation request response message.
[0175] The key information carried in the time slot negotiation request response message may be as shown in Table 2.
[0176] Table 2
[0177]
[0178]
[0179] S440: Device A receives the time slot negotiation request response message, confirms that it is carried successfully, and immediately sends a time slot switching message to trigger actual switching of the time slot.
[0180] The key information carried in the timeslot switching message may be shown in Table 3.
[0181] Table 3
[0182] Key Information illustrate Message carrying value Message Type Timeslot switching message 0x03 Implementing time slot granularity Requires the physical ports in the bundle group to divide the time slots according to the required time slot granularity 1G Negotiate Sequence Number The sequence number in the same-slot negotiation request response message 0x0001
[0183] S450, device B receives the time slot switching message and checks whether the negotiation sequence number is consistent with the negotiation sequence number of the time slot negotiation request response message sent most recently. If they are consistent, it means that the negotiation content has been agreed before, and all physical ports in FlexE Group_B are immediately re-divided into time slots of 1G granularity.
[0184] S460 , device B successfully re-divides the time slots of all physical ports in FlexE Group_B and immediately sends a time slot switching response message.
[0185] The key information carried in the timeslot switching response message may be as shown in Table 4.
[0186] Table 4
[0187] Key Information illustrate Message carrying value Message Type Timeslot switch response message 0x04 Implementing time slot granularity Requires the physical ports in the bundle group to divide the time slots according to the required time slot granularity 1G Negotiate Sequence Number The sequence number in the slot switching request message 0x0001 Switch Result Success state or failure state Success Status
[0188] S470: Device A receives the timeslot switching response message and confirms that it carries a success status, indicating that the timeslot switching of device B has been successful. The timeslot of local FlexE Group_A is immediately switched, and all physical ports are divided into timeslot granularities according to 1G.
[0189] At this point, the time slot granularity of the physical ports in the two-end bundling group on device A and device B is switched successfully, and the physical link is divided according to the desired implementation time slot granularity.
[0190] In the above process, if the FlexE Group_B negotiation of device B fails and the time slot switching fails, the device A side may give a prompt message "Both ends of the link do not support the time slot granularity negotiation". The user can reconfigure the expected implementation time slot granularity value based on the supported time slot granularity division capability list sent back by the device B side and the time slot granularity division capability list of the device A side; if the message response of the device B side times out, the device A side allocates a new negotiation sequence number and re-initiates a time slot switching negotiation.
[0191] Next, device A and device B start calculating and maintaining time slot resources. A single time slot resource is represented by (PHY Number, Slot Number), where PHY Number indicates the physical port number in the FlexE Group, which is configured when the FlexE Group is established, and Slot Number indicates the time slot number in the physical port, which is allocated when the time slot is divided.
[0192] Specifically, device A calculates the time slot resources based on FlexE Group_A:
[0193] The local time slot resource table includes: an unused time slot list, a used time slot list, and an unusable time slot list. The local time slot resource table can be generated based on the local physical port time slot resource information.
[0194] The remote time slot resource table includes: unused time slot list, used time slot list and unusable time slot list. The remote time slot resource table can be extracted based on the calendar information in the overhead frame structure received from the bottom layer. The extraction method is based on the definition of the client calendar in the overhead frame. For example, if the client calendar of a slot is marked as 0x0000, it means it is not used. If the client calendar of a slot is marked as 0xFFFF, it means it cannot be used. The specific reason may be bandwidth limitation. If the client calendar of a slot is marked as other values, it means it has been occupied by other FlexE Client interfaces. For details, please refer to the OIF FlexE standard.
[0195] Assume that the local time slot resource table and the remote time slot resource table obtained by device A are shown in Table 5.
[0196] Table 5
[0197]
[0198]
[0199] At the same time, device B calculates the timeslot resources based on FlexE Group_B:
[0200] The local time slot resource table includes: an unused time slot list, a used time slot list, and an unusable time slot list. The local time slot resource table can be generated based on the local physical port time slot resource information.
[0201] Assume that the local time slot resource table obtained by device B is as shown in Table 6.
[0202] Table 6
[0203]
[0204] Next, device A continues to act as the active party to trigger the dynamic negotiation and creation of the FlexE Client interface, so that a series of FlexE Client interfaces are created on both ends of device A and B according to user expectations.
[0205] like Figure 5 As shown, the present application provides a method for creating a FlexE Client interface, which specifically includes:
[0206] S510: Device A reads the FlexE Client interface configuration information configured by the user, including the bandwidth, quantity, and time slot allocation strategy of the FlexE Client interface to be created.
[0207] As shown above, it is expected that 20 FlexE Client interfaces with a bandwidth of 10G will be created, and the timeslot allocation policy of each FlexE Client interface is allocation across physical ports.
[0208] Next, we will create the first 10G FlexE Client interface. The number of timeslots required for a 10G FlexE Client interface is 10G bandwidth / 1G timeslot granularity, so we need to select 10 timeslots.
[0209] S520. Device A selects an unused time slot list in the FlexE Group_A time slot resource table and an unused time slot list in the FlexE Group_B remote time slot resource table according to the cross-physical port allocation policy, and allocates Client ID information as the FlexE Client interface identifier created at both ends.
[0210] S530: Device A sends a service interface negotiation request message.
[0211] The key information carried in the service interface negotiation request message may be as shown in Table 7.
[0212] Table 7
[0213]
[0214] S540. Device B receives the service interface negotiation request message, finds the local FlexE Group_B through the fixed field FlexEGroup Number of the overhead frame structure, determines whether it is allowed to create a new FlexE Client with the desired time slot combination according to the local time slot resource table information of FlexE Group_B, and determines whether the Client ID is not occupied by other FlexE Clients.
[0215] Assume that device B determines that local time slot resources allow creating a new FlexE Client with the desired time slot combination, and the Client ID is not occupied by other FlexE Clients.
[0216] S550: Device B agrees to the content of this negotiation and sends a service interface negotiation request response message.
[0217] The key information carried in the service interface negotiation request response message may be as shown in Table 8.
[0218] Table 8
[0219]
[0220]
[0221] S560: Device A receives the service interface negotiation request response message carrying a success status, and then sends a service interface creation message to device B.
[0222] The key information carried in the service interface creation message may be as shown in Table 9.
[0223] Table 9
[0224]
[0225] S570. Device B receives the service interface creation message and verifies whether the negotiation sequence number carried in the message is consistent with the negotiation sequence number of the service interface negotiation request response message that was sent most recently. If they are consistent, the device immediately starts to create a FlexE Client interface that corresponds to the specified Client ID. The FlexE Shim logic layer of the underlying chip is configured, the Client calendar information is updated, and the Client calendar of the allocated Slot is modified from 0x0000 to the Client ID, indicating that the customer traffic corresponding to the Client ID is transmitted in these time slots.
[0226] S580: After the FlexE Client interface is created, device B sends a service interface creation response message to device A.
[0227] The key information carried in the service interface creation response message may be as shown in Table 10.
[0228] Table 10
[0229]
[0230]
[0231] S590. Device A receives the service interface creation response message carrying a success status, and then starts to create a FlexE Client interface locally. The FlexE Client interface corresponds to the specified Client ID, configures the FlexE Shim logic layer of the underlying chip, updates the Client calendar information, and changes the Client calendar of the allocated Slot from 0x0000 to the Client ID, indicating that the customer traffic corresponding to the Client ID is transmitted in these time slots.
[0232] At this point, the first pair of 10G FlexE Client interfaces are created on device A and device B. Repeat the steps from S520 to S590 until all 20 10G FlexE Client interfaces are successfully created.
[0233] At this point, the dynamic negotiation and creation process of the dual-ended FlexE Client interface is completed.
[0234] This embodiment also provides a device for creating a service interface. Figure 6 This is a schematic diagram of the structure of a device for creating a business interface provided by this application. Figure 6 As shown, a device for creating a service interface applied to a first communication device provided in an embodiment of the present application can be implemented by software and / or hardware and integrated in the communication device. The device includes: a time slot resource information acquisition module 610, an interface time slot pre-selection result determination module 620, an interface time slot pre-selection result sending module 630 and a service interface creation module 640.
[0235] in,
[0236] The time slot resource information acquisition module 610 is configured to receive the service interface configuration information for the target protocol interface bundle group, and then obtain the time slot resource information of the first communication device end and the time slot resource information of the second communication device end corresponding to the target protocol interface bundle group; wherein the first communication device establishes a communication connection with the second communication device;
[0237] The interface time slot pre-selection result determination module 620 is configured to determine the interface time slot pre-selection result according to the service interface configuration information, the first communication device end time slot resource information and the second communication device end time slot resource information;
[0238] An interface time slot pre-selection result sending module 630 is configured to send the interface time slot pre-selection result to a second communication device, wherein the interface time slot pre-selection result is used by the second communication device to perform a service interface creation operation for the target protocol interface bundling group;
[0239] The service interface creation module 640 is configured to execute a service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group if it is determined that the second communication device has completed the service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group.
[0240] In the technical solution provided by this embodiment, the first communication device that receives the service interface configuration information for the target protocol interface bundling group actively initiates the service interface creation process, and after obtaining the time slot resource information on the first communication device side and the time slot resource information on the second communication device side corresponding to the target protocol bundling group, determines the interface time slot pre-selection result according to the service interface configuration information, the time slot resource information on the first communication device side and the time slot resource information on the second communication device side, and sends it to the second communication device. After the second communication device receives the interface time slot pre-selection result, it executes the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group, and feeds back the creation execution result to the first communication device. If the first communication device determines that the second communication device has completed the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group, then the creation operation of the service interface that matches the interface time slot pre-selection result is performed on this end for the target protocol interface bundling group, thereby realizing the self-negotiated dynamic creation of the service interface in the target protocol interface bundling group between the first communication device and the second communication device, overcoming the problem in the prior art that the operation and maintenance work is complicated, tedious, error-prone, and affects equipment docking due to manual configuration of massive time slots, reducing the operation and maintenance costs, improving the operation and maintenance efficiency, and the usability and reliability of the time slot bundling service interface technology.
[0241] Furthermore, the above-mentioned device also includes: a time slot division negotiation module, which is configured to, before determining the interface time slot pre-selection result based on the service interface configuration information, the time slot resource information on the first communication device side and the time slot resource information on the second communication device side, if the service interface configuration information includes an implementation time slot granularity, and the implementation time slot granularity is different from the default time slot granularity, then send the implementation time slot granularity to the second communication device, and the implementation time slot granularity is used to instruct the second communication device to perform time slot division switching for the target protocol interface bundling group; if it is determined that the second communication device has completed the time slot division switching operation that matches the implementation time slot granularity for the target protocol interface bundling group, then perform the time slot division switching operation that matches the implementation time slot granularity for the target protocol interface bundling group.
[0242] Furthermore, the time slot division negotiation module is also configured to execute a reconfiguration prompt operation of the implementation time slot granularity according to the time slot granularity support information fed back by the second communication device if it is determined that the second communication device has not completed the time slot division switching operation that matches the implementation time slot granularity for the target protocol interface bundling group.
[0243] Furthermore, the service interface configuration information includes at least an expected value of service interface bandwidth and a time slot allocation strategy; correspondingly, the interface time slot pre-selection result determination module 620 is specifically configured to determine the intersection of unused interface time slots corresponding to the first communication device and the second communication device and the target protocol interface bundling group based on the time slot resource information on the first communication device side and the time slot resource information on the second communication device side; and determine the interface time slot pre-selection result in the intersection of unused interface time slots based on the expected value of service interface bandwidth and the time slot allocation strategy.
[0244] In one example, the interface time slot pre-selection result sending module 630 is specifically configured to send the interface time slot pre-selection result to the second communication device via a service interface negotiation request message;
[0245] Correspondingly, the service interface creation module 640 is specifically configured to receive a service interface negotiation request response message fed back by the second communication device in response to the service interface negotiation request message; if the service interface negotiation request response message indicates that the local resources of the second communication device meet the interface time slot pre-selection result, then send a service interface creation message to the second communication device, and the service interface creation message is used to instruct the second communication device to perform a service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group; receive a service interface creation response message fed back by the second communication device in response to the service interface creation message; if the service interface creation response message indicates that the second communication device has completed the service interface creation operation for the target protocol interface bundling group, then determine that the second communication device has completed the service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group.
[0246] In one example, the target protocol interface bundling group includes: a Flexible Ethernet FlexE group; and the service interface includes: a FlexE Client interface.
[0247] The device for creating a service interface applied in a first communication device provided in this embodiment is used to implement the method for creating a service interface applied in a first communication device as described in the embodiment of the present application. The implementation principle and technical effect of the device for creating a service interface applied in a first communication device provided in this embodiment are similar to those of the method for creating a service interface applied in a first communication device as described in the embodiment of the present application, and are not repeated here.
[0248] This embodiment also provides a device for creating a service interface. Figure 7 This is a schematic diagram of the structure of a device for creating a business interface provided by this application. Figure 7 As shown, the service interface creation device applied to the second communication device provided in the embodiment of the present application can be implemented by software and / or hardware and integrated in the communication device, and the device includes: an interface time slot pre-selection result receiving module 710 and a service interface creation module 720. Among them,
[0249] The interface time slot pre-selection result receiving module 710 is configured to receive the interface time slot pre-selection result sent by the first communication device; wherein the interface time slot pre-selection result is determined by the first communication device according to the received service interface configuration information for the target protocol interface bundling group, and the first communication device-side time slot resource information and the second communication device-side time slot resource information corresponding to the target protocol interface bundling group, and the first communication device establishes a communication connection with the second communication device;
[0250] The service interface creation module 720 is configured to execute a service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group, and feed back the creation execution result to the first communication device; wherein the creation execution result is used by the first communication device to execute a service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group when it determines that the second communication device has completed the service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group.
[0251] In the technical solution provided by this embodiment, the first communication device that receives the service interface configuration information for the target protocol interface bundling group actively initiates the service interface creation process, and after obtaining the time slot resource information on the first communication device side and the time slot resource information on the second communication device side corresponding to the target protocol bundling group, determines the interface time slot pre-selection result according to the service interface configuration information, the time slot resource information on the first communication device side and the time slot resource information on the second communication device side, and sends it to the second communication device. After the second communication device receives the interface time slot pre-selection result, it executes the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group, and feeds back the creation execution result to the first communication device. If the first communication device determines that the second communication device has completed the creation operation of the service interface that matches the interface time slot pre-selection result for the target protocol interface bundling group, then the creation operation of the service interface that matches the interface time slot pre-selection result is performed on this end for the target protocol interface bundling group, thereby realizing the self-negotiated dynamic creation of the service interface in the target protocol interface bundling group between the first communication device and the second communication device, overcoming the problem in the prior art that the operation and maintenance work is complicated, tedious, error-prone, and affects equipment docking due to manual configuration of massive time slots, reducing the operation and maintenance costs, improving the operation and maintenance efficiency, and the usability and reliability of the time slot bundling service interface technology.
[0252] Furthermore, the above-mentioned device also includes: a time slot division negotiation module, which is configured to receive the implementation time slot granularity sent by the first communication device before receiving the interface time slot pre-selection result sent by the first communication device; wherein the implementation time slot granularity is sent by the first communication device when it is determined that the service interface configuration information includes the implementation time slot granularity and the implementation time slot granularity is different from the default time slot granularity; executing a time slot division switching operation matching the implementation time slot granularity for the target protocol interface bundling group, and feeding back the switching execution result to the first communication device; wherein the switching execution result is used for the first communication device to execute a time slot division switching operation matching the implementation time slot granularity for the target protocol interface bundling group when it is determined that the second communication device has completed the time slot division switching operation matching the implementation time slot granularity for the target protocol interface bundling group.
[0253] Furthermore, the time slot division negotiation module is also configured to feed back the time slot granularity support information of the second communication device together with the switching execution result to the first communication device if the switching execution result indicates that the second communication device has not completed the time slot division switching operation that matches the implementation time slot granularity for the target protocol interface bundling group; wherein the time slot granularity support information is used to instruct the first communication device to perform the reconfiguration prompt operation of the implementation time slot granularity.
[0254] In one example, the interface time slot pre-selection result receiving module 710 is specifically configured to receive a service interface negotiation request message encapsulating the interface time slot pre-selection result and sent by the first communication device;
[0255] Correspondingly, the service interface creation module 720 is specifically configured to feedback a service interface negotiation request response message to the first communication device in response to the service interface negotiation request message, wherein the service interface negotiation request response message indicates whether the local resources of the second communication device meet the interface time slot pre-selection result; if a service interface creation message sent by the first communication device is received, a service interface creation operation matching the interface time slot pre-selection result is performed for the target protocol interface bundling group, and the creation execution result is sent to the first communication device via a service interface creation response message fed back to the service interface creation message.
[0256] In one example, the target protocol interface bundling group includes: a FlexE group; the service interface includes: a FlexEClient interface.
[0257] The device for creating a service interface applied to a second communication device provided in this embodiment is used to implement the method for creating a service interface applied to a second communication device as described in the embodiment of the present application. The implementation principle and technical effect of the device for creating a service interface applied to a second communication device provided in this embodiment are similar to those of the method for creating a service interface applied to a second communication device as described in the embodiment of the present application, and are not repeated here.
[0258] The present application also provides a system for creating a business interface. Figure 8 This is a schematic diagram of the structure of a business interface creation system provided by this application. Figure 8 As shown, a service interface creation system provided in an embodiment of the present application includes: a first communication device 810 and a second communication device 820.
[0259] The first communication device 810 and the second communication device 820 establish a communication connection, for example, they may be directly connected through a physical interface via a plurality of optical fibers 830 .
[0260] The first communication device 810 executes the method for creating a service interface applied to the first communication device as described in any embodiment of the present application;
[0261] The second communication device 820 executes the method for creating a service interface applied in the second communication device as described in any embodiment of the present application.
[0262] For details not explained in this embodiment, please refer to the aforementioned embodiment and will not be repeated here.
[0263] The present application embodiment provides a communication device, Fig. 9 A schematic diagram of the structure of a communication device provided in this application, such as Fig. 9 As shown, the communication device provided by the present application includes: one or more processors 910 and a memory 920; the processor 910 of the communication device may be one or more, Fig. 9 A processor 910 is taken as an example; the memory 920 is used to store one or more programs; the one or more programs are executed by the one or more processors 910, so that the one or more processors 910 implement the method for creating a service interface applied to the first communication device as described in the embodiment of the present invention.
[0264] The processor 910 and the memory 920 in the communication device may be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.
[0265] The memory 920, as a computer-readable storage medium, can be configured to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the method for creating a service interface in the first communication device as described in the embodiment of the present application (for example, the time slot resource information acquisition module 610, the interface time slot pre-selection result determination module 620, the interface time slot pre-selection result sending module 630 and the service interface creation module 640 in the device for creating the service interface in the first communication device). The memory 920 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 920 may further include a memory remotely arranged relative to the processor 910, and these remote memories may be connected to the communication node via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0266] The present application embodiment provides a communication device, Fig.10 A schematic diagram of the structure of a communication device provided in this application, such as Fig.10 As shown, the communication device provided by the present application includes: one or more processors 1010 and a memory 1020; the processor 1010 of the communication device may be one or more, Fig.10 A processor 1010 is taken as an example; the memory 1020 is used to store one or more programs; the one or more programs are executed by the one or more processors 1010, so that the one or more processors 1010 implement the method for creating a service interface applied to the second communication device as described in the embodiment of the present invention.
[0267] The processor 1010 and the memory 1020 in the communication device may be connected via a bus or other means. Fig.10 The example of connecting through bus is taken in the following.
[0268] The memory 1020, as a computer-readable storage medium, may be configured to store software programs, computer executable programs, and modules, such as program instructions / modules corresponding to the method for creating a service interface in the second communication device as described in the embodiment of the present application (for example, the interface time slot pre-selection result receiving module 710 and the service interface creation module 720 in the device for creating a service interface in the second communication device). The memory 1020 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 1020 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 1020 may further include a memory remotely arranged relative to the processor 1010, and these remote memories may be connected to the communication node via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0269] An embodiment of the present application also provides a storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the method for creating a service interface applied to a first communication device described in the embodiment of the present application, or implements the method for creating a service interface applied to a second communication device described in the embodiment of the present application.
[0270] The method for creating a service interface applied to the first communication device includes:
[0271] Receiving service interface configuration information for a target protocol interface bundling group, obtaining time slot resource information of a first communication device end and time slot resource information of a second communication device end corresponding to the target protocol interface bundling group; wherein the first communication device establishes a communication connection with the second communication device;
[0272] Determine the interface time slot pre-selection result according to the service interface configuration information, the time slot resource information of the first communication device end, and the time slot resource information of the second communication device end;
[0273] Sending the interface time slot pre-selection result to the second communication device, wherein the interface time slot pre-selection result is used by the second communication device to perform a service interface creation operation for the target protocol interface bundling group;
[0274] If it is determined that the second communication device has completed the creation operation of the service interface matching the interface time slot pre-selection result for the target protocol interface bundling group, the creation operation of the service interface matching the interface time slot pre-selection result is performed for the target protocol interface bundling group.
[0275] A method for creating a service interface applied to a second communication device, comprising:
[0276] Receive an interface time slot pre-selection result sent by a first communication device; wherein the interface time slot pre-selection result is determined by the first communication device according to the received service interface configuration information for the target protocol interface bundling group, and the first communication device-side time slot resource information and the second communication device-side time slot resource information corresponding to the target protocol interface bundling group, and the first communication device establishes a communication connection with the second communication device;
[0277] A creation operation of a service interface matching the interface time slot pre-selection result is performed for the target protocol interface bundling group, and the creation execution result is fed back to the first communication device; wherein, the creation execution result is used by the first communication device to perform a creation operation of a service interface matching the interface time slot pre-selection result for the target protocol interface bundling group when it is determined that the second communication device has completed the creation operation of the service interface matching the interface time slot pre-selection result for the target protocol interface bundling group.
[0278] Optionally, when executed by a computer processor, the computer executable instructions can also be used to implement any method for creating a service interface applied to a first communication device as described in the embodiments of the present application, or to implement any method for creating a service interface applied to a second communication device as described in the embodiments of the present application.
[0279] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the present application can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a communication device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0280] It is worth noting that in the above-mentioned embodiment of the device for creating a service interface in the first communication device, or the device for creating a service interface in the second communication device, the various units and modules included are divided only according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0281] The above description is merely an exemplary embodiment of the present application and is not intended to limit the protection scope of the present application.
[0282] In general, various embodiments of the present application can be implemented in hardware or dedicated circuits, software, logic or any combination thereof. For example, some aspects can be implemented in hardware, while other aspects can be implemented in firmware or software that can be executed by a controller, microprocessor or other computing device, although the present application is not limited thereto.
[0283] Embodiments of the present application may be implemented by executing computer program instructions by a data processor of a mobile device, for example in a processor entity, or by hardware, or by a combination of software and hardware. The computer program instructions may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages.
[0284] The block diagram of any logic flow in the accompanying drawings of the present application can represent program steps, or can represent interconnected logic circuits, modules and functions, or can represent a combination of program steps and logic circuits, modules and functions. The computer program can be stored on a memory. The memory can have any type suitable for the local technical environment and can be implemented using any suitable data storage technology, such as but not limited to read-only memory (ROM), random access memory (RAM), optical memory device and system (digital versatile disc DVD or CD disc), etc. Computer-readable media may include non-transient storage media. The data processor can be any type suitable for the local technical environment, such as but not limited to a general-purpose computer, a special-purpose computer, a microprocessor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a programmable logic device (FGPA) and a processor based on a multi-core processor architecture.
[0285] By way of exemplary and non-limiting examples, a detailed description of exemplary embodiments of the present application has been provided above. However, various modifications and adjustments to the above embodiments will be apparent to those skilled in the art when considered in conjunction with the accompanying drawings and claims, but will not depart from the scope of the present invention. Therefore, the proper scope of the present invention will be determined according to the claims.
Claims
1. A method for creating a business interface, characterized in that: Applied to a first communication device, comprising: Receive the service interface configuration information for the target protocol interface bundling group, and then obtain the first communication device-side time slot resource information and the second communication device-side time slot resource information corresponding to the target protocol interface bundling group; wherein the first communication device establishes a communication connection with the second communication device; wherein the first communication device-side time slot resource information includes a list of unused time slots, a list of used time slots, and a list of unusable time slots in the target protocol interface bundling group on the first communication device side; the second communication device-side time slot resource information includes a list of unused time slots, a list of used time slots, and a list of unusable time slots in the target protocol interface bundling group on the second communication device side; Determine the interface time slot pre-selection result according to the service interface configuration information, the time slot resource information of the first communication device end, and the time slot resource information of the second communication device end; Sending the interface time slot pre-selection result to the second communication device, wherein the interface time slot pre-selection result is used by the second communication device to perform a service interface creation operation for the target protocol interface bundling group; If it is determined that the second communication device has completed the creation operation of the service interface matching the interface time slot pre-selection result for the target protocol interface bundling group, the creation operation of the service interface matching the interface time slot pre-selection result is performed for the target protocol interface bundling group.
2. The method according to claim 1, characterized in that Before determining the interface time slot pre-selection result according to the service interface configuration information, the first communication device end time slot resource information and the second communication device end time slot resource information, the method further includes: If the service interface configuration information includes an implementation time slot granularity, and the implementation time slot granularity is different from the default time slot granularity, the implementation time slot granularity is sent to the second communication device, and the implementation time slot granularity is used to instruct the second communication device to perform time slot division switching for the target protocol interface bundling group; If it is determined that the second communication device has completed the time slot division switching operation matching the implementation time slot granularity for the target protocol interface binding group, a time slot division switching operation matching the implementation time slot granularity is performed for the target protocol interface binding group.
3. The method according to claim 2, characterized in that Also includes: If it is determined that the second communication device has not completed the time slot division switching operation matching the implementation time slot granularity for the target protocol interface bundling group, a reconfiguration prompt operation of the implementation time slot granularity is performed according to the time slot granularity support information fed back by the second communication device.
4. The method according to claim 1, characterized in that: The service interface configuration information at least includes the service interface bandwidth expectation value and time slot allocation strategy; Determining an interface time slot pre-selection result according to the service interface configuration information, the time slot resource information of the first communication device end, and the time slot resource information of the second communication device end, including: Determine, according to the time slot resource information of the first communication device end and the time slot resource information of the second communication device end, an intersection of unused interface time slots corresponding to the first communication device and the second communication device and the target protocol interface bundling group; The interface time slot pre-selection result is determined in the intersection of the unused interface time slots according to the expected value of the service interface bandwidth and the time slot allocation strategy.
5. The method according to claim 1, characterized in that Sending the interface time slot pre-selection result to the second communication device includes: Sending the interface time slot pre-selection result to the second communication device via a service interface negotiation request message; Determining that the second communication device has completed a creation operation of a service interface matching the interface time slot pre-selection result for the target protocol interface bundling group includes: receiving a service interface negotiation request response message fed back by the second communication device in response to the service interface negotiation request message; If the service interface negotiation request response message indicates that the local resources of the second communication device meet the interface time slot pre-selection result, a service interface creation message is sent to the second communication device, and the service interface creation message is used to instruct the second communication device to perform a service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group; Receiving a service interface creation response message fed back by the second communication device in response to the service interface creation message; If the service interface creation response message indicates that the second communication device has completed the service interface creation operation for the target protocol interface bundling group, it is determined that the second communication device has completed the service interface creation operation for the target protocol interface bundling group that matches the interface timeslot pre-selection result.
6. The method according to claim 1, characterized in that The target protocol interface bundling group includes: a Flexible Ethernet FlexE group; the service interface includes: a FlexE client interface.
7. A method for creating a business interface, characterized in that: Applied to a second communication device, comprising: Receive the interface time slot pre-selection result sent by the first communication device; wherein the interface time slot pre-selection result is determined by the first communication device according to the received service interface configuration information for the target protocol interface bundling group, and the first communication device-side time slot resource information and the second communication device-side time slot resource information corresponding to the target protocol interface bundling group, and the first communication device establishes a communication connection with the second communication device; wherein the first communication device-side time slot resource information includes a list of unused time slots, a list of used time slots, and a list of unusable time slots in the target protocol interface bundling group on the first communication device side; the second communication device-side time slot resource information includes a list of unused time slots, a list of used time slots, and a list of unusable time slots in the target protocol interface bundling group on the second communication device side; A creation operation of a service interface matching the interface time slot pre-selection result is performed for the target protocol interface bundling group, and the creation execution result is fed back to the first communication device; wherein, the creation execution result is used by the first communication device to perform a creation operation of a service interface matching the interface time slot pre-selection result for the target protocol interface bundling group when it is determined that the second communication device has completed the creation operation of the service interface matching the interface time slot pre-selection result for the target protocol interface bundling group.
8. The method according to claim 7, characterized in that Before receiving the interface time slot pre-selection result sent by the first communication device, the method further includes: Receiving the implementation time slot granularity sent by the first communication device; wherein the implementation time slot granularity is sent by the first communication device when determining that the service interface configuration information includes the implementation time slot granularity and the implementation time slot granularity is different from the default time slot granularity; A time slot division switching operation matching the implementation time slot granularity is performed for the target protocol interface bundling group, and the switching execution result is fed back to the first communication device; wherein, the switching execution result is used by the first communication device to perform a time slot division switching operation matching the implementation time slot granularity for the target protocol interface bundling group when it is determined that the second communication device has completed the time slot division switching operation matching the implementation time slot granularity for the target protocol interface bundling group.
9. The method according to claim 8, characterized in that Also includes: If the switching execution result indicates that the second communication device has not completed the time slot division switching operation that matches the implementation time slot granularity for the target protocol interface bundling group, the time slot granularity support information of the second communication device is fed back to the first communication device together with the switching execution result; wherein the time slot granularity support information is used to instruct the first communication device to perform the reconfiguration prompt operation of the implementation time slot granularity.
10. The method according to claim 7, characterized in that Receiving an interface time slot pre-selection result sent by a first communication device, comprising: Receiving a service interface negotiation request message encapsulating an interface time slot pre-selection result and sent by the first communication device; Executing a creation operation of a service interface matching the interface time slot pre-selection result for the target protocol interface bundling group, and feeding back the creation execution result to the first communication device, including: Feedback a service interface negotiation request response message to the first communication device in response to the service interface negotiation request message, wherein the service interface negotiation request response message indicates whether the local resources of the second communication device meet the interface time slot pre-selection result; If a service interface creation message is received from the first communication device, a service interface creation operation matching the interface time slot pre-selection result is performed for the target protocol interface bundling group, and the creation execution result is sent to the first communication device via a service interface creation response message fed back to the service interface creation message.
11. The method according to claim 7, characterized in that The target protocol interface bundling group includes: a FlexE group; the service interface includes: a FlexE Client interface.
12. A device for creating a business interface, characterized in that: Applied to a first communication device, comprising: A time slot resource information acquisition module is configured to receive service interface configuration information for a target protocol interface bundling group, and then obtain time slot resource information on a first communication device side and time slot resource information on a second communication device side corresponding to the target protocol interface bundling group; wherein the first communication device establishes a communication connection with the second communication device; wherein the time slot resource information on the first communication device side includes a list of unused time slots, a list of used time slots, and a list of unusable time slots in the target protocol interface bundling group on the first communication device side; and the time slot resource information on the second communication device side includes a list of unused time slots, a list of used time slots, and a list of unusable time slots in the target protocol interface bundling group on the second communication device side; An interface time slot pre-selection result determination module, configured to determine an interface time slot pre-selection result according to the service interface configuration information, the first communication device end time slot resource information, and the second communication device end time slot resource information; An interface time slot pre-selection result sending module, configured to send the interface time slot pre-selection result to a second communication device, wherein the interface time slot pre-selection result is used by the second communication device to perform a service interface creation operation for the target protocol interface bundling group; The service interface creation module is configured to execute a service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group if it is determined that the second communication device has completed the service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group.
13. A device for creating a business interface, characterized in that: Applied to a second communication device, comprising: An interface time slot pre-selection result receiving module is configured to receive an interface time slot pre-selection result sent by a first communication device; wherein the interface time slot pre-selection result is determined by the first communication device based on the received service interface configuration information for the target protocol interface bundling group, and the first communication device-side time slot resource information and the second communication device-side time slot resource information corresponding to the target protocol interface bundling group, and the first communication device establishes a communication connection with the second communication device; wherein the first communication device-side time slot resource information includes a list of unused time slots, a list of used time slots, and a list of unusable time slots in the target protocol interface bundling group on the first communication device side; the second communication device-side time slot resource information includes a list of unused time slots, a list of used time slots, and a list of unusable time slots in the target protocol interface bundling group on the second communication device side; A service interface creation module is configured to execute a service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group, and feed back the creation execution result to the first communication device; wherein the creation execution result is used by the first communication device to execute a service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group when it is determined that the second communication device has completed the service interface creation operation that matches the interface time slot pre-selection result for the target protocol interface bundling group.
14. A system for creating a business interface, characterized in that: include: a first communication device and a second communication device; Wherein, the first communication device and the second communication device establish a communication connection; The first communication setting executes the method for creating a service interface according to any one of claims 1 to 6; The second communication device executes the method for creating a service interface as described in any one of claims 7-11.
15. A communication device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for creating a business interface as described in any one of claims 1-6, or implement the method for creating a business interface as described in any one of claims 7-11.
16. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, it implements the method for creating a business interface as described in any one of claims 1-6, or implements the method for creating a business interface as described in any one of claims 7-10.
Citation Information
Patent Citations
Negotiation method of link capability information, network equipment and communication system
CN102006270A
Link management method and apparatus
CN106803785A