Communication method and related device
By establishing slice relationships between forwarding devices and AP devices, network congestion problems were solved, and isolated transmission of service data and improved reliability were achieved.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-04-18
- Publication Date
- 2026-04-02
AI Technical Summary
In existing technologies, service deployment requirements on the network and access sides lead to network congestion and the problem of multiple links sharing physical links.
By establishing slice relationships between forwarding devices and AP devices, isolated transmission of service data is achieved, and network congestion is avoided by utilizing the correspondence between slices and logical interfaces.
It enables isolated transmission of business data, avoids network congestion, and improves the reliability and flexibility of data transmission.
Smart Images

Figure CN2025089931_02042026_PF_FP_ABST
Abstract
Description
Communication method and related device
[0001] This application claims priority to the Chinese patent application No. 202411393548.7, filed on September 29, 2024, and entitled "Communication method and related device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the field of communication, in particular to a communication method and related device. BACKGROUND
[0003] With the development of network technology, there are more and more different types of service deployment requirements on the network side and the access side, which require the provider edge (PE) device to provide a large number of ports to meet the service transmission requirements.
[0004] In the related technical solution, a port expansion interface is created for the control master device, thereby establishing a link of master device port expansion interface→master device internal interface→(access point, AP) device internal interface→AP device external interface. The master device internal interface and the AP device internal interface are connected by an optical fiber.
[0005] In this method, multiple links from the master device port expansion interface to the AP device external interface share the physical link of the master device internal interface and the AP device internal interface. In the multiple service transmission solutions, there is network congestion. SUMMARY
[0006] The present application provides a communication method and related device to avoid network congestion.
[0007] In a first aspect, the present application provides a communication method, which is applied to a forwarding device, and the method comprises:
[0008] The forwarding device comprises a first interface, which is a physical interface for communicating with a first AP device. The forwarding device obtains a first correspondence relationship based on the first interface and a first slice. The first correspondence relationship comprises a logical interface corresponding to the first interface and the first slice. The forwarding device creates a slice for the first interface to obtain the first slice. The forwarding device also obtains a second correspondence relationship based on a second interface and the first slice. The second interface is an interface for the first AP device to communicate with a first user side, and the second correspondence relationship comprises a logical interface corresponding to the second interface and the first slice. Based on the first correspondence relationship and the second correspondence relationship, the first slice is created for the first interface, and then the first service data is sent to the second interface through the first slice. The first service data comprises one or more parameters matched with the first slice.
[0009] In the present application, the first interface and the logical interface corresponding to the first slice are associated based on the first correspondence relationship, and the second correspondence relationship between the first slice and the second interface of the AP device is obtained. Thus, the first service data is transmitted to the second interface through the first slice. The other service data is isolated, and network congestion is avoided.
[0010] In some optional implementation of the first aspect, after obtaining the first correspondence relationship and the second correspondence relationship, the forwarding device sends the first correspondence relationship and the second correspondence relationship to the first AP device, so that the first AP device outputs the first service data obtained through the first slice to the second interface. Wherein, the forwarding device can send the first correspondence relationship and the second correspondence relationship to the first AP at the same time, or send the first correspondence relationship and the second correspondence relationship respectively, which is not limited here.
[0011] In the present application, the forwarding device sends the first correspondence relationship and the second correspondence relationship to the first AP device, so that the first AP device is configured synchronously, and the first service data obtained through the first slice is output to the corresponding second interface, ensuring the normal transmission of service data between the first AP device and the forwarding device, and improving the realizability of the technical scheme of the present application.
[0012] In some optional implementation of the first aspect, the number of logical interfaces corresponding to the first interface is not fixed, and can correspond to multiple logical interfaces. Specifically, the forwarding device can also obtain a third correspondence relationship based on the first interface and the second slice, the third correspondence relationship including the logical interface corresponding to the first interface and the second slice. The forwarding device creates a slice for the first interface, in addition to the first slice mentioned above, a second slice is obtained. The forwarding device also obtains a fourth correspondence relationship based on the third interface and the second slice, the third interface being the interface of the first AP device for communication with the second user side, and the fourth correspondence relationship including the logical interface corresponding to the third interface and the second slice. Based on the third correspondence relationship and the fourth correspondence relationship, the second slice for the first interface is created, and the second service data is sent to the third interface through the second slice, the second service data including one or more parameters matched with the second slice.
[0013] In the present application, the number of slices created by the first interface of the forwarding device can be multiple, and different slices transmit different service data, which enriches the application scenarios and implementation modes of the technical scheme of the present application and improves the flexibility of the technical scheme.
[0014] In some optional implementation of the first aspect, the link protection mechanism can also be configured for the transmission of the service data. Specifically, the forwarding device obtains a fifth correspondence relationship based on a fourth interface and the third slice, the fourth interface being a physical interface for communicating with the first AP device, and the fifth correspondence relationship including a logical interface corresponding to the fourth interface and the third slice. The forwarding device obtains a sixth correspondence relationship based on the second interface and the third slice, the sixth correspondence relationship including a logical interface corresponding to the second interface and the third slice. The forwarding device can send the first service data to the second interface of the first AP device through the first slice, or send the first service data to the second interface through the third slice. In the case of failure of the first slice, the first service data is sent to the second interface based on the third slice, so that the transmission of the first service data is not affected by the failure of the first slice.
[0015] In the present application, the forwarding device establishes a link protection mechanism and establishes multiple links for transmitting the first service data. In the case of failure of the first slice, the first service data can also be sent to the second interface through the third slice, thereby ensuring the reliability of data transmission.
[0016] In some optional implementation of the first aspect, the forwarding device can establish a communication connection with different AP devices through different interfaces. Specifically, the forwarding device obtains a seventh correspondence relationship based on a fifth interface and the fourth slice, the fifth interface being a physical interface for the forwarding device to communicate with the second AP device, and the seventh correspondence relationship including a logical interface corresponding to the fifth interface and the fourth slice. The forwarding device communicates with the first AP device through the first interface and communicates with the second AP device through the fifth interface. The forwarding device also obtains an eighth correspondence relationship based on a sixth interface and the fourth slice, the sixth interface being an interface for the second AP device to communicate with the third user side, and the eighth correspondence relationship including a logical interface corresponding to the sixth interface and the fourth slice. The forwarding device sends third service data to the sixth interface based on the fourth slice, the third service data including one or more parameters matching the fourth slice. The third user side is the same as or different from the first user side or the second user side.
[0017] In the present application, the forwarding device communicates with different AP devices based on different interfaces, which increases the number of AP devices managed by the forwarding device and improves the scale of the communication system.
[0018] In some optional implementation of the first aspect, the forwarding device obtains a first correspondence relationship based on the first interface and the first slice, including: obtaining an interface group to which the first interface belongs based on the first interface, the interface group including multiple interfaces, and the resources of the multiple interfaces being shared. Then determining the first slice corresponding to the first interface based on the interface group. Finally, obtaining the first correspondence relationship based on the interface group.
[0019] In the present application, multiple interface resources in the same interface group share resources, and when the resources of a certain interface are insufficient, the idle resources in the interface group to which the interface belongs are re-allocated to the interface for use, which is beneficial to improve the stability of service transmission.
[0020] In some optional embodiments of the first aspect, before transmitting the first service data based on the first slice to the second interface, the forwarding device further configures service data parameters of the first slice transmission, which are used to define which service data is transmitted by the first slice. The forwarding device configures configuration information of the first service data, and the configuration information of the first service data includes at least one of service data type, service packet protocol, or destination address of the service packet. The forwarding device transmits the configuration information of the first service data to the first AP device, so that the first AP device synchronizes the configuration.
[0021] In the present application, the forwarding device further transmits the configuration information of the first data to the first AP device, so that the first AP device synchronizes the configuration, thereby realizing management of the first AP device.
[0022] In the second aspect, the present application provides a communication method, which is applied to an AP device and includes:
[0023] The AP device receives the first correspondence relationship and the second correspondence relationship from the forwarding device, the first correspondence relationship includes a logical interface corresponding to the first interface and the first slice, the first interface is a physical interface for communication between the forwarding device and the AP device, and the second correspondence relationship includes a logical interface corresponding to the second interface and the first slice, the second interface is an interface for communication between the AP device and the first user side. Based on the first correspondence relationship and the second correspondence relationship, the AP device outputs first service data obtained through the first slice to the second interface, and the first service data includes one or more parameters matched with the first slice.
[0024] In the present application, the first interface and the logical interface corresponding to the first slice are associated based on the first correspondence relationship, and the second correspondence relationship between the first slice and the second interface on the AP device is obtained. Thus, the AP device transmits the first service data obtained through the first slice to the second interface, which is isolated from other service data, thereby avoiding network congestion.
[0025] In some optional implementation forms of the second aspect, the AP device outputs the first service data acquired through the first slice to the second interface based on the first correspondence relationship and the second correspondence relationship because the AP device acquires a ninth correspondence relationship based on the first correspondence relationship, the ninth correspondence relationship includes a logical interface corresponding to the seventh interface and the fifth slice, the seventh interface is a physical interface connected to the first interface of the AP device, and the fifth slice corresponds to the first slice. The AP device synchronously forwards the slice creation operation of the device to create the fifth slice on the seventh interface connected to the first interface. Further based on the second correspondence relationship and the ninth correspondence relationship, the fifth slice corresponding to the first slice is further corresponded to the second interface. The AP device acquires the first service data from the first slice through the fifth slice and outputs the first service data to the second interface by the fifth slice. The transmission link of the first service data includes the logical interface corresponding to the first slice → the logical interface corresponding to the fifth slice → the second interface.
[0026] In the present application, the AP device synchronously forwards the slice creation operation of the device, so that the first service data acquired through the first slice is accurately output to the second interface, ensuring the normal transmission of service data between the AP device and the forwarding device, and improving the realizability of the technical solution of the present application.
[0027] In some optional implementation forms of the second aspect, the seventh interface of the AP device can also correspond to multiple logical interfaces. The AP device receives a third correspondence relationship and a fourth correspondence relationship from the forwarding device, the third correspondence relationship includes a logical interface corresponding to the first interface and the second slice, and the fourth correspondence relationship includes a logical interface corresponding to the third interface and the second slice. The third interface is an interface of the AP device for communicating with the second user side. Based on the third correspondence relationship, a tenth correspondence relationship is acquired, the tenth correspondence relationship includes a logical interface corresponding to the seventh interface and the sixth slice, and the sixth slice corresponds to the second slice. The forwarding device creates a slice on the first interface, in addition to the first slice mentioned above, a second slice is also obtained. Correspondingly, the AP device also creates a slice on the seventh interface, and the sixth slice and the fifth slice mentioned above are obtained. Among them, the sixth slice of the AP device corresponds to the second slice of the forwarding device, and the fifth slice of the AP device corresponds to the first slice of the forwarding device. Based on the fourth correspondence relationship and the tenth correspondence relationship, the AP device outputs second service data from the second slice to the third interface through the sixth slice, the second service data includes one or more parameters matched with the second slice, and it can also be understood that the second service data includes one or more parameters matched with the sixth slice.
[0028] In the scheme of creating multiple slices at the first interface of the forwarding device, the AP device synchronously creates multiple slices at the seventh interface connected with the first interface, and the multiple slices included in the seventh interface of the AP device correspond one-to-one to the multiple slices included in the first interface of the forwarding device. Thus, different slices under the same interface can transmit different service data, the application scenarios and implementation manners of the technical scheme are enriched, and the flexibility of the technical scheme is improved.
[0029] In some optional implementation manners of the second aspect, in the scheme of configuring a link protection mechanism by the forwarding device, the AP device also configures a link protection mechanism. The AP device receives the fifth correspondence relationship and the sixth correspondence relationship from the forwarding device, the fifth correspondence relationship includes a logical interface corresponding to the fourth interface and the third slice, the fourth interface is a physical interface for communication with the AP device, and the sixth correspondence relationship includes a logical interface corresponding to the second interface and the third slice. Based on the fifth correspondence relationship, the AP device obtains an eleventh correspondence relationship, the eleventh correspondence relationship includes a logical interface corresponding to the eighth interface and the seventh slice, the eighth interface is a physical interface of the AP device connected with the fourth interface, and the seventh slice corresponds to the third slice. The transmission link of the first service data can be the logical interface corresponding to the fifth slice→the logical interface corresponding to the fifth slice→the second interface, or the logical interface corresponding to the third slice→the logical interface corresponding to the seventh slice→the second interface. In the scheme of the existence of the fault of the fifth slice, the AP device outputs the first service data from the third slice to the second interface through the seventh slice based on the sixth correspondence relationship and the eleventh correspondence relationship.
[0030] In the application, the AP device establishes a link protection mechanism and establishes multiple links for transmitting the first service data. In the scheme of the fault of the fifth slice, the first service data from the third slice can also be sent to the second interface through the seventh slice, thereby ensuring the reliability of data transmission.
[0031] In some optional implementation manners of the second aspect, the AP device obtains a ninth correspondence relationship based on the first correspondence relationship, including: based on a first interface group to which the first interface belongs, obtaining a second interface group to which the seventh interface belongs. The forwarding device groups the interfaces of the forwarding device, and the first interface is included in the first interface group. The AP device also synchronously groups the interfaces of the AP device, and the seventh interface is included in the second interface group corresponding to the first interface group. The interfaces in the first interface group and the second interface group correspond one-to-one. Multiple interfaces in the second interface group share the resources of the second interface group. The AP device determines a fifth slice corresponding to the seventh interface in the second interface group based on the first slice corresponding to the first interface in the first interface group. The grouping information synchronously obtained by the AP device includes not only the interfaces corresponding to the interface groups, but also the slices corresponding to the interfaces. Based on the second interface group, the AP device obtains the ninth correspondence relationship.
[0032] In the present application, multiple interface resources in the same interface group are shared, and when the resources of a certain interface are insufficient, the idle resources in the interface group to which the interface belongs are re-allocated to the interface for use, which is beneficial to improve the stability of service transmission.
[0033] In some optional implementation of the second aspect, before the AP device outputs the first service data obtained through the first slice to the second interface based on the first correspondence relationship and the second correspondence relationship, the AP device further receives configuration information of the first service data from the forwarding device, and the configuration information of the first service data includes at least one of service data type, service message protocol, or service message destination address. The configuration information of the first service data triggers the AP device to synchronize the service configuration of the first slice to the second interface corresponding to the first slice, thereby ensuring normal transmission of service data.
[0034] In the present application, the AP device applies the configuration information of the service data issued by the forwarding device to the corresponding interface, so that the transmission of the service data can be carried out normally.
[0035] In a third aspect, the present application provides a forwarding device, comprising:
[0036] The obtaining unit is configured to obtain a first correspondence relationship based on a first interface and a first slice, the first interface being a physical interface for communicating with a first access point (AP) device, and the first correspondence relationship including a logical interface corresponding to the first interface and the first slice.
[0037] The obtaining unit is further configured to obtain a second correspondence relationship based on a second interface and the first slice, the second interface being an interface for the first AP device to communicate with a first user side, and the second correspondence relationship including a logical interface corresponding to the second interface and the first slice.
[0038] The sending unit is configured to send first service data to the second interface based on the first slice, the first service data including one or more parameters matching the first slice.
[0039] The forwarding device is configured to implement the method of the first aspect or any possible implementation of the first aspect, and has the beneficial effects of the first aspect or any possible implementation of the first aspect, which are described in detail above, and will not be described here.
[0040] In a fourth aspect, the present application provides an AP device, comprising:
[0041] receive a first correspondence and a second correspondence from the forwarding device, the first correspondence comprising a logical interface corresponding to a first interface and a first slice, the first interface being a physical interface used by the forwarding device to communicate with the AP device, the second correspondence comprising a logical interface corresponding to a second interface and the first slice, the second interface being an interface used by the AP device to communicate with a first user side.
[0042] output, by the processing unit, first service data obtained through the first slice to the second interface based on the first correspondence and the second correspondence, the first service data comprising one or more parameters matching the first slice.
[0043] The AP device is configured to implement the method of the second aspect or any possible implementation manner of the second aspect, and has the beneficial effects of the second aspect or any possible implementation manner of the second aspect, which are described above in detail, and will not be repeated here.
[0044] In a fifth aspect, a computer device is provided, which includes a processor and a memory, and the processor stores instructions, and when the instructions stored in the memory are executed on the processor, the method of the first aspect or any possible implementation manner of the first aspect, the second aspect, or any possible implementation manner of the second aspect is implemented.
[0045] In a sixth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores instructions, and when the instructions are executed on the processor, the method of the first aspect or any possible implementation manner of the first aspect, the second aspect, or any possible implementation manner of the second aspect is implemented.
[0046] In a seventh aspect, a computer program product is provided, and when the computer program product is executed on the processor, the method of the first aspect or any possible implementation manner of the first aspect, the second aspect, or any possible implementation manner of the second aspect is implemented.
[0047] The beneficial effects of any one of the fifth aspect to the seventh aspect are similar to those of the first aspect or any possible implementation manner of the first aspect, the second aspect, or any possible implementation manner of the second aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0048] FIG. 1 is a schematic diagram of a system architecture provided by an embodiment of the present application;
[0049] FIG. 2 is another schematic diagram of a system architecture provided by an embodiment of the present application;
[0050] FIG. 3 is a schematic diagram of a flow of a communication method provided by an embodiment of the present application;
[0051] FIG. 4 is a schematic diagram of a communication system according to an embodiment of the present application;
[0052] FIG. 5 is a schematic diagram of a communication system according to another embodiment of the present application;
[0053] FIG. 6 is a schematic diagram of a communication system according to another embodiment of the present application;
[0054] FIG. 7 is a schematic diagram of a communication system according to another embodiment of the present application;
[0055] FIG. 8 is a flow diagram of a communication method according to another embodiment of the present application;
[0056] FIG. 9 is a schematic diagram of a communication system according to another embodiment of the present application;
[0057] FIG. 10 is a schematic diagram of a communication system according to another embodiment of the present application;
[0058] FIG. 11 is a schematic diagram of a communication system according to another embodiment of the present application;
[0059] FIG. 12 is a schematic diagram of a communication system according to another embodiment of the present application;
[0060] FIG. 13 is a flow diagram of a communication method according to another embodiment of the present application;
[0061] FIG. 14 is a flow diagram of a communication method according to another embodiment of the present application;
[0062] FIG. 15 is a flow diagram of a communication method according to another embodiment of the present application;
[0063] FIG. 16 is a schematic diagram of a structure of a forwarding device according to an embodiment of the present application;
[0064] FIG. 17 is a schematic diagram of a structure of an AP device according to an embodiment of the present application;
[0065] FIG. 18 is a schematic diagram of a structure of a communication apparatus according to an embodiment of the present application. DETAILED DESCRIPTION
[0066] Embodiments of the present application provide communication methods and related devices, which are used to avoid network congestion.
[0067] Embodiments of the present application are described below in conjunction with the accompanying drawings. It is obvious to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided by embodiments of the present application are also applicable to similar technical problems.
[0068] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of units is not necessarily limited to those units, but may include other units not explicitly listed or inherent to those processes, methods, products, or apparatuses. Additionally, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can be expressed as: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0069] First, please refer to Figure 1, which is a schematic diagram of the system architecture provided in the embodiment of this application.
[0070] As shown in Figure 1, the devices in the network include backbone (provider, P) devices, provider edge (PE) devices, and customer edge (CE) devices.
[0071] P-devices are core routers or switches provided by network providers, commonly used for routing and forwarding, including transferring data from one network to another. Located in the core layer of the network, P-devices can handle large volumes of data traffic.
[0072] CE devices refer to devices such as switches, routers, and routing switches that connect to terminal devices. CE devices also connect to PE devices to provide service access to the terminals. In the embodiment shown in Figure 1, user-side edge device 1 connects terminal 1 and operator edge device 1 to provide service access to terminal 1. User-side edge device 2 connects terminal 2 and operator edge device 2 to provide service access to terminal 2.
[0073] The PE device, which can also be referred to as a network-side edge device, is an edge router of a server provider backbone network. The PE device is used to connect the user-side edge device and the backbone device, thereby realizing the connection of the user network and the operator backbone network. Based on the connection, the terminal is allowed to access the operator network resource through the PE device, and the operator also provides network service for the terminal. For example, in the embodiment shown in FIG. 1, the connection of the terminal 1 and the operator backbone network is realized through the operator edge device 1, and the connection of the terminal 2 and the operator backbone network is realized through the operator edge device 2.
[0074] Based on the CE device and the PE device, the transmission of data between the user network and the operator network can also be realized. For example, data is transmitted from the terminal 1 to the operator edge device 1 through the user-side edge device 1, and then transmitted from the operator edge device 1 to the backbone device, and then transmitted to the user-side edge device 2 through the operator edge device 2, and finally transmitted to the terminal 2. The transmission of data from the terminal 1 to the terminal 2 is realized.
[0075] In the embodiment of the present application, the PE device includes a forwarding device and an AP device. The forwarding device is used to connect the P device, and the AP device is used to connect the CE device. In the embodiment of the present application, the performance of the forwarding device is superior to that of the AP device, and the forwarding device is used to realize service configuration and service traffic forwarding control. In addition, the forwarding device can also manage the AP device connected thereto, and is beneficial to the management of the mapping relationship of the interface of the AP device. The AP device receives various configuration information issued by the forwarding device, and synchronously implements the configuration to the device. In addition, the forwarding device can also forward the service packet and the like from the terminal device to the AP device, and then forward the service packet to other terminal devices by the AP device.
[0076] The embodiment of the present application is not limited to the device form of the forwarding device, and the forwarding device can be a router, a switch, a management device, and the like. The management device can also be referred to as a management node, a management apparatus, a master device, and the like, and the specific form is not limited herein. The embodiment of the present application is not limited to the specific form of the AP device, and the AP device can be used to realize the function of accessing the network by the user-side CE device and issue the traffic from the network to the user-side CE device. The destination address or the source address mentioned in the embodiment of the present application can be an IP address or a MAC address, and the different address types will not be exemplified one by one in the following embodiments.
[0077] In some optional embodiments, the positions of the forwarding device and the AP device deployed in the network have multiple possibilities. For example, refer to FIG. 2, which is a schematic diagram of a system architecture provided by the embodiment of the present application.
[0078] In the embodiment shown in FIG. 2, the terminal accesses the metropolitan area network through the access network. The PE device is deployed in the metropolitan area network, and the forwarding device can be deployed in the core layer of the metropolitan area network or in the aggregation layer of the metropolitan area network. In the scheme in which the forwarding device is deployed in the core layer, the AP device managed by the forwarding device is deployed in the core layer of the metropolitan area network. In the scheme in which the forwarding device is deployed in the aggregation layer of the metropolitan area network, the AP device managed by the forwarding device is deployed in the access layer. The AP device can be deployed in the access layer or in the aggregation layer.
[0079] The foregoing FIG. 1 and FIG. 2 are only examples of system architectures to which the communication method provided by the embodiments of the present application can be applied, and in actual applications, the communication method can also be applied in other system architectures, which are not limited herein. In addition, one or more forwarding devices can be included in one system, and each forwarding device can manage one or more AP devices, which can be set based on actual application requirements, which are not limited herein.
[0080] Next, refer to FIG. 3, which is a flowchart of the communication method provided by the embodiments of the present application, and FIG. 3 takes the forwarding device as the execution subject.
[0081] 301. Obtain a first correspondence relationship based on a first interface and a first slice, the first interface being a physical interface for communicating with a first AP device, and the first correspondence relationship including a logical interface corresponding to the first interface and the first slice.
[0082] The first correspondence relationship includes a logical interface corresponding to the first interface and the first slice. It can be understood that the first interface is logically divided to obtain the first slice, or in other words, the first interface is created with the first slice. This means that the first interface is in a flexible Ethernet mode, in other words, for a physical interface in a standard Ethernet mode, the forwarding device adjusts the mode of the interface to the flexible Ethernet mode before division. The physical interface in the flexible Ethernet mode has a flexible Ethernet switching capability and can create a logical interface corresponding to a slice.
[0083] In actual applications, the forwarding device can directly logically divide the first interface, or can first group the physical interfaces included in the forwarding device and communicating with the AP device, and then divide. In the latter scheme, the forwarding device creates an interface group, each interface group including a plurality of physical interfaces, and the plurality of physical interfaces in one interface group connecting the same AP device. The forwarding device creates a slice based on the interface group and binds the slice to the physical interface.
[0084] For the latter scheme, the forwarding device acquires the first correspondence, which actually includes: based on the first interface, an interface group to which the first interface belongs is acquired. Based on the interface group, a first slice corresponding to the first interface is determined. That is, the first correspondence is acquired based on the interface group. The forwarding device first adds the first interface to a certain interface group, and creates a slice for the interfaces in the interface group, wherein the first interface corresponds to the first slice, and thus the first correspondence is obtained.
[0085] In the scheme in which the forwarding device creates the interface group, the interfaces in the same interface group share the resources of the interface group. In the process of transmitting service data, if the resources of a certain interface are insufficient, the idle resources in the interface group to which the interface belongs are re-allocated to the interface for use, which is beneficial to improving the stability of service transmission.
[0086] 302. Based on the second interface and the first slice, a second correspondence is acquired, the second interface being an interface of the first AP device for communication with the first user side, and the second correspondence including a logical interface corresponding to the second interface and the first slice.
[0087] The forwarding device communicates with the first AP device through the first interface, and the first AP device communicates with the first user side through the second interface. The forwarding device can communicate with the first user side through the second interface of the first AP device. In order to realize the communication, the forwarding device acquires the second correspondence, and corresponds the logical interface corresponding to the first slice to the second interface of the AP device, realizes the communication of the first slice to the second interface, and is used for transmitting the first service data. The second interface of the AP device can also be referred to as the external interface of the AP device.
[0088] It can be understood that in the network deployment stage, the forwarding device can acquire the external interface information of the AP device in communication with the forwarding device, so as to configure the corresponding slice and realize the communication of the slice corresponding logical interface to the external interface of the AP device. The external interface information of the AP device includes the external interface identifier of the AP device and the external interface bandwidth. The external interface identifier is used to uniquely indicate the external interface. The external interface bandwidth represents the transmission bandwidth of the external interface for communication with the corresponding user side.
[0089] The forwarding device acquires the second correspondence, which includes allocating the same bandwidth as the second interface to the first slice, and binding the identifier of the first slice with the identifier of the second interface.
[0090] 303. Based on the first slice, first service data is sent to the second interface, the first service data including one or more parameters matching the first slice.
[0091] After the forwarding device obtains the first correspondence relationship and the second correspondence relationship, the first slice of the first interface and the second interface of the AP device are associated. The forwarding device can send the first service data to the second interface based on the first slice.
[0092] In the embodiment of the present application, the first interface and the first slice are associated based on the first correspondence relationship, and the second correspondence relationship between the first slice and the second interface of the AP device is obtained. Thus, the first service data is transmitted to the second interface through the first slice, which is isolated from other service data and avoids network congestion.
[0093] After the forwarding device obtains the first correspondence relationship and the second correspondence relationship, the first AP device is sent the first correspondence relationship and the second correspondence relationship, so that the first AP device outputs the first service data obtained through the first slice to the second interface based on the first correspondence relationship and the second correspondence relationship. The first AP device synchronizes the configuration of the physical interface of the forwarding device to realize the transmission of the first service data. The synchronization process is described below, and the related description of step 802 is described below.
[0094] The forwarding device can send the first correspondence relationship and the second correspondence relationship to the first AP device at the same time, or can send the first correspondence relationship first and then send the second correspondence relationship. The specific implementation is not limited herein. Specifically, in the embodiment of the present application, the first AP device has an active reporting mechanism, and the first AP device reports to the forwarding device as long as the first AP device is online, thereby establishing a physical connection between the forwarding device and the first AP device. If the forwarding device obtains the first correspondence relationship and the second correspondence relationship before the first AP device is online, the forwarding device sends the first correspondence relationship and the second correspondence relationship to the first AP device after the first AP device is online. If the forwarding device obtains the first correspondence relationship and the second correspondence relationship after the first AP device is online, the forwarding device can send the first correspondence relationship to the first AP device first and then send the second correspondence relationship.
[0095] In other words, for the scenario in which the first AP device is not online, the forwarding device can be preconfigured, and after the first AP device is online, the forwarding device sends various configuration information to the first AP device. In the scenario in which the first AP device is online, the forwarding device can send corresponding configuration information to the first AP device after completing each configuration. In the embodiment of the present application, various configuration information is possible, in addition to the first correspondence relationship and the second correspondence relationship, there is other information. The synchronization mechanism of various configuration information will be described in detail in the description of FIG. 13 to FIG. 15 below, and will not be described herein.
[0096] In the embodiments of the present application, the forwarding device sends the first correspondence relationship and the second correspondence relationship to the first AP device, so that the first AP device is configured to synchronize, thereby outputting the first service data obtained through the first slice to the corresponding second interface, ensuring normal transmission of service data between the first AP device and the forwarding device, and improving the realizability of the technical solution of the present application.
[0097] In addition, the first service data can be sent to the second interface based on the first slice because the first service data includes one or more parameters matched with the first slice. Before sending the first service data, the forwarding device performs service configuration to set the service data that the first slice can transmit to the second interface.
[0098] Before step 303, the forwarding device defines configuration information of the first service data, which includes at least one of a service data type, a service packet protocol, or a destination address of a service packet. The first service data includes one or more parameters matched with the first slice, that is, the first service data includes one or more parameters matched with the aforementioned configuration information of the first service data. For example, the first service data includes a service data type, which is the service data type indicated by the configuration information of the first service data. For another example, a service packet protocol used to transmit the first service data is the service packet protocol indicated by the configuration information of the first service data. For another example, a destination address of the first service data is the destination address indicated by the configuration information of the first service data.
[0099] For example, the service data type includes voice service data, video service data, image service data, text service data, and other parameters used to indicate the service data type. The service packet protocol is a protocol used to transmit service data, which is also a protocol used for communication between the first slice and the second interface. For example, a transmission control protocol (TCP), a user datagram protocol (UDP), a hypertext transfer protocol (HTTP), a file transfer protocol (FTP), or the like, which is not limited here. The destination address of the service packet is a media access control (MAC) address of the first user side or an internet protocol (IP) address of the first user side.
[0100] The forwarding device also sends configuration information of the first service data to the first AP device, so that the first device synchronizes the configuration information, and can receive the first service data sent by the first slice based on the second interface. Thus, the forwarding device manages the first AP device.
[0101] In the embodiment, the forwarding device also sends configuration information of the first service data to the first AP device, so that the first AP device synchronizes the configuration, and manages the first AP device.
[0102] In the embodiment shown in FIG. 3, the first interface of the forwarding device corresponds to the first slice. In actual application, the slice created by one interface of the forwarding device is not fixed, and the first interface can also correspond to a larger number of slices. The following will be described in combination with the schematic diagram. Please refer to FIG. 4, which is a schematic diagram of a communication system provided by the embodiment.
[0103] In the embodiment shown in FIG. 4, the communication system includes a forwarding device and a first AP device, and the forwarding device and the first AP device are physically connected through an optical fiber.
[0104] The forwarding device creates a first slice and a second slice for the first interface, and associates the first slice with a second interface of the first AP device and the second slice with a third interface of the first AP device. The second interface and the third interface can be called external interfaces of the first AP device. The second interface is used to realize communication between the first AP device and a first user side, and the third interface is used to realize communication between the first AP device and a second user side.
[0105] In addition to obtaining the first corresponding relationship shown in the foregoing, the forwarding device also obtains a third corresponding relationship based on the first interface and the second slice. The third corresponding relationship includes a logical interface corresponding to the first interface and the second slice. The forwarding device also binds the second slice with the third interface of the first AP device, that is, obtains a fourth corresponding relationship based on the third interface and the second slice. The fourth corresponding relationship includes a logical interface corresponding to the third interface and the second slice. The way in which the forwarding device obtains the third corresponding relationship and the fourth corresponding relationship is similar to the way in which the first corresponding relationship and the second corresponding relationship are obtained, as shown in the foregoing, which will not be described herein again.
[0106] Based on the third corresponding relationship and the fourth corresponding relationship, the forwarding device establishes the corresponding relationship between the second slice of the first interface and the third interface of the AP device. The forwarding device can send second service data to the third interface based on the second slice. The second service data includes one or more parameters matched with the second slice. This is the reason why the second service data can be sent to the third interface based on the second slice. Before sending the second service data, the forwarding device performs service configuration to set the service data that can be transmitted by the second slice to the third interface.
[0107] Before sending the second service data, configuration information of the second service data is defined, the configuration information including at least one of a service data type, a service message protocol, or a destination address of a service message. The second service data includes one or more parameters matching the second slice, that is, the second service data includes one or more parameters matching the configuration information of the second service data. The specific implementation process is similar to the configuration information of the first service data, and reference is made to the foregoing description, which will not be repeated here.
[0108] In general, as shown in FIG. 4, the forwarding device sends the first service data to the second interface through the first slice of the first interface and the second service data to the third interface through the second slice of the first interface. Different service data is transmitted on different links where different slices are located, and is isolated from each other, and congestion does not occur. In the embodiments of the present application, the number of slices created for the first interface of the forwarding device can be multiple, different slices transmit different service data, and the application scenarios and implementation manners of the technical solution of the present application are also enriched, and the flexibility of the technical solution is improved.
[0109] In some optional embodiments, the management node further includes a fourth interface in addition to the first interface, and the fourth interface is also a physical interface for communicating with the first AP device. In combination with the fourth interface, the forwarding device can set a link protection mechanism for the first interface. The following will be described in combination with the schematic diagram. Please refer to FIG. 5, which is a schematic diagram of a communication system provided by the embodiments of the present application.
[0110] In the embodiment shown in FIG. 5, the first interface and the second interface of the forwarding device are connected with the first AP device through optical fibers, respectively, to realize the communication between the forwarding device and the first AP device.
[0111] The forwarding device obtains a fifth correspondence relationship based on the fourth interface and the third slice, and the fifth correspondence relationship includes a logical interface corresponding to the fourth interface and the third slice. The forwarding device further binds the third slice with the second interface of the first AP device, that is, obtains a sixth correspondence relationship based on the second interface and the third slice, and the sixth correspondence relationship includes a logical interface corresponding to the second interface and the third slice. The manner in which the forwarding device obtains the fifth correspondence relationship and the sixth correspondence relationship is similar to the manner in which the first correspondence relationship and the second correspondence relationship are obtained, respectively, as shown in the foregoing description, which will not be repeated here.
[0112] The forwarding device also establishes a link of the third slice of the fourth interface to the second interface of the first AP device. In addition, in the foregoing example, the forwarding device also establishes a link of the first slice of the first interface to the second interface of the first AP device. The forwarding device can send the first service data to the second interface of the first AP device through the first slice, or send the first service data to the second interface through the third slice.
[0113] In actual application, the forwarding device can set one of the links as a primary link and the other as a backup link. In the scheme of primary link failure, the first service data is transmitted through the backup link. For example, in the scheme of first slice failure, the forwarding device sends the first service data to the second interface based on the third slice, thereby ensuring that the transmission of the first service data is not affected by the first slice failure.
[0114] The first slice failure refers to a failure of a link where the first slice is located, which can be caused by various factors, including a failure of the first interface corresponding to the first slice, a failure of a single board where the first interface is located, or a failure of an optical fiber connecting the first AP device and the first interface, and the like, which are not limited herein.
[0115] In some optional embodiments, the first interface and the fourth interface are located on different single boards of the management node, so that even if the first slice fails due to a single board failure, the third slice of the fourth interface can still be normally used, further improving the reliability of data transmission.
[0116] In actual application, the link protection mechanism can further set a larger number of links for the first service data, and is not limited to the scheme shown in FIG. 5, which is not limited herein.
[0117] In the embodiments of the present application, the forwarding device establishes a link protection mechanism to establish a plurality of links for transmitting the first service data. In the scheme of first slice failure, the forwarding device can also send the first service data to the second interface through the third slice, thereby ensuring the reliability of data transmission.
[0118] In the foregoing examples of FIG. 4 and FIG. 5, the forwarding device is connected to the first AP device. In actual application, the forwarding device can also be connected to a second AP device. In the embodiments of the present application, the forwarding device can communicate with one or more AP devices. In the following, the scheme of communication between the forwarding device and multiple AP devices is described in conjunction with the schematic diagram.
[0119] Please refer to FIG. 6, which is a schematic diagram of a communication system provided by the embodiments of the present application.
[0120] In the embodiment shown in FIG. 6, the first interface of the forwarding device is connected with the first AP device through an optical fiber, so as to realize the communication between the forwarding device and the first AP device. The sixth interface of the forwarding device is connected with the second AP device through an optical fiber, so as to realize the communication between the forwarding device and the second AP device.
[0121] The forwarding device obtains a seventh correspondence relationship based on the fifth interface and the fourth slice. The fifth interface is a physical interface for the communication between the forwarding device and the second AP device. The seventh correspondence relationship includes a logical interface corresponding to the fifth interface and the fourth slice. The forwarding device also binds the fourth slice with the sixth interface of the second AP device, that is, obtains an eighth correspondence relationship based on the sixth interface and the fourth slice. The sixth interface is an interface for the communication between the second AP device and the third user side. The eighth correspondence relationship includes a logical interface corresponding to the sixth interface and the fourth slice. The manner in which the forwarding device obtains the seventh correspondence relationship and the eighth correspondence relationship is similar to the manner in which the first correspondence relationship and the second correspondence relationship are obtained, as described above, and will not be described herein again.
[0122] The forwarding device also establishes a link from the fourth slice of the fifth interface to the sixth interface of the second AP device, and sends third service data to the sixth interface based on the fourth slice. The third service data includes one or more parameters matching the fourth slice. This is the reason why the third service data can be sent to the sixth interface based on the fourth slice. Before sending the third service data, the forwarding device performs service configuration to define the service data that can be transmitted from the fourth slice to the fifth interface.
[0123] Before sending the third service data, configuration information of the third service data is defined. The configuration information includes at least one of a service data type, a service packet protocol, or a destination address of a service packet. The third service data includes one or more parameters matching the fourth slice, that is, the third service data includes one or more parameters matching the configuration information of the third service data. The specific implementation process is similar to the configuration information of the first service data, as described above, and will not be described herein again.
[0124] In some optional embodiments, the first interface and the fifth interface shown in FIG. 6 can be obtained by hashing the initial physical interface of the forwarding device. The forwarding device includes an initial physical interface and a hashing optical module. The initial physical interface is divided into the first interface and the fifth interface by the hashing optical module. The sum of the bandwidths of the first interface and the fifth interface is less than the bandwidth of the initial physical interface. The bandwidths of the first interface and the fifth interface can be the same or different, which is not limited herein.
[0125] It can be understood that the number of physical interfaces for the communication between the forwarding device and the AP device is increased by hashing. The number of AP devices connected with the forwarding device is also expanded, and the scale of the communication system is also expanded.
[0126] For example, assuming that the bandwidth of the initial physical interface of the forwarding device is 400G, the initial physical interface can be connected to a hash optical module, and the initial physical interface is expanded to four physical interfaces with a bandwidth of 100G. Before the hash, the forwarding device is connected to at most one AP device, and after the hash, the forwarding device includes four physical interfaces and can be connected to at most four AP devices.
[0127] In the embodiments of the present application, the forwarding device communicates with different AP devices based on different interfaces, increases the number of AP devices managed by the forwarding device, and improves the scale of the communication system.
[0128] The foregoing FIGS. 4 to 6 are only examples of the communication system provided by the embodiments of the present application, and in actual applications, the connection of the forwarding device and the AP device in the communication system can also have multiple possibilities, including any combination of the foregoing FIGS. 4 to 6.
[0129] For example, referring to FIG. 7, FIG. 7 is a schematic diagram of a communication system provided by the embodiments of the present application.
[0130] As shown in FIG. 7, the interface 1 and the interface 2 of the forwarding device are connected to the AP device 1 through different optical fibers, and the communication with the AP device 1 is realized. The interface 3 of the forwarding device is connected to the AP 2 through an optical fiber, and the communication with the AP device 2 is realized.
[0131] The forwarding device creates a slice 1 for the interface 1 and binds the slice 1 with the interface 4 of the AP device 1, thereby establishing a link from the slice 1 of the interface 1 to the interface 4. A slice 2 is created for the interface 2, and the slice 2 is bound with the interface 4 of the AP device 1, thereby establishing a link from the slice 2 of the interface 2 to the interface 4. The interface 4 is an interface for the AP device 1 to communicate with the user side 1. The forwarding device sets a link protection mechanism by taking the two links as a main link and a backup link for transmitting the same service data. The implementation process is similar to the embodiment shown in FIG. 5, and will not be described here.
[0132] The forwarding device also creates a slice 3 for the interface 3 and binds the slice 3 with the interface 5 of the AP device 2, thereby establishing a link from the slice 3 of the interface 3 to the interface 5. The interface 5 is an interface for the AP device 2 to communicate with the user side 2.
[0133] Optionally, part or all of the interfaces 1 to 3 shown in FIG. 7 can be obtained by hashing the same physical interface.
[0134] The foregoing describes the communication method provided by the embodiments of the present application with the forwarding device as the execution subject. In actual application, the forwarding device is used to manage the AP device, including that the forwarding device issues various configuration information of the forwarding device to the AP device, so that the AP device sets the interface state of the AP device based on the configuration information. The following describes the communication method provided by the embodiments of the present application with the AP device as the execution subject.
[0135] Referring to FIG. 8, FIG. 8 is a flowchart of the communication method provided by the embodiments of the present application, including the following steps.
[0136] 801. receiving the first correspondence relationship and the second correspondence relationship from the forwarding device.
[0137] The first correspondence relationship includes the logical interface corresponding to the first interface and the first slice, and the first interface is the physical interface used by the forwarding device to communicate with the AP device. The second correspondence relationship includes the logical interface corresponding to the second interface and the first slice, and the second interface is the interface used by the AP device to communicate with the first user side.
[0138] 802. based on the first correspondence relationship and the second correspondence relationship, outputting the first service data obtained through the first slice to the second interface, and the first service data includes one or more parameters matched with the first slice.
[0139] The AP device receives the first correspondence relationship and the second correspondence relationship, and the correspondence relationship between the first slice of the first interface and the second interface of the AP device is established. The AP device can output the first service data obtained through the first slice to the second interface.
[0140] Specifically, the AP device obtains the seventh correspondence relationship based on the first correspondence relationship, the seventh correspondence relationship includes the logical interface corresponding to the seventh interface and the seventh slice, the seventh interface is the physical interface connected by the AP device to the first interface, and the seventh slice corresponds to the first slice. Based on the second correspondence relationship and the seventh correspondence relationship, the first service data from the first slice is output to the second interface through the seventh slice.
[0141] The following further describes the foregoing process in combination with the schematic diagram. Referring to FIG. 9, FIG. 9 is a schematic diagram of the communication system provided by the embodiments of the present application.
[0142] In the embodiment shown in FIG. 9, the seventh interface of the AP device is connected to the first interface of the forwarding device through an optical fiber. The first interface can be understood as the internal interface of the forwarding device, and the seventh interface can be understood as the internal interface of the AP device.
[0143] The AP device obtains the first correspondence, that is, obtains that the logical interface corresponding to the first interface is the logical interface corresponding to the first slice. The AP device triggers synchronization to logically split the seventh interface to obtain a ninth correspondence indicating that the seventh interface corresponds to the logical interface of the fifth slice.
[0144] In the related description of the foregoing step 301, it is introduced that the forwarding device can directly logically split the first interface, or can first group the physical interfaces included in the forwarding device and communicating with the AP device, and then split. Correspondingly, the AP device can also directly logically split the seventh interface, or can first group the physical interfaces included in the AP device and communicating with the forwarding device, and then split.
[0145] For the latter scheme, the forwarding device also first groups the physical interfaces included in the forwarding device and communicating with the AP device, and then splits. The AP device synchronously performs a corresponding grouping operation to obtain the ninth correspondence. The AP device obtains the ninth correspondence based on the first correspondence, including: obtaining a second interface group to which the seventh interface belongs based on a first interface group to which the first interface belongs. Determining a fifth slice corresponding to the seventh interface in the second interface group based on a first slice corresponding to the first interface group and the first interface. Obtaining the ninth correspondence based on the second interface group.
[0146] Specifically, the forwarding device sends the first interface group to which the first interface belongs to the AP device, so that the AP device determines the second interface group to which the seventh interface belongs. The plurality of interfaces in the first interface group correspond one-to-one to the plurality of interfaces in the second interface group, and the interfaces in the second interface group share the resources of this interface group. The forwarding device configures the first interface in the first interface group to correspond to the first slice, and the AP device correspondingly configures the seventh interface in the second interface group to correspond to the fifth slice. Thus, the ninth correspondence indicating that the seventh interface corresponds to the logical interface of the fifth slice is obtained.
[0147] The AP device determines the link from the logical interface of the first slice of the first interface to the logical interface of the fifth slice of the seventh interface based on the first correspondence and the ninth correspondence. In combination with the second correspondence, it is determined that the foregoing link corresponds to the second interface. That is, the correspondence of the logical interface corresponding to the first slice, the logical interface corresponding to the fifth slice, and the second interface is realized. The forwarding device sends the first service data to the AP device through the first slice, that is, actually sends the first service data to the logical interface corresponding to the fifth slice through the logical interface corresponding to the first slice, and then forwards the first service data to the second interface by the logical interface corresponding to the fifth slice. Finally, through the second interface, it reaches the first user side.
[0148] In the embodiment of the present application, the first interface and the logical interface corresponding to the first slice are associated based on the first correspondence relationship, and the second correspondence relationship between the first slice and the second interface on the AP device is obtained. Thus, the AP device transmits the first service data obtained through the first slice to the second interface, which is isolated from other service data, and network congestion is avoided. Further, the AP device synchronizes the slice creation operation of the forwarding device, so that the first service data obtained through the first slice is accurately output to the second interface through the fifth slice, ensuring normal transmission of service data between the AP device and the forwarding device, and improving the realizability of the technical solution of the present application. In addition, multiple interface resources in the same interface group are shared, and when the resource of a certain interface is insufficient, the idle resources in the interface group to which the interface belongs are re-allocated to the interface, which is beneficial to improving the stability of service transmission.
[0149] In addition, the AP device can output the first service data obtained through the first slice to the second interface because the first service data includes one or more parameters matching the first slice. Further, the AP device forwards the first service data from the first slice to the second interface through the fifth slice, and the one or more parameters included in the first service data also match the fifth slice. Before outputting the first service data to the second interface, the AP device obtains the configuration information of the first service data defined by the forwarding device, so as to determine that the data transmitted between the first slice and the fifth slice is the first service data.
[0150] Before step 802, the AP device receives the configuration information of the first service data from the forwarding device, and the configuration information of the first service data includes at least one of the service data type, the service packet protocol, or the destination address of the service packet. The first service data includes one or more parameters matching the first slice / fifth slice, that is, the first service data includes one or more parameters matching the aforementioned configuration information of the first service data. The specific content is similar to the related description in the foregoing, which will not be described here.
[0151] In the embodiment of the present application, the AP device validates the configuration information of the service data issued by the forwarding device on the corresponding interface, so that the transmission of the service data can be carried out normally.
[0152] In the related description of step 301 in the foregoing, it is introduced that the premise of creating the first slice for the first interface is that the first interface is in the flexible Ethernet mode. Similarly, the premise of creating the fifth slice for the seventh interface by the AP device is that the seventh interface is in the flexible Ethernet mode. In other words, for a physical interface in the standard Ethernet mode, the mode of the interface is adjusted to the flexible Ethernet mode before slicing. The physical interface in the flexible Ethernet mode has flexible Ethernet switching capability and can create a logical interface corresponding to a slice.
[0153] In the related description of the foregoing FIG. 4, the scheme that one interface of the forwarding device creates multiple slices is introduced. Similarly, one physical interface of the AP device that communicates with the forwarding device can also create multiple slices. The following takes FIG. 9 as an example for illustration.
[0154] In the embodiment shown in FIG. 9, the communication system includes a forwarding device and an AP device. A first interface of the forwarding device and a seventh interface of the AP device establish a physical connection through an optical fiber. It can also be understood that the first interface and the seventh interface correspond to each other.
[0155] In addition to obtaining the first correspondence relationship indicating that the first interface corresponds to the logical interface of the first slice, the forwarding device also obtains the third correspondence relationship indicating that the first interface corresponds to the logical interface of the second slice. The forwarding device creates the first slice and the second slice for the first interface. In addition, the forwarding device also obtains the second correspondence relationship indicating that the first slice corresponds to the second interface, and the fourth correspondence relationship indicating that the second slice corresponds to the third interface. The second interface and the third interface are external interfaces of the AP device, which are interfaces for the AP device to communicate with the first user side and the second user side respectively. That is, the forwarding device also binds the first slice and the second slice to different external interfaces respectively.
[0156] Based on the configuration of the forwarding device, the AP device triggers the corresponding operation on the seventh interface. Specifically, in addition to receiving the first correspondence relationship and the second correspondence relationship from the forwarding device as shown in the foregoing FIG. 8, the AP device also receives the third correspondence relationship and the fourth correspondence relationship from the forwarding device. The third correspondence relationship includes the logical interface corresponding to the first interface and the second slice, and the fourth correspondence relationship includes the logical interface corresponding to the third interface and the second slice.
[0157] Based on the third correspondence relationship, the AP device obtains the tenth correspondence relationship, which includes the logical interface corresponding to the seventh interface and the sixth slice, and the sixth slice corresponds to the second slice. In combination with the fourth correspondence relationship, the AP device determines the link: the logical interface corresponding to the second slice→the logical interface corresponding to the sixth slice→the third interface. The specific implementation manner of the AP device for obtaining the tenth correspondence relationship based on the third correspondence relationship is similar to the foregoing “obtaining the ninth correspondence relationship based on the first correspondence relationship”, which is described in the foregoing and will not be repeated here.
[0158] In the related description of the preceding FIG. 4, the forwarding device sends the second service data to the third interface through the second slice. Before sending the second service data, configuration information of the second service data is defined, and the second service data includes one or more parameters matching the second slice. The sixth slice of the AP device corresponds to the second slice of the forwarding device, and for the AP device, the second service data from the second slice is forwarded to the third interface through the sixth slice. This means that the one or more parameters included in the second service data also match the sixth slice. Before outputting the second service data to the third interface, the AP device obtains the configuration information of the second service data defined by the forwarding device, so as to determine that the data transmitted between the second slice and the sixth slice is the second service data.
[0159] Before the AP device forwards the second service data from the second slice to the third interface through the sixth slice, the AP device receives the configuration information of the second service data from the forwarding device, and the configuration information of the second service data includes at least one of a service data type, a service packet protocol, or a destination address of a service packet. The second service data includes one or more parameters matching the second slice / sixth slice, that is, the second service data includes one or more parameters matching the aforementioned configuration information of the second service data. The specific content is similar to the related description above, and will not be described here.
[0160] In the embodiment of the present application, in the scheme of creating multiple slices at the first interface of the forwarding device, the AP device synchronously creates multiple slices at the seventh interface connected with the first interface, and the multiple slices included in the seventh interface of the AP device correspond one by one to the multiple slices included in the first interface of the forwarding device. Thus, different slices under the same interface transmit different service data, enriching the application scenarios and implementation modes of the technical scheme of the present application and improving the flexibility of the technical scheme.
[0161] In the related description of the preceding FIG. 5, the link protection mechanism set by the forwarding device is introduced, and correspondingly, the AP device is also configured with a link protection mechanism. The following will be described in combination with the schematic diagrams. Please refer to FIG. 10 and FIG. 11, which are schematic diagrams of a communication system provided by the embodiment of the present application.
[0162] In the embodiment shown in FIG. 10, the communication system includes a forwarding device and an AP device, the first interface of the forwarding device and the seventh interface of the AP device are physically connected through an optical fiber, and the fourth interface of the forwarding device and the eighth interface of the AP device are physically connected through an optical fiber. It can also be understood that the first interface corresponds to the seventh interface, and the fourth interface corresponds to the eighth interface.
[0163] The forwarding device not only obtains and sends the first correspondence relationship and the second correspondence relationship to the AP device, but also establishes a link 1 for transmitting the first service data between the forwarding device and the AP device: the logical interface corresponding to the first slice → the logical interface corresponding to the fifth slice → the second interface. The forwarding device also obtains and sends the fifth correspondence relationship and the sixth correspondence relationship to the AP device, so as to establish a link 2 for transmitting the first service data between the forwarding device and the AP device: the logical interface corresponding to the third slice → the logical interface corresponding to the seventh slice → the second interface.
[0164] Specifically, the AP device receives the fifth correspondence relationship and the sixth correspondence relationship from the forwarding device, the fifth correspondence relationship includes the fourth interface and the logical interface corresponding to the third slice, and the sixth correspondence relationship includes the second interface and the logical interface corresponding to the third slice. Based on the fifth correspondence relationship, the AP device obtains an eleventh correspondence relationship, the eleventh correspondence relationship includes an eighth interface and a logical interface corresponding to a seventh slice, the eighth interface is a physical interface connected with the fourth interface of the AP device, and the seventh slice corresponds to the third slice. The AP device obtains the eleventh correspondence relationship, and in combination with the sixth correspondence relationship, the aforementioned link 2: the logical interface corresponding to the third slice → the logical interface corresponding to the seventh slice → the second interface is determined.
[0165] The AP device obtains the eleventh correspondence relationship based on the fifth correspondence relationship, which can be understood as that the AP device obtains the slice created by the forwarding device for the fourth interface. A corresponding slice is triggered to be created for the eighth interface corresponding to the fourth interface. The specific implementation process is similar to the "obtaining the ninth correspondence relationship based on the first correspondence relationship" in the embodiment shown in FIG. 9, which will not be described here again.
[0166] The aforementioned link 1 and link 2 can be used for transmitting the first service data. In actual application, the forwarding device can set one of the links as a main link and the other as a backup link. In the scheme of main link failure, the first service data is transmitted through the backup link. For example, in the scheme of the first slice failure, the forwarding device transmits the first service data from the third slice to the second interface based on the third slice, so as to ensure that the transmission of the first service data is not affected by the failure of the first slice. For the AP device, in the scheme of the fifth slice failure, the first service data from the third slice is output to the second interface through the seventh slice.
[0167] The fifth slice failure refers to the failure of the link where the fifth slice is located, which has multiple possibilities, including: the failure of the first interface corresponding to the first slice, the failure of the single board where the first interface is located, the failure of the optical fiber connected with the first interface of the first AP device, the failure of the seventh interface corresponding to the fifth slice, or the failure of the single board where the seventh interface is located, and the like, which will not be limited here.
[0168] In some optional embodiments, the seventh interface and the eighth interface are located on different single boards of the management node, so that even if the fifth slice fails due to a single board failure, the normal use of the seventh slice of the eighth interface is not affected, and the reliability of data transmission is further improved.
[0169] In actual applications, the link protection mechanism can further set a larger number of links for the first service data, and is not limited to the scheme shown in FIG. 10, and the specific number is not limited here.
[0170] Further, the principle of the link protection mechanism can be as shown in FIG. 11. The forwarding device creates a logical interface trunk, and adds the slices located on different single boards of the forwarding device to the trunk as members of the trunk group on the forwarding device side. The forwarding device synchronously issues to the AP device, so that the AP device creates a corresponding trunk, and adds the slices corresponding to the members of the trunk group of the forwarding device to the trunk. As shown in FIG. 11, the trunk group includes the trunk of the forwarding device and the trunk of the AP device, the trunk of the forwarding device includes slice 1.1 and slice 1.2, which respectively correspond to slice 2.1 and slice 2.2 included in the trunk of the AP device. The corresponding slices in the trunk of the forwarding device and the trunk of the AP device have the same slice identifier.
[0171] The forwarding device further creates an association relationship between the trunk group and the external interface of the AP device, and one trunk group corresponds to one external interface. In the embodiment shown in FIG. 11, the trunk group includes two member links, which are the links of slice 1.1 and slice 2.1, and the links of slice 1.2 and slice 2.2. Each member link in the trunk group has the capability of carrying the forwarding service of the trunk group and the external interface, and in actual applications, one of the links can be set as a primary link, and the other link can be set as a backup link. When the primary link fails, the backup link carries the forwarding service of the trunk group and the external interface, thereby realizing link protection.
[0172] In actual applications, the trunk group can further include a larger number of member links, and the transmission bandwidth of the member links is consistent with the bandwidth of the external interface corresponding to the trunk group.
[0173] In the embodiments of the present application, the AP device establishes a link protection mechanism, and establishes a plurality of links for transmitting the first service data. In the scheme of the fifth slice failure, the first service data from the third slice can also be sent to the second interface through the seventh slice, thereby ensuring the reliability of data transmission.
[0174] In general, in the embodiments of the present application, the forwarding device creates slices for the physical interfaces that communicate with the AP device, and binds the slices with the external interfaces of the AP device that communicate with the user side, so as to realize the transmission of service data of the corresponding logical interfaces of the slices to the external interfaces. Correspondingly, the AP device synchronously creates corresponding slices for the physical interfaces that communicate with the forwarding device based on the operation of the forwarding device, so as to realize the correspondence of the slices of the forwarding device→the slices of the AP device→the external interfaces of the AP device. The following will be further explained in combination with the schematic diagram.
[0175] Please refer to Fig. 12, which is a schematic diagram of a communication system provided by the embodiments of the present application.
[0176] In the embodiment shown in Fig. 12, the forwarding device includes an initial physical interface, and the initial physical interface is hashed by the optical hashing module to obtain interfaces 1 to 3. The interfaces 1 to 3 are internal interfaces of the forwarding device that communicate with the AP device, and respectively establish physical connections with the interfaces 4, 5 of the AP device 1 and the interface 6 of the AP device 2 through optical fibers. The interfaces 4 and 5 can be understood as internal interfaces of the AP device 1 that communicate with the forwarding device, and the interface 6 can be understood as an internal interface of the AP device 2 that communicates with the forwarding device.
[0177] In addition, the AP device 1 further includes external interfaces that communicate with the user side, i.e. interfaces 7 to 10. The AP device 2 further includes external interfaces that communicate with the user side, i.e. interfaces 11 and 12.
[0178] The forwarding device creates an interface group 1.1, adds the interfaces 1 and 2 to the interface group 1.1, and creates slices for the interfaces 1 and 2. Among them, the interface 1 includes slices 1.1 and 1.2, and the interface 2 includes slices 1.3 and 1.4. Correspondingly, the AP device creates an interface group 2.1 corresponding to the interface group 1.1, and adds the interface 4 corresponding to the interface 1 and the interface 5 corresponding to the interface 2 to the interface group 2.1. The AP device creates a slice 2.1 corresponding to the slice 1.1 and a slice 2.2 corresponding to the slice 1.2 for the interface 4 corresponding to the interface 1, and creates a slice 2.3 corresponding to the slice 1.3 and a slice 2.4 corresponding to the slice 1.4 for the interface 5 corresponding to the interface 2. In the interface group of the forwarding device and the corresponding interface group of the AP device, the interfaces of the forwarding device and the interfaces of the AP device correspond one by one, and the slices of the corresponding interfaces also correspond one by one. Similarly, the interface group 2.1 of the forwarding device corresponds to the interface group 2.2 of the AP device.
[0179] The interface group corresponding to the forwarding device and the AP device has the same interface group identifier, the corresponding interface has the same interface identifier, and the corresponding slice has the same slice identifier. In other words, after the forwarding device configures the corresponding relationship of the interface group and the interface, the interface group and the slice, and the interface and the slice, the forwarding device carries the corresponding identifier in the corresponding relationship issued to the AP device, so that the AP device performs the corresponding operation to obtain the corresponding relationship on the AP device side.
[0180] For example, the forwarding device issues the corresponding relationship of the logical interface corresponding to slice 1.1 and interface 7 to the AP device, and the AP device determines the link: logical interface of slice 1.1 corresponding logical interface of slice 2.1 corresponding interface 7 based on the corresponding relationship of slice 1.1 and slice 2.1. The forwarding device also defines the configuration information of the service data of the link, so that the service data meeting the configuration is transmitted based on the foregoing link.
[0181] Optionally, assuming that interface 7 and interface 9 are the same interface. Then the link: logical interface of slice 1.1 corresponding logical interface of slice 2.1 corresponding interface 7 and the link: logical interface of slice 1.3 corresponding logical interface of slice 2.3 corresponding interface 9 can be understood as the member links in a trunk group in the embodiment shown in FIG. 11, which are provided with a link protection mechanism.
[0182] In the embodiment shown in FIG. 12, the forwarding device includes two interface groups as an example. In actual application, the forwarding device can also include more or fewer interface groups. Each interface can also include more or fewer slices, and the number of slices included in different interfaces can be the same or different. The forwarding device can also be connected to more or fewer AP devices, which are not limited here.
[0183] In some optional embodiments, the interface of the AP device for communicating with the user side can also be obtained by hashing the initial interface of the AP device. For example, in the embodiment shown in FIG. 12, part or all of the interfaces 7 to 10 of the AP device 1 can be obtained by hashing the same initial interface. The hashing manner is similar to that of the forwarding device hashing the physical interface connected to the AP device, and based on the hashing, the AP device can be connected to more user side devices, which will not be described here.
[0184] In the embodiments of the present application, the forwarding device creates a slice for its own physical interface, binds the slice to the external interface of the AP device, sets the configuration information of the service, and issues the configuration information to the AP device managed by the forwarding device, so that the AP device performs the corresponding operation. It can also be understood that the forwarding device sets various types of configuration information and issues the configuration information to the AP device managed by the forwarding device.
[0185] In different stages, the configuration information set by the forwarding device has multiple possibilities, which will be described below in combination with the schematic diagrams. Please refer to FIG. 13 to FIG. 15, which are flow diagrams of the communication method provided by the embodiments of the present application. As shown in FIG. 13, the communication method comprises:
[0186] 1301. The forwarding device enables the flexible Ethernet mode of the first inline interface.
[0187] In the network deployment stage, the two PE devices are respectively configured as the forwarding device and the AP device, and the physical interface of the forwarding device and the physical interface of the AP device are connected through the physical optical fiber. The physical interface connected with the AP device is called the first inline interface of the forwarding device. The forwarding device enables the flexible Ethernet mode of the first inline interface, so that the first inline interface can be split processing.
[0188] 1302. The forwarding device configures the correspondence between the first inline interface and the second inline interface of the AP device.
[0189] The physical interface connected with the forwarding device on the AP device is called the second inline interface of the AP device. The forwarding device configures the correspondence between the first inline interface and the second inline interface, and the first inline interface and the second inline interface are one-to-one correspondence.
[0190] 1303. The forwarding device sends the first configuration packet to the AP device.
[0191] The first configuration packet comprises the identification of the first inline interface and the state of the first inline interface, and the state indicates that the first inline interface is in the flexible Ethernet mode.
[0192] 1304. The AP device enables the flexible Ethernet mode of the second inline interface.
[0193] The AP device determines the identification of the second inline interface which is the same as or corresponding to the identification of the first inline interface based on the first configuration packet, thereby determining the second inline interface. And enables the flexible Ethernet mode of the second inline interface, so that the second inline interface can be split processing.
[0194] 1305. The AP device sends the first response packet to the forwarding device.
[0195] The first response packet sent by the AP device to the forwarding device indicates that the AP device enables the flexible Ethernet mode of the second inline interface corresponding to the first inline interface.
[0196] 1306. The forwarding device configures the first interface group and binds the corresponding first inline interface.
[0197] The forwarding device creates a first interface group and adds a plurality of inline interfaces in flexible Ethernet mode to the first interface group. The aforementioned first inline interface is included in the first interface group, and resources of the plurality of inline interfaces in the first interface group are shared.
[0198] 1307. The forwarding device sends a second configuration message to the AP device.
[0199] The second configuration message includes an identifier of the first interface group and identifiers of a plurality of inline interfaces included in the first interface group, and indicates a first inline interface bound to the first interface group. The second configuration message is used to trigger the AP device to synchronize configuration of a second interface group corresponding to the first interface group.
[0200] 1308. The AP device configures the second interface group and binds a corresponding second inline interface.
[0201] The AP device creates the second interface group based on the second configuration message, and an identifier of the second interface group is the same as or corresponds to an identifier of the first interface group. A plurality of inline interfaces in flexible Ethernet mode are added to the second interface group, the second inline interface is included in the second interface group, and resources of the plurality of inline interfaces in the second interface group are shared.
[0202] In addition, the first interface group corresponds to the second interface group, and the plurality of inline interfaces included in the first interface group one-to-one correspond to the plurality of inline interfaces included in the second interface group. The inline interface of the forwarding device and the inline interface of the AP device corresponding thereto have the same or corresponding identifier.
[0203] For example, in the embodiment shown in the aforementioned FIG. 12, it is assumed that the first interface group is interface group 1.1 and the second interface group is interface group 2.1. Interface 1 in interface group 1.1 corresponds to interface 4 in interface group 2.1, and an identifier of interface 1 and an identifier of interface 4 are the same or correspond to each other. Interface 2 in interface group 1.1 corresponds to interface 5 in interface group 2.1, and an identifier of interface 2 and an identifier of interface 5 are the same or correspond to each other.
[0204] 1309. The AP device sends a second response message to the forwarding device.
[0205] The second response message sent by the AP device to the forwarding device indicates that the AP device synchronously creates the second interface group corresponding to the first interface group.
[0206] The embodiment shown in the aforementioned FIG. 13 introduces a configuration process of the inline interface of the forwarding device and the inline interface of the AP device. After step 1309, the forwarding device creates a slice for the inline interface and associates the slice to the external interface of the AP device. The following is described in combination with FIG. 14.
[0207] 1401. The forwarding device configures a slice of the first interface group.
[0208] The forwarding device creates a slice for each first inline interface in the first interface group based on the first interface group. In the network deployment stage, the forwarding device knows the transmission bandwidth of the external interface of the AP device connected thereto. When creating the slice of the first inline interface, the slice is allocated the bandwidth of the external interface corresponding to the slice. The bandwidth of the slice is known to the transmission bandwidth of the external interface. For example, assuming that the associated external interface is a 10G bandwidth GE optical port, the slice is allocated a 10G bandwidth resource. Optionally, the transmission bandwidth of the external interface has multiple possibilities, such as: 1G, 25G, 40G, 50G, 100G, 400G, etc., which are not limited here.
[0209] 1402. The forwarding device sends a third configuration message to the AP device.
[0210] The third configuration message includes the identification of the first interface group, the identification of the slice configured by the first interface group, and the bandwidth allocated to each slice. It is used to trigger the AP device to synchronously create the slice of the second interface group corresponding to the first interface group.
[0211] 1403. The AP device configures the slice of the second interface group.
[0212] The AP device configures the slice of the second interface group, which is similar to the configuration of the slice of the first interface group by the forwarding device, which will not be described here. The configured slice of the second interface group corresponds to the slice of the first interface group one by one. The slice of the first interface group and the slice of the second interface group have the same or corresponding identification.
[0213] For example, in the embodiment shown in the foregoing FIG. 12, assuming that the first interface group is interface group 1.1 and the second interface group is interface group 2.1. The interface group 1.1 includes the slice 1.1 to the slice 1.4, which corresponds to the slice 2.1 to the slice 2.4 included in the interface group 2.1. The identifications of the corresponding slices are the same or corresponding.
[0214] 1404. The AP device sends a third response message to the forwarding device.
[0215] The third response message sent by the AP device to the forwarding device indicates that the AP device synchronously configures the slice of the second interface group corresponding to the slice of the first interface group.
[0216] 1405. The forwarding device configures the binding relationship between the slice of the first interface group and the external interface of the AP device.
[0217] The forwarding device binds the slice of the first interface group to the external interface of the AP device, wherein one slice is bound to one external interface. For example, in the embodiment shown in FIG. 12, the slice 1.1 is bound to the interface 7 and the slice 1.2 is bound to the interface 8.
[0218] 1406. The forwarding device sends a fourth configuration message to the AP device.
[0219] The fourth configuration message includes the slice identifier and the identifier of the egress interface of the slice binding, for triggering the AP device to perform step 1407. Save the binding relationship between the slice of the first interface group and the egress interface of the AP device. And based on step 1403, determine the link from the slice of the forwarding device to the slice of the AP device, and then to the egress interface of the AP device.
[0220] Wherein, the AP device can save the binding relationship between the slice of the first interface group and the egress interface of the AP device in the AP device locally, or store it on a device accessible to other AP devices, which is not limited here.
[0221] 1408. The AP device sends a fourth response message to the forwarding device.
[0222] The fourth response message sent by the AP device to the forwarding device indicates that the AP device saves the binding relationship between the slice of the first interface group and the egress interface of the AP device.
[0223] 1409. The forwarding device configures the service configuration information of the slice.
[0224] The forwarding device configures the service configuration information of the slice, which indicates the service data transmitted by the slice. The service configuration information includes the service data type, the service message type, or the destination address of the service data.
[0225] 1410. The forwarding device sends a fifth configuration message to the AP device.
[0226] The fifth configuration message includes the identifier of the slice and the service configuration information of the slice, so that the AP device performs step 1411. The service configuration information is validated to the corresponding egress interface.
[0227] For example, in the embodiment shown in FIG. 12, the fifth configuration message sent by the forwarding device to the AP device includes the identifier of slice 1.3 and the service configuration information of slice 1.3. The AP device issues the service configuration information of slice 1.3 to the register or chip of interface 9 through slice 2.3 corresponding to slice 1.3, so that the service configuration information is validated to interface 9. When slice 1.3 sends service data satisfying the service configuration information to slice 2.3, slice 2.3 sends the service data to interface 9.
[0228] 1412. The AP device sends a fifth response message to the forwarding device.
[0229] The fourth response message sent by the AP device to the forwarding device indicates that the AP device synchronizes the service configuration information, ensuring that the forwarding device and the AP device can normally transmit the service data of the corresponding slice.
[0230] In the embodiments of the present application, the forwarding device can also set a link protection mechanism, which will be described below in combination with FIG. 15.
[0231] 1501. The forwarding device configures a slice of the first interface group.
[0232] 1502. The forwarding device sends a third configuration message to the AP device.
[0233] 1503. The AP device configures a slice of the second interface group.
[0234] 1504. The AP device sends a third response message to the forwarding device.
[0235] Steps 1501 to 1504 are similar to the aforementioned steps 1301 to 1304, and details are described above, which will not be described here again.
[0236] 1505. The forwarding device configures a first trunk port and adds a first target slice to the first trunk port.
[0237] The number of the first target slices is multiple, which are located on different single boards of the forwarding device, and come from the same or different interface groups.
[0238] 1506. The forwarding device sends a sixth configuration message to the AP device.
[0239] The sixth configuration message includes an identifier of the first trunk port and an identifier of the first target slice, which is used to trigger the AP device to perform step 1507. The device configures a second trunk port and adds a second target slice to the second trunk port.
[0240] The second target slice included in the second trunk port corresponds to the first target slice included in the first trunk port one by one.
[0241] 1508. The AP device sends a sixth response message to the forwarding device.
[0242] The AP device sends the sixth response message to the forwarding device, indicating that the AP device has created the second trunk port corresponding to the first trunk port.
[0243] 1509. The forwarding device configures a binding relationship between the first trunk port and a target external connection interface of the AP device.
[0244] The forwarding device binds the first trunk port with the target external connection interface of the AP device, and allocates the same bandwidth to each first target slice included in the first trunk port as the target external connection interface.
[0245] 1510. The forwarding device sends a seventh configuration message to the AP device.
[0246] The seventh configuration message includes the identification of the first trunk port and the identification of the corresponding target external interface, and triggers the AP device to perform step 1511. The device configures the binding relationship between the second trunk port and the target external interface of the AP device.
[0247] 1512. The AP device sends a seventh response message to the forwarding device.
[0248] The AP device sends a seventh response message to the forwarding device, indicating that the AP device has bound the second trunk port corresponding to the first trunk port to the target external interface.
[0249] In the foregoing embodiments shown in FIGS. 13-15, the forwarding device manages the AP device by issuing a configuration message to the AP device, and the configuration message carries configuration information. In actual applications, the format of the configuration message can be various, which will be described below.
[0250] In some optional embodiments, the forwarding device and the AP device transmit the configuration message and the response message based on the netconf protocol. The message format of the netconf protocol is shown in Table 1:
[0251] Table 1
[0252] As shown in Table 1, the message of the netconf protocol includes a transport layer, a message layer, an operation layer, and a content layer. The transport layer is used to define the transmission protocol used by the message, including blocks extensible exchange protocol (BEEP), secure shell (SSH) protocol, simple object access protocol (SOAP), HTTP protocol, etc.
[0253] The message layer is used to define the message type. If the message layer is <rpc>, the message is a configuration message issued by the forwarding device to the AP device. If the message layer is <rpc-reply>, the message being a reply message sent by the AP device to the forwarding device.
[0254] The operation layer is used to define the operation indicated by the message, <get>The operation for indicating the content layer information of the message is the current state information of the AP device obtained by the forwarding device, and is used to detect the capability of the AP device. For example, which external interfaces are included in the AP device, whether the AP device is in a flexible Ethernet mode, and the like.
[0255] <edit-config>The operation is used to edit the configuration information of the AP device, that is <edit-config>The content layer information of the operation instruction is information issued by the forwarding device and used to trigger the AP device to synchronize the configuration. That is, the service configuration data is used to instruct at least one of adjusting the Ethernet mode of the inline interface of the AP device, creating a second interface group of the AP device, adding the inline interface of the AP device to the second interface group, creating a slice for the inline interface of the AP device, adding the slice of the AP device to the trunk port, or triggering the AP device to keep the configuration information of the service data.
[0256] <get-config>The operation is used to acquire the configuration information of the AP device, or in other words, the response message sent to the forwarding device after the AP device is synchronized with the configuration carries <get-config>Operation. <notification>The operation is used for maintaining the related configuration of the AP device.
[0257] In some optional embodiments, the forwarding device and the AP device transmit the configuration message and the reply message based on the restconf protocol. The message format of the netconf protocol is shown in Table 2.
[0258] Table 2
[0259] As shown in Table 2, the message of the restconf protocol includes a transport layer, an operation layer and a content layer. The transport layer is used to define the transmission protocol used by the message, including: HTTP protocol, transport layer security (TLS) protocol, TCP protocol, etc.
[0260] The operation layer is used to define the operation indicated by the message, <get>The operations are the same as those shown in the preceding Table 1 <get>The operation is similar, <post>Operation, <put>Operation, <patch>Operation, <delete>The operations are the same as those shown in the preceding Table 1 <edit-config>The operation is similar and will not be described here.
[0261] Referring to FIG. 16, FIG. 16 is a structural schematic diagram of a forwarding device provided in an embodiment of the present application. As shown in FIG. 16, the forwarding device 1600 includes an obtaining unit 1601 and a sending unit 1602.
[0262] In some optional embodiments, the obtaining unit 1601 is configured to: obtain a first correspondence relationship based on a first interface and a first slice, the first interface being a physical interface used for communication with a first access point (AP) device, and the first correspondence relationship including a logical interface corresponding to the first interface and the first slice; and obtain a second correspondence relationship based on a second interface and the first slice, the second interface being an interface used for communication between the first AP device and a first user side, and the second correspondence relationship including a logical interface corresponding to the second interface and the first slice.
[0263] The sending unit 1602 is configured to send first service data based on the first slice to the second interface, the first service data including one or more parameters matching the first slice.
[0264] In some optional embodiments, the sending unit 1602 is further configured to send the first correspondence relationship and the second correspondence relationship to the first AP device, so that the first AP device outputs first service data obtained through the first slice to the second interface.
[0265] In some optional embodiments, the obtaining unit 1601 is further configured to: obtain a third correspondence relationship based on the first interface and a second slice, the third correspondence relationship including a logical interface corresponding to the first interface and the second slice; and obtain a fourth correspondence relationship based on a third interface and the second slice, the third interface being an interface used for communication between the first AP device and a second user side, and the fourth correspondence relationship including a logical interface corresponding to the third interface and the second slice.
[0266] The sending unit 1602 is further configured to send second service data based on the second slice to the third interface, the second service data including one or more parameters matching the second slice.
[0267] In some optional embodiments, the obtaining unit 1601 is further configured to: obtain a fifth correspondence relationship based on a fourth interface and a third slice, the fourth interface being a physical interface used for communication with the first AP device, and the fifth correspondence relationship including a logical interface corresponding to the fourth interface and the third slice; and obtain a sixth correspondence relationship based on the second interface and the third slice, the sixth correspondence relationship including a logical interface corresponding to the second interface and the third slice.
[0268] The sending unit 1602 is further configured to send the first service data based on the third slice to the second interface if the first slice has a fault.
[0269] In some optional embodiments, the obtaining unit 1601 is further configured to: obtain a seventh correspondence relationship based on a fifth interface and the fourth slice, the fifth interface being a physical interface used for communication with the second AP device, and the seventh correspondence relationship including a logical interface corresponding to the fifth interface and the fourth slice; and obtain an eighth correspondence relationship based on a sixth interface and the fourth slice, the sixth interface being an interface used for communication between the second AP device and a third user side, and the eighth correspondence relationship including a logical interface corresponding to the sixth interface and the fourth slice.
[0270] The sending unit 1602 is further configured to send third service data to the sixth interface based on the fourth slice, the third service data including one or more parameters matching the fourth slice.
[0271] In some optional embodiments, the obtaining unit 1601 is specifically configured to: obtain an interface group to which the first interface belongs based on the first interface; determine the first slice corresponding to the interface group based on the interface group; and obtain the first correspondence relationship based on the interface group.
[0272] In some optional embodiments, the sending unit 1602 is further configured to send configuration information of the first service data to the first AP device, the configuration information of the first service data including at least one of a service data type, a service packet protocol, or a destination address of a service packet.
[0273] The forwarding device 1600 is configured to perform operations performed by the forwarding device in the foregoing embodiments, implement the communication method provided in the embodiments of the present application, and details are shown in the foregoing, which will not be described here.
[0274] Please refer to FIG. 17, which is a structural schematic diagram of an AP device provided in the embodiments of the present application. As shown in FIG. 17, the AP device 1700 includes a receiving unit 1701 and a processing unit 1702.
[0275] In some optional embodiments, the receiving unit 1701 is configured to receive the first correspondence relationship and the second correspondence relationship from the forwarding device, the first correspondence relationship including a logical interface corresponding to a first interface and a first slice, the first interface being a physical interface used for communication between the forwarding device and the AP device, and the second correspondence relationship including a logical interface corresponding to a second interface and the first slice, the second interface being an interface used for communication between the AP device and a first user side.
[0276] The processing unit 1702 is configured to output first service data obtained through the first slice to the second interface based on the first correspondence relationship and the second correspondence relationship, the first service data including one or more parameters matching the first slice.
[0277] In some optional embodiments, the processing unit 1702 is specifically configured to: based on the first correspondence relationship, obtain a ninth correspondence relationship, the ninth correspondence relationship comprising a logical interface corresponding to the seventh interface and the fifth slice, the seventh interface being a physical interface through which the AP device connects with the first interface, and the fifth slice corresponding to the first slice; and based on the second correspondence relationship and the ninth correspondence relationship, output, through the fifth slice, the first service data from the first slice to the second interface.
[0278] In some optional embodiments, the receiving unit 1701 is further configured to receive, from the forwarding device, a third correspondence relationship and a fourth correspondence relationship, the third correspondence relationship comprising a logical interface corresponding to the first interface and the second slice, and the fourth correspondence relationship comprising a logical interface corresponding to the third interface and the second slice, the third interface being an interface through which the AP device communicates with the second user side.
[0279] The processing unit 1702 is further configured to: based on the third correspondence relationship, obtain a tenth correspondence relationship, the tenth correspondence relationship comprising a logical interface corresponding to the seventh interface and the sixth slice, the sixth slice corresponding to the second slice; and based on the fourth correspondence relationship and the tenth correspondence relationship, output, through the sixth slice, the second service data from the second slice to the third interface, the second service data comprising one or more parameters matching the second slice.
[0280] In some optional embodiments, the receiving unit 1701 is further configured to receive, from the forwarding device, a fifth correspondence relationship and a sixth correspondence relationship, the fifth correspondence relationship comprising a logical interface corresponding to the fourth interface and the third slice, and the fourth interface being a physical interface through which the AP device communicates, and the sixth correspondence relationship comprising a logical interface corresponding to the second interface and the third slice.
[0281] The processing unit 1702 is further configured to: based on the fifth correspondence relationship, obtain an eleventh correspondence relationship, the eleventh correspondence relationship comprising a logical interface corresponding to the eighth interface and the seventh slice, the eighth interface being a physical interface through which the AP device connects with the fourth interface, and the seventh slice corresponding to the third slice; and based on the sixth correspondence relationship and the eleventh correspondence relationship, output, through the seventh slice, the first service data from the third slice to the second interface, if the fifth slice is faulty.
[0282] In some optional embodiments, the processing unit 1702 is specifically configured to: based on a first interface group to which the first interface belongs, obtain a second interface group to which the seventh interface belongs; based on a first slice corresponding to the first interface group and the first interface, determine a fifth slice corresponding to the seventh interface in the second interface group; and based on the second interface group, obtain the ninth correspondence relationship.
[0283] In some optional implementations, the receiving unit 1701 is further configured to receive configuration information of the first service data from the forwarding device, and the configuration information of the first service data includes at least one of a service data type, a service packet protocol, or a destination address of a service packet.
[0284] The AP device 1700 is configured to perform operations performed by any one of the AP devices in the foregoing embodiments, and implement the communication method provided in the embodiments of the present application. Details are shown in the foregoing embodiments, and will not be described here.
[0285] Next, the computer device provided in the embodiments of the present application is described. Referring to FIG. 18, FIG. 18 is a structural schematic diagram of a computer device provided in the embodiments of the present application. The computer device 1800 includes a processor 1801, a memory 1802, a communication interface 1803, and a bus 1804. The processor 1801, the memory 1802, and the communication interface 1803 communicate through the bus 1804, and can also communicate through wireless transmission and other means. The memory 1802 stores program codes, and the processor 1801 can invoke the program codes stored in the memory 1802 to perform operations performed by the forwarding device or any AP device in the foregoing embodiments. Details are not described here.
[0286] It should be understood that, in the embodiments of the present application, the processor 1801 can be a CPU, and can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0287] The memory 1802 can include read-only memory and random access memory, and provide instructions and data to the processor 1801. The memory 1802 can also include non-volatile random access memory. For example, the memory 1802 can also store device type information.
[0288] The memory 1802 can be volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of illustration, and not limitation, nonvolatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), electrically EPROM (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), which acts as external cache. By way of illustration and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct rambus RAM (DR RAM). The bus 1804 can include a data bus, a control bus, and a state signal bus, among others. For clarity, the various buses are shown separately in the figure, but they can be combined. The bus 1840 can be a Peripheral Component Interconnect Express (PCIe) bus, or an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a compute express link (CXL), a cache coherent interconnect for accelerators (CCIX), or the like. The bus 1804 can be divided into an address bus, a data bus, a control bus, and the like.
[0289] The bus 1804 can include a data bus, a control bus, and a state signal bus, among others. For clarity, the various buses are shown separately in the figure, but they can be combined. The bus 1840 can be a Peripheral Component Interconnect Express (PCIe) bus, or an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a compute express link (CXL), a cache coherent interconnect for accelerators (CCIX), or the like. The bus 1804 can be divided into an address bus, a data bus, a control bus, and the like.
[0290] The computer device 1800 can also include one or more communication interfaces, one or more operating systems, such as Windows Server TM , Mac OS X TM Unix TM Linux TM FreeBSD TM and the like.
[0291] The embodiment of the present application further provides a computer readable storage medium, which stores instructions, and when the instructions are executed on a processor, the foregoing communication method applied to a forwarding device or an AP device is realized.
[0292] The embodiment of the present application further provides a computer program product, and when the computer program product is executed on a computer, the foregoing communication method applied to a forwarding device or an AP device is realized.
[0293] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the foregoing described system, device and unit can refer to the corresponding process in the foregoing method embodiment, and will not be repeated here.
[0294] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented by other manners. For example, the foregoing device embodiment is only schematic, for example, the division of the unit is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0295] The unit described as a separate component can or can not be physically separated, and the component shown as a unit can or can not be a physical unit, that is, can be located in one place, or can be distributed on a plurality of network units. According to actual needs, part or all of the units can be selected to achieve the purpose of the embodiment scheme.
[0296] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0297] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes. < / delete> < / patch> < / put> < / post> < / get> < / get> < / notification> < / get> < / rpc>
Claims
1. A communication method characterized by comprising: The method is applied to a forwarding device, and the method comprises: obtaining a first correspondence relationship based on a first interface and a first slice, the first interface being a physical interface for communication with a first access point (AP) device, the first correspondence relationship comprising a logical interface corresponding to the first interface and the first slice; obtaining a second correspondence relationship based on a second interface and the first slice, the second interface being an interface for communication with a first user side by the first AP device, the second correspondence relationship comprising a logical interface corresponding to the second interface and the first slice; sending first service data to the second interface based on the first slice, the first service data comprising one or more parameters matching the first slice.
2. The method of claim 1, wherein, The method further comprises: sending the first correspondence relationship and the second correspondence relationship to the first AP device, so that the first AP device outputs the first service data obtained through the first slice to the second interface.
3. The method according to claim 1 or 2, characterized in that, The method further comprises: obtaining a third correspondence relationship based on the first interface and a second slice, the third correspondence relationship comprising a logical interface corresponding to the first interface and the second slice; obtaining a fourth correspondence relationship based on a third interface and the second slice, the third interface being an interface for communication with a second user side by the first AP device, the fourth correspondence relationship comprising a logical interface corresponding to the third interface and the second slice; sending second service data to the third interface based on the second slice, the second service data comprising one or more parameters matching the second slice.
4. The method according to any one of claims 1 to 3, characterized in that, The method further comprises: obtaining a fifth correspondence relationship based on a fourth interface and a third slice, the fourth interface being a physical interface for communication with the first AP device, the fifth correspondence relationship comprising a logical interface corresponding to the fourth interface and the third slice; obtaining a sixth correspondence relationship based on the second interface and the third slice, the sixth correspondence relationship comprising a logical interface corresponding to the second interface and the third slice; if the first slice has a fault, sending the first service data to the second interface based on the third slice.
5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: obtaining a seventh correspondence relationship based on a fifth interface and a fourth slice, the fifth interface being a physical interface for communication with a second AP device, the seventh correspondence relationship comprising a logical interface corresponding to the fifth interface and the fourth slice; obtaining an eighth correspondence relationship based on a sixth interface and the fourth slice, the sixth interface being an interface for communication with a third user side by the second AP device, the eighth correspondence relationship comprising a logical interface corresponding to the sixth interface and the fourth slice; sending third service data to the sixth interface based on the fourth slice, the third service data comprising one or more parameters matching the fourth slice.
6. The method according to any one of claims 1 to 5, characterized in that, The method of obtaining the first correspondence relationship based on the first interface and the first slice comprises: obtaining an interface group to which the first interface belongs based on the first interface; determining the first slice corresponding to the interface group based on the interface group; obtaining the first correspondence relationship based on the interface group.
7. The method according to any one of claims 1 to 6, characterized in that, Before the first service data is sent to the second interface based on the first slice, the method further includes: sending configuration information of the first service data to the first AP device, the configuration information of the first service data including at least one of a service data type, a service message protocol, or a destination address of a service message.
8. A communication method characterized by comprising: The method is applied to an AP device, and the method includes: receiving a first correspondence relationship and a second correspondence relationship from a forwarding device, the first correspondence relationship including a logical interface corresponding to a first interface and a first slice, the first interface being a physical interface through which the forwarding device communicates with the AP device, the second correspondence relationship including a logical interface corresponding to a second interface and the first slice, the second interface being an interface through which the AP device communicates with a first user side; based on the first correspondence relationship and the second correspondence relationship, outputting first service data obtained through the first slice to the second interface, the first service data including one or more parameters matching the first slice.
9. The method of claim 8, wherein, The method further includes: based on the first correspondence relationship, obtaining a ninth correspondence relationship, the ninth correspondence relationship including a logical interface corresponding to a seventh interface and a fifth slice, the seventh interface being a physical interface through which the AP device is connected to the first interface, the fifth slice corresponding to the first slice; based on the second correspondence relationship and the ninth correspondence relationship, outputting the first service data from the first slice to the second interface through the fifth slice.
10. The method according to claim 8 or 9, characterized in that, The method further includes: receiving a third correspondence relationship and a fourth correspondence relationship from the forwarding device, the third correspondence relationship including a logical interface corresponding to the first interface and a second slice, the fourth correspondence relationship including a logical interface corresponding to a third interface and the second slice, the third interface being an interface through which the AP device communicates with a second user side; based on the third correspondence relationship, obtaining a tenth correspondence relationship, the tenth correspondence relationship including a logical interface corresponding to the seventh interface and a sixth slice, the sixth slice corresponding to the second slice; based on the fourth correspondence relationship and the tenth correspondence relationship, outputting second service data from the second slice to the third interface through the sixth slice, the second service data including one or more parameters matching the second slice.
11. The method according to any one of claims 8 to 10, characterized in that, The method further includes: receiving a fifth correspondence relationship and a sixth correspondence relationship from the forwarding device, the fifth correspondence relationship including a logical interface corresponding to a fourth interface and a third slice, the fourth interface being a physical interface through which the AP device communicates, the sixth correspondence relationship including a logical interface corresponding to the second interface and the third slice; obtaining a ninth correspondence relationship based on the first correspondence relationship, the ninth correspondence relationship comprising a logical interface corresponding to an eighth interface and a seventh slice, the eighth interface being a physical interface through which the AP device is connected to the fourth interface, and the seventh slice corresponding to the third slice; if the fifth slice is faulty, outputting, based on the sixth correspondence relationship and the eleventh correspondence relationship, the first service data from the third slice to the second interface through the seventh slice.
12. The method according to any one of claims 9 to 11, characterized in that, the ninth correspondence relationship is obtained based on the first correspondence relationship, comprising: obtaining a second interface group to which the seventh interface belongs based on a first interface group to which the first interface belongs; determining a fifth slice corresponding to the seventh interface in the second interface group based on the first slice corresponding to the first interface group and the first interface; obtaining the ninth correspondence relationship based on the second interface group.
13. The method according to any one of claims 8 to 12, characterized in that, Before the first service data obtained through the first slice is output to the second interface based on the first correspondence relationship and the second correspondence relationship, the method further comprises: receiving configuration information of the first service data from the forwarding device, the configuration information of the first service data comprising at least one of a service data type, a service message protocol, or a destination address of a service message.
14. A forwarding device, characterized by comprising: an obtaining unit, configured to obtain a first correspondence relationship based on a first interface and a first slice, the first interface being a physical interface for communicating with a first access point (AP) device, and the first correspondence relationship comprising a logical interface corresponding to the first interface and the first slice; the obtaining unit is further configured to obtain a second correspondence relationship based on a second interface and the first slice, the second interface being an interface for the first AP device to communicate with a first user side, and the second correspondence relationship comprising a logical interface corresponding to the second interface and the first slice; a sending unit, configured to send first service data to the second interface based on the first slice, the first service data comprising one or more parameters matching the first slice.
15. The forwarding device of claim 14, wherein, The forwarding device further comprises a sending unit, configured to send the first correspondence relationship and the second correspondence relationship to the first AP device, so that the first AP device outputs the first service data obtained through the first slice to the second interface.
16. The forwarding device of claim 14 or 15, wherein, the obtaining unit is further configured to: obtain a third correspondence relationship based on the first interface and a second slice, the third correspondence relationship comprising a logical interface corresponding to the first interface and the second slice; obtain a fourth correspondence relationship based on a third interface and the second slice, the third interface being an interface for the first AP device to communicate with a second user side, and the fourth correspondence relationship comprising a logical interface corresponding to the third interface and the second slice; the sending unit is further configured to send second service data to the third interface based on the second slice, the second service data comprising one or more parameters matching the second slice.
17. The forwarding device of any of claims 14 to 16, wherein, the obtaining unit is further configured to: obtain a fifth correspondence relationship based on a fourth interface and the third slice, the fourth interface being a physical interface used for communication between the first AP device and the second AP device, and the fifth correspondence relationship comprising a logical interface corresponding to the fourth interface and the third slice; obtain a sixth correspondence relationship based on the second interface and the third slice, the sixth correspondence relationship comprising a logical interface corresponding to the second interface and the third slice; the sending unit is further configured to send the first service data to the second interface based on the third slice if the first slice has a fault.
18. The forwarding device of any of claims 14 to 17, wherein, the obtaining unit is further configured to: obtain a seventh correspondence relationship based on a fifth interface and a fourth slice, the fifth interface being a physical interface used for communication between the second AP device and a third AP device, and the seventh correspondence relationship comprising a logical interface corresponding to the fifth interface and the fourth slice; obtain an eighth correspondence relationship based on a sixth interface and the fourth slice, the sixth interface being an interface used for communication between the second AP device and a third user side, and the eighth correspondence relationship comprising a logical interface corresponding to the sixth interface and the fourth slice; the sending unit is further configured to send third service data to the sixth interface based on the fourth slice, the third service data comprising one or more parameters matching the fourth slice.
19. The forwarding device of any of claims 14 to 18, wherein, the obtaining unit is specifically configured to: obtain an interface group to which the first interface belongs based on the first interface; determine the first slice corresponding to the interface group based on the interface group; obtain the first correspondence relationship based on the interface group.
20. The forwarding device of any of claims 14 to 19, wherein, the sending unit is further configured to send configuration information of the first service data to the first AP device, the configuration information of the first service data comprising at least one of a service data type, a service packet protocol, or a destination address of a service packet.
21. An access node, AP, device, the device comprising: comprise: a receiving unit configured to receive a first correspondence relationship and a second correspondence relationship from a forwarding device, the first correspondence relationship comprising a logical interface corresponding to a first interface and a first slice, the first interface being a physical interface used for communication between the forwarding device and the AP device, and the second correspondence relationship comprising a logical interface corresponding to a second interface and the first slice, the second interface being an interface used for communication between the AP device and a first user side; a processing unit configured to output first service data obtained through the first slice to the second interface based on the first correspondence relationship and the second correspondence relationship, the first service data comprising one or more parameters matching the first slice.
22. The apparatus of claim 21, wherein, the processing unit is specifically configured to: obtain a ninth correspondence relationship based on the first correspondence relationship, the ninth correspondence relationship comprising a logical interface corresponding to a seventh interface and a fifth slice, the seventh interface being a physical interface connected between the AP device and the first interface, and the fifth slice corresponding to the first slice; output the first service data from the first slice to the second interface through the fifth slice based on the second correspondence relationship and the ninth correspondence relationship.
23. The apparatus of claim 21 or 22, wherein, The receiving unit is further configured to receive a third correspondence and a fourth correspondence from the forwarding device, the third correspondence including a logical interface corresponding to the first interface and the second slice, and the fourth correspondence including a logical interface corresponding to a third interface and the second slice, the third interface being an interface used by the AP device to communicate with a third user side; The processing unit is further configured to acquire a tenth correspondence based on the third correspondence, the tenth correspondence including a logical interface corresponding to the seventh interface and a sixth slice, the sixth slice corresponding to the second slice; The processing unit is further configured to output, based on the fourth correspondence and the tenth correspondence, second service data from the second slice to the third interface through the sixth slice, the second service data including one or more parameters matching the second slice.
24. The apparatus of any one of claims 21-23, wherein, The receiving unit is further configured to receive a fifth correspondence and a sixth correspondence from the forwarding device, the fifth correspondence including a logical interface corresponding to a fourth interface and a third slice, the fourth interface being a physical interface used by the AP device to communicate, and the sixth correspondence including a logical interface corresponding to the second interface and the third slice; The processing unit is further configured to acquire an eleventh correspondence based on the fifth correspondence, the eleventh correspondence including a logical interface corresponding to an eighth interface and a seventh slice, the eighth interface being a physical interface connected to the fourth interface of the AP device, and the seventh slice corresponding to the third slice; The processing unit is further configured to, if the fifth slice has a fault, output, based on the sixth correspondence and the eleventh correspondence, the first service data from the third slice to the second interface through the seventh slice.
25. The apparatus of any one of claims 22-24, wherein, The processing unit is specifically configured to: acquire a second interface group to which the seventh interface belongs based on a first interface group to which the first interface belongs; determine a fifth slice corresponding to the seventh interface in the second interface group based on the first slice corresponding to the first interface group and the first interface; acquire the ninth correspondence based on the second interface group.
26. The apparatus of any one of claims 21-25, wherein, The receiving unit is further configured to receive configuration information of the first service data from the forwarding device, the configuration information of the first service data including at least one of a service data type, a service packet protocol, or a destination address of a service packet.
Citation Information
Patent Citations
Bandwidth resource allocation method of Internet of Things intelligent gateway
CN111970734A
Segmented routing message forwarding method, configuration method and equipment based on IPV6 (Internet Protocol Version 6)
CN115242713A
Data transmission method, device and equipment
CN115734281A
Method and device for identifying resource for network slice
WO2024147477A1