A service channel establishment method, device, electronic device and storage medium

By using the boundary gateway protocol between the controller and the network device and using the link layer discovery protocol interaction between the network device, determining the optimal path and issuing a collection of service information to establish a flexible Ethernet service channel, the problems of high resource consumption and low efficiency are solved, and efficient service channel establishment and resource management are achieved.

CN115695283BActive Publication Date: 2025-04-18BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211321685.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-26
Publication Date
2025-04-18
Estimated Expiration
2042-10-26

AI Technical Summary

Technical Problem

When establishing flexible Ethernet service channels, the existing technology consumes more resources, resulting in inefficiency.

Method used

Through the boundary gateway protocol, interacts between the controller and the network device, and combines the link layer discovery protocol to interact between the network devices, determine the optimal path and issue a collection of service information to establish a service channel.

Benefits of technology

Reduce resource consumption, improve the efficiency of business channel establishment, and simplify the process of business channel deletion and resource recycling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695283B_ABST
    Figure CN115695283B_ABST
Patent Text Reader

Abstract

The present application discloses a service channel establishment method, device, electronic device and storage medium, which are used to reduce resource consumption when establishing a service channel. The present application is based on the inbound port identifier and outbound port identifier corresponding to each network device corresponding to the optimal path; for any network device, the service information set, the inbound port identifier and the outbound port identifier corresponding to the network device are sent to the network device based on the border gateway protocol, so that the network device establishes a service channel with the adjacent device according to the service information set, the inbound port identifier and the outbound port identifier. In the present application, the service information set, the inbound port identifier and the outbound port identifier corresponding to the network device are sent to the network device through the border network management protocol, so that network resources are efficiently utilized, and in the present application, the link layer discovery protocol is used between network devices to interact and establish service channels, which reduces resource consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Flexible Ethernet (FlexE) is an interface technology for bearer networks to achieve service isolation and network slicing. By breaking the one-to-one mapping relationship between the media access control layer (MAC) and the port physical layer (PHY), FlexE achieves flexible and refined management of interface resources, solves the problem of unbalanced network capacity requirements for different customers and services, and provides technical guarantees such as hard pipe isolation, bandwidth on-demand allocation, and low-latency time slot crossing.

[0003] Combined with the time slot crossover feature of FlexE, an end-to-end flexible Ethernet service channel (FlexE Channel) can be established in a wide area network using multiple network elements. In the related art, FlexE Channel is dynamically established based on the general multi-protocol label exchange protocol, but the general multi-protocol label exchange protocol has high performance requirements for network devices, so more resources are consumed when using the general multi-protocol label exchange protocol to establish FlexE Channel. Summary of the invention

[0004] The purpose of the present application is to provide a service channel establishment method, device, electronic device and storage medium, which are used to reduce resource consumption when establishing a service channel.

[0005] In a first aspect, an embodiment of the present application provides a service channel establishment method, which is applied to a controller, and the method includes:

[0006] Determine the optimal path based on the channel bandwidth, the service channel start network device identifier, and the service channel end network device identifier in the service information set;

[0007] Determine the inbound port identifier and the outbound port identifier corresponding to each network device corresponding to the optimal path;

[0008] For any one of the network devices, the service information set, the inbound port identifier and the outbound port identifier corresponding to the network device are sent to the network device based on the border gateway protocol, so that the network device establishes a service channel with an adjacent device based on the service information set, the inbound port identifier and the outbound port identifier.

[0009] In the present application, a border network management protocol is used for interaction between the controller and the network device, and a service information set, an inbound port identifier and an outbound port identifier corresponding to the network device are sent to the network device, so that network resources are efficiently utilized. A link layer discovery protocol is used between network devices to interact and establish service channels, which reduces resource consumption and improves the efficiency of establishing service channels.

[0010] In some possible embodiments, the service information set further includes: a channel identifier, where the channel identifier is used to identify a service channel corresponding to the service information set.

[0011] In some possible embodiments, the method further includes:

[0012] In response to a service channel deletion instruction, determining a channel identifier of a service channel corresponding to the service channel deletion instruction;

[0013] Determine a service information set corresponding to the service channel based on the channel identifier;

[0014] Delete any information or combination in the business information set.

[0015] In the present application, by deleting any information or combination in the business information set, the border gateway protocol will be triggered to synchronize the configuration increment in the network device (that is, any one or combination of the business information set is deleted in the network device), so the connection between the various network devices will be disconnected. There is no need to manually disconnect the connection between the various network devices, which improves the efficiency of disconnecting the business channel and facilitates the recovery of communication resources.

[0016] In some possible embodiments, after deleting any information or combination in the service information set, the method further includes:

[0017] A configuration increment is sent to each of the network devices in the optimal path, so that each of the network devices disconnects a service channel with a corresponding adjacent device after receiving the configuration increment.

[0018] In a second aspect, an embodiment of the present application further provides a service channel establishment method, which is applied to a network device, and the method includes:

[0019] A service information set sent by a receiving controller based on a border gateway protocol, and an inbound port identifier and an outbound port identifier corresponding to the network device; the service information set includes at least: channel bandwidth, service channel start network device identifier, and service channel end network device identifier;

[0020] Receiving the inbound port identifier, the outbound port identifier, the device identifier parameter and the time slot parameter corresponding to each of the adjacent devices sent by the adjacent devices;

