WO2024055682A1 - Message processing method and apparatus - Google Patents

Message processing method and apparatus Download PDF

Info

Publication number
WO2024055682A1
WO2024055682A1 PCT/CN2023/103150 CN2023103150W WO2024055682A1 WO 2024055682 A1 WO2024055682 A1 WO 2024055682A1 CN 2023103150 W CN2023103150 W CN 2023103150W WO 2024055682 A1 WO2024055682 A1 WO 2024055682A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
slice
identifier
information
network node
Prior art date
Application number
PCT/CN2023/103150
Other languages
French (fr)
Chinese (zh)
Inventor
姚俊达
胡志波
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024055682A1 publication Critical patent/WO2024055682A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0895Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements

Definitions

  • the present application relates to the field of communications, and in particular, to a message processing method and device.
  • a network slice can be a virtual network divided into a physical network.
  • a network slice can be a virtual network that contains specific network functions and is composed of customized network topology and network resources.
  • Network slicing can meet the business function requirements of different network slicing tenants. Using network slicing to transmit services corresponding to network slicing tenants can ensure the quality of service provided to network slicing tenants.
  • network slicing may also be called “slicing network” or simply “slicing”. In this embodiment of this application, the three may be used interchangeably.
  • Embodiments of the present application provide a message processing method and device, which can rationally use slice resources.
  • embodiments of the present application provide a message processing method, which can be applied to the second network node.
  • the second network node may receive the first message sent by the first network node through the link corresponding to the first slice through the first interface of the second network node.
  • the first packet does not include the slice identifier of the first slice.
  • the second network node does not extract the slice identifier of the first slice from the first message and forward the first message based on the slice identifier as in traditional technology. Instead, the slice information of the first slice is determined according to the interface information of the first interface, and the slice information is used to indicate the first slice.
  • forwarding information for forwarding the first message to a third network node may be determined based on the slice information, and further, forwarding the first message to the third network node through the determined forwarding information.
  • the second network node can determine the slicing information based on the interface information of the incoming interface that receives the first message, so as to forward the first message to the third network node based on the slicing information.
  • the second network node can implement slice forwarding, and the second network node can reasonably utilize the slice resources of the first slice to forward the first message.
  • the first message can be forwarded to the third network node based on the slice information.
  • the first packet does not carry the slice identifier, which reduces the packet length of the data packet and accordingly saves the occupation of slice resources by the data packet.
  • the first interface is associated with a virtual local area network (VLAN).
  • the interface information of the first interface may be the first interface corresponding to the first interface.
  • VLAN identification For this situation, the first message may include the first VLAN identifier, and accordingly, the second network node may parse the first message to obtain the first VLAN identifier, And further determine the slice information of the first slice based on the first VLAN identifier, thereby realizing slice forwarding.
  • the slice information of the first slice may be the slice ID of the first slice.
  • the second network node may determine the slice identifier of the first slice according to the first VLAN identifier and a first correspondence relationship, where the first correspondence relationship includes the Correspondence between the first VLAN identifier and the slice identifier. After determining the slice identifier of the first slice, slice information of the first slice may be further determined based on the first VLAN identifier, thereby realizing slice forwarding.
  • the slice information of the first slice may be the slice ID of the first slice.
  • the second network node may first determine the interface identifier of the first interface according to the first VLAN identifier, and further determine the interface identifier of the first interface according to the interface identifier of the first interface and the second corresponding relationship, determine the slice identifier of the first slice, and the second correspondence relationship includes the correspondence relationship between the interface identifier and the slice identifier.
  • slice information of the first slice may be further determined based on the first VLAN identifier, thereby realizing slice forwarding.
  • the forwarding information may be a second VLAN identifier.
  • the second network node may be configured according to the The slice information and the third correspondence determine the second VLAN identifier for forwarding the first message, and the third correspondence includes the correspondence between the slice information and the second VLAN identifier.
  • the second network node may obtain a second message including the second VLAN identifier based on the second VLAN identifier and the first message, and send the message to a third party.
  • the network node forwards the second message. In this way, the second network node can quickly and efficiently determine the second VLAN identifier through the third correspondence relationship, thereby quickly forwarding the second message to the third network node, thereby improving message forwarding efficiency.
  • the third correspondence relationship may include a two-level correspondence relationship, which is a correspondence relationship between slice information (such as slice identification) and the second interface, and a correspondence relationship between the second interface and the second VLAN. Correspondence between identifiers.
  • the second interface is an interface corresponding to the second VLAN identifier and the slicing information.
  • the second network node can determine the second VLAN identifier based on the two-level correspondence relationship included in the third correspondence relationship, and further forward the aforementioned second message to the third network node based on the second VLAN identifier, thereby Implement slice forwarding.
  • the interface information of the first interface may be the first time slot information corresponding to the first interface
  • the first time slot information may be used to indicate a first client (client) identity or a first time slot group.
  • the first client identity may correspond to the first time slot group.
  • the service data corresponding to the first client identity may be transmitted through the first time slot group.
  • One time slot group forwarding.
  • the first time slot group may include at least one time slot.
  • the first time slot information may include the first client identifier.
  • the first time slot information may include the information of each time slot included in the first time slot group. Identification, for example, the first time slot information may include a time slot number of each time slot included in the first time slot group.
  • the slice information of the first slice may be a slice identifier of the first slice.
  • the second network node may determine the slice identifier of the first slice based on the first time slot information and a fourth correspondence relationship, where the fourth correspondence relationship includes the The corresponding relationship between the first time slot information and the slice identifier.
  • the slice information of the first slice may be further determined based on the first VLAN identifier, thereby realizing slice forwarding.
  • the slice information of the first slice may be a slice identifier of the first slice.
  • the second network node may determine the interface identifier of the first interface according to the first time slot information, and determine the interface identifier of the first interface according to the fifth corresponding relationship. , determine the slice identifier of the first slice, and the fifth correspondence includes a correspondence between the interface identifier and the slice identifier.
  • slice information of the first slice may be further determined based on the first VLAN identifier, thereby realizing slice forwarding.
  • the forwarding information may be the second time slot information.
  • the second network node may The slice information and the sixth corresponding relationship are used to determine the second time slot information for forwarding the first message.
  • the second time slot information is used to indicate the second client identifier or the second time slot group.
  • the second client The identifier corresponds to the second time slot group, and the sixth correspondence includes a correspondence between the slice information and the second time slot information.
  • the first message may be forwarded to the third network node through the second time slot group corresponding to the second time slot information, thereby realizing slice forwarding. In this way, the second network node can quickly and efficiently determine the second time slot information through the sixth correspondence relationship, thereby quickly forwarding the first message to the third network node, thereby improving message forwarding efficiency.
  • the sixth correspondence relationship may include a two-level correspondence relationship, which is a correspondence relationship between the slice information and the third interface, and a correspondence relationship between the third interface and the second time interface.
  • the third interface is an interface corresponding to the slice information and the second time slot information.
  • the second network node may first determine the third interface based on the correspondence between the slice information and the third interface and the slice information. After the third interface is determined, the third time slot information may be determined based on the correspondence between the third interface and the second time slot information and the third interface. In this way, the second network node can determine the second time slot information based on the two-level correspondence included in the sixth correspondence, and further forward the first message to the third network node based on the second time slot information, This enables slice forwarding.
  • the interface information of the first interface may be an interface identifier of the first interface.
  • the interface identifier of the first interface mentioned here may be, for example, the local identifier of the first interface at the second network node.
  • the slice information of the first slice may be the first routing table corresponding to the first slice.
  • the second network node may determine an outbound interface for forwarding the first message to a third network node based on the destination address of the first message and the first routing table. , and further forward the first message through the outbound interface, thereby realizing slice forwarding. In this way, for a physical network including multiple slices, each slice has a routing table corresponding to the slice.
  • each slice uses its own routing table to guide forwarding. In this way, there is no need to divide an independent address space for each slice.
  • the network addresses corresponding to each slice can be in the same address space, thereby reducing the calculation amount of the network node calculating the routing table and saving the computing resources of the network node.
  • a seventh correspondence relationship may be stored in the second network node, and the seventh correspondence relationship includes a correspondence relationship between an interface identifier of the first interface and an identifier of the first routing table,
  • the second network node may determine the identifier of the first routing identifier according to the interface identifier of the first interface and the seventh corresponding relationship, and further, determine the identifier of the first routing identifier according to the first routing table. identification to obtain the first routing table.
  • the first slice may be, for example, a slice corresponding to a flexible algorithm.
  • the address spaces corresponding to each slice are different. Therefore, network nodes need to calculate routing tables for multiple address spaces, resulting in the resources required for route calculation. More. Using this solution, there is no need to divide independent address spaces for the slices corresponding to each flexible algorithm.
  • the network addresses corresponding to each slice can be in the same address space, thus reducing the calculation amount of routing tables for network nodes and saving network nodes. Computing resources.
  • the second network node determines the first routing table according to the interface identifier of the first interface.
  • the second network node may first determine the global identifier of the first interface according to the interface identifier of the first interface. , the global identifier is used to identify the first slice. After the global identifier is determined, the first routing table may be determined based on the global identifier.
  • an eighth correspondence relationship may be stored in the second network node, and the eighth correspondence relationship may include a correspondence relationship between the global identifier and the identifier of the first routing table.
  • the identifier of the first routing identifier can be obtained according to the global identifier and the eighth correspondence relationship. Further, The first routing table is obtained according to the identifier of the first routing table.
  • the global identifier of the first interface may be the slice identifier associated with the first interface.
  • the slice identifier associated with the first interface may also be understood as the slice identifier of the first slice.
  • the network addresses corresponding to each slice can be in the same address space, thereby reducing the calculation amount of the network node calculating the routing table and saving the computing resources of the network node.
  • the first slice is a slice associated with a flexible algorithm.
  • the global identifier of the first interface may be the flexible algorithm identifier associated with the first interface.
  • the network addresses corresponding to each slice can be in the same address space, thus reducing the calculation amount of routing tables for network nodes and saving network nodes. computing resources.
  • the first slice is associated with a certain network topology in a multi-topology (MT).
  • the global identifier of the first interface may be the first MT identifier associated with the interface.
  • embodiments of the present application provide a message processing device applied to a second network node.
  • the device includes: a receiving unit configured to receive a message from a first network node through a first interface of the second network node. The first message sent through the link corresponding to the first slice; a processing unit configured to determine the slice information of the first slice according to the interface information of the first interface, the slice information is used to indicate the The first slice, the first message does not include the slice identifier of the first slice; determine the forwarding information of forwarding the first message to the third network node according to the slice information; the sending unit uses Forwarding the first message to the third network node through the forwarding information.
  • the interface information of the first interface includes: a first virtual LAN VLAN identifier corresponding to the first interface, and the first message includes the first VLAN identifier.
  • determining the slice information of the first slice according to the interface information of the first interface includes: determining the first slice according to the first VLAN identifier and the first corresponding relationship.
  • a slice identifier of a slice, and the first correspondence includes a correspondence between the first VLAN identifier and the slice identifier.
  • the determining the slice information of the first slice according to the interface information of the first interface includes: determining the interface identifier of the first interface according to the first VLAN identifier; The slice identifier of the first slice is determined according to the interface identifier of the first interface and a second correspondence relationship, where the second correspondence relationship includes a correspondence relationship between the interface identifier and the slice identifier.
  • determining the forwarding information of forwarding the first message to a third network node according to the slice information includes: determining to forward the first message according to the slice information and a third corresponding relationship.
  • the third correspondence includes: a correspondence between the slice information and the second interface, and a correspondence between the second interface and the second VLAN identifier,
  • the second interface is an interface corresponding to the second VLAN identifier and the slicing information.
  • the interface information of the first interface includes: first time slot information corresponding to the first interface, and the first time slot information is used to indicate the first client identifier or the first client identifier.
  • a time slot group, the first client identifier corresponds to the first time slot group.
  • determining the slice information of the first slice according to the interface information of the first interface includes: determining the first slot information and a fourth corresponding relationship.
  • the slice identifier of the first slice, and the fourth corresponding relationship includes the corresponding relationship between the first time slot information and the slice identifier.
  • determining the slice information of the first slice according to the interface information of the first interface includes: determining an interface identifier of the first interface according to the first timeslot information. ; Determine the slice identifier of the first slice according to the interface identifier of the first interface and a fifth correspondence relationship, where the fifth correspondence relationship includes a correspondence relationship between the interface identifier and the slice identifier.
  • determining the forwarding information of forwarding the first message to a third network node according to the slice information includes: determining to forward the first message according to the slice information and a sixth correspondence relationship.
  • the second time slot information of the first message, the second time slot information is used to indicate a second client identification or a second time slot group, the second client identification corresponds to the second time slot group, and the second time slot information is used to indicate a second client identification or a second time slot group.
  • the six corresponding relationships include the corresponding relationship between the slice information and the second time slot information; the sending unit is configured to: forward the first time slot information to the third network node through the second time slot group. message.
  • the sixth correspondence includes: a correspondence between the slice information and the third interface, and a correspondence between the third interface and the second timeslot information.
  • the third interface is an interface corresponding to the slice information and the second timeslot information.
  • the interface information of the first interface includes: an interface identifier of the first interface, and the processing unit is configured to: determine the third interface according to the interface identifier of the first interface.
  • a first routing table corresponding to the slice is generated; and an outbound interface for forwarding the first message to a third network node is determined based on the destination address of the first message and the first routing table.
  • determining the first routing table corresponding to the first slice according to the interface identifier of the first interface includes: according to the interface identifier of the first interface and a seventh corresponding relationship , determine the first routing table, and the seventh correspondence includes a correspondence between the interface identifier of the first interface and the identifier of the first routing table.
  • the first slice is a slice corresponding to a flexible algorithm.
  • determining the first routing table corresponding to the first slice according to the interface identifier of the first interface includes: determining the first routing table according to the interface identifier of the first interface.
  • the global identifier of the interface the global identifier is used to identify the first slice; the first routing table is determined according to the global identifier.
  • determining the first routing table according to the global identifier includes: determining the first routing table according to the global identifier and an eighth correspondence, and the eighth correspondence The relationship includes a corresponding relationship between the global identifier and the identifier of the first routing table.
  • the global identifier of the first interface includes: a slice identifier associated with the first interface; or a flexible algorithm identifier associated with the first interface; or, the first interface The associated multi-topology MT identifier.
  • an embodiment of the present application provides a device.
  • the device includes a processor and memory.
  • the memory is used to store instructions or computer programs.
  • the processor is configured to execute the instructions or computer programs in the memory, and perform the method described in any one of the above first aspects.
  • embodiments of the present application provide a computer-readable storage medium, which includes instructions or computer programs that, when run on a computer, cause the computer to perform any of the methods described in the first aspect above.
  • embodiments of the present application provide a computer program product containing instructions or computer programs, which, when run on a computer, cause the computer to perform any of the methods described in the first aspect above.
  • Figure 1 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram of an exemplary application scenario provided by the embodiment of the present application.
  • Figure 3 is a schematic flow chart of a message processing method provided by an embodiment of the present application.
  • Figure 4a is a schematic diagram of an exemplary application scenario provided by the embodiment of the present application.
  • Figure 4b is a schematic diagram of another exemplary application scenario provided by the embodiment of the present application.
  • Figure 4c is a schematic diagram of another exemplary application scenario provided by the embodiment of the present application.
  • Figure 4d is a schematic diagram of another exemplary application scenario provided by the embodiment of the present application.
  • Figure 5 is a schematic structural diagram of a message processing device provided by an embodiment of the present application.
  • Figure 6 is a schematic structural diagram of a device provided by an embodiment of the present application.
  • Embodiments of the present application provide a message processing method and device, which can rationally use slice resources.
  • a network node when a network node forwards a data packet, it first determines the next hop and outbound interface for packet forwarding based on the destination address of the packet. After determining the outbound interface, it can further determine the corresponding relationship between the outbound interface and the slice ID. , determine the message forwarding resources.
  • the packet forwarding resource mentioned here can be the physical sub-interface corresponding to the outbound interface, the channelized sub-interface corresponding to the outbound interface, or the FlexE interface.
  • FlexE interfaces can be understood as interfaces that apply FlexE technology. FlexE technology pools physical interface resources by time slots through FlexE Shim, and flexibly divides several FlexE interfaces through time slot resource pools on large-bandwidth physical interfaces to achieve flexibility in interface resources. , Refined management. Bandwidth resources are strictly isolated between each FlexE interface.
  • the channelized sub-interface adopts the sub-interface model to achieve flexible allocation of bandwidth by configuring independent channelized sub-interfaces for network slices.
  • Each network slice occupies exclusive bandwidth and scheduling trees to provide resource reservation for slice services.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • network node B includes interfaces GE0/1/0 and GE0/2/0.
  • the forwarding table stored in network node B includes correspondence relationship 110 and correspondence relationship 120. in:
  • Correspondence 110 includes two correspondences, namely: the correspondence between prefix A6::1, next hop C, and outbound interface GE0/1/0, and the correspondence between prefix A6::2, next hop G, And the corresponding relationship between the outbound interface GE0/2/0.
  • the corresponding relationship 120 also includes two corresponding relationships, namely: the corresponding relationship between the outbound interface GE0/1/0, slice ID 1 and FlexE interface 1, and the outbound interface GE0/2/0, slice ID 2 and FlexE interface. The correspondence between 2.
  • network node B can first match the destination address A6::1 with the corresponding relationship 110, and determine The first hop is network node C, and the outbound interface is determined to be GE0/1/0; further, network node B can match the outbound interface GE0/1/0 with the corresponding relationship 120, and determine that the forwarding resource is FlexE interface 1. Further, the network node B can use the FlexE interface 1 to forward the message 1 to the network node C.
  • network node B can first match the destination address A6::2 with the corresponding relationship 110 , determine the next hop to be network node G, and determine the outbound interface to be GE0/2/0; further, network node B can match the outbound interface GE0/2/0 to the corresponding relationship 120, and determine that the forwarding resource is FlexE interface 2. Further, the network node B can use the FlexE interface 2 to forward the message 1 to the network node G.
  • the head node needs to encapsulate the slice identifier in the message when forwarding the data message.
  • the intermediate node can extract the slice identifier from the data message, thereby implementing slice forwarding based on the slice identifier. .
  • adopting this approach may lead to unreasonable use of slice resources.
  • the intermediate node may not have the ability to parse the slice identifier in the data message. After receiving the data message carrying the slice identifier, the intermediate node will discard the data message, making the data message unavailable. Use slice resources for forwarding.
  • each data packet carries a slice identifier, resulting in a larger total bandwidth occupied by the slice identifier.
  • embodiments of the present application provide a message processing method and device. By using this method, slice forwarding can be realized without carrying a slice identifier in the data message.
  • FIG. 2 is a schematic diagram of an exemplary application scenario provided by the embodiment of the present application.
  • Figure 3 for the implementation of this application The example provides a flow diagram of a message processing method.
  • network node A and network node C are connected through network node B.
  • Network node B is the intermediate node in the slice tunnel.
  • the method shown in Figure 3 can be applied to the second network node, and the second network node can correspond to network node B shown in Figure 2.
  • the packet processing method shown in Figure 3 may include the following S101-S104.
  • S101 Receive the first message sent by the first network node through the link corresponding to the first slice through the first interface of the second network node.
  • the first interface may be a physical interface of the second network node, such as a physical sub-interface, or it may be a channelized sub-interface of the second network node, such as a VLAN corresponding to
  • the interface may also be the FlexE interface of the second network node, which is not specifically limited in the embodiments of this application.
  • the first network node and the second network node may be connected through a link corresponding to the first slice.
  • the second network node corresponds to network node B
  • the first network node may correspond to network node A.
  • S102 Determine the slice information of the first slice according to the interface information of the first interface.
  • the slice information is used to identify the first slice.
  • the first packet does not include the first slice.
  • the second network node may determine the slice information of the first slice according to the interface information of the first interface.
  • the interface information of the first interface may be information related to the first interface.
  • the interface information of the first interface may be the first VLAN identifier corresponding to the first interface.
  • the first message may include the first VLAN identifier, and accordingly, the second network node may parse the first message to obtain the first VLAN identifier.
  • the interface information may be the first time slot information corresponding to the first interface, and the first time slot information may be used to indicate the first client
  • the first client identifier may correspond to the first time slot group, and the service data corresponding to the first client identifier may be forwarded through the first time slot group.
  • the first time slot group may include at least one time slot.
  • the first time slot information may include the first client identifier.
  • the first time slot information may include the information of each time slot included in the first time slot group. Identification, for example, the first time slot information may include a time slot number of each time slot included in the first time slot group.
  • the interface information of the first interface may be an interface identifier of the first interface.
  • the interface identifier of the first interface mentioned here may be, for example, the local identifier of the first interface at the second network node.
  • the slice information may be the slice identifier of the first slice.
  • the second network node may store a first correspondence relationship, where the first correspondence relationship includes a correspondence relationship between the first VLAN identifier and the slice identifier of the first slice.
  • the slice identifier of the first slice may be determined based on the first VLAN identifier and the first corresponding relationship.
  • the second network node receives the first message After that, the first VLAN identifier is extracted from the first message, and based on the first VLAN identifier and the first corresponding relationship, the slice identifier of the first slice can be determined.
  • the efficiency of determining the slice identifier is high. Accordingly, the slice identifier can be determined Improve the efficiency of message forwarding.
  • the interface information is a first VLAN identifier
  • the slice information may be a slice identifier of the first slice.
  • the second network node may first determine the interface identifier of the first interface based on the VLAN identifier in the first message.
  • the second network node may store a correspondence between the first VLAN identifier and the interface identifier of the first interface, and the second network node may store the corresponding relationship between the first VLAN identifier and the interface identifier of the first interface.
  • the corresponding relationship between the interface identifier of the first interface and the first VLAN identifier determines the interface identifier of the first interface.
  • the slice identifier of the first slice may be determined based on the interface identifier and a second correspondence relationship, where the second correspondence relationship may also be the second network node
  • the stored correspondence relationship, the second correspondence relationship includes the correspondence relationship between the interface identifier of the first interface and the slice identifier.
  • the second network node extracts the first VLAN identifier from the first message, then determines the interface identifier of the first interface based on the first VLAN identifier, and further determines the interface identifier of the first interface based on the first VLAN identifier.
  • the interface identifier and the second correspondence are related to determine the slice identifier of the first slice.
  • the slice of the first slice can be obtained based on the first VLAN identifier in the first packet. Identification to facilitate subsequent slice forwarding.
  • the slice information may be a slice identifier of the first slice.
  • the second network node may store a fourth correspondence relationship, where the fourth correspondence relationship includes a correspondence relationship between the first time slot information and the slice identifier of the first slice.
  • the slice identifier of the first slice may be determined based on the first time slot information and the fourth corresponding relationship.
  • the second network node determines the first time slot information corresponding to the first message, and based on the first time slot information and the fourth corresponding relationship, the first time slot information can be determined.
  • the slice identifier of the slice is highly efficient in determining the slice identifier. Correspondingly, the efficiency of packet forwarding can be improved.
  • the interface information is first time slot information
  • the slice information may be a slice identifier of the first slice.
  • the second network node may first determine the interface identifier of the first interface based on the first time slot information.
  • the second network node may store a correspondence between the first time slot information and the interface identifier of the first interface, and the second network node may store the corresponding relationship between the first time slot information and the interface identifier of the first interface. The corresponding relationship between the interface identifier of the first interface and the first time slot information determines the interface identifier of the first interface.
  • the slice identifier of the first slice may be determined based on the interface identifier and a fifth correspondence, wherein the fifth correspondence may also be the second network node
  • the stored correspondence relationship, the fifth correspondence relationship includes the correspondence relationship between the interface identifier of the first interface and the slice identifier.
  • the second network node determines the first time slot information corresponding to the first message, and then determines the interface identifier of the first interface based on the first time slot information, and further determines the interface identifier of the first interface based on the first time slot information.
  • the interface identifier of the interface and the fifth corresponding relationship determine the slice identifier of the first slice. In this way, when the first packet does not carry the slice ID, the slice ID of the first slice can be obtained based on the first time slot information corresponding to the first packet, so as to facilitate subsequent slice forwarding.
  • the interface information of the first interface is the interface identifier of the first interface.
  • the slice information of the first slice may be the first route corresponding to the first slice. surface.
  • the root When determining the slice information based on the interface information, for example, the first routing table corresponding to the first slice may be determined based on the interface identifier of the first interface.
  • each slice has a routing table corresponding to the slice.
  • each slice uses its own routing table to guide forwarding. In this way, there is no need to divide an independent address space for each slice.
  • the network addresses corresponding to each slice can be in the same address space, thereby reducing the calculation amount of the network node calculating the routing table and saving the computing resources of the network node.
  • the first routing table is determined based on the interface identifier of the first interface
  • a seventh correspondence relationship may be stored in the second network node, and the seventh correspondence relationship includes a correspondence relationship between an interface identifier of the first interface and an identifier of the first routing table,
  • the second network node may determine the identifier of the first routing identifier according to the interface identifier of the first interface and the seventh corresponding relationship, and further, determine the identifier of the first routing identifier according to the first routing table. identification to obtain the first routing table.
  • the first slice may be, for example, a slice corresponding to a flexible algorithm (flex-algo).
  • network nodes can calculate the shortest path based on the configured algorithm.
  • a business can be associated with a flexible algorithm, thereby transmitting business data through a path corresponding to the flexible algorithm, thereby meeting business requirements.
  • a flexible algorithm can correspond to a slice, and the slice can include multiple network nodes configured with the flexible algorithm.
  • specific implementation of determining the first routing table according to the interface identifier of the first interface may include the following steps A1-A2.
  • Step A1 Determine the global identifier of the first interface according to the interface identifier of the first interface, where the global identifier is used to identify the first slice.
  • the second network node may store a correspondence between the interface identifier of the first interface and the global identifier of the first interface. Therefore, the second network node may store the corresponding relationship between the interface identifier of the first interface and the global identifier of the first interface. The corresponding relationship between the interface identifier of an interface and the global identifier of the first interface and the interface identifier of the first interface are used to obtain the global identifier of the first interface.
  • the embodiment of the present application does not specifically limit the global identifier of the first interface.
  • the global identifier of the first interface may be any identifier that can identify the first slice.
  • the global identifier of the first interface may be the slice identifier associated with the first interface.
  • the slice identifier associated with the first interface may also be understood as the slice identifier of the first slice.
  • the global identifier of the first interface may be the flexible algorithm identifier associated with the first interface.
  • the global identity of the first interface may be the MT identity associated with the first interface.
  • MT When a physical network includes MT, MT The address spaces corresponding to each network topology are different. Therefore, network nodes need to calculate routing tables for multiple address spaces, resulting in more resources required for route calculation. Using this solution, there is no need to divide independent address spaces for each network topology in MT. The network addresses corresponding to each network topology can be in the same address space, thus reducing the calculation amount of routing tables for network nodes and saving network nodes. Computing resources.
  • Step A2 Determine the first routing table according to the global identifier.
  • the first routing table may be determined based on the global identifier.
  • each routing table stored by the second network node may include a global identifier corresponding to the routing table.
  • the second network node may use the global identifier of the first interface as an index to search The second network node stores each routing table, thereby obtaining the first routing table including the global identifier.
  • an eighth correspondence relationship may be stored in the second network node, and the eighth correspondence relationship may include a correspondence relationship between the global identifier and the identifier of the first routing table. For this situation, after the global identifier is determined, the identifier of the first routing identifier can be obtained according to the global identifier and the eighth correspondence relationship. Further, the identifier of the first routing identifier can be obtained according to the identifier of the first routing table. Describe the first routing table.
  • S103 Determine the forwarding information for forwarding the first message to the third network node according to the slice information.
  • the second network node may further determine message forwarding information for forwarding the first message to a third network node based on the slice information.
  • the message forwarding information is used to forward the first message to the third network node.
  • the message is forwarded to the third network node.
  • the third network node and the second network node may be connected through a link corresponding to the first slice.
  • the second network node corresponds to network node B
  • the third network node may correspond to network node C.
  • the forwarding information may be, for example, a second VLAN identifier.
  • the forwarding information may be a second VLAN identifier.
  • the forwarding information may be, for example, a second client identifier.
  • the forwarding information may be a second client identifier.
  • the forwarding information may also be an outbound interface used to forward the first packet.
  • S103 can be implemented in a variety of ways. The following describes several possible implementation ways.
  • the forwarding information may be a second VLAN identifier.
  • the second network node may obtain the second VLAN identifier based on the slice information and the third correspondence.
  • the third correspondence may include a correspondence between the slice information and the second VLAN identifier.
  • the third correspondence may include a correspondence between the slice identifier and the second VLAN identifier.
  • the third corresponding relationship may also include a main interface, and the main interface may be an outbound interface that forwards the first packet.
  • the third corresponding relationship may be a corresponding relationship between the main interface, the slice identifier, and the second VLAN identifier.
  • the second network node may first search a locally stored routing table to determine the main interface according to the destination address of the first message, and then use the main interface and the slice identifier as indexes to find the third three corresponding relationships, and further obtain the second VLAN identifier based on the third corresponding relationship.
  • the second network node determines the main interface, it can obtain the second VLAN ID based on the correspondence between the main interface, the slice ID, and the second VLAN ID, thereby quickly and efficiently determining the second VLAN.
  • the identification accordingly, also improves the efficiency of message forwarding.
  • the third correspondence relationship may include a two-level correspondence relationship, which is the correspondence relationship between the slice information (such as slice identification) and the second interface, and the correspondence relationship between the second interface and the second interface.
  • the second interface is an interface associated with both the second VLAN identifier and the slice information.
  • the second interface can also be understood as a logical interface that forwards the first message to the third network node.
  • the two-level corresponding relationship may include, for example: the corresponding relationship between the main interface, slice information (such as slice identification) and the second interface, and the main interface , the corresponding relationship between the second interface and the second VLAN identifier.
  • slice information such as slice identification
  • main interface the corresponding relationship between the second interface and the second VLAN identifier.
  • the forwarding information may be second time slot information.
  • the second network node may obtain the second time slot information based on the slice information and the sixth corresponding relationship, so The second time slot information is used to indicate a second client identifier or a second time slot group.
  • the second client identifier may correspond to a second time slot group, and the second time slot group may include at least one time slot.
  • the sixth correspondence may include a correspondence between the slice information and the second time slot information.
  • the slice information is a slice identifier
  • the sixth correspondence may include a correspondence between the slice identifier and the second time slot information.
  • the second time slot information may include the second client identifier.
  • the second time slot information may include the information of each time slot included in the second time slot group. Identification, for example, the second time slot information may include a time slot number of each time slot included in the second time slot group.
  • the sixth correspondence relationship may also include a main interface, which may be an outbound interface that forwards the first message, and the outbound interface may correspond to a FlexE group, for example.
  • the sixth correspondence relationship may be a correspondence relationship between the main interface, the slice identifier, and the second time slot information.
  • the second network node may first search a locally stored routing table to determine the main interface (for example, FlexE group) based on the destination address of the first message, and then use the main interface and the slice identifier as an index, The sixth corresponding relationship is found, and the second time slot information is further obtained based on the sixth corresponding relationship.
  • the second network node determines the aforementioned main interface, it can obtain the second time slot information based on the correspondence between the main interface, the slice identifier, and the second time slot information, thereby quickly and efficiently determining the second time slot information.
  • the time slot information accordingly, also improves the efficiency of packet forwarding.
  • the sixth correspondence relationship may include a two-level correspondence relationship, which is the correspondence relationship between the slice information (such as slice identification) and the third interface, and the correspondence relationship between the third interface and the third interface.
  • the third interface is an interface associated with both the second time slot information and the slice information.
  • the third interface can also be understood as a logical interface (for example, FlexE group) that forwards the first message to the third network node.
  • the two-level corresponding relationship may include, for example: the corresponding relationship between the main interface, slice information (such as slice identification) and the third interface, and the third interface.
  • the second network node Correspondence between the interface, the second client identifier and the second time slot group.
  • the second network node determines the aforementioned main interface, it can determine the second client identifier based on the two-level correspondence relationship included in the sixth correspondence relationship, and further determine the second client identifier based on the second time slot group corresponding to the second client identifier.
  • the third network node forwards the first message, thereby realizing slice forwarding.
  • the forwarding information may be an outgoing link that forwards the first packet to a third network node. mouth.
  • the forwarding information may be an outbound interface that forwards the first packet to the third network node.
  • the second network node may match the destination address of the first message with the first routing table, thereby obtaining an outbound interface for forwarding the first message to the third network node.
  • S104 Forward the first message to the third network node through the forwarding information.
  • the second network node may further forward the first message to a third network node based on the forwarding information.
  • S104 can be implemented in a variety of ways. The following describes several possible implementation ways.
  • the second network node can obtain the information including the second VLAN identifier based on the first message and the second VLAN identifier. the second message, and further forwards the second message to the second network node.
  • the second network node obtains the second message based on the first message and the second VLAN identifier, for example, the second VLAN identifier may be used to replace the first VLAN identifier in the first message, thereby obtaining the second message.
  • the forwarding information is a second client identifier.
  • the second network node can forward the information to the third client through the second time slot group corresponding to the second client identifier.
  • Three network nodes forward the first message.
  • the second network node may load the first message into a time slot corresponding to the second time slot group and forward it to the third network node.
  • the forwarding information is an outbound interface that forwards the first packet to a third network node.
  • the second network node may forward the first message to the third network node through the outbound interface.
  • the second network node may determine the packet forwarding resource based on the outbound interface and the slice identifier of the first slice, and further forward the packet based on the determined packet forwarding resource.
  • the packet forwarding resources mentioned here include but are not limited to the physical sub-interface corresponding to the outbound interface, the channelized sub-interface corresponding to the outbound interface, or the FlexE interface.
  • the slice identifier of the first slice it can also be obtained through the interface information of the first interface.
  • the specific implementation of obtaining the slice identifier according to the interface information of the first interface you can refer to the relevant description section above, which will not be done here. Repeat description.
  • the second network node can implement slice forwarding, and the second network node can reasonably utilize the slice resources of the first slice to forward the first message. message.
  • the first message can be forwarded to the third network node based on the slice information.
  • the first packet does not carry the slice identifier, which reduces the length of the data packet and accordingly saves the occupation of slice resources by the data packet.
  • FIG. 4a is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application.
  • Network node A and network node C are connected through network node B. There is a slice tunnel between network node A and network node C. Network node B is an intermediate node in the slice tunnel.
  • Network node A includes physical interface GE1/1/0, and physical interface GE1/1/0 includes three sub-interfaces: GE1/1/0.1, GE1/1/0.2, and GE1/1/0.3.
  • Network node B includes physical interface GE2/1/0, and physical interface GE2/1/0 includes three sub-interfaces, namely GE2/1/0.1, GE2/1/0.2, and GE2/1/0.3.
  • GE1/1/0.1 is connected to GE2/1/0.1
  • GE1/1/0.2 is connected to GE2/1/0.2
  • GE1/1/0.3 Connected to GE2/1/0.3.
  • Network node B also includes physical interface GE2/2/0.
  • Physical interface GE2/2/0 includes three sub-interfaces, namely GE2/2/0.1, GE2/2/0.2 and GE2/2/0.3.
  • Network node C includes physical interface GE3/2/0, and physical interface GE3/2/0 includes three sub-interfaces, namely GE3/2/0.1, GE3/2/0.2, and GE3/2/0.3.
  • GE3/2/0.1 is connected to GE2/2/0.1
  • GE3/2/0.2 is connected to GE2/2/0.2
  • GE3/2/0.3 is connected to GE2/2/0.3.
  • the mapping relationship between network slices and interfaces is configured on network node A, network node B, and network node C, with three logical interfaces GE1/1/0.1 under the physical interface GE1/1/0 of network node A, Take GE1/1/0.2 and GE1/1/0.3 as an example.
  • the slice ID bound to GE1/1/0.1 is 1
  • the slice ID bound to GE1/1/0.2 is 2
  • the slice ID bound to GE1/1/0.3 is 3.
  • Network node A stores the mapping relationship shown in Table 1.
  • mapping relationship between interfaces and VLANs on network node A, network node B, and network node C configure the mapping relationship between interfaces and VLANs on network node A, network node B, and network node C.
  • the three logical interfaces GE1/1/0.1, GE1/1/ under the physical interface GE1/1/0 of network node A are configured.
  • 0.2, GE1/1/0.3 is used as an example.
  • the VLAN ID bound to GE1/1/0.1 is 10
  • the VLAN ID bound to GE1/1/0.2 is 20
  • the VLAN ID bound to GE1/1/0.3 is 30.
  • the mapping relationship table shown in Table 2 is stored on network node A.
  • network node B can store the mapping relationships in Table 3 and Table 4 below.
  • the solution of the embodiment of the present application may include the following steps S1-S3.
  • Network node A serves as the head node of the slice tunnel.
  • network node A queries the local routing table according to the destination address of the service packet, obtains the outbound interface GE1/1/0, and then obtains the outbound interface GE1/1/0 based on the outbound interface and slice identifier. 1Query Table 1 above to obtain the logical sub-interface GE1/1/0.1. Since GE1/1/0.1 is a logical interface, there is no interface entity.
  • Network node A obtains the VLAN ID associated with the sub-interface by querying Table 2, which is 10, and uses the VLAN ID to encapsulate the service packet, obtains the first packet including the VLAN ID, and forwards the first packet to network node B.
  • network node B After receiving the first message through physical interface GE2/1/0, network node B parses the first message and obtains that the VLAN ID included in the first message is 10, and further queries Table 4 to obtain the received message.
  • the logical sub-interface information of the packet is GE2/1/0.1, and then query Table 3 to obtain the value of the slice identifier associated with the sub-interface, which is 1.
  • Network node B matches the local routing table according to the destination address of the first message, and obtains that the outbound interface for forwarding the message is interface GE2/2/0, and then queries Table 3 based on outbound interface GE2/2/0 and slice identifier 1. , obtain the logical sub-interface GE2/2/0.1. Since GE2/2/0.1 is a logical interface, there is no interface entity. Network node B obtains that the VLAN identifier associated with the sub-interface is 100 by querying Table 4. Therefore, network node B replaces VLAN identifier 100 with VLAN identifier 10 in the first message, obtains the second message, and replaces the second message with Forwarded to network node C.
  • mapping relationship between network slices and VLANs is configured on network node A, network node B, and network node C. Taking the physical interface GE1/1/0 of network node A as an example. Network node A stores the mapping relationship shown in Table 5.
  • network node B can store the mapping relationship in Table 6 below.
  • the solution of the embodiment of the present application may include the following steps S4-S6:
  • Network node A serves as the head node of the slice tunnel.
  • network node A queries the local routing table according to the destination address of the service packet, obtains the outbound interface GE1/1/0, and then obtains the outbound interface GE1/1/0 based on the outbound interface and slice identifier.
  • 1 Query Table 5 above to obtain the VLAN ID of 10, and use the VLAN ID to encapsulate the service packet, obtain the first packet including the VLAN ID, and forward the first packet to network node B.
  • network node B After receiving the first message through physical interface GE2/1/0, network node B parses the first message and obtains that the VLAN ID included in the first message is 10, and further queries Table 6 to obtain slices. Identified as 1.
  • Network node B matches the local routing table according to the destination address of the first message, and obtains that the outbound interface for forwarding the message is interface GE2/2/0, and then queries Table 6 based on outbound interface GE2/2/0 and slice identifier 1. , the obtained VLAN ID is 100, so network node B replaces VLAN ID 100 with VLAN ID 10 in the first message, obtains the second message, and forwards the second message to network node C.
  • FIG. 4b is a schematic diagram of another exemplary application scenario provided by an embodiment of the present application.
  • Network node A and network node C are connected through network node B. There is a slice tunnel between network node A and network node C. Network node B is an intermediate node in the slice tunnel.
  • Network node A, network node B and network node C are all configured with FlexE capabilities.
  • the interface used by network node A to communicate with network node B enables the FlexE capability to form a FlexE group1.
  • network node B is used to communicate with network node A.
  • the communication interface enables FlexE capabilities and forms FlexE group1.
  • the interface used by network node B to communicate with network node C enables the FlexE capability to form a FlexE group2.
  • FlexE group1 is divided into 10 time slots, and network node A includes 3 FlexE interfaces, namely FlexE 1/1/129, FlexE 1/1/130, and FlexE 1/1/131.
  • network node B includes 3 FlexE interfaces, FlexE 2/1/129, FlexE 2/1/130, and FlexE 2/1/131.
  • FlexE 2/1/129 is connected to FlexE 1/1/129 and is bound to slice ID 1;
  • FlexE 2/1/130 is connected to FlexE 1/1/130 and is bound to slice ID 2;
  • FlexE 2/1 /131 is connected to FlexE 1/1/131 and bound to slice ID 3.
  • FlexE group2 is divided into 10 time slots, and network node B also includes three other FlexE interfaces, namely FlexE 2/2/139, FlexE 2/2/140, and FlexE 2/2/141.
  • FlexE 2/2/139 occupies time slot 11, Timeslot 12 and timeslot 13 are bound to slice ID 1;
  • FlexE 2/2/140 occupies timeslot 14, timeslot 15, timeslot 16 and timeslot 17, and is bound to slice ID 2;
  • FlexE 2/ 2/141 occupies time slot 18 and time slot 19, and is bound to slice ID 3.
  • Network node A may store the mapping relationship between the following table 1' and the following table 2'.
  • mapping relationship between the following table 3' and the following table 4' can be stored on the network node B.
  • the solution of the embodiment of the present application may include the following steps S7-S9.
  • Network node A serves as the head node of the slice tunnel.
  • network node A queries the local routing table according to the destination address of the service packet, obtains the outbound interface FlexE group1, and then queries the upstream interface based on the outbound interface and slice ID 1.
  • Table 1' obtain the logical sub-interface FlexE1/1/129.
  • Network node B receives the first message from timeslot 1 to timeslot 3 of FlexE group1, and queries table 4' to determine The interface that receives the first message is FlexE2/1/129. Further, network node B queries table 3' and obtains that the slice identifier associated with FlexE2/1/129 is 1.
  • Network node B matches the local routing table based on the destination address of the first message and obtains that the outbound interface for forwarding the message is Flex E group2. Then it queries table 3' based on the outbound interface Flex E group2 and slice identifier 1 to obtain the forwarding service.
  • the logical interface is FlexE2/2/139. It can be seen from Table 4' that because there is a binding relationship between interface FlexE2/2/139 and timeslot 11 to timeslot 13 in FlexE Group2, when network node B sends data packets at the PHY layer, it starts over and over again through cyclic polling. The first message is filled into time slots 11 to 13, thereby sending the first message to network node C.
  • mapping relationship between network slices and clients is configured on network node A, network node B, and network node C. Taking the physical interface GE1/1/0 of network node A as an example. Network node A stores the mapping relationship shown in Table 5'.
  • network node B can store the mapping relationship shown in Table 6' below.
  • the solution of the embodiment of this application may include the following S10-S12.
  • Network node A serves as the head node of the slice tunnel.
  • network node A queries the local routing table according to the destination address of the service packet, obtains the outbound interface FlexE group1, and then queries the upstream interface based on the outbound interface and slice identifier 1.
  • Table 5' obtains time slots 1 to 3. Therefore, when network node A sends a data message at the physical (PHY) layer, it fills the first message into time slots 1 to 3 through cyclic polling. In time slot 3, the first message is sent to network node B.
  • PHY physical
  • Network node B receives the first message from timeslot 1 to timeslot 3 of FlexE group1, and queries table 6’ to determine that the slice identifier is 1.
  • Network node B matches the local routing table according to the destination address of the first message, and obtains that the outbound interface for forwarding the message is Flex E group2, and then queries table 6' according to the outbound interface Flex E group2 and slice identifier 1 to obtain timeslot 11 to time slot 13, so when network node B sends a data message at the PHY layer, it fills the first message into time slots 11 to 13 over and over again through cyclic polling, thereby sending the first message to Network node C.
  • FIG. 4c is a schematic diagram of another exemplary application scenario provided by an embodiment of the present application.
  • Network node A and network node C are connected through network node B. There is a slice tunnel between network node A and network node C. Network node B is an intermediate node in the slice tunnel.
  • Network node B can communicate with network interface A through interface 1/1/1 and interface 1/1/2.
  • Interface 1/1/1 is associated with flexible algorithm 128, and interface 1/1/2 is associated with flexible algorithm 129.
  • Network node B can communicate with network interface C through interface 2/2/1 and interface 2/2/2.
  • Interface 2/2/1 is associated with flexible algorithm 128, and interface 2/2/2 is associated with flexible algorithm 129.
  • network device C its interface that supports flexible algorithm 128 and its interface that supports flexible algorithm 129 share the same network prefix.
  • the locator of network node C is: 2001:1::/64.
  • the routing table corresponding to the slice network corresponding to the flexible algorithm 128 is stored in network node B, and the identifier of the routing table is 100; the routing table corresponding to the slice network corresponding to the flexible algorithm 129 is stored in network node B.
  • the identifier of the routing table is 100. 200.
  • the routing table 100 includes the corresponding relationship between the prefix 2001:1::/64, the outbound interface 2/2/1 and the next hop network node C; the routing table 200 includes the prefix The corresponding relationship between 2001:1::/64, outbound interface 2/2/2 and next-hop network node C.
  • the network node B also stores the corresponding relationship between interface 1/1/1 and the routing table identifier 100, and the corresponding relationship between the interface 1/1/2 and the routing table identifier 200.
  • network node B When network node B receives the first message from interface 1/1/1, it can determine the route corresponding to the slice network corresponding to flexible algorithm 128 based on the correspondence between interface 1/1/1 and the routing table identifier 100 table, and search the routing table corresponding to the slice network corresponding to flexible algorithm 128 according to the destination address of the first message. For example, when the destination address of the first message matches the prefix 2001:1::/64, the outbound interface can be determined is 2/2/1, and further forwards the first message through the outbound interface 2/2/1.
  • FIG. 4d is a schematic diagram of another exemplary application scenario provided by an embodiment of the present application.
  • Network node A and network node C are connected through network node B. There is a slice tunnel between network node A and network node C. Network node B is an intermediate node in the slice tunnel.
  • Network node B can communicate with network interface A through interface 1/1/1 and interface 1/1/2.
  • the global ID associated with interface 1/1/1 is 100
  • the global ID associated with interface 1/1/2 is 200.
  • the network node B stores the corresponding relationship between interface 1/1/1 and the global identifier 100, and the corresponding relationship between the interface 1/1/2 and the global identifier 200.
  • Network node B can communicate with network interface C through interface 2/2/1 and interface 2/2/2.
  • Interface 2/2/1 is associated with global identity 100
  • interface 2/2/2 is associated with global identity 200.
  • network device C its interface corresponding to global identifier 100 and its interface corresponding to global identifier 200 share the same network prefix.
  • the locator of network node C is: 2001:1::/64.
  • network node B stores a routing table corresponding to the slice network corresponding to the global identifier 100, and the identifier of the routing table is 100; network node B stores a routing table corresponding to the slice network corresponding to the global identifier 200, and the routing table has The ID is 200.
  • the network node B also stores the corresponding relationship between the global identifier 100 and the routing table identifier 100, and the corresponding relationship between the global identifier 200 and the routing table identifier 200.
  • the routing table 100 includes the corresponding relationship between the prefix 2001:1::/64, the outbound interface 2/2/1 and the next hop network node C; the routing table 200 Including the correspondence between prefix 2001:1::/64, outbound interface 2/2/2, and next-hop network node C.
  • network node B When network node B receives the first message from interface 1/1/1, it can determine the global identity 100 based on the correspondence between interface 1/1/1 and the global identity 100, and further determine the global identity 100 based on the global identity 100 and Correspondence between routing table identifiers 100, determine the routing table corresponding to the slice network corresponding to the global identifier 100, and search for the routing table corresponding to the slice network corresponding to the global identifier 100 according to the destination address of the first message. For example, when the first When the destination address of the packet matches the prefix 2001:1::/64, it can be determined that the outbound interface is 2/2/1, and the first packet is further forwarded through the outbound interface 2/2/1.
  • the embodiment of the present application also provides a message processing device, which can be applied to the second network node and used to execute the second network node provided by the above method embodiment.
  • the message processing method performed by the network node.
  • FIG. 5 is a schematic structural diagram of a message processing device provided by an embodiment of the present application.
  • the message processing device 500 shown in Figure 5 includes: a receiving unit 501, a processing unit 502 and a sending unit 503.
  • the receiving unit 501 is configured to receive the first message sent by the first network node through the link corresponding to the first slice through the first interface of the second network node.
  • the processing unit 502 is configured to determine the slice information of the first slice according to the interface information of the first interface.
  • the slice information is used to indicate the first slice.
  • the first packet does not include the slice information. a slice identifier of the first slice; and determining, according to the slice information, forwarding information for forwarding the first packet to a third network node.
  • the sending unit 503 is configured to forward the first message to the third network node through the forwarding information.
  • the interface information of the first interface includes: a first virtual LAN VLAN identifier corresponding to the first interface, and the first message includes the first VLAN identifier.
  • determining the slice information of the first slice according to the interface information of the first interface includes: determining the first slice according to the first VLAN identifier and the first corresponding relationship.
  • a slice identifier of a slice, and the first correspondence includes a correspondence between the first VLAN identifier and the slice identifier.
  • the determining the slice information of the first slice according to the interface information of the first interface includes: determining the interface identifier of the first interface according to the first VLAN identifier; The slice identifier of the first slice is determined according to the interface identifier of the first interface and a second correspondence relationship, where the second correspondence relationship includes a correspondence relationship between the interface identifier and the slice identifier.
  • determining the forwarding information of forwarding the first message to a third network node according to the slice information includes: determining to forward the first message according to the slice information and a third corresponding relationship.
  • the second VLAN identifier of the first message, the third corresponding relationship includes the corresponding relationship between the slice information and the second VLAN identifier;
  • the sending unit 503 is configured to: according to the second VLAN identifier and the first message to obtain a second message including the second VLAN identifier; and forward the second message.
  • the third correspondence includes: a correspondence between the slice information and the second interface, and a correspondence between the second interface and the second VLAN identifier,
  • the second interface is an interface corresponding to the second VLAN identifier and the slicing information.
  • the interface information of the first interface includes: first time slot information corresponding to the first interface, and the first time slot information is used to indicate the first client identifier or the first client identifier.
  • a time slot group, the first client identifier corresponds to the first time slot group.
  • determining the slice information of the first slice according to the interface information of the first interface includes: determining the first slot information and a fourth corresponding relationship.
  • the slice identifier of the first slice, and the fourth corresponding relationship includes the corresponding relationship between the first time slot information and the slice identifier.
  • determining the slice information of the first slice according to the interface information of the first interface includes: determining an interface identifier of the first interface according to the first timeslot information. ; Determine the slice identifier of the first slice according to the interface identifier of the first interface and a fifth correspondence relationship, where the fifth correspondence relationship includes a correspondence relationship between the interface identifier and the slice identifier.
  • determining the forwarding information of forwarding the first message to a third network node according to the slice information includes: determining to forward the first message according to the slice information and a sixth correspondence relationship.
  • the second time slot information of the first message, the second time slot information is used to indicate a second client identification or a second time slot group, the second client identification corresponds to the second time slot group, and the second time slot information is used to indicate a second client identification or a second time slot group.
  • the six corresponding relationships include the corresponding relationship between the slice information and the second time slot information; the sending unit 503 is configured to forward the third network node to the third network node through the second time slot group.
  • the sixth correspondence includes: a correspondence between the slice information and the third interface, and a correspondence between the third interface and the second timeslot information.
  • the third interface is an interface corresponding to the slice information and the second timeslot information.
  • the interface information of the first interface includes: an interface identifier of the first interface, and the processing unit 502 is configured to: determine the The first routing table corresponding to the first slice; determining an outbound interface for forwarding the first message to the third network node according to the destination address of the first message and the first routing table.
  • determining the first routing table corresponding to the first slice according to the interface identifier of the first interface includes: according to the interface identifier of the first interface and a seventh corresponding relationship , determine the first routing table, and the seventh correspondence includes a correspondence between the interface identifier of the first interface and the identifier of the first routing table.
  • the first slice is a slice corresponding to a flexible algorithm.
  • determining the first routing table corresponding to the first slice according to the interface identifier of the first interface includes: determining the first routing table according to the interface identifier of the first interface.
  • the global identifier of the interface the global identifier is used to identify the first slice; the first routing table is determined according to the global identifier.
  • determining the first routing table according to the global identifier includes: determining the first routing table according to the global identifier and an eighth correspondence, and the eighth correspondence The relationship includes a corresponding relationship between the global identifier and the identifier of the first routing table.
  • the global identifier of the first interface includes: a slice identifier associated with the first interface; or a flexible algorithm identifier associated with the first interface; or, the first interface The associated multi-topology MT identifier.
  • Figure 6 is a schematic structural diagram of a device provided by an embodiment of the present application.
  • the device 600 includes: a processor 610 , a communication interface 620 and a memory 630 .
  • the number of processors 610 in the device 600 may be one or more. In FIG. 6 , one processor is taken as an example. Examples of this application , the processor 610, the communication interface 620 and the memory 630 may be connected through a bus system or other means. In FIG. 6, the connection through the bus system 640 is taken as an example.
  • the processor 610 may be a central processing unit (CPU), a network processor (NP), or a combination of CPU and NP.
  • the processor 610 may further include hardware chips.
  • the above-mentioned hardware chip can be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • the above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL) or any combination thereof.
  • the memory 630 may include volatile memory (English: volatile memory), such as random-access memory (random-access memory, RAM); the memory 630 may also include non-volatile memory (English: non-volatile memory), such as fast memory. Flash memory (English: flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 630 may also include a combination of the above types of memory.
  • the memory 630 may, for example, store each corresponding relationship mentioned in the above method embodiment, such as storing the first corresponding relationship, the second corresponding relationship, and so on.
  • the memory 630 stores an operating system and programs, executable modules or data structures, or a subset thereof, or an extended set thereof, where the program may include various operating instructions for implementing various operations.
  • the operating system may include various system programs that are used to implement various basic services and handle hardware-based tasks.
  • the processor 610 can read the program in the memory 630 to implement the message processing method provided by the embodiment of the present application.
  • the bus system 640 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus system 640 can be divided into an address bus, a data bus, a control bus, etc. For ease of presentation, only one thick line is used in Figure 6, but it does not mean that there is only one bus or one type of bus.
  • Embodiments of the present application also provide a computer-readable storage medium, which includes instructions or computer programs that, when run on a computer, cause the computer to execute the message processing method provided in the above embodiments.
  • Embodiments of the present application also provide a computer program product containing instructions or computer programs, which when run on a computer causes the computer to execute the message processing method provided in the above embodiments.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of units is only a logical service division.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
  • a unit described as a separate component may or may not be physically separate.
  • a component shown as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each business unit in various embodiments of this application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software business units.
  • Integrated units may be stored in a computer-readable storage medium when implemented in the form of software business units and sold or used as independent products.
  • the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .
  • Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • Storage media can be any available media that can be accessed by a general purpose or special purpose computer.

Abstract

Disclosed in the embodiments of the present application is a message processing method. The method comprises: a second network node being capable of receiving, by means of a first interface of the second network node, a first message, which is sent by a first network node by means of a link corresponding to a first slice, wherein the first message does not comprise a slice identifier of the first slice; after receiving the first message, the second network node determining slice information of the first slice according to interface information of the first interface, wherein the slice information is used for indicating the first slice; and after determining the slice information, the second network node being capable of determining, according to the slice information, forwarding information about forwarding the first message to a third network node, and then forwarding the first message to the third network node by means of the determined forwarding information. It can be seen therefrom that, by using the solution, a second network node can realize slice forwarding without carrying a slice identifier in a first message, and the second network node can forward the first message by rationally using a slice resource of the first slice.

Description

一种报文处理方法及装置A message processing method and device
本申请要求以下专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority from the following patent applications, the entire contents of which are incorporated herein by reference.
1.于2022年9月14日提交中国国家知识产权局、申请号为202211117704.8、申请名称为“一种实现网络切片的方法、设备及系统”的中国专利申请;1. Submit a Chinese patent application to the State Intellectual Property Office of China on September 14, 2022, with the application number 202211117704.8 and the application name "A method, equipment and system for realizing network slicing";
2.于2022年11月21日提交中国国家知识产权局、申请号为202211457513.6、申请名称为“一种报文处理方法及装置”的中国专利申请。2. Submit a Chinese patent application to the State Intellectual Property Office of China on November 21, 2022, with the application number 202211457513.6 and the application title "A message processing method and device".
技术领域Technical field
本申请涉及通信领域,尤其涉及一种报文处理方法及装置。The present application relates to the field of communications, and in particular, to a message processing method and device.
背景技术Background technique
网络切片可以是在物理网络中划分出的虚拟网络,网络切片可以是包含特定网络功能、由定制网络拓扑和网络资源组成的虚拟网络。网络切片可以满足不同网络切片租户的业务功能需求。采用网络切片来传输对应网络切片租户的业务,可以保障为网络切片租户所提供服务质量。在本申请实施例中,“网络切片”也可以被称为“切片网络”,或者被简称为“切片”,在本申请实施例中,三者可以交替使用。A network slice can be a virtual network divided into a physical network. A network slice can be a virtual network that contains specific network functions and is composed of customized network topology and network resources. Network slicing can meet the business function requirements of different network slicing tenants. Using network slicing to transmit services corresponding to network slicing tenants can ensure the quality of service provided to network slicing tenants. In the embodiment of this application, "network slicing" may also be called "slicing network" or simply "slicing". In this embodiment of this application, the three may be used interchangeably.
目前,利用切片网络来传输业务数据时,存在切片资源使用不合理的问题,因此,急需一种方案,能够解决上述技术问题。Currently, when using slicing networks to transmit business data, there is a problem of unreasonable use of slicing resources. Therefore, there is an urgent need for a solution that can solve the above technical problems.
发明内容Contents of the invention
本申请实施例提供了一种报文处理方法及装置,可以合理使用切片资源。Embodiments of the present application provide a message processing method and device, which can rationally use slice resources.
第一方面,本申请实施例提供了一种报文处理方法,该方法可以应用于第二网络节点。在一个示例中,第二网络节点可以通过第二网络节点的第一接口接收第一网络节点通过第一切片对应的链路发送的第一报文。第一报文中不包括第一切片的切片标识。第二网络节点接收到第一报文之后,不是如传统技术那样,从第一报文中提取第一切片的切片标识并基于所述切片标识转发所述第一报文。而是根据所述第一接口的接口信息确定所述第一切片的切片信息,所述切片信息用于指示所述第一切片。确定所述切片信息之后,可以根据所述切片信息确定向第三网络节点转发所述第一报文的转发信息,进一步地,通过所确定的转发信息,向所述第三网络节点转发所述第一报文。由此可见,利用本方案,第二网络节点可以基于接收第一报文的入接口的接口信息,确定切片信息,从而基于切片信息实现向第三网络节点转发所述第一报文。利用本方案,无需在第一报文中携带切片标识,第二网络节点可以实现切片转发,并且,第二网络节点能够合理利用第一切片的切片资源转发所述第一报文。在一个具体的示例中,即使第二网络节点不支持解析报文中携带的切片标识,也能够基于切片信息实现向第三网络节点转发所述第一报文。在另一个具体的示例中,第一报文中不携带切片标识,减少了数据报文的报文长度,相应的,节省了数据报文对切片资源的占用。In the first aspect, embodiments of the present application provide a message processing method, which can be applied to the second network node. In one example, the second network node may receive the first message sent by the first network node through the link corresponding to the first slice through the first interface of the second network node. The first packet does not include the slice identifier of the first slice. After receiving the first message, the second network node does not extract the slice identifier of the first slice from the first message and forward the first message based on the slice identifier as in traditional technology. Instead, the slice information of the first slice is determined according to the interface information of the first interface, and the slice information is used to indicate the first slice. After the slice information is determined, forwarding information for forwarding the first message to a third network node may be determined based on the slice information, and further, forwarding the first message to the third network node through the determined forwarding information. First message. It can be seen that, using this solution, the second network node can determine the slicing information based on the interface information of the incoming interface that receives the first message, so as to forward the first message to the third network node based on the slicing information. With this solution, there is no need to carry a slice identifier in the first message, the second network node can implement slice forwarding, and the second network node can reasonably utilize the slice resources of the first slice to forward the first message. In a specific example, even if the second network node does not support parsing the slice identifier carried in the message, the first message can be forwarded to the third network node based on the slice information. In another specific example, the first packet does not carry the slice identifier, which reduces the packet length of the data packet and accordingly saves the occupation of slice resources by the data packet.
在一种可能的实现方式中,所述第一接口与虚拟局域网(virtual local area network,VLAN)关联,对于这种情况,所述第一接口的接口信息,可以是第一接口对应的第一VLAN标识。对于这种情况,所述第一报文中可以包括所述第一VLAN标识,相应的,所述第二网络节点可以对所述第一报文进行解析,从而得到所述第一VLAN标识,并进一步基于所述第一VLAN标识确定第一切片的切片信息,从而实现切片转发。 In a possible implementation, the first interface is associated with a virtual local area network (VLAN). In this case, the interface information of the first interface may be the first interface corresponding to the first interface. VLAN identification. For this situation, the first message may include the first VLAN identifier, and accordingly, the second network node may parse the first message to obtain the first VLAN identifier, And further determine the slice information of the first slice based on the first VLAN identifier, thereby realizing slice forwarding.
在一种可能的实现方式中,当所述第一接口的接口信息为第一VLAN标识时,所述第一切片的切片信息,可以是第一切片的切片标识。对于这种情况,在一个示例中,所述第二网络节点可以根据所述第一VLAN标识和第一对应关系,确定所述第一切片的切片标识,所述第一对应关系包括所述第一VLAN标识和所述切片标识之间的对应关系。在确定所述第一切片的切片标识之后,可以进一步基于所述第一VLAN标识确定第一切片的切片信息,从而实现切片转发。In a possible implementation manner, when the interface information of the first interface is the first VLAN ID, the slice information of the first slice may be the slice ID of the first slice. For this situation, in one example, the second network node may determine the slice identifier of the first slice according to the first VLAN identifier and a first correspondence relationship, where the first correspondence relationship includes the Correspondence between the first VLAN identifier and the slice identifier. After determining the slice identifier of the first slice, slice information of the first slice may be further determined based on the first VLAN identifier, thereby realizing slice forwarding.
在一种可能的实现方式中,当所述第一接口的接口信息为第一VLAN标识时,所述第一切片的切片信息,可以是第一切片的切片标识。对于这种情况,在一个示例中,所述第二网络节点可以首先根据所述第一VLAN标识确定所述第一接口的接口标识,并进一步根据所述第一接口的接口标识和第二对应关系,确定所述第一切片的切片标识,所述第二对应关系包括所述接口标识和所述切片标识之间的对应关系。在确定所述第一切片的切片标识之后,可以进一步基于所述第一VLAN标识确定第一切片的切片信息,从而实现切片转发。In a possible implementation manner, when the interface information of the first interface is the first VLAN ID, the slice information of the first slice may be the slice ID of the first slice. For this situation, in one example, the second network node may first determine the interface identifier of the first interface according to the first VLAN identifier, and further determine the interface identifier of the first interface according to the interface identifier of the first interface and the second corresponding relationship, determine the slice identifier of the first slice, and the second correspondence relationship includes the correspondence relationship between the interface identifier and the slice identifier. After determining the slice identifier of the first slice, slice information of the first slice may be further determined based on the first VLAN identifier, thereby realizing slice forwarding.
在一种可能的实现方式中,当前述第一接口的接口信息为第一VLAN标识时,所述转发信息可以是第二VLAN标识,对于这种情况,所述第二网络节点可以根据所述切片信息和第三对应关系,确定转发所述第一报文的第二VLAN标识,所述第三对应关系包括所述切片信息和所述第二VLAN标识之间的对应关系。在确定所述第二VLAN标识之后,所述第二网络节点可以根据所述第二VLAN标识和所述第一报文,得到包括所述第二VLAN标识的第二报文,并向第三网络节点转发所述第二报文。采用这种方式,第二网络节点可以通过第三对应关系快速高效的确定第二VLAN标识,从而快速向第三网络节点转发所述第二报文,提升了报文转发效率。In a possible implementation, when the interface information of the first interface is a first VLAN identifier, the forwarding information may be a second VLAN identifier. In this case, the second network node may be configured according to the The slice information and the third correspondence determine the second VLAN identifier for forwarding the first message, and the third correspondence includes the correspondence between the slice information and the second VLAN identifier. After determining the second VLAN identifier, the second network node may obtain a second message including the second VLAN identifier based on the second VLAN identifier and the first message, and send the message to a third party. The network node forwards the second message. In this way, the second network node can quickly and efficiently determine the second VLAN identifier through the third correspondence relationship, thereby quickly forwarding the second message to the third network node, thereby improving message forwarding efficiency.
在一种可能的实现方式中,所述第三对应关系,可以包括两级对应关系,分别为切片信息(例如切片标识)和第二接口之间的对应关系,以及第二接口和第二VLAN标识之间的对应关系。所述第二接口为与所述第二VLAN标识以及所述切片信息对应的接口。采用这种方式,第二网络节点可以根据第三对应关系包括的两级对应关系,确定第二VLAN标识,并进一步基于所述第二VLAN标识向第三网络节点转发前述第二报文,从而实现切片转发。In a possible implementation, the third correspondence relationship may include a two-level correspondence relationship, which is a correspondence relationship between slice information (such as slice identification) and the second interface, and a correspondence relationship between the second interface and the second VLAN. Correspondence between identifiers. The second interface is an interface corresponding to the second VLAN identifier and the slicing information. In this way, the second network node can determine the second VLAN identifier based on the two-level correspondence relationship included in the third correspondence relationship, and further forward the aforementioned second message to the third network node based on the second VLAN identifier, thereby Implement slice forwarding.
在一种可能的实现方式中,在所述第一接口为灵活以太(Flexible Ethernet,FlexE)接口的情况下,所述第一接口的接口信息可以是第一接口对应的第一时隙信息,所述第一时隙信息可以用于指示第一客户(client)标识或者第一时隙组,第一client标识可以对应第一时隙组,第一client标识对应的业务数据可以通过所述第一时隙组转发。所述第一时隙组可以包括至少一个时隙。在一个示例中,所述第一时隙信息可以包括所述第一client标识,在又一个示例中,所述第一时隙信息可以包括所述第一时隙组所包括的各个时隙的标识,例如,所述第一时隙信息可以包括所述第一时隙组所包括的各个时隙的时隙编号。In a possible implementation, when the first interface is a Flexible Ethernet (FlexE) interface, the interface information of the first interface may be the first time slot information corresponding to the first interface, The first time slot information may be used to indicate a first client (client) identity or a first time slot group. The first client identity may correspond to the first time slot group. The service data corresponding to the first client identity may be transmitted through the first time slot group. One time slot group forwarding. The first time slot group may include at least one time slot. In one example, the first time slot information may include the first client identifier. In another example, the first time slot information may include the information of each time slot included in the first time slot group. Identification, for example, the first time slot information may include a time slot number of each time slot included in the first time slot group.
在一种可能的实现方式中,当所述第一接口的接口信息为第一时隙信息时,所述第一切片的切片信息可以是第一切片的切片标识。对于这种情况,在一个示例中,所述第二网络节点可以根据所述第一时隙信息和第四对应关系,确定所述第一切片的切片标识,所述第四对应关系包括所述第一时隙信息和所述切片标识之间的对应关系。在确定所述第一切 片的切片标识之后,可以进一步基于所述第一VLAN标识确定第一切片的切片信息,从而实现切片转发。In a possible implementation manner, when the interface information of the first interface is the first timeslot information, the slice information of the first slice may be a slice identifier of the first slice. For this situation, in one example, the second network node may determine the slice identifier of the first slice based on the first time slot information and a fourth correspondence relationship, where the fourth correspondence relationship includes the The corresponding relationship between the first time slot information and the slice identifier. In determining the first everything After obtaining the slice identifier of the slice, the slice information of the first slice may be further determined based on the first VLAN identifier, thereby realizing slice forwarding.
在一种可能的实现方式中,当所述第一接口的接口信息为第一时隙信息时,所述第一切片的切片信息可以是第一切片的切片标识。对于这种情况,在一个示例中,所述第二网络节点可以根据所述第一时隙信息确定所述第一接口的接口标识,并根据所述第一接口的接口标识和第五对应关系,确定所述第一切片的切片标识,所述第五对应关系包括所述接口标识和所述切片标识之间的对应关系。在确定所述第一切片的切片标识之后,可以进一步基于所述第一VLAN标识确定第一切片的切片信息,从而实现切片转发。In a possible implementation manner, when the interface information of the first interface is the first timeslot information, the slice information of the first slice may be a slice identifier of the first slice. For this situation, in one example, the second network node may determine the interface identifier of the first interface according to the first time slot information, and determine the interface identifier of the first interface according to the fifth corresponding relationship. , determine the slice identifier of the first slice, and the fifth correspondence includes a correspondence between the interface identifier and the slice identifier. After determining the slice identifier of the first slice, slice information of the first slice may be further determined based on the first VLAN identifier, thereby realizing slice forwarding.
在一种可能的实现方式中,当所述第一接口的接口信息为第一时隙信息时,所述转发信息可以是第二时隙信息,对于这种情况,第二网络节点可以根据所述切片信息和第六对应关系,确定转发所述第一报文的第二时隙信息,所述第二时隙信息用于指示第二client标识或者第二时隙组,所述第二client标识对应所述第二时隙组,所述第六对应关系包括所述切片信息和所述第二时隙信息之间的对应关系。在确定所述第二时隙信息之后,可以通过第二时隙信息所对应的第二时隙组向所述第三网络节点转发所述第一报文,从而实现切片转发。采用这种方式,第二网络节点可以通过第六对应关系快速高效的确定第二时隙信息,从而快速向第三网络节点转发所述第一报文,提升了报文转发效率。In a possible implementation, when the interface information of the first interface is the first time slot information, the forwarding information may be the second time slot information. In this case, the second network node may The slice information and the sixth corresponding relationship are used to determine the second time slot information for forwarding the first message. The second time slot information is used to indicate the second client identifier or the second time slot group. The second client The identifier corresponds to the second time slot group, and the sixth correspondence includes a correspondence between the slice information and the second time slot information. After the second time slot information is determined, the first message may be forwarded to the third network node through the second time slot group corresponding to the second time slot information, thereby realizing slice forwarding. In this way, the second network node can quickly and efficiently determine the second time slot information through the sixth correspondence relationship, thereby quickly forwarding the first message to the third network node, thereby improving message forwarding efficiency.
在一种可能的实现方式中,所述第六对应关系可以包括两级对应关系,分别是所述切片信息和第三接口之间的对应关系、以及所述第三接口和所述第二时隙信息之间的对应关系,所述第三接口为与所述切片信息以及所述第二时隙信息对应的接口。对于这种情况,所述第二网络节点可以首先基于所述切片信息和第三接口之间的对应关系以及切片信息,确定第三接口。确定第三接口之后,可以基于所述第三接口和所述第二时隙信息之间的对应关系以及所述第三接口,确定第三时隙信息。采用这种方式,第二网络节点可以根据第六对应关系包括的两级对应关系,确定第二时隙信息,并进一步基于所述第二时隙信息向第三网络节点转发第一报文,从而实现切片转发。In a possible implementation, the sixth correspondence relationship may include a two-level correspondence relationship, which is a correspondence relationship between the slice information and the third interface, and a correspondence relationship between the third interface and the second time interface. Correspondence between slot information, the third interface is an interface corresponding to the slice information and the second time slot information. In this case, the second network node may first determine the third interface based on the correspondence between the slice information and the third interface and the slice information. After the third interface is determined, the third time slot information may be determined based on the correspondence between the third interface and the second time slot information and the third interface. In this way, the second network node can determine the second time slot information based on the two-level correspondence included in the sixth correspondence, and further forward the first message to the third network node based on the second time slot information, This enables slice forwarding.
在一种可能的实现方式中,所述第一接口的接口信息,可以是所述第一接口的接口标识。此处提及的第一接口的接口标识,例如可以是第一接口在所述第二网络节点的本地标识。对于这种情况,所述第一切片的切片信息,可以是与第一切片对应的第一路由表。确定所述第一路由表之后,所述第二网络节点可以根据所述第一报文的目的地址和所述第一路由表,确定向第三网络节点转发所述第一报文的出接口,并进一步通过所述出接口转发所述第一报文,从而实现切片转发。采用这种方式,对于包括多个切片的物理网络而言,每个切片均具备与该切片对应的路由表,在进行切片转发时,各个切片采用自身的路由表指导转发。采用这种方式,可以无需为每个切片划分独立的地址空间,各个切片对应的网络地址可以在同一地址空间下,从而减少了网络节点计算路由表的计算量,节省了网络节点的计算资源。In a possible implementation manner, the interface information of the first interface may be an interface identifier of the first interface. The interface identifier of the first interface mentioned here may be, for example, the local identifier of the first interface at the second network node. In this case, the slice information of the first slice may be the first routing table corresponding to the first slice. After determining the first routing table, the second network node may determine an outbound interface for forwarding the first message to a third network node based on the destination address of the first message and the first routing table. , and further forward the first message through the outbound interface, thereby realizing slice forwarding. In this way, for a physical network including multiple slices, each slice has a routing table corresponding to the slice. When performing slice forwarding, each slice uses its own routing table to guide forwarding. In this way, there is no need to divide an independent address space for each slice. The network addresses corresponding to each slice can be in the same address space, thereby reducing the calculation amount of the network node calculating the routing table and saving the computing resources of the network node.
在一种可能的实现方式中,所述第二网络节点中可以保存有第七对应关系,所述第七对应关系包括第一接口的接口标识和第一路由表的标识之间的对应关系,对于这种情况,所述第二网络节点可以根据所述第一接口的接口标识和所述第七对应关系,确定所述第一路由标识的标识,并进一步地,根据所述第一路由表的标识,得到所述第一路由表。 In a possible implementation, a seventh correspondence relationship may be stored in the second network node, and the seventh correspondence relationship includes a correspondence relationship between an interface identifier of the first interface and an identifier of the first routing table, In this case, the second network node may determine the identifier of the first routing identifier according to the interface identifier of the first interface and the seventh corresponding relationship, and further, determine the identifier of the first routing identifier according to the first routing table. identification to obtain the first routing table.
在一种可能的实现方式中,在第一切片的切片信息为第一路由表的场景中,所述第一切片例如可以是灵活算法对应的切片。目前,当一个物理网络中包括多个灵活算法分别对应的切片时,各个切片对应的地址空间均是不同的,因此,网络节点需要针对多个地址空间计算路由表,导致路由计算所需的资源较多。采用本方案,可以无需为每个灵活算法对应的切片划分独立的地址空间,各个切片对应的网络地址可以在同一地址空间下,从而减少了网络节点计算路由表的计算量,节省了网络节点的计算资源。In a possible implementation manner, in a scenario where the slice information of the first slice is the first routing table, the first slice may be, for example, a slice corresponding to a flexible algorithm. Currently, when a physical network includes multiple slices corresponding to flexible algorithms, the address spaces corresponding to each slice are different. Therefore, network nodes need to calculate routing tables for multiple address spaces, resulting in the resources required for route calculation. More. Using this solution, there is no need to divide independent address spaces for the slices corresponding to each flexible algorithm. The network addresses corresponding to each slice can be in the same address space, thus reducing the calculation amount of routing tables for network nodes and saving network nodes. Computing resources.
在一种可能的实现方式中,第二网络节点根据第一接口的接口标识确定第一路由表在具体实现时,可以首先根据所述第一接口的接口标识确定所述第一接口的全局标识,所述全局标识用于标识所述第一切片。确定所述全局标识之后,可以根据所述全局标识确定所述第一路由表。In a possible implementation manner, the second network node determines the first routing table according to the interface identifier of the first interface. During specific implementation, the second network node may first determine the global identifier of the first interface according to the interface identifier of the first interface. , the global identifier is used to identify the first slice. After the global identifier is determined, the first routing table may be determined based on the global identifier.
在一种可能的实现方式中,第二网络节点中可以存储有第八对应关系,所述第八对应关系可以包括所述全局标识和第一路由表的标识之间的对应关系。对于这种情况,第二网络节点根据全局标识确定第一路由表在具体实现时,例如可以根据所述全局标识和所述第八对应关系,得到所述第一路由标识的标识,进一步地,根据所述第一路由表的标识得到所述第一路由表。In a possible implementation, an eighth correspondence relationship may be stored in the second network node, and the eighth correspondence relationship may include a correspondence relationship between the global identifier and the identifier of the first routing table. For this situation, when the second network node determines the first routing table according to the global identifier, for example, the identifier of the first routing identifier can be obtained according to the global identifier and the eighth correspondence relationship. Further, The first routing table is obtained according to the identifier of the first routing table.
在一种可能的实现方式中,所述第一接口的全局标识,可以是第一接口关联的切片标识,第一接口关联的切片标识,也可以理解成所述第一切片的切片标识。对于这种情况,可以无需为每个切片划分独立的地址空间,各个切片对应的网络地址可以在同一地址空间下,从而减少了网络节点计算路由表的计算量,节省了网络节点的计算资源。In a possible implementation manner, the global identifier of the first interface may be the slice identifier associated with the first interface. The slice identifier associated with the first interface may also be understood as the slice identifier of the first slice. In this case, there is no need to divide an independent address space for each slice. The network addresses corresponding to each slice can be in the same address space, thereby reducing the calculation amount of the network node calculating the routing table and saving the computing resources of the network node.
在一种可能的实现方式中,所述第一切片为灵活算法关联的切片,相应的,所述第一接口的全局标识,可以是所述第一接口关联的灵活算法标识。对于这种情况,可以无需为每个灵活算法对应的切片划分独立的地址空间,各个切片对应的网络地址可以在同一地址空间下,从而减少了网络节点计算路由表的计算量,节省了网络节点的计算资源。In a possible implementation manner, the first slice is a slice associated with a flexible algorithm. Accordingly, the global identifier of the first interface may be the flexible algorithm identifier associated with the first interface. In this case, there is no need to divide independent address spaces for the slices corresponding to each flexible algorithm. The network addresses corresponding to each slice can be in the same address space, thus reducing the calculation amount of routing tables for network nodes and saving network nodes. computing resources.
在一种可能的实现方式中,所述第一切片关联多拓扑(multi-topology,MT)中的某一网络拓扑,相应的,所述第一接口的全局标识,可以是所述第一接口关联的MT标识。目前,当一个物理网络中包括MT时,MT中的各个网络拓扑对应的地址空间均是不同的,因此,网络节点需要针对多个地址空间计算路由表,导致路由计算所需的资源较多。采用本方案,可以无需为MT中的各个网络拓扑划分独立的地址空间,各个网络拓扑对应的网络地址可以在同一地址空间下,从而减少了网络节点计算路由表的计算量,节省了网络节点的计算资源。In a possible implementation, the first slice is associated with a certain network topology in a multi-topology (MT). Correspondingly, the global identifier of the first interface may be the first MT identifier associated with the interface. Currently, when a physical network includes MT, the address spaces corresponding to each network topology in the MT are different. Therefore, network nodes need to calculate routing tables for multiple address spaces, resulting in more resources required for route calculation. Using this solution, there is no need to divide independent address spaces for each network topology in MT. The network addresses corresponding to each network topology can be in the same address space, thus reducing the calculation amount of routing tables for network nodes and saving network nodes. Computing resources.
第二方面,本申请实施例提供了一种报文处理装置,应用于第二网络节点,所述装置包括:接收单元,用于通过所述第二网络节点的第一接口接收第一网络节点通过第一切片对应的链路发送的第一报文;处理单元,用于根据所述第一接口的接口信息确定所述第一切片的切片信息,所述切片信息用于指示所述第一切片,所述第一报文中不包括所述第一切片的切片标识;根据所述切片信息确定向第三网络节点转发所述第一报文的转发信息;发送单元,用于通过所述转发信息,向所述第三网络节点转发所述第一报文。In a second aspect, embodiments of the present application provide a message processing device applied to a second network node. The device includes: a receiving unit configured to receive a message from a first network node through a first interface of the second network node. The first message sent through the link corresponding to the first slice; a processing unit configured to determine the slice information of the first slice according to the interface information of the first interface, the slice information is used to indicate the The first slice, the first message does not include the slice identifier of the first slice; determine the forwarding information of forwarding the first message to the third network node according to the slice information; the sending unit uses Forwarding the first message to the third network node through the forwarding information.
在一种可能的实现方式中,所述第一接口的接口信息,包括:所述第一接口对应的第一虚拟局域网VLAN标识,所述第一报文中包括所述第一VLAN标识。 In a possible implementation manner, the interface information of the first interface includes: a first virtual LAN VLAN identifier corresponding to the first interface, and the first message includes the first VLAN identifier.
在一种可能的实现方式中,所述根据所述第一接口的接口信息确定所述第一切片的切片信息,包括:根据所述第一VLAN标识和第一对应关系,确定所述第一切片的切片标识,所述第一对应关系包括所述第一VLAN标识和所述切片标识之间的对应关系。In a possible implementation, determining the slice information of the first slice according to the interface information of the first interface includes: determining the first slice according to the first VLAN identifier and the first corresponding relationship. A slice identifier of a slice, and the first correspondence includes a correspondence between the first VLAN identifier and the slice identifier.
在一种可能的实现方式中,所述根据所述第一接口的接口信息确定所述第一切片的切片信息,包括:根据所述第一VLAN标识确定所述第一接口的接口标识;根据所述第一接口的接口标识和第二对应关系,确定所述第一切片的切片标识,所述第二对应关系包括所述接口标识和所述切片标识之间的对应关系。In a possible implementation, the determining the slice information of the first slice according to the interface information of the first interface includes: determining the interface identifier of the first interface according to the first VLAN identifier; The slice identifier of the first slice is determined according to the interface identifier of the first interface and a second correspondence relationship, where the second correspondence relationship includes a correspondence relationship between the interface identifier and the slice identifier.
在一种可能的实现方式中,所述根据所述切片信息确定向第三网络节点转发所述第一报文的转发信息,包括:根据所述切片信息和第三对应关系,确定转发所述第一报文的第二VLAN标识,所述第三对应关系包括所述切片信息和所述第二VLAN标识之间的对应关系;所述发送单元,用于:根据所述第二VLAN标识和所述第一报文,得到包括所述第二VLAN标识的第二报文;转发所述第二报文。In a possible implementation, determining the forwarding information of forwarding the first message to a third network node according to the slice information includes: determining to forward the first message according to the slice information and a third corresponding relationship. The second VLAN identifier of the first message, the third corresponding relationship includes the corresponding relationship between the slice information and the second VLAN identifier; the sending unit is configured to: according to the second VLAN identifier and From the first message, obtain a second message including the second VLAN identifier; and forward the second message.
在一种可能的实现方式中,所述第三对应关系包括:所述切片信息和第二接口之间的对应关系,以及所述第二接口和所述第二VLAN标识之间的对应关系,所述第二接口为与所述第二VLAN标识以及所述切片信息对应的接口。In a possible implementation, the third correspondence includes: a correspondence between the slice information and the second interface, and a correspondence between the second interface and the second VLAN identifier, The second interface is an interface corresponding to the second VLAN identifier and the slicing information.
在一种可能的实现方式中,所述第一接口的接口信息,包括:所述第一接口对应的第一时隙信息,所述第一时隙信息用于指示第一客户client标识或者第一时隙组,所述第一client标识对应所述第一时隙组。In a possible implementation, the interface information of the first interface includes: first time slot information corresponding to the first interface, and the first time slot information is used to indicate the first client identifier or the first client identifier. A time slot group, the first client identifier corresponds to the first time slot group.
在一种可能的实现方式中,所述根据所述第一接口的接口信息确定所述第一切片的切片信息,包括:根据所述第一时隙信息和第四对应关系,确定所述第一切片的切片标识,所述第四对应关系包括所述第一时隙信息和所述切片标识之间的对应关系。In a possible implementation, determining the slice information of the first slice according to the interface information of the first interface includes: determining the first slot information and a fourth corresponding relationship. The slice identifier of the first slice, and the fourth corresponding relationship includes the corresponding relationship between the first time slot information and the slice identifier.
在一种可能的实现方式中,所述根据所述第一接口的接口信息确定所述第一切片的切片信息,包括:根据所述第一时隙信息确定所述第一接口的接口标识;根据所述第一接口的接口标识和第五对应关系,确定所述第一切片的切片标识,所述第五对应关系包括所述接口标识和所述切片标识之间的对应关系。In a possible implementation, determining the slice information of the first slice according to the interface information of the first interface includes: determining an interface identifier of the first interface according to the first timeslot information. ; Determine the slice identifier of the first slice according to the interface identifier of the first interface and a fifth correspondence relationship, where the fifth correspondence relationship includes a correspondence relationship between the interface identifier and the slice identifier.
在一种可能的实现方式中,所述根据所述切片信息确定向第三网络节点转发所述第一报文的转发信息,包括:根据所述切片信息和第六对应关系,确定转发所述第一报文的第二时隙信息,所述第二时隙信息用于指示第二client标识或者第二时隙组,所述第二client标识对应所述第二时隙组,所述第六对应关系包括所述切片信息和所述第二时隙信息之间的对应关系;所述发送单元,用于:通过所述第二时隙组向所述第三网络节点转发所述第一报文。In a possible implementation, determining the forwarding information of forwarding the first message to a third network node according to the slice information includes: determining to forward the first message according to the slice information and a sixth correspondence relationship. The second time slot information of the first message, the second time slot information is used to indicate a second client identification or a second time slot group, the second client identification corresponds to the second time slot group, and the second time slot information is used to indicate a second client identification or a second time slot group. The six corresponding relationships include the corresponding relationship between the slice information and the second time slot information; the sending unit is configured to: forward the first time slot information to the third network node through the second time slot group. message.
在一种可能的实现方式中,所述第六对应关系包括:所述切片信息和第三接口之间的对应关系,以及所述第三接口和所述第二时隙信息之间的对应关系,所述第三接口为与所述切片信息以及所述第二时隙信息对应的接口。In a possible implementation, the sixth correspondence includes: a correspondence between the slice information and the third interface, and a correspondence between the third interface and the second timeslot information. , the third interface is an interface corresponding to the slice information and the second timeslot information.
在一种可能的实现方式中,所述第一接口的接口信息,包括:所述第一接口的接口标识,所述处理单元,用于:根据所述第一接口的接口标识确定所述第一切片对应的第一路由表;根据所述第一报文的目的地址和所述第一路由表,确定向第三网络节点转发所述第一报文的出接口。 In a possible implementation, the interface information of the first interface includes: an interface identifier of the first interface, and the processing unit is configured to: determine the third interface according to the interface identifier of the first interface. A first routing table corresponding to the slice is generated; and an outbound interface for forwarding the first message to a third network node is determined based on the destination address of the first message and the first routing table.
在一种可能的实现方式中,所述根据所述第一接口的接口标识确定所述第一切片对应的第一路由表,包括:根据所述第一接口的接口标识和第七对应关系,确定所述第一路由表,所述第七对应关系包括所述第一接口的接口标识和所述第一路由表的标识之间的对应关系。In a possible implementation, determining the first routing table corresponding to the first slice according to the interface identifier of the first interface includes: according to the interface identifier of the first interface and a seventh corresponding relationship , determine the first routing table, and the seventh correspondence includes a correspondence between the interface identifier of the first interface and the identifier of the first routing table.
在一种可能的实现方式中,所述第一切片为灵活算法对应的切片。In a possible implementation, the first slice is a slice corresponding to a flexible algorithm.
在一种可能的实现方式中,所述根据所述第一接口的接口标识确定所述第一切片对应的第一路由表,包括:根据所述第一接口的接口标识确定所述第一接口的全局标识,所述全局标识用于标识所述第一切片;根据所述全局标识确定所述第一路由表。In a possible implementation, determining the first routing table corresponding to the first slice according to the interface identifier of the first interface includes: determining the first routing table according to the interface identifier of the first interface. The global identifier of the interface, the global identifier is used to identify the first slice; the first routing table is determined according to the global identifier.
在一种可能的实现方式中,所述根据所述全局标识确定所述第一路由表,包括:根据所述全局标识和第八对应关系,确定所述第一路由表,所述第八对应关系包括所述全局标识和所述第一路由表的标识之间的对应关系。In a possible implementation, determining the first routing table according to the global identifier includes: determining the first routing table according to the global identifier and an eighth correspondence, and the eighth correspondence The relationship includes a corresponding relationship between the global identifier and the identifier of the first routing table.
在一种可能的实现方式中,所述第一接口的全局标识,包括:所述第一接口关联的切片标识;或者,所述第一接口关联的灵活算法标识;或者,所述第一接口关联的多拓扑MT标识。In a possible implementation, the global identifier of the first interface includes: a slice identifier associated with the first interface; or a flexible algorithm identifier associated with the first interface; or, the first interface The associated multi-topology MT identifier.
第三方面,本申请实施例提供了一种设备。所述设备包括处理器和存储器。所述存储器用于存储指令或计算机程序。所述处理器用于执行所述存储器中的所述指令或计算机程序,执行以上第一方面任意一项所述的方法。In a third aspect, an embodiment of the present application provides a device. The device includes a processor and memory. The memory is used to store instructions or computer programs. The processor is configured to execute the instructions or computer programs in the memory, and perform the method described in any one of the above first aspects.
第四方面,本申请实施例提供了一种计算机可读存储介质,包括指令或计算机程序,当其在计算机上运行时,使得计算机执行以上第一方面任意一项所述的方法。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, which includes instructions or computer programs that, when run on a computer, cause the computer to perform any of the methods described in the first aspect above.
第五方面,本申请实施例提供了一种包含指令或计算机程序的计算机程序产品,当其在计算机上运行时,使得计算机执行以上第一方面任意一项所述的方法。In a fifth aspect, embodiments of the present application provide a computer program product containing instructions or computer programs, which, when run on a computer, cause the computer to perform any of the methods described in the first aspect above.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present application or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are some embodiments recorded in this application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1为本申请实施例提供的一种应用场景示意图;Figure 1 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图2为本申请实施例提供的一种示例性应用场景示意图;Figure 2 is a schematic diagram of an exemplary application scenario provided by the embodiment of the present application;
图3为本申请实施例提供的一种报文处理方法的流程示意图;Figure 3 is a schematic flow chart of a message processing method provided by an embodiment of the present application;
图4a为本申请实施例提供的一种示例性应用场景示意图;Figure 4a is a schematic diagram of an exemplary application scenario provided by the embodiment of the present application;
图4b为本申请实施例提供的又一种示例性应用场景示意图;Figure 4b is a schematic diagram of another exemplary application scenario provided by the embodiment of the present application;
图4c为本申请实施例提供的又一种示例性应用场景示意图;Figure 4c is a schematic diagram of another exemplary application scenario provided by the embodiment of the present application;
图4d为本申请实施例提供的又一种示例性应用场景示意图;Figure 4d is a schematic diagram of another exemplary application scenario provided by the embodiment of the present application;
图5为本申请实施例提供的一种报文处理装置的结构示意图;Figure 5 is a schematic structural diagram of a message processing device provided by an embodiment of the present application;
图6为本申请实施例提供的一种设备的结构示意图。Figure 6 is a schematic structural diagram of a device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种报文处理方法及装置,可以合理使用切片资源。Embodiments of the present application provide a message processing method and device, which can rationally use slice resources.
为方便理解,首先对与切片网络相关的内容进行介绍。 To facilitate understanding, we first introduce the content related to slicing networks.
在切片网络中,网络节点在转发数据报文时,首先根据报文的目的地址来确定报文转发的下一跳和出接口,确定出接口之后,可以进一步基于出接口和slice ID的对应关系,确定报文转发资源。此处提及的报文转发资源,可以是该出接口所对应的物理子接口,也可以是该出接口对应的信道化子接口,还可以是FlexE接口。In a slice network, when a network node forwards a data packet, it first determines the next hop and outbound interface for packet forwarding based on the destination address of the packet. After determining the outbound interface, it can further determine the corresponding relationship between the outbound interface and the slice ID. , determine the message forwarding resources. The packet forwarding resource mentioned here can be the physical sub-interface corresponding to the outbound interface, the channelized sub-interface corresponding to the outbound interface, or the FlexE interface.
其中:in:
FlexE接口可以理解为应用了FlexE技术的接口,FlexE技术通过FlexE Shim把物理接口资源按时隙池化,在大带宽物理接口上通过时隙资源池灵活划分出若干FlexE接口,实现对接口资源的灵活、精细化管理。每个FlexE接口之间带宽资源严格隔离。FlexE interfaces can be understood as interfaces that apply FlexE technology. FlexE technology pools physical interface resources by time slots through FlexE Shim, and flexibly divides several FlexE interfaces through time slot resource pools on large-bandwidth physical interfaces to achieve flexibility in interface resources. , Refined management. Bandwidth resources are strictly isolated between each FlexE interface.
信道化子接口采用子接口模型,通过为网络切片配置独立的信道化子接口实现带宽的灵活分配,每个网络切片独占带宽和调度树,为切片业务提供资源预留。The channelized sub-interface adopts the sub-interface model to achieve flexible allocation of bandwidth by configuring independent channelized sub-interfaces for network slices. Each network slice occupies exclusive bandwidth and scheduling trees to provide resource reservation for slice services.
现结合图1介绍网络节点在切片网络中进行报文转发的具体方式。图1为本申请实施例提供的一种应用场景示意图。如图1所示,网络节点B包括接口GE0/1/0和GE0/2/0。网络节点B中存储的转发表中包括对应关系110和对应关系120。其中:The specific way in which network nodes forward packets in a sliced network will now be introduced with reference to Figure 1. Figure 1 is a schematic diagram of an application scenario provided by an embodiment of the present application. As shown in Figure 1, network node B includes interfaces GE0/1/0 and GE0/2/0. The forwarding table stored in network node B includes correspondence relationship 110 and correspondence relationship 120. in:
对应关系110包括两条对应关系,分别为:前缀A6::1、下一跳C、以及出接口GE0/1/0之间的对应关系,以及,前缀A6::2、下一跳G、以及出接口GE0/2/0之间的对应关系。Correspondence 110 includes two correspondences, namely: the correspondence between prefix A6::1, next hop C, and outbound interface GE0/1/0, and the correspondence between prefix A6::2, next hop G, And the corresponding relationship between the outbound interface GE0/2/0.
对应关系120也包括两条对应关系,分别为:出接口GE0/1/0、slice ID 1和FlexE接口1之间的对应关系,以及,出接口GE0/2/0、slice ID 2和FlexE接口2之间的对应关系。The corresponding relationship 120 also includes two corresponding relationships, namely: the corresponding relationship between the outbound interface GE0/1/0, slice ID 1 and FlexE interface 1, and the outbound interface GE0/2/0, slice ID 2 and FlexE interface. The correspondence between 2.
若网络节点B接收到的报文1的目的地址为A6::1且该报文中携带slice ID 1,则网络节点B首先可以将目的地址A6::1和对应关系110进行匹配,确定下一跳为网络节点C,确定出接口为GE0/1/0;进一步地,网络节点B可以将出接口GE0/1/0与对应关系120进行匹配,确定转发资源为FlexE接口1。进一步地,所述网络节点B可以利用FlexE接口1将报文1转发为网络节点C。If the destination address of message 1 received by network node B is A6::1 and the message carries slice ID 1, network node B can first match the destination address A6::1 with the corresponding relationship 110, and determine The first hop is network node C, and the outbound interface is determined to be GE0/1/0; further, network node B can match the outbound interface GE0/1/0 with the corresponding relationship 120, and determine that the forwarding resource is FlexE interface 1. Further, the network node B can use the FlexE interface 1 to forward the message 1 to the network node C.
类似的,若网络节点B接收到的报文2的目的地址为A6::2且该报文中携带slice ID 2,则网络节点B首先可以将目的地址A6::2和对应关系110进行匹配,确定下一跳为网络节点G,确定出接口为GE0/2/0;进一步地,网络节点B可以将出接口GE0/2/0与对应关系120进行匹配,确定转发资源为FlexE接口2。进一步地,所述网络节点B可以利用FlexE接口2将报文1转发为网络节点G。Similarly, if the destination address of message 2 received by network node B is A6::2 and the message carries slice ID 2, network node B can first match the destination address A6::2 with the corresponding relationship 110 , determine the next hop to be network node G, and determine the outbound interface to be GE0/2/0; further, network node B can match the outbound interface GE0/2/0 to the corresponding relationship 120, and determine that the forwarding resource is FlexE interface 2. Further, the network node B can use the FlexE interface 2 to forward the message 1 to the network node G.
目前,若要实现切片转发,则头节点在转发数据报文时,需要将切片标识封装在报文中,相应的,中间节点可以从数据报文中提取切片标识,从而基于切片标识实现切片转发。但是,采用这种方式,可能会导致切片资源的使用不合理。在一些场景中,中间节点可能不具备解析数据报文中的切片标识的能力,则该中间节点接收到携带切片标识的数据报文之后,会丢弃该数据报文,从而使得该数据报文无法使用切片资源进行转发。另外,考虑到数据报文的流量比较大,每个数据报文中均携带切片标识,导致切片标识占用的总带宽较大。Currently, to implement slice forwarding, the head node needs to encapsulate the slice identifier in the message when forwarding the data message. Correspondingly, the intermediate node can extract the slice identifier from the data message, thereby implementing slice forwarding based on the slice identifier. . However, adopting this approach may lead to unreasonable use of slice resources. In some scenarios, the intermediate node may not have the ability to parse the slice identifier in the data message. After receiving the data message carrying the slice identifier, the intermediate node will discard the data message, making the data message unavailable. Use slice resources for forwarding. In addition, considering that the traffic of data packets is relatively large, each data packet carries a slice identifier, resulting in a larger total bandwidth occupied by the slice identifier.
为了解决上述问题,本申请实施例提供了一种报文处理方法及装置,利用该方法,可以无需在数据报文中携带切片标识,也能实现切片转发。In order to solve the above problem, embodiments of the present application provide a message processing method and device. By using this method, slice forwarding can be realized without carrying a slice identifier in the data message.
现结合图2所示的应用场景和图3所示的流程图,介绍本申请实施例提供的报文处理方法,其中,图2为本申请实施例提供的一种示例性应用场景示意图,图3为本申请实施 例提供的一种报文处理方法的流程示意图。The message processing method provided by the embodiment of the present application is now introduced with reference to the application scenario shown in Figure 2 and the flow chart shown in Figure 3. Figure 2 is a schematic diagram of an exemplary application scenario provided by the embodiment of the present application. Figure 3 for the implementation of this application The example provides a flow diagram of a message processing method.
如图2所示,网络节点A和网络节点C之间通过网络节点B相连,网络节点A和网络节点C之间有一条切片隧道,网络节点B是该切片隧道中的中间节点。As shown in Figure 2, network node A and network node C are connected through network node B. There is a slice tunnel between network node A and network node C. Network node B is the intermediate node in the slice tunnel.
图3所示的方法,可以应用于第二网络节点,所述第二网络节点可以对应于图2所示的网络节点B。在一个示例中,图3所示的报文处理方法,可以包括如下S101-S104。The method shown in Figure 3 can be applied to the second network node, and the second network node can correspond to network node B shown in Figure 2. In one example, the packet processing method shown in Figure 3 may include the following S101-S104.
S101:通过第二网络节点的第一接口接收第一网络节点通过第一切片对应的链路发送的第一报文。S101: Receive the first message sent by the first network node through the link corresponding to the first slice through the first interface of the second network node.
在本申请实施例中,所述第一接口,可以是所述第二网络节点的物理接口,例如物理子接口,也可以是所述第二网络节点的信道化子接口,例如与VLAN对应的接口,还可以是第二网络节点的FlexE接口,本申请实施例不做具体限定。In this embodiment of the present application, the first interface may be a physical interface of the second network node, such as a physical sub-interface, or it may be a channelized sub-interface of the second network node, such as a VLAN corresponding to The interface may also be the FlexE interface of the second network node, which is not specifically limited in the embodiments of this application.
关于所述第一网络节点,第一网络节点和第二网络节点可以通过第一切片对应的链路相连。在图2所示的场景中,第二网络节点对应网络节点B,第一网络节点可以对应网络节点A。Regarding the first network node, the first network node and the second network node may be connected through a link corresponding to the first slice. In the scenario shown in Figure 2, the second network node corresponds to network node B, and the first network node may correspond to network node A.
S102:根据所述第一接口的接口信息确定所述第一切片的切片信息,所述切片信息用于标识所述第一切片,所述第一报文中不包括所述第一切片的切片标识。S102: Determine the slice information of the first slice according to the interface information of the first interface. The slice information is used to identify the first slice. The first packet does not include the first slice. The slice ID of the slice.
第二网络节点接收第一报文之后,可以根据所述第一接口的接口信息,确定所述第一切片的切片信息。在本申请实施例中,所述第一接口的接口信息,可以是与所述第一接口相关的信息。After receiving the first message, the second network node may determine the slice information of the first slice according to the interface information of the first interface. In this embodiment of the present application, the interface information of the first interface may be information related to the first interface.
在一个示例中,在所述第一接口与VLAN关联的情况下,所述第一接口的接口信息,可以是第一接口对应的第一VLAN标识。对于这种情况,所述第一报文中可以包括所述第一VLAN标识,相应的,所述第二网络节点可以对所述第一报文进行解析,从而得到所述第一VLAN标识。In one example, when the first interface is associated with a VLAN, the interface information of the first interface may be the first VLAN identifier corresponding to the first interface. For this situation, the first message may include the first VLAN identifier, and accordingly, the second network node may parse the first message to obtain the first VLAN identifier.
在又一个示例中,在所述第一接口为FlexE接口的情况下,所述接口信息可以是第一接口对应的第一时隙信息,所述第一时隙信息可以用于指示第一client标识或者第一时隙组,第一client标识可以对应第一时隙组,第一client标识对应的业务数据可以通过所述第一时隙组转发。所述第一时隙组可以包括至少一个时隙。在一个示例中,所述第一时隙信息可以包括所述第一client标识,在又一个示例中,所述第一时隙信息可以包括所述第一时隙组所包括的各个时隙的标识,例如,所述第一时隙信息可以包括所述第一时隙组所包括的各个时隙的时隙编号。In another example, when the first interface is a FlexE interface, the interface information may be the first time slot information corresponding to the first interface, and the first time slot information may be used to indicate the first client The first client identifier may correspond to the first time slot group, and the service data corresponding to the first client identifier may be forwarded through the first time slot group. The first time slot group may include at least one time slot. In one example, the first time slot information may include the first client identifier. In another example, the first time slot information may include the information of each time slot included in the first time slot group. Identification, for example, the first time slot information may include a time slot number of each time slot included in the first time slot group.
在另一个示例中,所述第一接口的接口信息,可以是所述第一接口的接口标识。此处提及的第一接口的接口标识,例如可以是第一接口在所述第二网络节点的本地标识。In another example, the interface information of the first interface may be an interface identifier of the first interface. The interface identifier of the first interface mentioned here may be, for example, the local identifier of the first interface at the second network node.
根据接口信息确定切片信息在具体实现时,可以有多种实现方式,以下介绍几种可能的实现方式。When determining the slice information based on the interface information, there can be multiple implementation methods. Several possible implementation methods are introduced below.
在一种可能的实现方式中,若所述接口信息为第一VLAN标识,则所述切片信息可以是第一切片的切片标识。对于这种情况,所述第二网络节点中例如可以存储有第一对应关系,所述第一对应关系包括第一VLAN标识和所述第一切片的切片标识之间的对应关系。对于这种情况,根据接口信息确定切片信息在具体实现时,可以根据第一VLAN标识和第一对应关系,确定所述第一切片的切片标识。采用这种方式,第二网络节点接收第一报文 之后,从第一报文中提取第一VLAN标识,并基于所述第一VLAN标识和第一对应关系,即可确定第一切片的切片标识,确定切片标识的效率高,相应的,可以提升报文转发的效率。In a possible implementation manner, if the interface information is the first VLAN identifier, the slice information may be the slice identifier of the first slice. For this case, for example, the second network node may store a first correspondence relationship, where the first correspondence relationship includes a correspondence relationship between the first VLAN identifier and the slice identifier of the first slice. In this case, when the slice information is determined based on the interface information, the slice identifier of the first slice may be determined based on the first VLAN identifier and the first corresponding relationship. In this way, the second network node receives the first message After that, the first VLAN identifier is extracted from the first message, and based on the first VLAN identifier and the first corresponding relationship, the slice identifier of the first slice can be determined. The efficiency of determining the slice identifier is high. Accordingly, the slice identifier can be determined Improve the efficiency of message forwarding.
在另一种可能的实现方式中,所述接口信息为第一VLAN标识,所述切片信息可以是第一切片的切片标识。对于这种情况,所述第二网络节点可以首先根据所述第一报文中的VLAN标识确定第一接口的接口标识。在一个具体的示例中,所述第二网络节点可以存储有所述第一VLAN标识和所述第一接口的接口标识之间的对应关系,第二网络节点可以根据第一VLAN标识和所述第一接口的接口标识之间的对应关系和第一VLAN标识,确定所述第一接口的接口标识。确定所述第一接口的接口标识之后,可以基于所述接口标识和第二对应关系,确定所述第一切片的切片标识,其中,该第二对应关系也可以是所述第二网络节点存储的对应关系,所述第二对应关系包括所述第一接口的接口标识和所述切片标识之间的对应关系。采用这种方式,第二网络节点接收第一报文之后,从第一报文中提取第一VLAN标识,而后基于第一VLAN标识确定第一接口的接口标识,并进一步地基于第一接口的接口标识和第二对应关系,确定第一切片的切片标识,可以在第一报文中不携带切片标识的情况下,根据第一报文中的第一VLAN标识得到第一切片的切片标识,以便于后续进行切片转发。In another possible implementation manner, the interface information is a first VLAN identifier, and the slice information may be a slice identifier of the first slice. In this case, the second network node may first determine the interface identifier of the first interface based on the VLAN identifier in the first message. In a specific example, the second network node may store a correspondence between the first VLAN identifier and the interface identifier of the first interface, and the second network node may store the corresponding relationship between the first VLAN identifier and the interface identifier of the first interface. The corresponding relationship between the interface identifier of the first interface and the first VLAN identifier determines the interface identifier of the first interface. After determining the interface identifier of the first interface, the slice identifier of the first slice may be determined based on the interface identifier and a second correspondence relationship, where the second correspondence relationship may also be the second network node The stored correspondence relationship, the second correspondence relationship includes the correspondence relationship between the interface identifier of the first interface and the slice identifier. In this way, after receiving the first message, the second network node extracts the first VLAN identifier from the first message, then determines the interface identifier of the first interface based on the first VLAN identifier, and further determines the interface identifier of the first interface based on the first VLAN identifier. The interface identifier and the second correspondence are related to determine the slice identifier of the first slice. When the first packet does not carry the slice identifier, the slice of the first slice can be obtained based on the first VLAN identifier in the first packet. Identification to facilitate subsequent slice forwarding.
在又一种可能的实现方式中,若所述接口信息为第一时隙信息,则所述切片信息可以是第一切片的切片标识。对于这种情况,所述第二网络节点中例如可以存储有第四对应关系,所述第四对应关系包括第一时隙信息和所述第一切片的切片标识之间的对应关系。对于这种情况,根据接口信息确定切片信息在具体实现时,可以根据第一时隙信息和第四对应关系,确定所述第一切片的切片标识。采用这种方式,第二网络节点接收第一报文之后,确定第一报文对应的第一时隙信息,并基于所述第一时隙信息和第四对应关系,即可确定第一切片的切片标识,确定切片标识的效率高,相应的,可以提升报文转发的效率。In another possible implementation manner, if the interface information is the first timeslot information, the slice information may be a slice identifier of the first slice. For this case, for example, the second network node may store a fourth correspondence relationship, where the fourth correspondence relationship includes a correspondence relationship between the first time slot information and the slice identifier of the first slice. In this case, when the slice information is determined based on the interface information, the slice identifier of the first slice may be determined based on the first time slot information and the fourth corresponding relationship. In this way, after receiving the first message, the second network node determines the first time slot information corresponding to the first message, and based on the first time slot information and the fourth corresponding relationship, the first time slot information can be determined. The slice identifier of the slice is highly efficient in determining the slice identifier. Correspondingly, the efficiency of packet forwarding can be improved.
在另一种可能的实现方式中,所述接口信息为第一时隙信息,所述切片信息可以是第一切片的切片标识。对于这种情况,所述第二网络节点可以首先根据所述第一时隙信息确定第一接口的接口标识。在一个具体的示例中,所述第二网络节点可以存储有所述第一时隙信息和所述第一接口的接口标识之间的对应关系,第二网络节点可以根据第一时隙信息和所述第一接口的接口标识之间的对应关系和第一时隙信息,确定所述第一接口的接口标识。确定所述第一接口的接口标识之后,可以基于所述接口标识和第五对应关系,确定所述第一切片的切片标识,其中,该第五对应关系也可以是所述第二网络节点存储的对应关系,所述第五对应关系包括所述第一接口的接口标识和所述切片标识之间的对应关系。采用这种方式,第二网络节点接收第一报文之后,确定第一报文对应的第一时隙信息,而后,基于第一时隙信息确定第一接口的接口标识,并进一步基于第一接口的接口标识和第五对应关系,确定第一切片的切片标识。采用这种方式,可以在第一报文中不携带切片标识的情况下,根据第一报文对应的第一时隙信息得到第一切片的切片标识,以便于后续进行切片转发。In another possible implementation manner, the interface information is first time slot information, and the slice information may be a slice identifier of the first slice. In this case, the second network node may first determine the interface identifier of the first interface based on the first time slot information. In a specific example, the second network node may store a correspondence between the first time slot information and the interface identifier of the first interface, and the second network node may store the corresponding relationship between the first time slot information and the interface identifier of the first interface. The corresponding relationship between the interface identifier of the first interface and the first time slot information determines the interface identifier of the first interface. After determining the interface identifier of the first interface, the slice identifier of the first slice may be determined based on the interface identifier and a fifth correspondence, wherein the fifth correspondence may also be the second network node The stored correspondence relationship, the fifth correspondence relationship includes the correspondence relationship between the interface identifier of the first interface and the slice identifier. In this way, after receiving the first message, the second network node determines the first time slot information corresponding to the first message, and then determines the interface identifier of the first interface based on the first time slot information, and further determines the interface identifier of the first interface based on the first time slot information. The interface identifier of the interface and the fifth corresponding relationship determine the slice identifier of the first slice. In this way, when the first packet does not carry the slice ID, the slice ID of the first slice can be obtained based on the first time slot information corresponding to the first packet, so as to facilitate subsequent slice forwarding.
在又一种可能的实现方式中,第一接口的接口信息为第一接口的接口标识,对于这种情况,所述第一切片的切片信息,可以是第一切片对应的第一路由表。对于这种方式,根 据接口信息确定切片信息在具体实现时,例如可以根据所述第一接口的接口标识确定所述第一切片对应的第一路由表。采用这种方式,对于包括多个切片的物理网络而言,每个切片均具备与该切片对应的路由表,在进行切片转发时,各个切片采用自身的路由表指导转发。采用这种方式,可以无需为每个切片划分独立的地址空间,各个切片对应的网络地址可以在同一地址空间下,从而减少了网络节点计算路由表的计算量,节省了网络节点的计算资源。In another possible implementation, the interface information of the first interface is the interface identifier of the first interface. In this case, the slice information of the first slice may be the first route corresponding to the first slice. surface. For this approach, the root When determining the slice information based on the interface information, for example, the first routing table corresponding to the first slice may be determined based on the interface identifier of the first interface. In this way, for a physical network including multiple slices, each slice has a routing table corresponding to the slice. When performing slice forwarding, each slice uses its own routing table to guide forwarding. In this way, there is no need to divide an independent address space for each slice. The network addresses corresponding to each slice can be in the same address space, thereby reducing the calculation amount of the network node calculating the routing table and saving the computing resources of the network node.
在本申请实施例中,根据第一接口的接口标识确定第一路由表在具体实现时,可以有多种实现方式,以下介绍两种可能的实现方式。In this embodiment of the present application, when the first routing table is determined based on the interface identifier of the first interface, there can be multiple implementation methods. Two possible implementation methods are introduced below.
在一种可能的实现方式中,所述第二网络节点中可以保存有第七对应关系,所述第七对应关系包括第一接口的接口标识和第一路由表的标识之间的对应关系,对于这种情况,所述第二网络节点可以根据所述第一接口的接口标识和所述第七对应关系,确定所述第一路由标识的标识,并进一步地,根据所述第一路由表的标识,得到所述第一路由表。在此场景中,所述第一切片例如可以是灵活算法(flexible algorithm,flex-algo)对应的切片。In a possible implementation, a seventh correspondence relationship may be stored in the second network node, and the seventh correspondence relationship includes a correspondence relationship between an interface identifier of the first interface and an identifier of the first routing table, In this case, the second network node may determine the identifier of the first routing identifier according to the interface identifier of the first interface and the seventh corresponding relationship, and further, determine the identifier of the first routing identifier according to the first routing table. identification to obtain the first routing table. In this scenario, the first slice may be, for example, a slice corresponding to a flexible algorithm (flex-algo).
关于灵活算法,需要说明的是:灵活算法技术允许用户自定义不同的算法,相应的,网络节点可以基于被配置的算法进行最短路径的计算。在一个示例中,可以将业务与灵活算法相关联,从而实现通过与该灵活算法对应的路径传输业务数据,从而满足业务需求。一个灵活算法可以对应一个切片,该切片中可以包括被配置该灵活算法的多个网络节点。Regarding flexible algorithms, it should be noted that flexible algorithm technology allows users to customize different algorithms. Correspondingly, network nodes can calculate the shortest path based on the configured algorithm. In one example, a business can be associated with a flexible algorithm, thereby transmitting business data through a path corresponding to the flexible algorithm, thereby meeting business requirements. A flexible algorithm can correspond to a slice, and the slice can include multiple network nodes configured with the flexible algorithm.
目前,当一个物理网络中包括多个灵活算法分别对应的切片时,各个切片对应的地址空间均是不同的,因此,网络节点需要针对多个地址空间计算路由表,导致路由计算所需的资源较多。采用本方案,可以无需为每个灵活算法对应的切片划分独立的地址空间,各个切片对应的网络地址可以在同一地址空间下,从而减少了网络节点计算路由表的计算量,节省了网络节点的计算资源。Currently, when a physical network includes multiple slices corresponding to flexible algorithms, the address spaces corresponding to each slice are different. Therefore, network nodes need to calculate routing tables for multiple address spaces, resulting in the resources required for route calculation. More. Using this solution, there is no need to divide independent address spaces for the slices corresponding to each flexible algorithm. The network addresses corresponding to each slice can be in the same address space, thus reducing the calculation amount of routing tables for network nodes and saving network nodes. Computing resources.
在又一种可能的实现方式中,根据第一接口的接口标识确定第一路由表在具体实现时,可以包括如下步骤A1-A2。In yet another possible implementation manner, specific implementation of determining the first routing table according to the interface identifier of the first interface may include the following steps A1-A2.
步骤A1:根据所述第一接口的接口标识确定所述第一接口的全局标识,所述全局标识用于标识所述第一切片。Step A1: Determine the global identifier of the first interface according to the interface identifier of the first interface, where the global identifier is used to identify the first slice.
在一个示例中,所述第二网络节点可以存储有所述第一接口的接口标识和所述第一接口的全局标识之间的对应关系,因此,所述第二网络节点可以基于所述第一接口的接口标识和所述第一接口的全局标识之间的对应关系以及所述第一接口的接口标识,得到所述第一接口的全局标识。In one example, the second network node may store a correspondence between the interface identifier of the first interface and the global identifier of the first interface. Therefore, the second network node may store the corresponding relationship between the interface identifier of the first interface and the global identifier of the first interface. The corresponding relationship between the interface identifier of an interface and the global identifier of the first interface and the interface identifier of the first interface are used to obtain the global identifier of the first interface.
本申请实施例不具体限定所述第一接口的全局标识,所述第一接口的全局标识,可以是能够标识所述第一切片的任意标识。The embodiment of the present application does not specifically limit the global identifier of the first interface. The global identifier of the first interface may be any identifier that can identify the first slice.
在一个示例中,所述第一接口的全局标识,可以是第一接口关联的切片标识,第一接口关联的切片标识,也可以理解成所述第一切片的切片标识。In one example, the global identifier of the first interface may be the slice identifier associated with the first interface. The slice identifier associated with the first interface may also be understood as the slice identifier of the first slice.
在又一个示例中,若所述第一切片为灵活算法关联的切片,则所述第一接口的全局标识,可以是所述第一接口关联的灵活算法标识。In another example, if the first slice is a slice associated with a flexible algorithm, the global identifier of the first interface may be the flexible algorithm identifier associated with the first interface.
在另一个示例中,若所述第一切片关联MT中的某一网络拓扑,则所述第一接口的全局标识,可以是所述第一接口关联的MT标识。目前,当一个物理网络中包括MT时,MT 中的各个网络拓扑对应的地址空间均是不同的,因此,网络节点需要针对多个地址空间计算路由表,导致路由计算所需的资源较多。采用本方案,可以无需为MT中的各个网络拓扑划分独立的地址空间,各个网络拓扑对应的网络地址可以在同一地址空间下,从而减少了网络节点计算路由表的计算量,节省了网络节点的计算资源。In another example, if the first slice is associated with a certain network topology in the MT, the global identity of the first interface may be the MT identity associated with the first interface. Currently, when a physical network includes MT, MT The address spaces corresponding to each network topology are different. Therefore, network nodes need to calculate routing tables for multiple address spaces, resulting in more resources required for route calculation. Using this solution, there is no need to divide independent address spaces for each network topology in MT. The network addresses corresponding to each network topology can be in the same address space, thus reducing the calculation amount of routing tables for network nodes and saving network nodes. Computing resources.
步骤A2:根据所述全局标识确定所述第一路由表。Step A2: Determine the first routing table according to the global identifier.
确定第一接口的全局标识之后,可以根据所述全局标识确定所述第一路由表。After the global identifier of the first interface is determined, the first routing table may be determined based on the global identifier.
在一个示例中,第二网络节点存储的各个路由表中可以包括该路由表对应的全局标识,对于这种情况,所述第二网络节点可以以所述第一接口的全局标识为索引,查找所述第二网络节点存储的各个路由表,从而得到包括所述全局标识的第一路由表。In one example, each routing table stored by the second network node may include a global identifier corresponding to the routing table. In this case, the second network node may use the global identifier of the first interface as an index to search The second network node stores each routing table, thereby obtaining the first routing table including the global identifier.
在又一个示例中,第二网络节点中可以存储有第八对应关系,所述第八对应关系可以包括所述全局标识和第一路由表的标识之间的对应关系。对于这种情况,确定所述全局标识之后,可以根据所述全局标识和所述第八对应关系,得到所述第一路由标识的标识,进一步地,根据所述第一路由表的标识得到所述第一路由表。In yet another example, an eighth correspondence relationship may be stored in the second network node, and the eighth correspondence relationship may include a correspondence relationship between the global identifier and the identifier of the first routing table. For this situation, after the global identifier is determined, the identifier of the first routing identifier can be obtained according to the global identifier and the eighth correspondence relationship. Further, the identifier of the first routing identifier can be obtained according to the identifier of the first routing table. Describe the first routing table.
S103:根据所述切片信息确定向第三网络节点转发所述第一报文的转发信息。S103: Determine the forwarding information for forwarding the first message to the third network node according to the slice information.
确定所述切片信息之后,所述第二网络节点可以进一步基于所述切片信息确定向第三网络节点转发所述第一报文的报文转发信息,该报文转发信息用于将第一报文转发给所述第三网络节点。After determining the slice information, the second network node may further determine message forwarding information for forwarding the first message to a third network node based on the slice information. The message forwarding information is used to forward the first message to the third network node. The message is forwarded to the third network node.
关于所述第三网络节点,在一个示例中,第三网络节点和第二网络节点可以通过第一切片对应的链路相连。在图2所示的场景中,第二网络节点对应网络节点B,第三网络节点可以对应网络节点C。Regarding the third network node, in one example, the third network node and the second network node may be connected through a link corresponding to the first slice. In the scenario shown in Figure 2, the second network node corresponds to network node B, and the third network node may correspond to network node C.
本申请实施例不具体限定所述转发信息,在一个示例中,所述转发信息例如可以是第二VLAN标识。例如,在所述第一切片与VLAN关联的场景中,所述转发信息可以是第二VLAN标识。在又一个示例中,所述转发信息例如可以是第二client标识。例如,在所述第一切片与FlexE接口关联的场景中,所述转发信息可以是第二client标识。在另一个示例中,所述转发信息还可以是用于转发所述第一报文的出接口。The embodiment of the present application does not specifically limit the forwarding information. In one example, the forwarding information may be, for example, a second VLAN identifier. For example, in a scenario where the first slice is associated with a VLAN, the forwarding information may be a second VLAN identifier. In yet another example, the forwarding information may be, for example, a second client identifier. For example, in a scenario where the first slice is associated with a FlexE interface, the forwarding information may be a second client identifier. In another example, the forwarding information may also be an outbound interface used to forward the first packet.
S103在具体实现时,可以有多种实现方式,以下介绍几种可能的实现方式。S103 can be implemented in a variety of ways. The following describes several possible implementation ways.
在一种实现方式中,所述转发信息可以是第二VLAN标识,对于这种情况,第二网络节点可以根据所述切片信息和第三对应关系,得到所述第二VLAN标识。其中,所述第三对应关系中可以包括所述切片信息和所述第二VLAN标识的对应关系。在所述切片信息为切片标识的场景中,所述第三对应关系可以包括所述切片标识和所述第二VLAN标识的对应关系。In one implementation, the forwarding information may be a second VLAN identifier. In this case, the second network node may obtain the second VLAN identifier based on the slice information and the third correspondence. The third correspondence may include a correspondence between the slice information and the second VLAN identifier. In a scenario where the slice information is a slice identifier, the third correspondence may include a correspondence between the slice identifier and the second VLAN identifier.
在一个具体的示例中,所述第三对应关系中还可以包括主接口,该主接口可以是转发所述第一报文的出接口。换言之,所述第三对应关系可以是主接口、切片标识、以及第二VLAN标识三者之间的对应关系。所述第二网络节点可以首先根据所述第一报文的目的地址,查找本地存储的路由表确定所述主接口,而后以所述主接口和所述切片标识为索引,查找得到所述第三对应关系,并进一步基于所述第三对应关系得到所述第二VLAN标识。采用这种方式,第二网络节点确定前述主接口之后,可以基于主接口、切片标识、以及第二VLAN标识三者之间的对应关系得到第二VLAN标识,从而快速高效的确定第二VLAN 标识,相应的,也提升了报文转发的效率。In a specific example, the third corresponding relationship may also include a main interface, and the main interface may be an outbound interface that forwards the first packet. In other words, the third corresponding relationship may be a corresponding relationship between the main interface, the slice identifier, and the second VLAN identifier. The second network node may first search a locally stored routing table to determine the main interface according to the destination address of the first message, and then use the main interface and the slice identifier as indexes to find the third three corresponding relationships, and further obtain the second VLAN identifier based on the third corresponding relationship. In this way, after the second network node determines the main interface, it can obtain the second VLAN ID based on the correspondence between the main interface, the slice ID, and the second VLAN ID, thereby quickly and efficiently determining the second VLAN. The identification, accordingly, also improves the efficiency of message forwarding.
在本申请实施例的一种实现方式中,所述第三对应关系,可以包括两级对应关系,分别为切片信息(例如切片标识)和第二接口之间的对应关系,以及第二接口和第二VLAN标识之间的对应关系。其中,第二接口为与第二VLAN标识以及所述切片信息均关联的接口。第二接口也可以理解为向第三网络节点转发所述第一报文的逻辑接口。在所述第三对应关系还包括前述主接口的情况下,该两级对应关系例如可以包括:主接口、切片信息(例如切片标识)和第二接口三者之间的对应关系、以及主接口、第二接口和第二VLAN标识三者之间的对应关系。采用这种方式,第二网络节点确定前述主接口之后,可以第三对应关系包括的两级对应关系,确定第二VLAN标识,并进一步基于所述第二VLAN标识向第三网络节点转发所述第一报文,从而实现切片转发。In an implementation manner of the embodiment of the present application, the third correspondence relationship may include a two-level correspondence relationship, which is the correspondence relationship between the slice information (such as slice identification) and the second interface, and the correspondence relationship between the second interface and the second interface. Correspondence between the second VLAN identifiers. The second interface is an interface associated with both the second VLAN identifier and the slice information. The second interface can also be understood as a logical interface that forwards the first message to the third network node. In the case where the third corresponding relationship also includes the aforementioned main interface, the two-level corresponding relationship may include, for example: the corresponding relationship between the main interface, slice information (such as slice identification) and the second interface, and the main interface , the corresponding relationship between the second interface and the second VLAN identifier. In this way, after the second network node determines the aforementioned main interface, it can determine the second VLAN identifier based on the two-level correspondence included in the third correspondence relationship, and further forward the second VLAN identifier to the third network node based on the second VLAN identifier. first packet to achieve slice forwarding.
在一种实现方式中,所述转发信息可以是第二时隙信息,对于这种情况,第二网络节点可以根据所述切片信息和第六对应关系,得到所述第二时隙信息,所述第二时隙信息用于指示第二client标识或者第二时隙组。所述第二client标识可以对应第二时隙组,第二时隙组可以包括至少一个时隙。其中,所述第六对应关系中可以包括所述切片信息和所述第二时隙信息的对应关系。在所述切片信息为切片标识的场景中,所述第六对应关系可以包括所述切片标识和所述第二时隙信息的对应关系。在一个示例中,所述第二时隙信息可以包括所述第二client标识,在又一个示例中,所述第二时隙信息可以包括所述第二时隙组所包括的各个时隙的标识,例如,所述第二时隙信息可以包括所述第二时隙组所包括的各个时隙的时隙编号。In an implementation manner, the forwarding information may be second time slot information. In this case, the second network node may obtain the second time slot information based on the slice information and the sixth corresponding relationship, so The second time slot information is used to indicate a second client identifier or a second time slot group. The second client identifier may correspond to a second time slot group, and the second time slot group may include at least one time slot. The sixth correspondence may include a correspondence between the slice information and the second time slot information. In a scenario where the slice information is a slice identifier, the sixth correspondence may include a correspondence between the slice identifier and the second time slot information. In one example, the second time slot information may include the second client identifier. In yet another example, the second time slot information may include the information of each time slot included in the second time slot group. Identification, for example, the second time slot information may include a time slot number of each time slot included in the second time slot group.
在一个具体的示例中,所述第六对应关系中还可以包括主接口,该主接口可以是转发所述第一报文的出接口,该出接口例如可以对应一个FlexE组(group)。换言之,所述第六对应关系可以是主接口、切片标识、以及第二时隙信息三者之间的对应关系。所述第二网络节点可以首先根据所述第一报文的目的地址,查找本地存储的路由表确定所述主接口(例如FlexE group),而后以所述主接口和所述切片标识为索引,查找得到所述第六对应关系,并进一步基于所述第六对应关系得到所述第二时隙信息。采用这种方式,第二网络节点确定前述主接口之后,可以基于主接口、切片标识、以及第二时隙信息三者之间的对应关系得到第二时隙信息,从而快速高效的确定第二时隙信息,相应的,也提升了报文转发的效率。In a specific example, the sixth correspondence relationship may also include a main interface, which may be an outbound interface that forwards the first message, and the outbound interface may correspond to a FlexE group, for example. In other words, the sixth correspondence relationship may be a correspondence relationship between the main interface, the slice identifier, and the second time slot information. The second network node may first search a locally stored routing table to determine the main interface (for example, FlexE group) based on the destination address of the first message, and then use the main interface and the slice identifier as an index, The sixth corresponding relationship is found, and the second time slot information is further obtained based on the sixth corresponding relationship. In this way, after the second network node determines the aforementioned main interface, it can obtain the second time slot information based on the correspondence between the main interface, the slice identifier, and the second time slot information, thereby quickly and efficiently determining the second time slot information. The time slot information, accordingly, also improves the efficiency of packet forwarding.
在本申请实施例的一种实现方式中,所述第六对应关系,可以包括两级对应关系,分别为切片信息(例如切片标识)和第三接口之间的对应关系,以及第三接口和第二时隙信息之间的对应关系。其中,第三接口为与第二时隙信息以及所述切片信息均关联的接口。第三接口也可以理解为向第三网络节点转发所述第一报文的逻辑接口(例如FlexE group)。在所述第六对应关系还包括前述主接口的情况下,该两级对应关系例如可以包括:主接口、切片信息(例如切片标识)和第三接口三者之间的对应关系、以及第三接口、第二client标识和第二时隙组三者之间的对应关系。采用这种方式,第二网络节点确定前述主接口之后,可以第六对应关系包括的两级对应关系,确定第二client标识,并进一步基于所述第二client标识对应的第二时隙组向第三网络节点转发所述第一报文,从而实现切片转发。In an implementation manner of the embodiment of the present application, the sixth correspondence relationship may include a two-level correspondence relationship, which is the correspondence relationship between the slice information (such as slice identification) and the third interface, and the correspondence relationship between the third interface and the third interface. Correspondence between second time slot information. The third interface is an interface associated with both the second time slot information and the slice information. The third interface can also be understood as a logical interface (for example, FlexE group) that forwards the first message to the third network node. In the case where the sixth corresponding relationship also includes the aforementioned main interface, the two-level corresponding relationship may include, for example: the corresponding relationship between the main interface, slice information (such as slice identification) and the third interface, and the third interface. Correspondence between the interface, the second client identifier and the second time slot group. In this way, after the second network node determines the aforementioned main interface, it can determine the second client identifier based on the two-level correspondence relationship included in the sixth correspondence relationship, and further determine the second client identifier based on the second time slot group corresponding to the second client identifier. The third network node forwards the first message, thereby realizing slice forwarding.
在另一种实现方式中,所述转发信息可以是向第三网络节点转发所述第一报文的出接 口。例如,当所述切片信息为第一路由表时,所述转发信息可以是向第三网络节点转发所述第一报文的出接口。第二网络节点可以将所述第一报文的目的地址与所述第一路由表进行匹配,从而得到向第三网络节点转发所述第一报文的出接口。In another implementation, the forwarding information may be an outgoing link that forwards the first packet to a third network node. mouth. For example, when the slice information is the first routing table, the forwarding information may be an outbound interface that forwards the first packet to the third network node. The second network node may match the destination address of the first message with the first routing table, thereby obtaining an outbound interface for forwarding the first message to the third network node.
S104:通过所述转发信息,向所述第三网络节点转发所述第一报文。S104: Forward the first message to the third network node through the forwarding information.
第二网络节点确定所述转发信息之后,可以进一步基于所述转发信息,向第三网络节点转发所述第一报文。After the second network node determines the forwarding information, it may further forward the first message to a third network node based on the forwarding information.
S104在具体实现时,可以有多种实现方式,以下介绍几种可能的实现方式。S104 can be implemented in a variety of ways. The following describes several possible implementation ways.
在一种可能的实现方式中,所述转发信息为第二VLAN标识,则所述第二网络节点可以基于所述第一报文和所述第二VLAN标识,得到包括所述第二VLAN标识的第二报文,并进一步向所述第二网络节点转发所述第二报文。第二网络节点基于第一报文和第二VLAN标识得到第二报文在具体实现时,例如可以利用第二VLAN标识替换所述第一报文中的第一VLAN标识,从而得到所述第二报文。In a possible implementation, if the forwarding information is a second VLAN identifier, then the second network node can obtain the information including the second VLAN identifier based on the first message and the second VLAN identifier. the second message, and further forwards the second message to the second network node. When the second network node obtains the second message based on the first message and the second VLAN identifier, for example, the second VLAN identifier may be used to replace the first VLAN identifier in the first message, thereby obtaining the second message. Two messages.
在一种可能的实现方式中,所述转发信息为第二client标识,对于这种情况,所述第二网络节点可以通过所述第二client标识对应的第二时隙组,向所述第三网络节点转发所述第一报文。在一个具体的示例中,所述第二网络节点可以将所述第一报文装载至所述第二时隙组对应的时隙中转发给所述第三网络节点。In a possible implementation, the forwarding information is a second client identifier. In this case, the second network node can forward the information to the third client through the second time slot group corresponding to the second client identifier. Three network nodes forward the first message. In a specific example, the second network node may load the first message into a time slot corresponding to the second time slot group and forward it to the third network node.
在又一种可能的实现方式中,所述转发信息为向第三网络节点转发所述第一报文的出接口。对于这种情况,所述第二网络节点可以通过所述出接口将所述第一报文转发给所述第三网络节点。在一个具体的示例中,所述第二网络节点可以基于所述出接口和第一切片的切片标识,确定报文转发资源,并进一步基于所确定的报文转发资源进行报文转发。此处提及的报文转发资源,包括但不限于该出接口所对应的物理子接口、该出接口对应的信道化子接口或者FlexE接口。关于所述第一切片的切片标识,也可以通过第一接口的接口信息得到,关于根据第一接口的接口信息得到切片标识的具体实现,可以参考上文的相关描述部分,此处不做重复描述。In yet another possible implementation manner, the forwarding information is an outbound interface that forwards the first packet to a third network node. For this situation, the second network node may forward the first message to the third network node through the outbound interface. In a specific example, the second network node may determine the packet forwarding resource based on the outbound interface and the slice identifier of the first slice, and further forward the packet based on the determined packet forwarding resource. The packet forwarding resources mentioned here include but are not limited to the physical sub-interface corresponding to the outbound interface, the channelized sub-interface corresponding to the outbound interface, or the FlexE interface. Regarding the slice identifier of the first slice, it can also be obtained through the interface information of the first interface. Regarding the specific implementation of obtaining the slice identifier according to the interface information of the first interface, you can refer to the relevant description section above, which will not be done here. Repeat description.
通过以上描述可知,利用本方案,无需在第一报文中携带切片标识,第二网络节点可以实现切片转发,并且,第二网络节点能够合理利用第一切片的切片资源转发所述第一报文。在一个具体的示例中,即使第二网络节点不支持解析报文中携带的切片标识,也能够基于切片信息实现向第三网络节点转发所述第一报文。在另一个具体的示例中,第一报文中不携带切片标识,减少了数据报文的报文长度,相应的,节省了数据报文对切片资源的占用。It can be seen from the above description that with this solution, there is no need to carry the slice identifier in the first message, the second network node can implement slice forwarding, and the second network node can reasonably utilize the slice resources of the first slice to forward the first message. message. In a specific example, even if the second network node does not support parsing the slice identifier carried in the message, the first message can be forwarded to the third network node based on the slice information. In another specific example, the first packet does not carry the slice identifier, which reduces the length of the data packet and accordingly saves the occupation of slice resources by the data packet.
接下来,结合具体场景,对本申请实施例的方案进行介绍。Next, the solutions of the embodiments of this application will be introduced based on specific scenarios.
参见图4a,图4a为本申请实施例提供的一种示例性应用场景示意图。Refer to Figure 4a, which is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application.
网络节点A和网络节点C之间通过网络节点B相连,网络节点A和网络节点C之间有一条切片隧道,网络节点B是该切片隧道中的中间节点。Network node A and network node C are connected through network node B. There is a slice tunnel between network node A and network node C. Network node B is an intermediate node in the slice tunnel.
网络节点A包括物理接口GE1/1/0,物理接口GE1/1/0包括3个子接口,分别为:GE1/1/0.1、GE1/1/0.2和GE1/1/0.3。Network node A includes physical interface GE1/1/0, and physical interface GE1/1/0 includes three sub-interfaces: GE1/1/0.1, GE1/1/0.2, and GE1/1/0.3.
网络节点B包括物理接口GE2/1/0,物理接口GE2/1/0包括3个子接口,分别为GE2/1/0.1、GE2/1/0.2和GE2/1/0.3。GE1/1/0.1和GE2/1/0.1相连,GE1/1/0.2和GE2/1/0.2相连,GE1/1/0.3 和GE2/1/0.3相连。Network node B includes physical interface GE2/1/0, and physical interface GE2/1/0 includes three sub-interfaces, namely GE2/1/0.1, GE2/1/0.2, and GE2/1/0.3. GE1/1/0.1 is connected to GE2/1/0.1, GE1/1/0.2 is connected to GE2/1/0.2, GE1/1/0.3 Connected to GE2/1/0.3.
网络节点B还包括物理接口GE2/2/0,物理接口GE2/2/0包括3个子接口,分别为GE2/2/0.1、GE2/2/0.2和GE2/2/0.3。Network node B also includes physical interface GE2/2/0. Physical interface GE2/2/0 includes three sub-interfaces, namely GE2/2/0.1, GE2/2/0.2 and GE2/2/0.3.
网络节点C包括物理接口GE3/2/0,物理接口GE3/2/0包括3个子接口,分别为GE3/2/0.1、GE3/2/0.2和GE3/2/0.3。GE3/2/0.1和GE2/2/0.1相连,GE3/2/0.2和GE2/2/0.2相连,GE3/2/0.3和GE2/2/0.3相连。Network node C includes physical interface GE3/2/0, and physical interface GE3/2/0 includes three sub-interfaces, namely GE3/2/0.1, GE3/2/0.2, and GE3/2/0.3. GE3/2/0.1 is connected to GE2/2/0.1, GE3/2/0.2 is connected to GE2/2/0.2, and GE3/2/0.3 is connected to GE2/2/0.3.
在一个示例中,网络节点A、网络节点B和网络节点C上配置网络切片和接口的映射关系,以网络节点A的物理接口GE1/1/0下的三个逻辑接口GE1/1/0.1,GE1/1/0.2,GE1/1/0.3为例,GE1/1/0.1绑定的切片标识为1,GE1/1/0.2绑定的切片标识为2,GE1/1/0.3绑定的切片标识为3。网络节点A上存储有表1所示的映射关系。In an example, the mapping relationship between network slices and interfaces is configured on network node A, network node B, and network node C, with three logical interfaces GE1/1/0.1 under the physical interface GE1/1/0 of network node A, Take GE1/1/0.2 and GE1/1/0.3 as an example. The slice ID bound to GE1/1/0.1 is 1, the slice ID bound to GE1/1/0.2 is 2, and the slice ID bound to GE1/1/0.3 is is 3. Network node A stores the mapping relationship shown in Table 1.
表1
Table 1
另外,网络节点A、网络节点B和网络节点C上配置接口和VLAN的映射关系,以网络节点A的物理接口GE1/1/0下的三个逻辑接口GE1/1/0.1,GE1/1/0.2,GE1/1/0.3为例,GE1/1/0.1绑定的VLAN标识为10,GE1/1/0.2绑定的VLAN标识为20,GE1/1/0.3绑定的VLAN标识为30。网络节点A上存储有表2所示的映射关系表。In addition, configure the mapping relationship between interfaces and VLANs on network node A, network node B, and network node C. The three logical interfaces GE1/1/0.1, GE1/1/ under the physical interface GE1/1/0 of network node A are configured. 0.2, GE1/1/0.3 is used as an example. The VLAN ID bound to GE1/1/0.1 is 10, the VLAN ID bound to GE1/1/0.2 is 20, and the VLAN ID bound to GE1/1/0.3 is 30. The mapping relationship table shown in Table 2 is stored on network node A.
表2
Table 2
类似的,网络节点B中可以存储有下表3和表4的映射关系。Similarly, network node B can store the mapping relationships in Table 3 and Table 4 below.
表3
table 3
表4
Table 4
本申请实施例的方案,可以包括如下步骤S1-S3。The solution of the embodiment of the present application may include the following steps S1-S3.
S1:网络节点A作为切片隧道的头节点,网络节点A接收到业务报文时,根据业务报文的目的地址查询本地路由表,获取出接口GE1/1/0,然后根据出接口和切片标识1查询上表1,获取逻辑子接口GE1/1/0.1。由于GE1/1/0.1是逻辑接口,不存在接口实体。网络节点A通过查询表2,得到该子接口关联的VLAN标识为10,并利用该VLAN标识对业务报文进行封装,得到包括该VLAN标识的第一报文,并将该第一报文转发给网络节点B。S1: Network node A serves as the head node of the slice tunnel. When network node A receives a service packet, it queries the local routing table according to the destination address of the service packet, obtains the outbound interface GE1/1/0, and then obtains the outbound interface GE1/1/0 based on the outbound interface and slice identifier. 1Query Table 1 above to obtain the logical sub-interface GE1/1/0.1. Since GE1/1/0.1 is a logical interface, there is no interface entity. Network node A obtains the VLAN ID associated with the sub-interface by querying Table 2, which is 10, and uses the VLAN ID to encapsulate the service packet, obtains the first packet including the VLAN ID, and forwards the first packet to network node B.
S2:网络节点B通过物理接口GE2/1/0接收到第一报文之后,对第一报文进行解析,得到第一报文中包括的VLAN标识为10,并进一步查询表4,获取接收报文的逻辑子接口信息是GE2/1/0.1,再通过查询表3,获取该子接口关联的切片标识的值为1。S2: After receiving the first message through physical interface GE2/1/0, network node B parses the first message and obtains that the VLAN ID included in the first message is 10, and further queries Table 4 to obtain the received message. The logical sub-interface information of the packet is GE2/1/0.1, and then query Table 3 to obtain the value of the slice identifier associated with the sub-interface, which is 1.
S3:网络节点B根据第一报文的目的地址匹配本地路由表,得到报文转发的出接口为接口GE2/2/0,然后根据出接口GE2/2/0和切片标识1,查询表3,获取逻辑子接口GE2/2/0.1。由于GE2/2/0.1是逻辑接口,不存在接口实体。网络节点B通过查询表4,得到该子接口关联的VLAN标识为100,故而网络节点B将VLAN标识100替换第一报文中的VLAN标识10,得到第二报文,并将第二报文转发给网络节点C。S3: Network node B matches the local routing table according to the destination address of the first message, and obtains that the outbound interface for forwarding the message is interface GE2/2/0, and then queries Table 3 based on outbound interface GE2/2/0 and slice identifier 1. , obtain the logical sub-interface GE2/2/0.1. Since GE2/2/0.1 is a logical interface, there is no interface entity. Network node B obtains that the VLAN identifier associated with the sub-interface is 100 by querying Table 4. Therefore, network node B replaces VLAN identifier 100 with VLAN identifier 10 in the first message, obtains the second message, and replaces the second message with Forwarded to network node C.
在又一个示例中,网络节点A、网络节点B和网络节点C上配置网络切片和VLAN的映射关系,以网络节点A的物理接口GE1/1/0为例。网络节点A上存储有表5所示的映射关系。In another example, the mapping relationship between network slices and VLANs is configured on network node A, network node B, and network node C. Taking the physical interface GE1/1/0 of network node A as an example. Network node A stores the mapping relationship shown in Table 5.
表5
table 5
类似的,网络节点B中可以存储有下表6的映射关系。 Similarly, network node B can store the mapping relationship in Table 6 below.
表6
Table 6
对于这种情况,本申请实施例的方案,可以包括如下步骤S4-S6:For this situation, the solution of the embodiment of the present application may include the following steps S4-S6:
S4:网络节点A作为切片隧道的头节点,网络节点A接收到业务报文时,根据业务报文的目的地址查询本地路由表,获取出接口GE1/1/0,然后根据出接口和切片标识1查询上表5,获取VLAN标识为10,并利用该VLAN标识对业务报文进行封装,得到包括该VLAN标识的第一报文,并将该第一报文转发给网络节点B。S4: Network node A serves as the head node of the slice tunnel. When network node A receives a service packet, it queries the local routing table according to the destination address of the service packet, obtains the outbound interface GE1/1/0, and then obtains the outbound interface GE1/1/0 based on the outbound interface and slice identifier. 1 Query Table 5 above to obtain the VLAN ID of 10, and use the VLAN ID to encapsulate the service packet, obtain the first packet including the VLAN ID, and forward the first packet to network node B.
S5:网络节点B通过物理接口GE2/1/0接收到第一报文之后,对第一报文进行解析,得到第一报文中包括的VLAN标识为10,并进一步查询表6,获取切片标识为1。S5: After receiving the first message through physical interface GE2/1/0, network node B parses the first message and obtains that the VLAN ID included in the first message is 10, and further queries Table 6 to obtain slices. Identified as 1.
S5与前述S2相比,查询表6所示的一个表即可,无需查询两个表,效率更高,相应的,报文转发效率更高。Compared with the aforementioned S2, S5 only needs to query one table shown in Table 6 instead of two tables, so it is more efficient. Correspondingly, the packet forwarding efficiency is higher.
S6:网络节点B根据第一报文的目的地址匹配本地路由表,得到报文转发的出接口为接口GE2/2/0,然后根据出接口GE2/2/0和切片标识1,查询表6,获取VLAN标识为100,故而网络节点B将VLAN标识100替换第一报文中的VLAN标识10,得到第二报文,并将第二报文转发给网络节点C。S6: Network node B matches the local routing table according to the destination address of the first message, and obtains that the outbound interface for forwarding the message is interface GE2/2/0, and then queries Table 6 based on outbound interface GE2/2/0 and slice identifier 1. , the obtained VLAN ID is 100, so network node B replaces VLAN ID 100 with VLAN ID 10 in the first message, obtains the second message, and forwards the second message to network node C.
S6与前述S3相比,查询表6所示的一个表即可,无需查询两个表,效率更高,相应的,报文转发效率更高。Compared with the aforementioned S3, S6 only needs to query one table shown in Table 6 instead of two tables, which is more efficient. Correspondingly, the packet forwarding efficiency is higher.
参见图4b,图4b为本申请实施例提供的又一种示例性应用场景示意图。Refer to Figure 4b, which is a schematic diagram of another exemplary application scenario provided by an embodiment of the present application.
网络节点A和网络节点C之间通过网络节点B相连,网络节点A和网络节点C之间有一条切片隧道,网络节点B是该切片隧道中的中间节点。Network node A and network node C are connected through network node B. There is a slice tunnel between network node A and network node C. Network node B is an intermediate node in the slice tunnel.
网络节点A、网络节点B和网络节点C均配置FlexE能力,网络节点A用于与网络节点B通信的接口使能FlexE能力,组成一个FlexE group1,类似的,网络节点B用于与网络节点A通信的接口使能FlexE能力,组成FlexE group1。网络节点B用于与网络节点C通信的接口使能FlexE能力,组成一个FlexE group2。Network node A, network node B and network node C are all configured with FlexE capabilities. The interface used by network node A to communicate with network node B enables the FlexE capability to form a FlexE group1. Similarly, network node B is used to communicate with network node A. The communication interface enables FlexE capabilities and forms FlexE group1. The interface used by network node B to communicate with network node C enables the FlexE capability to form a FlexE group2.
在一个示例中,FlexE group1被划分为10个时隙,网络节点A包括3个FlexE接口,分别为FlexE 1/1/129、FlexE 1/1/130和FlexE 1/1/131。In an example, FlexE group1 is divided into 10 time slots, and network node A includes 3 FlexE interfaces, namely FlexE 1/1/129, FlexE 1/1/130, and FlexE 1/1/131.
在一个示例中,网络节点B包括3个FlexE接口,分别为FlexE 2/1/129、FlexE 2/1/130和FlexE 2/1/131。FlexE 2/1/129和FlexE 1/1/129相连,并与切片标识1绑定;FlexE 2/1/130和FlexE 1/1/130相连,并与切片标识2绑定;FlexE 2/1/131和FlexE 1/1/131相连,并与切片标识3绑定。In one example, network node B includes 3 FlexE interfaces, FlexE 2/1/129, FlexE 2/1/130, and FlexE 2/1/131. FlexE 2/1/129 is connected to FlexE 1/1/129 and is bound to slice ID 1; FlexE 2/1/130 is connected to FlexE 1/1/130 and is bound to slice ID 2; FlexE 2/1 /131 is connected to FlexE 1/1/131 and bound to slice ID 3.
在一个示例中,FlexE group2被划分为10个时隙,网络节点B还包括另外3个FlexE接口,分别为FlexE 2/2/139、FlexE 2/2/140和FlexE 2/2/141。FlexE 2/2/139占用时隙11、 时隙12和时隙13,并与切片标识1绑定;FlexE 2/2/140占用时隙14、时隙15、时隙16和时隙17,并与切片标识2绑定;FlexE 2/2/141占用时隙18和时隙19,并与切片标识3绑定。网络节点A上可以存储有下表1’和下表2’之间的映射关系。In an example, FlexE group2 is divided into 10 time slots, and network node B also includes three other FlexE interfaces, namely FlexE 2/2/139, FlexE 2/2/140, and FlexE 2/2/141. FlexE 2/2/139 occupies time slot 11, Timeslot 12 and timeslot 13 are bound to slice ID 1; FlexE 2/2/140 occupies timeslot 14, timeslot 15, timeslot 16 and timeslot 17, and is bound to slice ID 2; FlexE 2/ 2/141 occupies time slot 18 and time slot 19, and is bound to slice ID 3. Network node A may store the mapping relationship between the following table 1' and the following table 2'.
网络节点B上可以存储有下表3’和下表4’之间的映射关系。The mapping relationship between the following table 3' and the following table 4' can be stored on the network node B.
表1’
Table 1'
表2’
Table 2'
表3’
table 3'
表4’
Table 4'
本申请实施例的方案,可以包括如下步骤S7-S9。The solution of the embodiment of the present application may include the following steps S7-S9.
S7:网络节点A作为切片隧道的头节点,网络节点A接收到业务报文时,根据业务报文的目的地址查询本地路由表,获取出接口FlexE group1,然后根据出接口和切片标识1查询上表1’,获取逻辑子接口FlexE1/1/129。S7: Network node A serves as the head node of the slice tunnel. When network node A receives a service packet, it queries the local routing table according to the destination address of the service packet, obtains the outbound interface FlexE group1, and then queries the upstream interface based on the outbound interface and slice ID 1. Table 1', obtain the logical sub-interface FlexE1/1/129.
通过表2’可知,由于接口FlexE1/1/129与FlexE group1中的时隙1至时隙3存在绑定关系,故而网络节点A在物理(physical,PHY)层发送数据报文时,通过循环轮询的方式周而复始的将第一报文填充到时隙1至时隙3中,从而将第一报文发送给网络节点B。It can be seen from Table 2' that since there is a binding relationship between interface FlexE1/1/129 and timeslot 1 to timeslot 3 in FlexE group1, when network node A sends a data packet at the physical (PHY) layer, it passes through the loop The polling method repeatedly fills the first message into time slots 1 to 3, thereby sending the first message to network node B.
S8:网络节点B从FlexE group1的时隙1至时隙3接收第一报文,并查询表4’确定 接收第一报文的接口为FlexE2/1/129,进一步地,网络节点B查询表3’,得到FlexE2/1/129关联的切片标识为1。S8: Network node B receives the first message from timeslot 1 to timeslot 3 of FlexE group1, and queries table 4' to determine The interface that receives the first message is FlexE2/1/129. Further, network node B queries table 3' and obtains that the slice identifier associated with FlexE2/1/129 is 1.
S9:网络节点B根据第一报文的目的地址匹配本地路由表,得到报文转发的出接口为Flex E group2,然后根据出接口Flex E group2和切片标识1查询表3’,获取转发业务的逻辑接口为FlexE2/2/139。通过表4’可知,由于接口FlexE2/2/139与FlexE Group2中时隙11至时隙13存在绑定关系,故而网络节点B在PHY层发送数据报文时,通过循环轮询的方式周而复始的将第一报文填充到时隙11至时隙13中,从而将第一报文发送给网络节点C。S9: Network node B matches the local routing table based on the destination address of the first message and obtains that the outbound interface for forwarding the message is Flex E group2. Then it queries table 3' based on the outbound interface Flex E group2 and slice identifier 1 to obtain the forwarding service. The logical interface is FlexE2/2/139. It can be seen from Table 4' that because there is a binding relationship between interface FlexE2/2/139 and timeslot 11 to timeslot 13 in FlexE Group2, when network node B sends data packets at the PHY layer, it starts over and over again through cyclic polling. The first message is filled into time slots 11 to 13, thereby sending the first message to network node C.
在又一个示例中,网络节点A、网络节点B和网络节点C上配置网络切片和client的映射关系,以网络节点A的物理接口GE1/1/0为例。网络节点A上存储有表5’所示的映射关系。In another example, the mapping relationship between network slices and clients is configured on network node A, network node B, and network node C. Taking the physical interface GE1/1/0 of network node A as an example. Network node A stores the mapping relationship shown in Table 5'.
表5’
table 5'
类似的,网络节点B中可以存储有下表6’所示的映射关系。Similarly, network node B can store the mapping relationship shown in Table 6' below.
表6’
Table 6'
对于这种情况,本申请实施例的方案,可以包括如下S10-S12。For this situation, the solution of the embodiment of this application may include the following S10-S12.
S10:网络节点A作为切片隧道的头节点,网络节点A接收到业务报文时,根据业务报文的目的地址查询本地路由表,获取出接口FlexE group1,然后根据出接口和切片标识1查询上表5’,获取时隙1至时隙3,故而网络节点A在物理(physical,PHY)层发送数据报文时,通过循环轮询的方式周而复始的将第一报文填充到时隙1至时隙3中,从而将第一报文发送给网络节点B。S10: Network node A serves as the head node of the slice tunnel. When network node A receives a service packet, it queries the local routing table according to the destination address of the service packet, obtains the outbound interface FlexE group1, and then queries the upstream interface based on the outbound interface and slice identifier 1. Table 5', obtains time slots 1 to 3. Therefore, when network node A sends a data message at the physical (PHY) layer, it fills the first message into time slots 1 to 3 through cyclic polling. In time slot 3, the first message is sent to network node B.
S11:网络节点B从FlexE group1的时隙1至时隙3接收第一报文,并查询表6’确定切片标识为1。S11: Network node B receives the first message from timeslot 1 to timeslot 3 of FlexE group1, and queries table 6’ to determine that the slice identifier is 1.
S11与前述S8相比,查询表6’所示的一个表即可,无需查询两个表,效率更高,相应的,报文转发效率更高。Compared with the aforementioned S8, S11 only needs to query one table shown in Table 6' instead of two tables, which is more efficient. Correspondingly, the packet forwarding efficiency is higher.
S12:网络节点B根据第一报文的目的地址匹配本地路由表,得到报文转发的出接口为Flex E group2,然后根据出接口Flex E group2和切片标识1查询表6’,获取时隙11至时隙13,故而网络节点B在PHY层发送数据报文时,通过循环轮询的方式周而复始的将第一报文填充到时隙11至时隙13中,从而将第一报文发送给网络节点C。 S12: Network node B matches the local routing table according to the destination address of the first message, and obtains that the outbound interface for forwarding the message is Flex E group2, and then queries table 6' according to the outbound interface Flex E group2 and slice identifier 1 to obtain timeslot 11 to time slot 13, so when network node B sends a data message at the PHY layer, it fills the first message into time slots 11 to 13 over and over again through cyclic polling, thereby sending the first message to Network node C.
S12与前述S9相比,查询表6’所示的一个表即可,无需查询两个表,效率更高,相应的,报文转发效率更高。Compared with the aforementioned S9, S12 only needs to query one table shown in Table 6' instead of two tables, which is more efficient. Correspondingly, the packet forwarding efficiency is higher.
参见图4c,图4c为本申请实施例提供的又一种示例性应用场景示意图。Refer to Figure 4c, which is a schematic diagram of another exemplary application scenario provided by an embodiment of the present application.
网络节点A和网络节点C之间通过网络节点B相连,网络节点A和网络节点C之间有一条切片隧道,网络节点B是该切片隧道中的中间节点。Network node A and network node C are connected through network node B. There is a slice tunnel between network node A and network node C. Network node B is an intermediate node in the slice tunnel.
网络节点B可以通过接口1/1/1和接口1/1/2与网络接口A通信,接口1/1/1关联灵活算法128,接口1/1/2关联灵活算法129。Network node B can communicate with network interface A through interface 1/1/1 and interface 1/1/2. Interface 1/1/1 is associated with flexible algorithm 128, and interface 1/1/2 is associated with flexible algorithm 129.
网络节点B可以通过接口2/2/1和接口2/2/2与网络接口C通信,接口2/2/1关联灵活算法128,接口2/2/2关联灵活算法129。Network node B can communicate with network interface C through interface 2/2/1 and interface 2/2/2. Interface 2/2/1 is associated with flexible algorithm 128, and interface 2/2/2 is associated with flexible algorithm 129.
对于网络设备C而言,其支持灵活算法128的接口和支持灵活算法129的接口共享同一网络前缀,例如网络节点C的定位符(locator)为:2001:1::/64。For network device C, its interface that supports flexible algorithm 128 and its interface that supports flexible algorithm 129 share the same network prefix. For example, the locator of network node C is: 2001:1::/64.
网络节点B中存储有灵活算法128对应的切片网络对应的路由表,该路由表的标识为100;网络节点B中存储有灵活算法129对应的切片网络对应的路由表,该路由表的标识为200。如图4c所示,所述路由表100中包括前缀2001:1::/64、出接口2/2/1和下一跳网络节点C之间的对应关系;所述路由表200中包括前缀2001:1::/64、出接口2/2/2和下一跳网络节点C之间的对应关系。The routing table corresponding to the slice network corresponding to the flexible algorithm 128 is stored in network node B, and the identifier of the routing table is 100; the routing table corresponding to the slice network corresponding to the flexible algorithm 129 is stored in network node B. The identifier of the routing table is 100. 200. As shown in Figure 4c, the routing table 100 includes the corresponding relationship between the prefix 2001:1::/64, the outbound interface 2/2/1 and the next hop network node C; the routing table 200 includes the prefix The corresponding relationship between 2001:1::/64, outbound interface 2/2/2 and next-hop network node C.
网络节点B中还存储有接口1/1/1和路由表标识100之间的对应关系、以及接口1/1/2和路由表标识200之间的对应关系。The network node B also stores the corresponding relationship between interface 1/1/1 and the routing table identifier 100, and the corresponding relationship between the interface 1/1/2 and the routing table identifier 200.
当网络节点B从接口1/1/1处接收到第一报文时,可以根据接口1/1/1和路由表标识100之间的对应关系,确定灵活算法128对应的切片网络对应的路由表,并根据第一报文的目的地址查找灵活算法128对应的切片网络对应的路由表,例如,当第一报文的目的地址与前缀2001:1::/64匹配时,可以确定出接口为2/2/1,并进一步通过出接口2/2/1转发所述第一报文。When network node B receives the first message from interface 1/1/1, it can determine the route corresponding to the slice network corresponding to flexible algorithm 128 based on the correspondence between interface 1/1/1 and the routing table identifier 100 table, and search the routing table corresponding to the slice network corresponding to flexible algorithm 128 according to the destination address of the first message. For example, when the destination address of the first message matches the prefix 2001:1::/64, the outbound interface can be determined is 2/2/1, and further forwards the first message through the outbound interface 2/2/1.
参见图4d,图4d为本申请实施例提供的又一种示例性应用场景示意图。Refer to Figure 4d, which is a schematic diagram of another exemplary application scenario provided by an embodiment of the present application.
网络节点A和网络节点C之间通过网络节点B相连,网络节点A和网络节点C之间有一条切片隧道,网络节点B是该切片隧道中的中间节点。Network node A and network node C are connected through network node B. There is a slice tunnel between network node A and network node C. Network node B is an intermediate node in the slice tunnel.
网络节点B可以通过接口1/1/1和接口1/1/2与网络接口A通信,接口1/1/1关联的全局标识为100,接口1/1/2关联的全局标识为200。网络节点B中存储有接口1/1/1和全局标识100的对应关系、以及接口1/1/2和全局标识200之间的对应关系。Network node B can communicate with network interface A through interface 1/1/1 and interface 1/1/2. The global ID associated with interface 1/1/1 is 100, and the global ID associated with interface 1/1/2 is 200. The network node B stores the corresponding relationship between interface 1/1/1 and the global identifier 100, and the corresponding relationship between the interface 1/1/2 and the global identifier 200.
网络节点B可以通过接口2/2/1和接口2/2/2与网络接口C通信,接口2/2/1关联全局标识100,接口2/2/2关联全局标识200。Network node B can communicate with network interface C through interface 2/2/1 and interface 2/2/2. Interface 2/2/1 is associated with global identity 100, and interface 2/2/2 is associated with global identity 200.
对于网络设备C而言,其对应全局标识100的接口和对应全局标识200的接口共享同一网络前缀,例如网络节点C的locator为:2001:1::/64。For network device C, its interface corresponding to global identifier 100 and its interface corresponding to global identifier 200 share the same network prefix. For example, the locator of network node C is: 2001:1::/64.
另外,网络节点B中存储有全局标识100对应的切片网络对应的路由表,该路由表的标识为100;网络节点B中存储有全局标识200对应的切片网络对应的路由表,该路由表的标识为200。网络节点B中还存储有全局标识100和路由表标识100之间的对应关系、以及全局标识200和路由表标识200之间的对应关系。如图4d所示,所述路由表100中包括前缀2001:1::/64、出接口2/2/1和下一跳网络节点C之间的对应关系;所述路由表200中 包括前缀2001:1::/64、出接口2/2/2和下一跳网络节点C之间的对应关系。In addition, network node B stores a routing table corresponding to the slice network corresponding to the global identifier 100, and the identifier of the routing table is 100; network node B stores a routing table corresponding to the slice network corresponding to the global identifier 200, and the routing table has The ID is 200. The network node B also stores the corresponding relationship between the global identifier 100 and the routing table identifier 100, and the corresponding relationship between the global identifier 200 and the routing table identifier 200. As shown in Figure 4d, the routing table 100 includes the corresponding relationship between the prefix 2001:1::/64, the outbound interface 2/2/1 and the next hop network node C; the routing table 200 Including the correspondence between prefix 2001:1::/64, outbound interface 2/2/2, and next-hop network node C.
当网络节点B从接口1/1/1处接收到第一报文时,可以根据接口1/1/1和全局标识100之间的对应关系,确定全局标识100,并进一步基于全局标识100和路由表标识100之间的对应关系,确定全局标识100对应的切片网络对应的路由表,并根据第一报文的目的地址查找全局标识100对应的切片网络对应的路由表,例如,当第一报文的目的地址与前缀2001:1::/64匹配时,可以确定出接口为2/2/1,并进一步通过出接口2/2/1转发所述第一报文。When network node B receives the first message from interface 1/1/1, it can determine the global identity 100 based on the correspondence between interface 1/1/1 and the global identity 100, and further determine the global identity 100 based on the global identity 100 and Correspondence between routing table identifiers 100, determine the routing table corresponding to the slice network corresponding to the global identifier 100, and search for the routing table corresponding to the slice network corresponding to the global identifier 100 according to the destination address of the first message. For example, when the first When the destination address of the packet matches the prefix 2001:1::/64, it can be determined that the outbound interface is 2/2/1, and the first packet is further forwarded through the outbound interface 2/2/1.
基于以上实施例提供的报文处理方法,本申请实施例还提供了一种报文处理装置,该报文处理装置可以应用于第二网络节点,用于执行以上方法实施例提供的由第二网络节点执行的报文处理方法。Based on the message processing method provided by the above embodiment, the embodiment of the present application also provides a message processing device, which can be applied to the second network node and used to execute the second network node provided by the above method embodiment. The message processing method performed by the network node.
参见图5,该图为本申请实施例提供的一种报文处理装置的结构示意图,图5所示的报文处理装置500包括:接收单元501、处理单元502和发送单元503。Referring to Figure 5, this figure is a schematic structural diagram of a message processing device provided by an embodiment of the present application. The message processing device 500 shown in Figure 5 includes: a receiving unit 501, a processing unit 502 and a sending unit 503.
接收单元501,用于通过所述第二网络节点的第一接口接收第一网络节点通过第一切片对应的链路发送的第一报文。The receiving unit 501 is configured to receive the first message sent by the first network node through the link corresponding to the first slice through the first interface of the second network node.
处理单元502,用于根据所述第一接口的接口信息确定所述第一切片的切片信息,所述切片信息用于指示所述第一切片,所述第一报文中不包括所述第一切片的切片标识;根据所述切片信息确定向第三网络节点转发所述第一报文的转发信息。The processing unit 502 is configured to determine the slice information of the first slice according to the interface information of the first interface. The slice information is used to indicate the first slice. The first packet does not include the slice information. a slice identifier of the first slice; and determining, according to the slice information, forwarding information for forwarding the first packet to a third network node.
发送单元503,用于通过所述转发信息,向所述第三网络节点转发所述第一报文。The sending unit 503 is configured to forward the first message to the third network node through the forwarding information.
在一种可能的实现方式中,所述第一接口的接口信息,包括:所述第一接口对应的第一虚拟局域网VLAN标识,所述第一报文中包括所述第一VLAN标识。In a possible implementation manner, the interface information of the first interface includes: a first virtual LAN VLAN identifier corresponding to the first interface, and the first message includes the first VLAN identifier.
在一种可能的实现方式中,所述根据所述第一接口的接口信息确定所述第一切片的切片信息,包括:根据所述第一VLAN标识和第一对应关系,确定所述第一切片的切片标识,所述第一对应关系包括所述第一VLAN标识和所述切片标识之间的对应关系。In a possible implementation, determining the slice information of the first slice according to the interface information of the first interface includes: determining the first slice according to the first VLAN identifier and the first corresponding relationship. A slice identifier of a slice, and the first correspondence includes a correspondence between the first VLAN identifier and the slice identifier.
在一种可能的实现方式中,所述根据所述第一接口的接口信息确定所述第一切片的切片信息,包括:根据所述第一VLAN标识确定所述第一接口的接口标识;根据所述第一接口的接口标识和第二对应关系,确定所述第一切片的切片标识,所述第二对应关系包括所述接口标识和所述切片标识之间的对应关系。In a possible implementation, the determining the slice information of the first slice according to the interface information of the first interface includes: determining the interface identifier of the first interface according to the first VLAN identifier; The slice identifier of the first slice is determined according to the interface identifier of the first interface and a second correspondence relationship, where the second correspondence relationship includes a correspondence relationship between the interface identifier and the slice identifier.
在一种可能的实现方式中,所述根据所述切片信息确定向第三网络节点转发所述第一报文的转发信息,包括:根据所述切片信息和第三对应关系,确定转发所述第一报文的第二VLAN标识,所述第三对应关系包括所述切片信息和所述第二VLAN标识之间的对应关系;所述发送单元503,用于:根据所述第二VLAN标识和所述第一报文,得到包括所述第二VLAN标识的第二报文;转发所述第二报文。In a possible implementation, determining the forwarding information of forwarding the first message to a third network node according to the slice information includes: determining to forward the first message according to the slice information and a third corresponding relationship. The second VLAN identifier of the first message, the third corresponding relationship includes the corresponding relationship between the slice information and the second VLAN identifier; the sending unit 503 is configured to: according to the second VLAN identifier and the first message to obtain a second message including the second VLAN identifier; and forward the second message.
在一种可能的实现方式中,所述第三对应关系包括:所述切片信息和第二接口之间的对应关系,以及所述第二接口和所述第二VLAN标识之间的对应关系,所述第二接口为与所述第二VLAN标识以及所述切片信息对应的接口。In a possible implementation, the third correspondence includes: a correspondence between the slice information and the second interface, and a correspondence between the second interface and the second VLAN identifier, The second interface is an interface corresponding to the second VLAN identifier and the slicing information.
在一种可能的实现方式中,所述第一接口的接口信息,包括:所述第一接口对应的第一时隙信息,所述第一时隙信息用于指示第一客户client标识或者第一时隙组,所述第一client标识对应所述第一时隙组。 In a possible implementation, the interface information of the first interface includes: first time slot information corresponding to the first interface, and the first time slot information is used to indicate the first client identifier or the first client identifier. A time slot group, the first client identifier corresponds to the first time slot group.
在一种可能的实现方式中,所述根据所述第一接口的接口信息确定所述第一切片的切片信息,包括:根据所述第一时隙信息和第四对应关系,确定所述第一切片的切片标识,所述第四对应关系包括所述第一时隙信息和所述切片标识之间的对应关系。In a possible implementation, determining the slice information of the first slice according to the interface information of the first interface includes: determining the first slot information and a fourth corresponding relationship. The slice identifier of the first slice, and the fourth corresponding relationship includes the corresponding relationship between the first time slot information and the slice identifier.
在一种可能的实现方式中,所述根据所述第一接口的接口信息确定所述第一切片的切片信息,包括:根据所述第一时隙信息确定所述第一接口的接口标识;根据所述第一接口的接口标识和第五对应关系,确定所述第一切片的切片标识,所述第五对应关系包括所述接口标识和所述切片标识之间的对应关系。In a possible implementation, determining the slice information of the first slice according to the interface information of the first interface includes: determining an interface identifier of the first interface according to the first timeslot information. ; Determine the slice identifier of the first slice according to the interface identifier of the first interface and a fifth correspondence relationship, where the fifth correspondence relationship includes a correspondence relationship between the interface identifier and the slice identifier.
在一种可能的实现方式中,所述根据所述切片信息确定向第三网络节点转发所述第一报文的转发信息,包括:根据所述切片信息和第六对应关系,确定转发所述第一报文的第二时隙信息,所述第二时隙信息用于指示第二client标识或者第二时隙组,所述第二client标识对应所述第二时隙组,所述第六对应关系包括所述切片信息和所述第二时隙信息之间的对应关系;所述发送单元503,用于:通过所述第二时隙组向所述第三网络节点转发所述第一报文。In a possible implementation, determining the forwarding information of forwarding the first message to a third network node according to the slice information includes: determining to forward the first message according to the slice information and a sixth correspondence relationship. The second time slot information of the first message, the second time slot information is used to indicate a second client identification or a second time slot group, the second client identification corresponds to the second time slot group, and the second time slot information is used to indicate a second client identification or a second time slot group. The six corresponding relationships include the corresponding relationship between the slice information and the second time slot information; the sending unit 503 is configured to forward the third network node to the third network node through the second time slot group. One message.
在一种可能的实现方式中,所述第六对应关系包括:所述切片信息和第三接口之间的对应关系,以及所述第三接口和所述第二时隙信息之间的对应关系,所述第三接口为与所述切片信息以及所述第二时隙信息对应的接口。In a possible implementation, the sixth correspondence includes: a correspondence between the slice information and the third interface, and a correspondence between the third interface and the second timeslot information. , the third interface is an interface corresponding to the slice information and the second timeslot information.
在一种可能的实现方式中,所述第一接口的接口信息,包括:所述第一接口的接口标识,所述处理单元502,用于:根据所述第一接口的接口标识确定所述第一切片对应的第一路由表;根据所述第一报文的目的地址和所述第一路由表,确定向第三网络节点转发所述第一报文的出接口。In a possible implementation, the interface information of the first interface includes: an interface identifier of the first interface, and the processing unit 502 is configured to: determine the The first routing table corresponding to the first slice; determining an outbound interface for forwarding the first message to the third network node according to the destination address of the first message and the first routing table.
在一种可能的实现方式中,所述根据所述第一接口的接口标识确定所述第一切片对应的第一路由表,包括:根据所述第一接口的接口标识和第七对应关系,确定所述第一路由表,所述第七对应关系包括所述第一接口的接口标识和所述第一路由表的标识之间的对应关系。In a possible implementation, determining the first routing table corresponding to the first slice according to the interface identifier of the first interface includes: according to the interface identifier of the first interface and a seventh corresponding relationship , determine the first routing table, and the seventh correspondence includes a correspondence between the interface identifier of the first interface and the identifier of the first routing table.
在一种可能的实现方式中,所述第一切片为灵活算法对应的切片。In a possible implementation, the first slice is a slice corresponding to a flexible algorithm.
在一种可能的实现方式中,所述根据所述第一接口的接口标识确定所述第一切片对应的第一路由表,包括:根据所述第一接口的接口标识确定所述第一接口的全局标识,所述全局标识用于标识所述第一切片;根据所述全局标识确定所述第一路由表。In a possible implementation, determining the first routing table corresponding to the first slice according to the interface identifier of the first interface includes: determining the first routing table according to the interface identifier of the first interface. The global identifier of the interface, the global identifier is used to identify the first slice; the first routing table is determined according to the global identifier.
在一种可能的实现方式中,所述根据所述全局标识确定所述第一路由表,包括:根据所述全局标识和第八对应关系,确定所述第一路由表,所述第八对应关系包括所述全局标识和所述第一路由表的标识之间的对应关系。In a possible implementation, determining the first routing table according to the global identifier includes: determining the first routing table according to the global identifier and an eighth correspondence, and the eighth correspondence The relationship includes a corresponding relationship between the global identifier and the identifier of the first routing table.
在一种可能的实现方式中,所述第一接口的全局标识,包括:所述第一接口关联的切片标识;或者,所述第一接口关联的灵活算法标识;或者,所述第一接口关联的多拓扑MT标识。In a possible implementation, the global identifier of the first interface includes: a slice identifier associated with the first interface; or a flexible algorithm identifier associated with the first interface; or, the first interface The associated multi-topology MT identifier.
需要说明的是,前述提及的报文处理装置500,其硬件结构可以为如图6所示的结构,图6为本申请实施例提供的一种设备的结构示意图。It should be noted that the hardware structure of the aforementioned message processing device 500 may be as shown in Figure 6. Figure 6 is a schematic structural diagram of a device provided by an embodiment of the present application.
请参阅图6所示,设备600包括:处理器610、通信接口620和和存储器630。其中设备600中的处理器610的数量可以一个或多个,图6中以一个处理器为例。本申请实施例 中,处理器610、通信接口620和存储器630可通过总线系统或其它方式连接,其中,图6中以通过总线系统640连接为例。Referring to FIG. 6 , the device 600 includes: a processor 610 , a communication interface 620 and a memory 630 . The number of processors 610 in the device 600 may be one or more. In FIG. 6 , one processor is taken as an example. Examples of this application , the processor 610, the communication interface 620 and the memory 630 may be connected through a bus system or other means. In FIG. 6, the connection through the bus system 640 is taken as an example.
处理器610可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。处理器610还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。The processor 610 may be a central processing unit (CPU), a network processor (NP), or a combination of CPU and NP. The processor 610 may further include hardware chips. The above-mentioned hardware chip can be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL) or any combination thereof.
存储器630可以包括易失性存储器(英文:volatile memory),例如随机存取存储器(random-access memory,RAM);存储器630也可以包括非易失性存储器(英文:non-volatile memory),例如快闪存储器(英文:flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器630还可以包括上述种类的存储器的组合。存储器630例如可以存储以上方法实施例提及的各个对应关系,例如存储第一对应关系、第二对应关系等等。The memory 630 may include volatile memory (English: volatile memory), such as random-access memory (random-access memory, RAM); the memory 630 may also include non-volatile memory (English: non-volatile memory), such as fast memory. Flash memory (English: flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 630 may also include a combination of the above types of memory. The memory 630 may, for example, store each corresponding relationship mentioned in the above method embodiment, such as storing the first corresponding relationship, the second corresponding relationship, and so on.
可选地,存储器630存储有操作系统和程序、可执行模块或者数据结构,或者它们的子集,或者它们的扩展集,其中,程序可包括各种操作指令,用于实现各种操作。操作系统可包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。处理器610可以读取存储器630中的程序,实现本申请实施例提供的报文处理方法。Optionally, the memory 630 stores an operating system and programs, executable modules or data structures, or a subset thereof, or an extended set thereof, where the program may include various operating instructions for implementing various operations. The operating system may include various system programs that are used to implement various basic services and handle hardware-based tasks. The processor 610 can read the program in the memory 630 to implement the message processing method provided by the embodiment of the present application.
总线系统640可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线系统640可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus system 640 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus system 640 can be divided into an address bus, a data bus, a control bus, etc. For ease of presentation, only one thick line is used in Figure 6, but it does not mean that there is only one bus or one type of bus.
本申请实施例还提供了一种计算机可读存储介质,包括指令或计算机程序,当其在计算机上运行时,使得计算机执行以上实施例提供的报文处理方法。Embodiments of the present application also provide a computer-readable storage medium, which includes instructions or computer programs that, when run on a computer, cause the computer to execute the message processing method provided in the above embodiments.
本申请实施例还提供了一种包含指令或计算机程序的计算机程序产品,当其在计算机上运行时,使得计算机执行以上实施例提供的报文处理方法。Embodiments of the present application also provide a computer program product containing instructions or computer programs, which when run on a computer causes the computer to execute the message processing method provided in the above embodiments.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects without necessarily using Used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or elements may instead include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described systems, devices and units can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑业务划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以 结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical service division. In actual implementation, there may be other division methods, for example, multiple units or components may be The combination can either be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separate. A component shown as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各业务单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件业务单元的形式实现。In addition, each business unit in various embodiments of this application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above integrated units can be implemented in the form of hardware or software business units.
集成的单元如果以软件业务单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Integrated units may be stored in a computer-readable storage medium when implemented in the form of software business units and sold or used as independent products. Based on this understanding, the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的业务可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些业务存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should realize that in one or more of the above examples, the services described in the present invention can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these services may be stored on or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. Storage media can be any available media that can be accessed by a general purpose or special purpose computer.
以上的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上仅为本发明的具体实施方式而已。The above specific embodiments further describe the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific embodiments of the present invention.
以上,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。。 Above, the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still implement the above-mentioned implementations. The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions in the embodiments of the present application. .

Claims (21)

  1. 一种报文处理方法,其特征在于,应用于第二网络节点,所述方法包括:A message processing method, characterized in that it is applied to a second network node, and the method includes:
    通过所述第二网络节点的第一接口接收第一网络节点通过第一切片对应的链路发送的第一报文;Receive, through the first interface of the second network node, the first message sent by the first network node through the link corresponding to the first slice;
    根据所述第一接口的接口信息确定所述第一切片的切片信息,所述切片信息用于指示所述第一切片,所述第一报文中不包括所述第一切片的切片标识;The slice information of the first slice is determined according to the interface information of the first interface, the slice information is used to indicate the first slice, and the first packet does not include the slice information of the first slice. Slice ID;
    根据所述切片信息确定向第三网络节点转发所述第一报文的转发信息;Determine forwarding information for forwarding the first message to a third network node according to the slice information;
    通过所述转发信息,向所述第三网络节点转发所述第一报文。The first message is forwarded to the third network node through the forwarding information.
  2. 根据权利要求1所述的方法,其特征在于,所述第一接口的接口信息,包括:The method according to claim 1, characterized in that the interface information of the first interface includes:
    所述第一接口对应的第一虚拟局域网VLAN标识,所述第一报文中包括所述第一VLAN标识。The first virtual LAN VLAN identifier corresponding to the first interface, and the first packet includes the first VLAN identifier.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述第一接口的接口信息确定所述第一切片的切片信息,包括:The method according to claim 2, wherein determining the slice information of the first slice according to the interface information of the first interface includes:
    根据所述第一VLAN标识和第一对应关系,确定所述第一切片的切片标识,所述第一对应关系包括所述第一VLAN标识和所述切片标识之间的对应关系。A slice identifier of the first slice is determined according to the first VLAN identifier and a first correspondence relationship, where the first correspondence relationship includes a correspondence relationship between the first VLAN identifier and the slice identifier.
  4. 根据权利要求2所述的方法,其特征在于,所述根据所述第一接口的接口信息确定所述第一切片的切片信息,包括:The method according to claim 2, wherein determining the slice information of the first slice according to the interface information of the first interface includes:
    根据所述第一VLAN标识确定所述第一接口的接口标识;Determine the interface identification of the first interface according to the first VLAN identification;
    根据所述第一接口的接口标识和第二对应关系,确定所述第一切片的切片标识,所述第二对应关系包括所述接口标识和所述切片标识之间的对应关系。The slice identifier of the first slice is determined according to the interface identifier of the first interface and a second correspondence relationship, where the second correspondence relationship includes a correspondence relationship between the interface identifier and the slice identifier.
  5. 根据权利要求1-4任意一项所述的方法,其特征在于,所述根据所述切片信息确定向第三网络节点转发所述第一报文的转发信息,包括:The method according to any one of claims 1 to 4, characterized in that, determining the forwarding information of forwarding the first message to a third network node according to the slice information includes:
    根据所述切片信息和第三对应关系,确定转发所述第一报文的第二VLAN标识,所述第三对应关系包括所述切片信息和所述第二VLAN标识之间的对应关系;Determine a second VLAN identifier for forwarding the first message according to the slice information and a third correspondence relationship, where the third correspondence relationship includes a correspondence relationship between the slice information and the second VLAN identifier;
    通过所述转发信息,向所述第三网络节点转发所述第一报文,包括:Forwarding the first message to the third network node through the forwarding information includes:
    根据所述第二VLAN标识和所述第一报文,得到包括所述第二VLAN标识的第二报文;According to the second VLAN identifier and the first message, obtain a second message including the second VLAN identifier;
    转发所述第二报文。Forward the second message.
  6. 根据权利要求5所述的方法,其特征在于,所述第三对应关系包括:The method according to claim 5, characterized in that the third corresponding relationship includes:
    所述切片信息和第二接口之间的对应关系,以及所述第二接口和所述第二VLAN标识之间的对应关系,所述第二接口为与所述第二VLAN标识以及所述切片信息对应的接口。The corresponding relationship between the slice information and the second interface, and the corresponding relationship between the second interface and the second VLAN identifier. The second interface is related to the second VLAN identifier and the slice. The interface corresponding to the information.
  7. 根据权利要求1所述的方法,其特征在于,所述第一接口的接口信息,包括:The method according to claim 1, characterized in that the interface information of the first interface includes:
    所述第一接口对应的第一时隙信息,所述第一时隙信息用于指示第一客户client标识或者第一时隙组,所述第一client标识对应所述第一时隙组。The first time slot information corresponding to the first interface, the first time slot information is used to indicate a first client identifier or a first time slot group, and the first client identifier corresponds to the first time slot group.
  8. 根据权利要求7所述的方法,其特征在于,所述根据所述第一接口的接口信息确定所述第一切片的切片信息,包括:The method according to claim 7, wherein determining the slice information of the first slice according to the interface information of the first interface comprises:
    根据所述第一时隙信息和第四对应关系,确定所述第一切片的切片标识,所述第四对应关系包括所述第一时隙信息和所述切片标识之间的对应关系。 A slice identifier of the first slice is determined according to the first time slot information and a fourth correspondence relationship, where the fourth correspondence relationship includes a correspondence relationship between the first time slot information and the slice identifier.
  9. 根据权利要求7所述的方法,其特征在于,所述根据所述第一接口的接口信息确定所述第一切片的切片信息,包括:The method according to claim 7, wherein determining the slice information of the first slice according to the interface information of the first interface includes:
    根据所述第一时隙信息确定所述第一接口的接口标识;Determine the interface identifier of the first interface according to the first time slot information;
    根据所述第一接口的接口标识和第五对应关系,确定所述第一切片的切片标识,所述第五对应关系包括所述接口标识和所述切片标识之间的对应关系。The slice identifier of the first slice is determined according to the interface identifier of the first interface and a fifth correspondence relationship, where the fifth correspondence relationship includes a correspondence relationship between the interface identifier and the slice identifier.
  10. 根据权利要求1或者7-9任意一项所述的方法,其特征在于,所述根据所述切片信息确定向第三网络节点转发所述第一报文的转发信息,包括:The method according to any one of claims 1 or 7-9, characterized in that, determining the forwarding information of forwarding the first message to the third network node according to the slice information includes:
    根据所述切片信息和第六对应关系,确定转发所述第一报文的第二时隙信息,所述第二时隙信息用于指示第二client标识或者第二时隙组,所述第二client标识对应所述第二时隙组,所述第六对应关系包括所述切片信息和所述第二时隙信息之间的对应关系;According to the slice information and the sixth corresponding relationship, the second time slot information for forwarding the first message is determined, and the second time slot information is used to indicate a second client identifier or a second time slot group. Two client identifiers correspond to the second time slot group, and the sixth correspondence includes a correspondence between the slice information and the second time slot information;
    通过所述转发信息,向所述第三网络节点转发所述第一报文,包括:Forwarding the first message to the third network node through the forwarding information includes:
    通过所述第二时隙组向所述第三网络节点转发所述第一报文。Forward the first message to the third network node through the second time slot group.
  11. 根据权利要求10所述的方法,其特征在于,所述第六对应关系包括:The method according to claim 10, characterized in that the sixth corresponding relationship includes:
    所述切片信息和第三接口之间的对应关系,以及所述第三接口和所述第二时隙信息之间的对应关系,所述第三接口为与所述切片信息以及所述第二时隙信息对应的接口。The corresponding relationship between the slice information and the third interface, and the corresponding relationship between the third interface and the second time slot information. The third interface is related to the slice information and the second time slot information. The interface corresponding to the time slot information.
  12. 根据权利要求1所述的方法,其特征在于,所述第一接口的接口信息,包括:所述第一接口的接口标识,所述根据所述第一接口的接口信息确定所述第一切片的切片信息,包括:The method according to claim 1, characterized in that the interface information of the first interface includes: an interface identifier of the first interface, and the first interface is determined according to the interface information of the first interface. slice information, including:
    根据所述第一接口的接口标识确定所述第一切片对应的第一路由表;Determine the first routing table corresponding to the first slice according to the interface identifier of the first interface;
    相应的,根据所述切片信息确定向第三网络节点转发所述第一报文的转发信息,包括:Correspondingly, determining the forwarding information for forwarding the first message to the third network node according to the slice information includes:
    根据所述第一报文的目的地址和所述第一路由表,确定向第三网络节点转发所述第一报文的出接口。According to the destination address of the first message and the first routing table, an outbound interface for forwarding the first message to a third network node is determined.
  13. 根据权利要求12所述的方法,其特征在于,所述根据所述第一接口的接口标识确定所述第一切片对应的第一路由表,包括:The method of claim 12, wherein determining the first routing table corresponding to the first slice according to the interface identifier of the first interface includes:
    根据所述第一接口的接口标识和第七对应关系,确定所述第一路由表,所述第七对应关系包括所述第一接口的接口标识和所述第一路由表的标识之间的对应关系。The first routing table is determined according to the interface identifier of the first interface and a seventh correspondence relationship, where the seventh correspondence relationship includes the interface identifier of the first interface and the identifier of the first routing table. Correspondence.
  14. 根据权利要求12或13所述的方法,其特征在于,所述第一切片为灵活算法对应的切片。The method according to claim 12 or 13, characterized in that the first slice is a slice corresponding to a flexible algorithm.
  15. 根据权利要求12所述的方法,其特征在于,所述根据所述第一接口的接口标识确定所述第一切片对应的第一路由表,包括:The method of claim 12, wherein determining the first routing table corresponding to the first slice according to the interface identifier of the first interface includes:
    根据所述第一接口的接口标识确定所述第一接口的全局标识,所述全局标识用于标识所述第一切片;Determine the global identity of the first interface according to the interface identity of the first interface, and the global identity is used to identify the first slice;
    根据所述全局标识确定所述第一路由表。The first routing table is determined according to the global identifier.
  16. 根据权利要求15所述的方法,其特征在于,所述根据所述全局标识确定所述第一路由表,包括:The method of claim 15, wherein determining the first routing table according to the global identifier includes:
    根据所述全局标识和第八对应关系,确定所述第一路由表,所述第八对应关系包括所述全局标识和所述第一路由表的标识之间的对应关系。The first routing table is determined according to the global identifier and an eighth correspondence relationship, where the eighth correspondence relationship includes a correspondence relationship between the global identifier and the identifier of the first routing table.
  17. 根据权利要求15或16所述的方法,其特征在于,所述第一接口的全局标识,包括: The method according to claim 15 or 16, characterized in that the global identifier of the first interface includes:
    所述第一接口关联的切片标识;或者,The slice identifier associated with the first interface; or,
    所述第一接口关联的灵活算法标识;或者,The flexible algorithm identifier associated with the first interface; or,
    所述第一接口关联的多拓扑MT标识。The multi-topology MT identifier associated with the first interface.
  18. 一种报文处理装置,其特征在于,应用于第二网络节点,所述装置包括:A message processing device, characterized in that it is applied to a second network node, and the device includes:
    接收单元,用于通过所述第二网络节点的第一接口接收第一网络节点通过第一切片对应的链路发送的第一报文;A receiving unit configured to receive the first message sent by the first network node through the link corresponding to the first slice through the first interface of the second network node;
    处理单元,用于根据所述第一接口的接口信息确定所述第一切片的切片信息,所述切片信息用于指示所述第一切片,所述第一报文中不包括所述第一切片的切片标识;根据所述切片信息确定向第三网络节点转发所述第一报文的转发信息;A processing unit configured to determine slice information of the first slice according to interface information of the first interface, where the slice information is used to indicate the first slice, and the first message does not include the The slice identifier of the first slice; determining the forwarding information for forwarding the first packet to the third network node according to the slice information;
    发送单元,用于通过所述转发信息,向所述第三网络节点转发所述第一报文。A sending unit, configured to forward the first message to the third network node through the forwarding information.
  19. 一种设备,其特征在于,包括:处理器和存储器;A device, characterized by including: a processor and a memory;
    所述存储器,用于存储指令或计算机程序;The memory is used to store instructions or computer programs;
    所述处理器,用于执行所述指令或计算机程序,执行权利要求1-17任意一项所述的方法。The processor is configured to execute the instructions or computer program to perform the method described in any one of claims 1-17.
  20. 一种计算机可读存储介质,其特征在于,包括指令或计算机程序,当其在计算机上运行时,使得计算机执行以上权利要求1-17任意一项所述的方法。A computer-readable storage medium, characterized in that it includes instructions or computer programs that, when run on a computer, cause the computer to perform the method described in any one of claims 1-17 above.
  21. 一种计算机程序产品,其特征在于,包括计算机程序,当其在处理器上运行时,执行以上权利要求1-17任意一项所述的方法。 A computer program product, characterized in that it includes a computer program that, when run on a processor, performs the method described in any one of claims 1-17 above.
PCT/CN2023/103150 2022-09-14 2023-06-28 Message processing method and apparatus WO2024055682A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202211117704 2022-09-14
CN202211117704.8 2022-09-14
CN202211457513.6A CN117714288A (en) 2022-09-14 2022-11-21 Message processing method and device
CN202211457513.6 2022-11-21

Publications (1)

Publication Number Publication Date
WO2024055682A1 true WO2024055682A1 (en) 2024-03-21

Family

ID=90146718

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/103150 WO2024055682A1 (en) 2022-09-14 2023-06-28 Message processing method and apparatus

Country Status (2)

Country Link
CN (1) CN117714288A (en)
WO (1) WO2024055682A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491713A (en) * 2019-09-11 2021-03-12 华为技术有限公司 Data transmission control method and device
WO2021110894A1 (en) * 2019-12-04 2021-06-10 Koninklijke Kpn N.V. Providing interface between network management and slice management
CN113923161A (en) * 2021-10-08 2022-01-11 新华三信息安全技术有限公司 Message forwarding method and device
CN114826918A (en) * 2021-01-29 2022-07-29 华为技术有限公司 Message forwarding method, message processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491713A (en) * 2019-09-11 2021-03-12 华为技术有限公司 Data transmission control method and device
WO2021110894A1 (en) * 2019-12-04 2021-06-10 Koninklijke Kpn N.V. Providing interface between network management and slice management
CN114826918A (en) * 2021-01-29 2022-07-29 华为技术有限公司 Message forwarding method, message processing method and device
CN113923161A (en) * 2021-10-08 2022-01-11 新华三信息安全技术有限公司 Message forwarding method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HUAWEI: "Support of Network Slice Discovery", 3GPP DRAFT; R3-162462 SUPPORT OF NETWORK SLICE DISCOVERY, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. RAN WG3, no. Sophia Antipolis, France; 20161010 - 20161014, 6 October 2016 (2016-10-06), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France , XP051152110 *

Also Published As

Publication number Publication date
CN117714288A (en) 2024-03-15

Similar Documents

Publication Publication Date Title
WO2020182150A1 (en) Message processing method, apparatus, device and system
WO2020164473A1 (en) Path calculation method, apparatus and device
US8954992B2 (en) Distributed and scaled-out network switch and packet processing
JP6881861B2 (en) Packet processing method and equipment
JP2021530912A (en) Network slice control method and device, computer readable storage medium
CN103918246B (en) For being segmented the system and method for carrying out packet processing to IP using network address translation function
CN107113241B (en) Route determining method, network configuration method and related device
WO2019000866A1 (en) Data processing method and internet of things (iot) gateway
EP3723329A1 (en) Data transmission method, node and system
WO2021043232A1 (en) Method by which host network performance requirements may be programmed, device and system
JP2022537296A (en) EVPN message transfer method, system, storage medium and terminal
WO2022078297A1 (en) Packet forwarding method, packet sending method, device, and computer-readable medium
WO2021244356A1 (en) Data transmission method and apparatus
JP2024504466A (en) Packet forwarding methods, packet processing methods, and devices
WO2021098425A1 (en) Qos policy method, device, and computing device for service configuration
WO2023116580A1 (en) Path switching method and apparatus, network device, and network system
WO2024055682A1 (en) Message processing method and apparatus
CN113132273B (en) Data forwarding method and device
WO2019233381A1 (en) User plane data processing method and apparatus
TW200402969A (en) System and method of annotating network packets
WO2023169285A1 (en) Communication method and apparatus, and network device and system
WO2014183525A1 (en) Packet processing method and cascade chip
WO2023185662A1 (en) Deterministic service method for realizing network underlying resource awareness, and electronic device and computer-readable storage medium
WO2023005723A1 (en) Packet transmission method and communication apparatus
WO2021213382A1 (en) Data transmission method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23864421

Country of ref document: EP

Kind code of ref document: A1