[0021] Based on the device identification parameters corresponding to the adjacent devices, the own device identification parameters, the time slot parameters corresponding to the adjacent devices and the own time slot parameters, the input time slot and the output time slot corresponding to the network device are obtained;

[0022] A service channel is established with the adjacent device based on the input time slot, the output time slot, the input port identifier and the output port identifier corresponding to each of the adjacent devices.

[0023] In the present application, the consumption of resources is reduced by interacting with the controller through the border gateway protocol, and the consumption of communication resources is further reduced by interacting with other network devices through the link layer discovery protocol.

[0024] In some possible embodiments, the service information set further includes: a channel identifier, the channel identifier is used to characterize the service channel corresponding to the service information set; after the receiving controller sends the service information set based on the border gateway protocol, and the inbound port identifier and the outbound port identifier corresponding to the network device, the method further includes:

[0025] The channel identifiers corresponding to the adjacent devices are received and sent by the adjacent devices based on the link layer discovery protocol.

[0026] In some possible embodiments, obtaining the input time slot and the output time slot corresponding to the network device based on the device identification parameters corresponding to each of the neighboring devices, the own device identification parameters, the time slot parameters corresponding to each of the neighboring devices, and the own time slot parameters includes:

[0027] Based on the device identification parameters corresponding to the adjacent devices having the same channel identification as the own device, the own device identification parameters, the time slot parameters corresponding to the adjacent devices and the own time slot parameters, the input time slot and the output time slot corresponding to the network device are obtained.

[0028] In some possible embodiments, obtaining the input time slot and the output time slot corresponding to the network device based on the device identification parameters corresponding to each adjacent device having the same channel identification as the own device, the own device identification parameters, the time slot parameters corresponding to each adjacent device, and the own time slot parameters includes:

[0029] The device identification parameter of the device itself is compared with the device identification parameters corresponding to each of the adjacent devices, and based on the comparison result, the input time slot and the output time slot corresponding to the network device are respectively determined.

[0030] In the present application, the input time slot and the output time slot of the service channel are determined by comparing the time slot parameters so as to reduce the occupation of service resources as much as possible, thereby further reducing the consumption of communication resources.

[0031] In some possible embodiments, after the receiving controller sends a service information set based on the border gateway protocol and an inbound port identifier and an outbound port identifier corresponding to the network device, the method further includes:

[0032] The inbound port identifier, the outbound port identifier, the device identifier parameter and the time slot parameter are sent to the adjacent device based on the link layer discovery protocol, so that the adjacent devices each establish a service channel with their respective corresponding adjacent devices according to the inbound port identifier, the outbound port identifier, the device identifier parameter and the time slot parameter.

[0033] In a third aspect, the present application further provides a service channel establishment device, which is applied to a controller, and the device includes:

[0034] A path determination module, used to determine the optimal path based on the channel bandwidth, the service channel start network device identifier and the service channel end network device identifier in the service information set;

[0035] A port determination module, used to determine the inbound port identifier and the outbound port identifier corresponding to each network device corresponding to the optimal path;

[0036] The channel establishment module is used to send the service information set, the inbound port identifier and the outbound port identifier corresponding to the network device to any one of the network devices based on the border gateway protocol, so that the network device can establish a service channel with an adjacent device based on the service information set, the inbound port identifier and the outbound port identifier.

[0037] In some possible embodiments, the service information set further includes: a channel identifier, where the channel identifier is used to identify a service channel corresponding to the service information set.

[0038] In some possible embodiments, the path determination module is further configured to:

[0039] In response to a service channel deletion instruction, determining a channel identifier of a service channel corresponding to the service channel deletion instruction;

[0040] Determine a service information set corresponding to the service channel based on the channel identifier;

[0041] Delete any information or combination in the business information set.

[0042] In some possible embodiments, after deleting any information or combination in the service information set, the path determination module is further configured to:

[0043] A configuration increment is sent to each of the network devices in the optimal path, so that each of the network devices disconnects a service channel with a corresponding adjacent device after receiving the configuration increment.

[0044] In a fourth aspect, an embodiment of the present application further provides a service channel establishment device, which is applied to a network device, and the device includes:

[0045] A service parameter receiving module, used to receive a service information set sent by the controller based on the border gateway protocol, an inbound port identifier and an outbound port identifier corresponding to the network device; the service information set at least includes: channel bandwidth, service channel start network device identifier, service channel end network device identifier;

[0046] A neighbor parameter receiving module, used for receiving, based on a link layer discovery protocol, inbound port identifiers, outbound port identifiers, device identifier parameters and time slot parameters corresponding to each of the neighboring devices sent by the neighboring devices;

[0047] A time slot determination module, configured to obtain an input time slot and an output time slot corresponding to the network device based on device identification parameters corresponding to each of the adjacent devices, a device identification parameter of the network device, a time slot parameter corresponding to each of the adjacent devices, and a time slot parameter of the network device;

[0048] The service channel establishing module is used to establish a service channel with the adjacent device based on the input time slot, the output time slot, the input port identifier and the output port identifier corresponding to each of the adjacent devices.

[0049] In some possible embodiments, the service information set further includes: a channel identifier, the channel identifier is used to characterize the service channel corresponding to the service information set; after the service parameter receiving module executes receiving the service information set sent by the controller based on the border gateway protocol, the inbound port identifier and the outbound port identifier corresponding to the network device, it is further configured as follows:

[0050] The channel identifiers corresponding to the adjacent devices are received and sent by the adjacent devices based on the link layer discovery protocol.

[0051] In some possible embodiments, when the service parameter receiving module obtains the input time slot and the output time slot corresponding to the network device based on the device identification parameters corresponding to each of the neighboring devices, the own device identification parameters, the time slot parameters corresponding to each of the neighboring devices, and the own time slot parameters, the service parameter receiving module is configured as follows:

[0052] Based on the device identification parameters corresponding to the adjacent devices having the same channel identification as the own device, the own device identification parameters, the time slot parameters corresponding to the adjacent devices and the own time slot parameters, the input time slot and the output time slot corresponding to the network device are obtained.

[0053] In some possible embodiments, when the time slot determination module executes the acquisition of the input time slot and the output time slot corresponding to the network device based on the device identification parameters corresponding to the adjacent devices having the same channel identification as the own device, the own device identification parameters, the time slot parameters corresponding to the adjacent devices, and the own time slot parameters, the module is configured as follows:

[0054] The device identification parameter of the device itself is compared with the device identification parameters corresponding to the adjacent devices, and the input time slot and the output time slot of the network device are determined based on the comparison result.

[0055] In some possible embodiments, after the service parameter receiving module receives the service information set sent by the controller based on the border gateway protocol, and the inbound port identifier and the outbound port identifier corresponding to the network device, it is further configured as follows:

[0056] The inbound port identifier, the outbound port identifier, the device identifier parameter and the time slot parameter are sent to the adjacent device based on the link layer discovery protocol, so that the adjacent devices each establish a service channel with their respective corresponding adjacent devices according to the inbound port identifier, the outbound port identifier, the device identifier parameter and the time slot parameter.

[0057] In the fifth aspect, another embodiment of the present application also provides an electronic device, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method provided in the embodiment of the first aspect of the present application.

[0058] In the sixth aspect, another embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a computer to execute any method provided in the embodiment of the first aspect of the present application.

[0059] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings introduced below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0061] like Figure 1 The figure shows an application scenario schematic diagram of a service channel establishment method provided in an embodiment of the present application;

[0062] like Figure 2 The figure shows a schematic diagram of the overall process of a method for establishing a service channel provided in an embodiment of the present application, in which the execution subject is a controller;

[0063] like Figure 3 The figure shows a flow chart of determining an optimal path in a method for establishing a service channel provided in an embodiment of the present application;

[0064] like Figure 4 FIG. 1 is a schematic diagram of determining an optimal path of a method for establishing a service channel provided in an embodiment of the present application;

[0065] like Figure 5 The figure shows a flow chart of deleting a service channel in a service channel establishment method provided in an embodiment of the present application;

[0066] like Figure 6 The figure shows a schematic diagram of the overall process of a service channel establishment method provided in an embodiment of the present application, in which the execution subject is a network device;

[0067] like Figure 7 The figure is a schematic diagram of a flow chart of the interaction between a controller and a network device in a method for establishing a service channel provided in an embodiment of the present application;

[0068] like Figure 8 The figure shows a schematic diagram of a device for establishing a service channel provided in an embodiment of the present application;

[0069] like Fig. 9 FIG. 2 is another schematic diagram of a method for establishing a service channel provided in an embodiment of the present application;

[0070] like Fig.10 Shown is a schematic diagram of an electronic device for a service channel establishment method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0071] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.

[0072] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.

[0073] The inventors found that FlexE is an interface technology for bearer networks to achieve service isolation and network slicing. By breaking the one-to-one mapping relationship between MAC and PHY, FlexE achieves flexible and refined management of interface resources, solves the problem of unbalanced network capacity requirements for different customers and services, and provides technical guarantees such as hard pipe isolation, bandwidth on-demand allocation, and low-latency time slot crossing. Figure 1 As shown in the figure, the MAC layer and the PHY layer are decoupled by inserting a Flexible Ethernet Shim (FlexE Shim) layer between the MAC layer and the PHY layer. One or more 100G PHYs can be created into a Flexible Ethernet Group (FlexE Group). The FlexE Shim layer can cut each 100GPHY in the FlexE Group into 20 time slots (slots) as data bearer channels. The bandwidth of each slot is 5G. The group of slots corresponding to each PHY is called a Sub-calendar.

[0074] The original Ethernet frame from the Flexible Ethernet Client (FlexEClient) is 64 / 66B encoded at the FlexE Shim layer and cut into atomic data blocks. These atomic data blocks can be interleaved between multiple PHYs and slots.

[0075] Combined with the time slot crossover feature of FlexE, an end-to-end FlexE Channel can be established in a wide area network using multiple network elements. This FlexE Channel only maps Ethernet frames into time slots at the first provider edge router (English: Provider Edge abbreviation, PE) node, and then restores the time slots to Ethernet frames at the tail PE node. The intermediate P node does not need to parse the service message. Because at the intermediate node, the service is not processed by the MAC layer, but is directly transmitted in the form of time slot crossover at the FlexE Shim layer, thus forming a hard channel with strict isolation, one-hop direct access, and ultra-low latency.

[0076] In the related art, FlexE Channel is dynamically established based on the universal multi-protocol label exchange protocol, but the requirements are high, so more resources are consumed when the universal multi-protocol label exchange protocol is used to establish the FlexE Channel. Secondly, if the static manual configuration method of FlexE Channel is used, there is a problem of large consumption of human resources and low efficiency.

[0077] In view of this, the present application proposes a service channel establishment method, device, electronic device and storage medium for solving the above problems. The inventive concept of the present application can be summarized as follows: determining the optimal path based on the channel bandwidth, service channel start network device identifier and service channel end network device identifier in the service information set; determining the inbound port identifier and outbound port identifier corresponding to each network device corresponding to the optimal path; for any network device, sending the service information set, the inbound port identifier and the outbound port identifier corresponding to the network device to the network device based on the border gateway protocol, so that the network device establishes a service channel with the adjacent device according to the service information set, the inbound port identifier and the outbound port identifier.

[0078] For ease of understanding, a service channel establishment method provided in an embodiment of the present application is described below with reference to the accompanying drawings:

[0079] like Figure 1 As shown, it is an application scenario diagram of the service channel establishment method in the embodiment of the present application. The diagram includes: a controller 10, a network device 20, and an adjacent device 30 (a left neighbor device 301 and a right neighbor device 302); wherein:

[0080] The controller 10 determines the optimal path based on the channel bandwidth, the service channel starting network device identifier and the service channel terminating network device identifier in the service information set; determines the inbound port identifier and the outbound port identifier corresponding to each network device 20 corresponding to the optimal path; for any network device 20, based on the border gateway protocol, the service information set, the inbound port identifier and the outbound port identifier corresponding to the network device 20 are sent to the network device 20, so that the network device 20 establishes a service channel with the adjacent device 30 (left neighbor device 301, right neighbor device 302) according to the service information set, the inbound port identifier and the outbound port identifier.

[0081] The description in this application only details a single controller 10, a network device 20, and an adjacent device 30, but it should be understood by those skilled in the art that the controller 10, the network device 20, and the adjacent device 30 shown are intended to represent the operation of the controller 10, the network device 20, and the adjacent device 30 involved in the technical solution of this application. It does not imply a restriction on the number, type, or location of the controller 10, the network device 20, and the adjacent device 30. It should be noted that if additional modules are added to the illustrated environment or individual modules are removed therefrom, the underlying concepts of the example embodiments of this application will not be changed. In addition, it should be understood by those skilled in the art that the sending and receiving of the above data also needs to be implemented through the network.

[0082] In addition, the service channel establishment method proposed in this application is not only applicable to Figure 1 The application scenario shown is also applicable to any device that has a need to establish a service channel.

[0083] The service channel establishment method provided in the embodiment of the present application is an interactive process between a controller and a network device. The following first describes the overall process of the service channel establishment method when the execution subject is the controller. Figure 2 As shown, where:

[0084] In step 201: determining the optimal path based on the channel bandwidth, the service channel start network device identifier and the service channel end network device identifier in the service information set;

[0085] In step 202: determining the inbound port identifier and the outbound port identifier corresponding to each network device corresponding to the optimal path;

[0086] In step 203: for any network device, the service information set, the inbound port identifier and the outbound port identifier corresponding to the network device are sent to the network device based on the border gateway protocol, so that the network device establishes a service channel with the adjacent device according to the service information set, the inbound port identifier and the outbound port identifier.

[0087] In this application, a border network management protocol is used for interaction between the controller and the network device, and a service information set, an inbound port identifier and an outbound port identifier corresponding to the network device are sent to the network device, so that network resources are efficiently utilized. The network devices use a link layer discovery protocol to interact and establish service channels, which reduces resource consumption and improves the efficiency of establishing service channels.

[0088] For ease of understanding, the following Figure 2 The steps in are described separately:

[0089] When establishing a service channel, relevant technical personnel are required to configure the channel identifier, channel bandwidth, service channel starting network device identifier and service channel ending network device identifier of the service channel on the controller; of course, it should be noted that the channel identifier of the service channel does not need to be manually configured. The controller searches globally for the current largest channel identifier and increments it based on the largest channel identifier to obtain the channel identifier. As long as the channel identifier of each service channel is globally unique, this application does not limit this and technical personnel can determine it according to needs.

[0090] When establishing a service channel, the controller first determines the optimal path based on the channel bandwidth, the service channel start network device identifier, and the service channel end network device identifier in the service information set. In this application, it can be implemented as follows: Figure 3 Steps shown:

[0091] In step 301: a path set is formed by using a path that meets the channel bandwidth determined based on the service channel starting network device and the service channel terminating network device;

[0092] In step 302: based on the path algorithm principle, the optimal path is determined from the path set.

[0093] For example: Figure 4 As shown, the service channel starting network device is device 1, the service channel terminating network device is device 2, and there are 5 paths between device 1 and device 2, namely path A, path B, path C, path D, and path E. Among them, path A, path B, and path E meet the channel bandwidth, so path A, path B, and path E can constitute a path set; according to the shortest path principle, the loose node restriction principle, and the explicit path hop-by-hop designation principle, the optimal path is determined to be path B.

[0094] In the related art, the network configuration protocol (NETCONF) is used for communication between the controller and the network device. NETCONF is a short connection protocol. The link is released after the communication session ends, which causes the service channel configuration to be kept on the network device for a long time. If the service channel needs to be deleted, manual intervention is required to manually delete the connection between each network device. Based on this, in the embodiment of the present application, when deleting the service channel, it can be implemented as follows: Figure 5 The steps shown, where:

[0095] In step 501: in response to a service channel deletion instruction, determining a channel identifier of a service channel corresponding to the service channel deletion instruction;

[0096] In step 502: determining a service information set corresponding to the service channel based on the channel identifier;

[0097] In step 503: delete any information or combination in the business information set.

[0098] In the present application, by deleting any information or combination in the business information set, the controller will send a configuration increment to the network device based on the border gateway protocol. The configuration increment is used to enable each network device to disconnect the business channel with the corresponding adjacent device after receiving the configuration increment (that is, any one or combination of the business information set is deleted in the network device). Therefore, the connection between the various network devices will be disconnected, and there is no need to manually disconnect the connection between the various network devices, which improves the efficiency of disconnecting the business channel and facilitates the recovery of communication resources.

[0099] After introducing the service channel establishment method when the execution subject is a controller, the service channel establishment method when the execution subject is a network device is described in detail below, wherein:

[0100] like Figure 6 FIG. 1 is a schematic diagram of the overall process of a method for establishing a service channel provided in an embodiment of the present application, wherein:

[0101] In step 601: receiving a service information set sent by a controller based on a border gateway protocol, an inbound port identifier and an outbound port identifier corresponding to a network device;

[0102] In the embodiment of the present application, in order to facilitate viewing of various information, the network device receives the service information set, the inbound port identifier, and the outbound port identifier sent by the controller; wherein the service information set includes: channel bandwidth, service channel starting network device identifier, service channel terminating network device identifier, and channel identifier; first, a client interface (client) is created, and then a cross table as shown in Table 1 can be constructed:

[0103] Device Name Channel Identification Channel bandwidth Inbound port ID Incoming Slot Outgoing port ID Outgoing time slot Network equipment 1 5 a A1 b B1

[0104] Table 1A

[0105] It should also be noted that if there is only one business in the current platform, the channel identifier may not be included in the business information set. In this case, the cross-table constructed is shown in Table 1B:

[0106] Device Name Channel bandwidth Inbound port ID Incoming Slot Outgoing port ID Outgoing time slot Network equipment 5 a A1 b B1

[0107] Table 1B

[0108] In step 602: receiving the inbound port identifier, outbound port identifier, device identifier parameter and time slot parameter corresponding to each of the adjacent devices sent by the adjacent devices based on the link layer discovery protocol;

[0109] In some possible embodiments, if the service parameter set includes a channel identifier, after the network device receives the service information set sent by the controller based on the border gateway protocol and the input port identifier and the output port identifier corresponding to the network device, it also needs to receive the channel identifiers corresponding to each adjacent device sent by the adjacent devices based on the link layer discovery protocol.

[0110] In this application, after receiving the service information set, inbound port identifier, and outbound port identifier sent by the controller, the adjacent device will also construct a cross table locally. For example, the cross table constructed by the left neighbor device of the above network device is shown in Table 2, and the cross table constructed by the right neighbor is shown in Table 3:

[0111]

[0112] Table 2

[0113]

[0114] Table 3

[0115] In order to negotiate and establish service channels between network devices, network devices also need to send the inbound port identifier, outbound port identifier and device identifier parameters to adjacent devices based on the link layer discovery protocol. It should be noted that the client identifier can be saved in the cross table or not in the cross table. There is a mapping relationship between the client identifier and the FlexE Shim layer, which is used to achieve the decoupling of the MAC layer and the PHY layer.

[0116] In step 603: based on the device identification parameters corresponding to the adjacent devices, the own device identification parameters, the time slot parameters corresponding to the adjacent devices and the own time slot parameters, the input time slot and the output time slot corresponding to the network device are obtained;

[0117] In some possible embodiments, step 603 can be specifically implemented as follows: based on the device identification parameters corresponding to each adjacent device with the same channel identification as the own device, the own device identification parameters, the time slot parameters corresponding to each adjacent device and the own time slot parameters, the input time slot and output time slot corresponding to the network device are obtained.

[0118] In the embodiments of the present application, the device identification parameters include but are not limited to MAC addresses, device addresses of network devices, etc., and the device identification parameter is taken as an example for explanation. When determining the input time slot and output time slot for establishing a service channel, it can be implemented as follows: compare the own MAC address with the MAC addresses corresponding to the adjacent devices, and determine the input time slot and output time slot of the network device based on the comparison results. For example: compare the own MAC address with the MAC addresses corresponding to the adjacent devices, and use the time slot of the device with a smaller MAC in the comparison result between the upstream device and the own device as the input time slot of the own device, and use the time slot of the device with a smaller MAC in the comparison result between the downstream device and the own device as the output time slot of the own device.

[0119] Of course, it should be noted that the above selection of the time slot with a smaller MAC address as the time slot of the own device is only an embodiment, and in specific implementation, the time slot with a larger MAC address can also be used as the time slot of the own device.

[0120] For example, as shown in Table 1 and Table 2, the MAC address of the network device is 20, the MAC address of the left neighbor device is 10, and the MAC address of the right neighbor device is 40. The left neighbor device is the upstream node device of the network device, and the right neighbor device is the downstream node device of the network device. For the network device, the outgoing time slot of the left neighbor device is used as the incoming time slot of the service channel between the network device and the left neighbor device, and the outgoing time slot of the network device is used as the incoming time slot of the service channel between the network device and the right neighbor device. At this time, the cross table of the network device is shown in Table 4:

[0121]

[0122] Table 4

[0123] In step 604: a service channel is established with the adjacent device based on the incoming time slot, the outgoing time slot, the incoming port identifier and the outgoing port identifier corresponding to each of the adjacent devices.

[0124] After each network device has established a service channel with an adjacent device, the end-to-end channel establishment between the service channel starting network device and the service channel terminating network device is completed.

[0125] In order to facilitate further understanding of a service channel interaction method provided in an embodiment of the present application, the interaction process between the controller and the network device is described below. Figure 7 As shown, where:

[0126] In step 701: the controller uses the paths that meet the channel bandwidth determined based on the service channel starting network device and the service channel terminating network device to form a path set;

[0127] In step 702: the controller determines the optimal path from the path set based on the shortest path principle, the loose node restriction principle, and the explicit path hop-by-hop specification principle;

[0128] In step 703: the controller determines the inbound port identifier and the outbound port identifier corresponding to each network device corresponding to the optimal path;

[0129] In step 704: the controller sends the service information set, the inbound port identifier and the outbound port identifier corresponding to the network device to the network device based on the border gateway protocol;

[0130] In step 705: the network device receives, based on the link layer discovery protocol, a service information set sent by the controller based on the border gateway protocol, and an inbound port identifier and an outbound port identifier corresponding to the network device;

[0131] In step 706: the network device receives the inbound port identifier, outbound port identifier, device identifier parameter and time slot parameter corresponding to each of the adjacent devices sent by the adjacent devices;

[0132] In step 707: based on the device identification parameters corresponding to the adjacent devices, the own device identification parameters, the time slot parameters corresponding to the adjacent devices and the own time slot parameters, the input time slot and the output time slot corresponding to the network device are obtained;

[0133] In step 708: a service channel is established with the adjacent device based on the incoming time slot, the outgoing time slot, the incoming port identifier and the outgoing port identifier corresponding to each of the adjacent devices.

[0134] To summarize, in the present application, a service information set, an inbound port identifier and an outbound port identifier corresponding to the network device are sent to the network device through the border gateway protocol, thereby reducing the waste of communication resources. In the present application, a link layer discovery protocol is used between network devices to interact and establish service channels, thereby reducing the consumption of resources.

[0135] like Figure 8 As shown, based on the same inventive concept, a service channel establishment device 800 is proposed, which is applied to a controller and includes:

[0136] A path determination module 8001 is used to determine an optimal path based on the channel bandwidth, the service channel start network device identifier and the service channel end network device identifier in the service information set;

[0137] A port determination module 8002 is used to determine the inbound port identifier and the outbound port identifier corresponding to each network device corresponding to the optimal path;

[0138] The channel establishment module 8003 is used to send the business information set, the input port identifier and the output port identifier corresponding to the network device to any one of the network devices based on the border gateway protocol, so that the network device can establish a business channel with the adjacent device according to the business information set, the input port identifier and the output port identifier.

[0139] In some possible embodiments, the service information set further includes: a channel identifier, where the channel identifier is used to identify a service channel corresponding to the service information set.

[0140] In some possible embodiments, the path determination module 8001 is further configured to:

[0141] In response to a service channel deletion instruction, determining a channel identifier of a service channel corresponding to the service channel deletion instruction;

[0142] Determine a service information set corresponding to the service channel based on the channel identifier;

[0143] Delete any information or combination in the business information set.

[0144] In some possible embodiments, after deleting any information or combination in the service information set, the path determination module 8001 is further configured to:

[0145] A configuration increment is sent to each of the network devices in the optimal path, so that each of the network devices disconnects a service channel with a corresponding adjacent device after receiving the configuration increment.

[0146] like Fig. 9 As shown, based on the same inventive concept, a service channel establishment device 900 is proposed, which is applied to a network device, including:

[0147] The service parameter receiving module 9001 is used to receive a service information set sent by the controller based on the border gateway protocol, and an inbound port identifier and an outbound port identifier corresponding to the network device; the service information set at least includes: channel bandwidth, service channel start network device identifier, and service channel end network device identifier;

[0148] Neighbor parameter receiving module 9002, used for the network device to receive the inbound port identifier, outbound port identifier, device identifier parameter and time slot parameter corresponding to each of the neighboring devices sent by the neighboring devices;

[0149] A time slot determination module 9003, configured to obtain an input time slot and an output time slot corresponding to the network device based on device identification parameters corresponding to each of the neighboring devices, the device identification parameters of the network device, the time slot parameters corresponding to each of the neighboring devices and the network device's own time slot parameters;

[0150] The service channel establishing module 9004 is used to establish a service channel with the adjacent device based on the input time slot, the output time slot, the input port identifier and the output port identifier corresponding to each of the adjacent devices.

[0151] In some possible embodiments, the service information set further includes: a channel identifier, the channel identifier is used to characterize the service channel corresponding to the service information set; after the service parameter receiving module 9001 executes receiving the service information set sent by the controller based on the border gateway protocol, the inbound port identifier and the outbound port identifier corresponding to the network device, it is further configured as follows:

[0152] The channel identifiers corresponding to the adjacent devices are received and sent by the adjacent devices based on the link layer discovery protocol.

[0153] In some possible embodiments, when the service parameter receiving module 9001 obtains the input time slot and the output time slot corresponding to the network device based on the device identification parameters corresponding to each of the neighboring devices, the own device identification parameters, the time slot parameters corresponding to each of the neighboring devices, and the own time slot parameters, the service parameter receiving module 9001 is configured as follows:

[0154] Based on the device identification parameters corresponding to the adjacent devices having the same channel identification as the own device, the own device identification parameters, the time slot parameters corresponding to the adjacent devices and the own time slot parameters, the input time slot and the output time slot corresponding to the network device are obtained.

[0155] In some possible embodiments, the time slot determination module 9003 is configured to: obtain the input time slot and the output time slot corresponding to the network device based on the device identification parameters corresponding to the adjacent devices with the same channel identification as the own device, the own device identification parameters, the time slot parameters corresponding to the adjacent devices, and the own time slot parameters;

[0156] The device identification parameter of the device itself is compared with the device identification parameters corresponding to the adjacent devices, and the input time slot and the output time slot of the network device are determined based on the comparison result.

[0157] In some possible embodiments, after the service parameter receiving module 9001 receives the service information set sent by the controller based on the border gateway protocol, and the inbound port identifier and the outbound port identifier corresponding to the network device, it is further configured as follows:

[0158] The inbound port identifier, the outbound port identifier, the device identifier parameter and the time slot parameter are sent to the adjacent device based on the link layer discovery protocol, so that the adjacent devices each establish a service channel with their respective corresponding adjacent devices according to the inbound port identifier, the outbound port identifier, the device identifier parameter and the time slot parameter.

[0159] In some possible embodiments, the service information set further includes: a channel identifier, and the channel identifier is used to indicate that the service information set is globally unique.

[0160] After introducing the service channel establishment method and device according to the exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is introduced.

[0161] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0162] In some possible implementations, the electronic device according to the present application may include at least one processor and at least one memory. The memory stores program code, and when the program code is executed by the processor, the processor executes the steps in the service channel establishment method according to various exemplary implementations of the present application described above in this specification.

[0163] Refer to the following Fig.10 The electronic device 130 according to this embodiment of the present application is described. Fig.10 The electronic device 130 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0164] like Fig.10 As shown, the electronic device 130 is in the form of a general electronic device. The components of the electronic device 130 may include but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting different system components (including the memory 132 and the processor 131).

[0165] Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.

[0166] The memory 132 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1321 and / or a cache memory 1322 , and may further include a read-only memory (ROM) 1323 .

[0167] The memory 132 may also include a program / utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0168] The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboards, pointing devices, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 130, and / or communicate with any device that enables the electronic device 130 to communicate with one or more other electronic devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 135. Furthermore, the electronic device 130 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 136. As shown, the network adapter 136 communicates with other modules for the electronic device 130 via a bus 133. It should be understood that although Fig.10 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 130, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0169] In some possible implementations, various aspects of a service channel establishment method provided by the present application may also be implemented in the form of a program product, which includes program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of a service channel establishment method according to various exemplary implementations of the present application described above in this specification.

[0170] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0171] The program product for establishing a service channel of the embodiment of the present application can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on an electronic device. However, the program product of the present application is not limited to this. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, an apparatus or a device or used in combination with it.

[0172] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0173] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0174] The program code for performing the operations of the present application can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and also conventional procedural programming languages ​​such as "C" language or similar programming languages. The program code can be executed entirely on the user electronic device, partially on the user device, as an independent software package, partially on the user electronic device and partially on the remote electronic device, or entirely on the remote electronic device or server. In the case of a remote electronic device, the remote electronic device can be connected to the user electronic device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external electronic device (for example, using an Internet service provider to connect through the Internet).

[0175] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0176] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0177] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0178] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0179] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0180] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0181] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for establishing a service channel, characterized in that: Applied to a controller, the method comprises: Determine the optimal path based on the channel bandwidth, the service channel start network device identifier, and the service channel end network device identifier in the service information set; Determine the inbound port identifier and the outbound port identifier corresponding to each network device corresponding to the optimal path; For any of the network devices, the service information set, the inbound port identifier and the outbound port identifier corresponding to the network device are sent to the network device based on the border gateway protocol, so that the network device establishes a service channel with the adjacent device according to the service information set, the inbound port identifier, the outbound port identifier, and the inbound port identifier, outbound port identifier, device identifier parameter and time slot parameter corresponding to each of the adjacent devices received through the link layer discovery protocol; The method further comprises: In response to a service channel deletion instruction, determining a channel identifier of a service channel corresponding to the service channel deletion instruction; Determine a service information set corresponding to the service channel based on the channel identifier; Delete any information or combination in the service information set to trigger sending a configuration increment to each of the network devices in the optimal path based on the border gateway protocol, so that each of the network devices disconnects the service channel with the corresponding adjacent device after receiving the configuration increment.

2. The method according to claim 1, characterized in that: The service information set further includes a channel identifier, and the channel identifier is used to identify a service channel corresponding to the service information set.

3. A service channel establishment method, characterized in that: Applied to a network device, the method comprises: A service information set sent by a receiving controller based on a border gateway protocol, and an inbound port identifier and an outbound port identifier corresponding to the network device; the service information set includes at least: channel bandwidth, service channel start network device identifier, and service channel end network device identifier; Receive, based on the link layer discovery protocol, inbound port identifiers, outbound port identifiers, device identifier parameters, and time slot parameters corresponding to each of the adjacent devices sent by the adjacent devices; Based on the device identification parameters corresponding to the adjacent devices, the own device identification parameters, the time slot parameters corresponding to the adjacent devices and the own time slot parameters, the input time slot and the output time slot corresponding to the network device are obtained; Establishing a service channel with the adjacent device based on the input time slot, the output time slot, the input port identifier and the output port identifier corresponding to each of the adjacent devices; Also includes: Receive a configuration increment sent by the controller through a border gateway protocol, and disconnect a service channel with an adjacent device, wherein the configuration increment is sent by the controller after deleting any information or combination in the service information set in response to a service channel deletion instruction.

4. The method according to claim 3, characterized in that The service information set further includes: a channel identifier, where the channel identifier is used to represent the service channel corresponding to the service information set; After the receiving controller sends a service information set based on the border gateway protocol and an inbound port identifier and an outbound port identifier corresponding to the network device, the method further includes: The channel identifiers corresponding to the adjacent devices are received and sent by the adjacent devices based on the link layer discovery protocol.

5. The method according to claim 4, characterized in that The obtaining of the input time slot and the output time slot corresponding to the network device based on the device identification parameters corresponding to the adjacent devices, the own device identification parameters, the time slot parameters corresponding to the adjacent devices and the own time slot parameters includes: Based on the device identification parameters corresponding to the adjacent devices having the same channel identification as the own device, the own device identification parameters, the time slot parameters corresponding to the adjacent devices and the own time slot parameters, the input time slot and the output time slot corresponding to the network device are obtained.

6. The method according to claim 3, characterized in that: The obtaining of the input time slot and the output time slot corresponding to the network device based on the device identification parameters corresponding to the adjacent devices having the same channel identification as the own device, the own device identification parameters, the time slot parameters corresponding to the adjacent devices and the own time slot parameters comprises: The device identification parameter of the device itself is compared with the device identification parameters corresponding to each of the adjacent devices, and based on the comparison result, the input time slot and the output time slot corresponding to the network device are respectively determined.

7. The method according to claim 3, characterized in that After the receiving controller sends a service information set based on the border gateway protocol and an inbound port identifier and an outbound port identifier corresponding to the network device, the method further includes: The inbound port identifier, the outbound port identifier, the device identifier parameter and the time slot parameter are sent to the adjacent device based on the link layer discovery protocol, so that the adjacent devices each establish a service channel with their respective corresponding adjacent devices according to the inbound port identifier, the outbound port identifier, the device identifier parameter and the time slot parameter.

8. A service channel establishment device, characterized in that: Applied to a controller, the device comprises: A path determination module, used to determine the optimal path based on the channel bandwidth, the service channel start network device identifier and the service channel end network device identifier in the service information set; A port determination module, used to determine the inbound port identifier and the outbound port identifier corresponding to each network device corresponding to the optimal path; A channel establishment module, for sending the service information set, the inbound port identifier and the outbound port identifier corresponding to the network device to any one of the network devices based on the border gateway protocol, so that the network device establishes a service channel with the adjacent device according to the service information set, the inbound port identifier, the outbound port identifier, and the inbound port identifier, outbound port identifier, device identifier parameter and time slot parameter corresponding to each of the adjacent devices received through the link layer discovery protocol; The path determination module is also used to determine the channel identifier of the business channel corresponding to the business channel deletion instruction in response to the business channel deletion instruction; determine the business information set corresponding to the business channel based on the channel identifier; delete any information or combination in the business information set to trigger the sending of configuration increments to each of the network devices in the optimal path based on the border gateway protocol, so that each of the network devices disconnects the business channel with the corresponding adjacent device after receiving the configuration increment.

9. A service channel establishment device, characterized in that: Applied to network equipment, the device comprises: A service parameter receiving module, used to receive a service information set sent by the controller based on the border gateway protocol, an inbound port identifier and an outbound port identifier corresponding to the network device; the service information set at least includes: channel bandwidth, service channel start network device identifier, service channel end network device identifier; A neighbor parameter receiving module, used for receiving, based on a link layer discovery protocol, inbound port identifiers, outbound port identifiers, device identifier parameters and time slot parameters corresponding to each of the neighboring devices sent by the neighboring devices; A time slot determination module, configured to obtain an input time slot and an output time slot corresponding to the network device based on device identification parameters corresponding to each of the adjacent devices, a device identification parameter of the network device, a time slot parameter corresponding to each of the adjacent devices, and a time slot parameter of the network device; A service channel establishment module is used to establish a service channel with the adjacent device based on the input time slot, the output time slot, the input port identifier and the output port identifier corresponding to each of the adjacent devices; it is also used to receive the configuration increment sent by the controller through the border gateway protocol, and disconnect the service channel with the adjacent device. The configuration increment is sent by the controller in response to the service channel deletion instruction, after deleting any information or combination in the service information set.

10. An electronic device, characterized in that: It comprises at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to implement the method as described in any one of claims 1 to 7.

11. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and the computer program is used to enable a computer to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Time slot allocation processing method and device and storage medium

    CN115038172A