US20240129233A1 - Method and apparatus for determining slice information, storage medium, and electronic device - Google Patents
Method and apparatus for determining slice information, storage medium, and electronic device Download PDFInfo
- Publication number
- US20240129233A1 US20240129233A1 US18/275,640 US202218275640A US2024129233A1 US 20240129233 A1 US20240129233 A1 US 20240129233A1 US 202218275640 A US202218275640 A US 202218275640A US 2024129233 A1 US2024129233 A1 US 2024129233A1
- Authority
- US
- United States
- Prior art keywords
- target
- slice
- packet
- template
- identifier
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 238000004590 computer program Methods 0.000 claims description 16
- 238000012545 processing Methods 0.000 claims description 13
- 230000002159 abnormal effect Effects 0.000 claims description 7
- 238000012800 visualization Methods 0.000 claims description 2
- 239000010410 layer Substances 0.000 description 24
- 238000010586 diagram Methods 0.000 description 18
- 230000005540 biological transmission Effects 0.000 description 9
- 238000012544 monitoring process Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 5
- 238000013507 mapping Methods 0.000 description 5
- 101001027940 Sus scrofa Metallothionein-1D Proteins 0.000 description 4
- 101100271216 Trypanosoma brucei brucei TBA1 gene Proteins 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 239000000284 extract Substances 0.000 description 4
- 101150087593 tba-2 gene Proteins 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000000605 extraction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 101100259930 Naegleria gruberi TBA3 gene Proteins 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 239000002356 single layer Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/084—Configuration by using pre-existing information, e.g. using templates or copying from other elements
- H04L41/0843—Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5041—Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
- H04L41/5048—Automatic or semi-automatic definitions, e.g. definition templates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/34—Source routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/50—Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0895—Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
- H04L41/122—Discovery or management of network topologies of virtualised topologies, e.g. software-defined networks [SDN] or network function virtualisation [NFV]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/142—Network analysis or design using statistical or mathematical methods
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/40—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities
Definitions
- the present disclosure relates to the field of communications, and in particular, to a method and apparatus for determining slice information, a storage medium, and an electronic device.
- Segment Routing is a source address-based routing method.
- a Segment Routing Header (SRH) is carried in a packet header of an existing Multi-Protocol Label Switching (MPLS) network or an Internet Protocol Version 6 (IPv6) packet header.
- MPLS Multi-Protocol Label Switching
- IPv6 Internet Protocol Version 6
- the SRH carries a series of instruction operations (also referred to as segment operations) for routing and transmission of data in the network.
- IPFIX IP Flow Information Export
- IPFIX IP Flow Information Export
- a breakthrough concept of Network Slicing is proposed in a 5G network architecture.
- an operator is enabled to construct a plurality of dedicated, virtualized and isolated logical networks on a universal physical platform, so as to satisfy different requirements of different customers on network capabilities.
- a network slice is a logically independent virtual network structure formed by a combination of network functions. Different network slices correspond to different resource assurances and service levels, and in particular, different network slices may have huge differences in their charging standards and operation and maintenance costs.
- An Identity (ID) of a network slice may be referred to as a slice identifier or a slice ID for short, and is used for identifying the network slice.
- a slice identifier may have different meanings and forms. Any identifier that can uniquely distinguish slices or resources within a specific range (for example, within the same physical port/link, within the same Interior Gateway Protocol (IGP) domain, within the entire network, etc.) may serve as a slice identifier.
- IGP Interior Gateway Protocol
- slice virtual topology may be divided according to IGP Multi-topology, and a multi-topology ID may serve as a slice identifier.
- an IGP process number may serve as a slice identifier.
- an FA ID may serve as a slice identifier.
- slices are globally identified according to a global Administrative Instance Identifier (AII) in draft-peng-lsr-network-slicing, All may serve as a slice identifier.
- AII Administrative Instance Identifier
- the existing method for carrying slice information may have the following problems. 1) There may be some legacy devices in a network, and even if a legacy device sets a corresponding field, this field may not represent a slice identifier from the perspective of this legacy device. Therefore, a packet analyzer needs to acquire the capability of each device in order to accurately acquire a slice identifier corresponding to a packet. 2) Different manners for carrying a slice identifier in a packet may be adopted in different forwarding plane technologies. Once a carrying position of the slice identifier changes or a new forwarding technology is introduced, the logic of a network analyzer needs to be updated accordingly.
- Embodiments of the present disclosure provide a method and apparatus for determining slice information, a storage medium, and an electronic device, which may at least solve the problem in the related art that slice information cannot be effectively carried in reported flow information.
- a method for determining slice information including: receiving an initial packet; determining, from pre-configured templates, a target template matching the initial packet, where the target template contains a target format of target slice information of a target slice associated with the initial packet; generating a target packet based on the initial packet and the target template, where the target packet contains the target slice information in the target format; and sending the target packet to a receiving end to instruct the receiving end to execute following operations: parsing the target packet based on the target template, so as to determine the target slice information.
- a method for determining slice information including: acquiring a target packet from a sending end, where the target packet is generated based on an initial packet and a target template matching the initial packet, the target template contains a target format of target slice information of a target slice associated with the initial packet, and the target packet contains the target slice information in the target format; determining the target template based on the target packet; and parsing the target packet based on the target template to determine the target slice information.
- an apparatus for determining slice information including: a receiving module, configured to receive an initial packet; a first determining module, configured to determine, from pre-configured templates, a target template matching the initial packet, where the target template contains a target format of target slice information of a target slice associated with the initial packet; a generating module, configured to generate a target packet based on the initial packet and the target template, where the target packet contains the target slice information in the target format; and a first sending module, configured to send the target packet to a receiving end to instruct the receiving end to execute following operations: parsing the target packet based on the target template, so as to determine the target slice information.
- an apparatus for determining slice information including: a first acquiring module, configured to acquire a target packet from a sending end, where the target packet is generated based on an initial packet and a target template matching the initial packet, the target template contains a target format of target slice information of a target slice associated with the initial packet, and the target packet contains the target slice information in the target format; a second determining module, configured to determine the target template based on the target packet; and a third determining module, configured to parse the target packet based on the target template to determine the target slice information.
- a computer-readable storage medium stores a computer program, and the computer program, when running on a processor, causes the processor to execute operations in any one of the method embodiments.
- an electronic device including a memory, a processor and a computer program stored in the memory and operable on the processor, where the processor is configured to execute operations in any one of the method embodiments when running the computer program.
- FIG. 1 is a block diagram showing the hardware structure of a mobile terminal for determining slice information according to the embodiments of the present disclosure
- FIG. 2 is a flowchart I of a method for determining slice information according to the embodiments of the present disclosure
- FIG. 3 is a flowchart II of a method for determining slice information according to the embodiments of the present disclosure
- FIG. 4 is a flowchart of a method for collecting slice information according to the embodiments of the present disclosure
- FIG. 5 is a schematic diagram I of a data template carrying slice information and reported by an exporter according to the embodiments of the present disclosure
- FIG. 6 is a schematic diagram I of actual data content reported by an exporter according to the embodiments of the present disclosure.
- FIG. 7 is a schematic diagram II of a data template carrying slice information and reported by an exporter according to the embodiments of the present disclosure
- FIG. 8 is a schematic diagram II of actual data content reported by an exporter according to the embodiments of the present disclosure.
- FIG. 9 is a schematic diagram of a data template carrying hierarchical slice information and reported by an exporter according to the embodiments of the present disclosure.
- FIG. 10 is a schematic diagram of actual data content carrying hierarchical slice information and reported by an exporter according to the embodiments of the present disclosure
- FIG. 11 is a structure diagram I of a device for determining slice information according to the embodiments of the present disclosure.
- FIG. 12 is a structure diagram II of a device for determining slice information according to the embodiments of the present disclosure.
- a network slice identifier is mainly carried in the following manners.
- a network slice identifier is explicitly carried in a packet.
- an existing field in a packet is appropriately modified to carry a slice identifier.
- a bit is reserved in a Traffic Class field of an IPv6 packet header, and when the bit is set, it indicates that a Flow Label field of the packet header carries a slice identifier, and a part of bits in the Flow Label field are used to carry a specific value of the slice identifier.
- a part of bits in the MPLS Entropy Label are used to carry the slice information.
- a new field dedicated for carrying a slice identifier is defined.
- an option of an IPv6 hop-by-hop option header (abbreviated as HBH header) is newly defined for carrying a slice identifier.
- the packet does not carry a slice identifier, and a mapping relationship between traffic and slice is provided in a local table entry of each forwarding device in the network.
- a mapping relationship between a segment routing SID/MPLS label/IP address and a slice may be provided in a local table entry of each forwarding device in the network.
- Manner 3 is a combination of Manner 1 and Manner 2, a slice identifier is carried in a packet, and meanwhile, the forwarding device also locally stores the correspondence between the packet and the slice.
- This approach may be applied to a hierarchical slice architecture. For example, a network is first divided into several large top layer slices based on a global slice ID (for example, one slice corresponds to one province), and then each slice is divided into multiple sub-slices based on FA. The node first determines a specific top layer slice according to the slice ID carried in the packet, then continues to search for a forwarding entry of a corresponding sub-slice under the top layer slice according to a locally stored correspondence between the packet and the sub-slice, and finally forwards the packet.
- Manner 4 in a network having only one layer of slice, the manner of carrying a slice identifier in a packet, and meanwhile locally storing a slice identifier on each forwarding device may also be adopted.
- the apparatus first extracts a slice identifier according to the packet, and a forwarding entry related to the slice identifier is stored in a local table entry.
- the extracted slice identifier is mapped with the identifier in the local table entry (the mapping condition being that the two are consistent or the two have a mapping relationship), and then a forwarding action (operation/behavior) is obtained.
- a packet analyzer needs to acquire the capability of each device in order to accurately acquire a slice identifier corresponding to a packet.
- Different manners for carrying a slice identifier in a packet may be adopted in different forwarding plane technologies. Once a carrying position of the slice identifier changes or a new forwarding technology is introduced, the logic of a network analyzer needs to be updated accordingly.
- FIG. 1 is a block diagram showing the hardware structure of a mobile terminal for determining slice information according to the embodiments of the present disclosure.
- the mobile terminal may include one or more (only one is shown in FIG. 1 ) processors 102 (the one or more processors 102 may include, but are not limited to, a Micro Controller Unit (MCU) or a processing apparatus such as a Field Programmable Gate Array (FPGA)) and a memory 104 configured to store data.
- MCU Micro Controller Unit
- FPGA Field Programmable Gate Array
- the mobile terminal may further include a transmission device 106 configured to perform communication functions and an input/output device 108 .
- a transmission device 106 configured to perform communication functions
- an input/output device 108 a transmission device 106 configured to perform communication functions
- the mobile terminal may further include more or fewer components than shown in FIG. 1 , or have a different configuration from that shown in FIG. 1 .
- the memory 104 may be configured to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the method for determining slice information in the embodiments of the present disclosure.
- the one or more processors 102 run the computer program stored in the memory 104 , so as to execute various function applications and data processing, that is, to implement the foregoing method.
- the memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
- the memory 104 may further include a memory remotely located with respect to the one or more processors 102 , and the memory may be connected to the mobile terminal over a network. Examples of such network includes, but is not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
- the transmission device 106 is provided to receive or transmit data via a network.
- Specific examples of the described network may include a wireless network provided by a communication provider of the mobile terminal.
- the transmission device 106 may include a Network Interface Controller (NIC) that may be coupled to other network devices via a base station to communicate with the Internet.
- the transmission device 106 may be a Radio Frequency (RF) module configured to communicate wirelessly with the Internet.
- NIC Network Interface Controller
- RF Radio Frequency
- FIG. 2 is a flowchart I of a method for determining slice information according to the embodiments of the present disclosure. As shown in FIG. 2 , the flow includes the following operations S 202 to S 208 .
- a target template matching the initial packet is determined from pre-configured templates, where the target template contains a target format of target slice information of a target slice associated with the initial packet.
- a target packet is generated based on the initial packet and the target template, where the target packet contains the target slice information in the target format.
- the target packet is sent to a receiving end to instruct the receiving end to execute an operation of parsing the target packet based on the target template, so as to determine the target slice information.
- a target template matching a received initial packet is determined from pre-configured templates, where the target template contains a target format of target slice information of a target slice associated with the initial packet; then, a target packet is generated based on the initial packet and the target template; and then, the target packet is sent to a receiving end to instruct the receiving end to parse the target packet based on the target template and determine the target slice information.
- the foregoing operations may be executed by a network device, for example, a network forwarding device, a network sending device, or a routing switching device.
- the foregoing operations may also be executed by, but are not limited to be executed by, other processing device or processing unit that has a similar processing capability.
- the following description takes the network forwarding device executing the foregoing operations as an example (which is only an exemplary description, and in actual operations, other devices or modules may also be used to execute the foregoing operations).
- a network forwarding device receives an initial packet, and then determines a target template matching the initial packet from pre-configured templates.
- the target template is a template matching the initial packet
- the target template contains a target format of target slice information of a target slice associated with the initial packet.
- the network forwarding device then generates a target packet based on the initial packet and the target template, where the target packet contains target slice information in the target format, i.e., a target packet is packet statistical information generated according to the target template and the initial packet satisfying a template condition, and the packet statistical information contains target slice information.
- the network forwarding device sends the target packet to a receiving end (for example, a network collector) to instruct the receiving end to parse the target packet based on the target template and determine the target slice information.
- a receiving end for example, a network collector
- the problem in the related art that slice information cannot be effectively carried in reported flow information can be effectively solved, thereby achieving the purpose of carrying slice information in reported flow information, and further achieving the effects of performing statistics and monitoring on traffic in a slice dimension.
- the target template matching the initial packet may be determined from the pre-configured templates in a following manner.
- the target slice information is compared with first slice information contained in a first template to obtain a comparison result, where the first template is any template in the pre-configured templates, and the comparison result indicates whether the target slice information contains the first slice information.
- the comparison result indicates that the target slice information contains the first slice information
- it is determined that the first template is the target template.
- a slice identifier type (corresponding to target slice information) of traffic received by a network forwarding device is ID- 1
- a slice identifier type (corresponding to first slice information) in a certain template is also ID- 1
- the first template is a target template matching the initial packet.
- the matching condition is also satisfied.
- a certain template such as a second template
- the comparison result indicates that the target slice information includes the first slice information, it may be determined that the first template is a target template.
- the method before generating the target packet based on the initial packet and the target template, the method further includes the following operation: the target template is compared with a local table entry to obtain a second comparison result, where the second comparison result indicates whether the target template matches the local table entry, and the local table entry is used for recording a correspondence between a packet and slice information.
- the operation of generating the target packet based on the initial packet and the target template may include the following operation: in a case where the second comparison result indicates that the target template matches the local table entry, the target packet is generated based on the initial packet and the target template.
- a network forwarding device before generating the target packet based on the initial packet and the target template, compares the target template with a local table entry to determine whether the target template matches the local table entry, where the local table entry is used for recording a correspondence between a packet and slice information; and generates the target packet based on the initial packet and the target template only when the second comparison result indicates that the target template matches the local table entry.
- the network forwarding device determines a corresponding local table entry based on the received traffic, and then compares slice information contained in the local table entry with the slice information contained in the target template to determine whether they are consistent, the network forwarding device will not report the packet information in a case where they are inconsistent, and the network forwarding device will send the packet information carrying the slice information only in a case where they are consistent.
- the method before sending the target packet to the receiving end, may further include the following operation: the target template is sent to the receiving end.
- the operation of sending the target packet to the receiving end includes the following operation: the target packet carrying an identifier of the target template is sent to the receiving end.
- a network forwarding device or a network exporter
- the network exporter reports all templates (possibly including a plurality of templates) configured to the network exporter to the network collector in advance.
- the network exporter may send the target packet carrying an identifier of the target template to the receiving end.
- the network exporter when sending the packet information, the network exporter carries a template identifier (for example, a template ID) of the matched template in a packet header, where the template identifier indicates a specific template corresponding to the packet information, so that after receiving the packet information, the network collector can know which template is to be used when parsing the slice information from the packet information.
- a template identifier for example, a template ID
- the target slice information may include at least one of: a slice identifier type of the target slice; a slice identifier of the target slice; a carrying position of a slice identifier of the target slice in the target packet; content of a slice forwarding entry corresponding to the target slice.
- the target slice information may include a plurality of different types of information, thereby achieving an objective of carrying slice information of different types, and improving flexibility of the manner in which slice information is carried.
- FIG. 3 is a flowchart II of a method for determining slice information according to the embodiments of the present disclosure. As shown in FIG. 3 , the flow includes the following operations S 302 to S 306 .
- a target packet is acquired from a sending end, where the target packet is generated based on an initial packet and a target template matching the initial packet, the target template contains a target format of target slice information of a target slice associated with the initial packet, and the target packet contains the target slice information in the target format.
- the target template is determined based on the target packet.
- the target packet is parsed based on the target template to determine the target slice information.
- a target packet sent by a sending end is acquired, where the target packet is generated based on an initial packet and a target template matching the initial packet, the target template contains a target format of target slice information of a target slice associated with the initial packet, and the target packet contains target slice information in the target format, thereby achieving the purpose of carrying slice information in the packet.
- the target template is determined based on the target packet, and then the target slice information can be determined by parsing the target packet based on the target template.
- the problem in the related art that slice information cannot be effectively carried in reported flow information is solved, the purpose of carrying slice information in the reported flow information is achieved, and target slice information can be determined based on a target packet, thereby achieving the effects of performing statistics and monitoring on traffic in a slice dimension.
- the foregoing operations may be executed by a network device, such as a network receiving device or a network collector.
- the foregoing operations may also be executed by, but are not limited to be executed by, other processing device or processing unit that has a similar processing capability.
- the following description takes a network collector performing the foregoing operations as an example (which is only an exemplary description, and in actual operations, other devices or modules may also perform the foregoing operations).
- a network collector acquires a target packet from a sending end (for example, a network exporter), where the target packet is generated by the network exporter based on an initial packet and a target template matching the initial packet, the target template includes a target format of target slice information of a target slice associated with the initial packet, and the target packet includes target slice information in the target format.
- a purpose of carrying slice information in the packet is achieved.
- the network collector can determine the target template based on the target packet, and then parse the target packet based on the target template, so as to determine the target slice information.
- the purpose of carrying slice information in reported flow information is achieved, and target slice information can be determined based on a target packet, thereby achieving the effects of performing statistics and monitoring on traffic in a slice dimension.
- the method before acquiring the target packet from the sending end, may further include an operation of acquiring the target template from the sending end.
- the target template may be determined based on the target packet in a following manner. An identifier of the target template carried in the target packet is determined, and the target template is determined based on the identifier of the target template.
- a network collector before acquiring the target packet from the sending end (for example, a network exporter), a network collector first acquires a target template sent by the network exporter. In practical applications, the network exporter may report, to the network collector, the templates (possibly including a plurality of templates) configured to the network exporter in advance.
- the target template may be determined based on the target packet in the following manner.
- the identifier information of the target template carried in the target packet may be firstly determined, for example, in practical applications, when sending packet information, a network exporter carries a template identifier (e.g., a template ID) of the matched template in a packet header. After determining the identifier information of the target template, the network collector may determine the target template based on the identifier information of the target template.
- a template identifier e.g., a template ID
- the target packet may be parsed based on the target template to determine the target slice information in the following manner.
- the target format of the target slice information contained in the target template may be determined; and the target packet may be parsed based on the target format to determine the target slice information contained in the target packet.
- the network collector may parse the target packet based on the target template and determines the target slice information in the following manner.
- the target format of the target slice information contained in the target template may be determined, and then the target packet may be parsed based on the target format, so as to further determine the target slice information contained in the target packet.
- the objective of determining the target slice information based on a target packet is achieved.
- the target slice information may include at least one of: a slice identifier type of the target slice; a slice identifier of the target slice; a carrying position of a slice identifier of the target slice in the target packet; content of a slice forwarding entry corresponding to the target slice.
- the target slice information includes a plurality of different types of information, thereby achieving an objective of carrying slice information of different types, and improving flexibility of the manner in which the slice information is carried.
- the operation that the target packet is parsed based on the target format to determine the target slice information contained in the target packet may be implemented in at least one of the following manners.
- the target format indicates that the target slice information includes the slice identifier of the target slice
- the target packet is parsed based on the target format to obtain the slice identifier contained in the target slice information.
- the target format indicates that the target slice information includes a carrying manner of the slice identifier of the target slice in the target packet
- the target packet is parsed based on the target format to obtain the target slice information, and the slice identifier carried in the target packet in the carrying manner is acquired.
- the target packet is parsed based on the target format to obtain the slice identifier carried in the target packet in the carrying manner and the slice identifier indicated by the slice identifier field.
- the target packet is parsed based on the target format to obtain slice information of each layer.
- a network collector may parse the target packet based on the target format to determine the target slice information in at least one of the following four manners.
- the target packet is parsed based on the target format to obtain the slice identifier contained in the target slice information.
- the network collector parses a target packet based on the target format to obtain the slice identifier contained in the target slice information.
- the network collector generally stores the slice identifier after parsing the target packet.
- the target packet in a case where the target format indicates that the target slice information includes a carrying manner of the slice identifier of the target slice in the target packet, the target packet is parsed based on the target format to obtain the target slice information, and the slice identifier carried in the target packet in the carrying manner is acquired.
- the slice information carries a carrying manner of the slice identifier of the target slice in the target packet
- the carrying manner of the slice identifier in the target packet has a corresponding value
- a network collector parses the target packet based on the target format to obtain the target slice information, and acquires the slice identifier carried in the target packet, i.e., acquires the value of the target slice identifier carried in the target packet.
- the target packet is parsed based on the target format, so as to obtain the slice identifier carried in the target packet in the carrying manner and the slice identifier indicated by the slice identifier field.
- the network collector parses the target packet, compares the slice identifier acquired from the target packet with the slice identifier indicated by the slice identifier field, and in practical applications, such comparison can be performed to determine whether the slice identifier indicated by the slice identifier field is accurate, and in a case where the values of the two are inconsistent or there is no correlation, such a record may be marked as abnormal.
- the target packet is parsed based on the target format to obtain slice information of each layer.
- a network collector parses the target packet based on the target format to obtain slice information of each layer, that is, the network collector independently parses slice information of each layer.
- the target packet may be parsed based on different target formats in different manners to determine the target slice information.
- the method may further include: whether the slice identifier carried in the target packet is consistent with a slice identifier indicated by the slice identifier field may be compared; and in a case where the slice identifier carried in the target packet is inconsistent with the slice identifier indicated by the slice identifier field, it is determined that a local table entry of the sending end is abnormal, where the slice identifier field is determined by the sending end based on the local table entry.
- the network collector may compare the slice identifier obtained from the target packet with the slice identifier indicated by the slice identifier field to determine whether they are consistent; and in a case where a comparison result indicates that they are inconsistent, that is, in a case where the slice identifier obtained from the target packet is inconsistent with the slice identifier indicated by the slice identifier field, it is determined that a local table entry of the sending end is abnormal, where the slice identifier is determined by the sending end based on the local table entry. In practical applications, such a record may be marked as abnormal.
- FIG. 4 is a flowchart of a method for collecting slice information according to the embodiments of the present disclosure. As shown in FIG. 4 , the flow includes the following operations S 402 to S 408 .
- an IPFIX template of an exporter (corresponding to the described network forwarding device or network sending device) is configured to request the exporter to report slice information.
- the IPFIX template is configured and enabled on the exporter, i.e., the forwarding device, and the exporter is required to also contain the slice information when collecting and reporting traffic.
- the slice information may include a slice identifier type, a slice identifier, a carrying position of the slice identifier in a packet, and specific contents (such as information about the next hop and the queue) of a slice forwarding entry.
- the exporter reports packet information carrying the slice information to the collector (corresponding to the described network collector).
- the exporter firstly needs to match the traffic with a pre-configured template, including for example matching the slice information related to the traffic with slice information carried in the template.
- a pre-configured template including for example matching the slice information related to the traffic with slice information carried in the template.
- the slice identifier type in a certain template is flex-algo ID
- the slice identifier type of the traffic matching this template also needs to be flex-algo ID.
- the slice information in the template is a subset of the slice information related to the traffic, it is also considered that a matching condition is satisfied.
- the traffic having slice information containing A, B and C is also considered to be matched with the template.
- slice information is carried in reported packet information according to a correspondence between the traffic and the slice.
- the exporter when reporting information to the collector, the exporter needs to report data template information first, and then report specific data value information.
- the collector parses the data from the exporter, acquires and stores the correspondence between the packet and the slice, enters a corresponding slice information parsing manner according to the data template, and parses the data packet received from the exporter.
- the analyzer extracts data from the collector and performs subsequent processing.
- a network analyzer extracts statistical data from the collector and performs subsequent processing, thereby providing a basis for a service.
- the processing operations related to slicing may include slice-based accounting, visualization of slice topology and real-time usage, etc.
- target slice information can also be determined based on a target packet, thereby achieving the effects of performing statistics and monitoring on traffic in a slice dimension.
- the collector may use different slice information parsing manners, which are described below with reference to some examples.
- Manner 1 a simple mode in which reported slice information only includes a slice identifier.
- the collector parses and stores a packet, the collector directly stores the value in the field as the slice identifier of the packet.
- Manner 2 a packet extraction mode in which slice information carries a carrying manner of a slice identifier in a packet.
- a carrying manner of the slice identifier in the packet is set as a corresponding value, it indicates that a slice identifier is explicitly carried in a specific position in the packet, for example, a slice identifier may be carried in the first 8 bits of the IPv6 Flow Label, and the collector acquires, according to the IPv6 Flow Label value in the reported packet, the slice identifier value carried in the packet.
- the carrying manner indicates that the slice identifier is carried in the IPv6 Flow Label, but the reported actual data does not carry the IPv6 Flow Label field, the record should be marked as abnormal.
- Manner 3 a comparison mode which is based on the foregoing Manner 2 and in which a slice identifier field is further carried in addition to the carrying manner of the slice identifier in the packet.
- the exporter may indicate, in a manner such as a slice identifier type, that the value of the slice identifier field is acquired by the exporter according to a local table entry recording the correspondence between the packet and the slice.
- the collector may compare the slice identifier obtained from the packet with a directly reported slice identifier, so as to determine whether the slice information stored in the local forwarding entry of the exporter is accurate.
- Manner 4 a hierarchical mode.
- data reported by an exporter may include slice information of multiple layers, expression modes of the slice information of different layers are independent of each other and may adopt any combination of the described Manners 1, 2 and 3, and the collector independently parses the slice of each layer.
- FIG. 5 is a schematic diagram I of a data template carrying slice information and reported by an exporter according to the embodiments of the present disclosure.
- the template shown in FIG. 5 includes two newly defined elements of IPFIX, which are respectively as follows.
- NetworksliceID type this element is used for indicating a type of a slice ID.
- a type value corresponding to the element is TBA1, that is, in a case where TBA1 is found in the template, it represents the field in the corresponding data is used for carrying the type of the slice ID.
- a corresponding type value of the slice ID needs to be further defined, for example:
- NetworksliceID value a type value corresponding to this element is TBA2, that is, in a case where TBA2 is found in the template, it represents the field in the corresponding data carries the value of the slice ID.
- FIG. 6 is a schematic diagram I of actual data content reported by an exporter according to the embodiments of the present disclosure.
- the data represents a corresponding template ID of 256.
- a result of parsing the data according to the template is that a source IPv6 address of the packet is ff06::c2, a destination IPv6 address of the packet is ff06::c3, the type of the slice ID is FA-ID, and the value of the slice ID is 129.
- the IPv6 address represents the current SRv6 SID, so that the collector may obtain the correspondence between the SID and the slice ID.
- the MPLS network in a case where the MPLS label and the slice ID information are included at the same time when reporting the packet information, the correspondence between the MPLS label and the slice ID may also be obtained.
- the slice ID type is not mandatory, and may be selectively configured according to a data collection requirement. This embodiment corresponds to the manner of carrying slice information in a simple mode.
- FIG. 7 is a schematic diagram II of a data template carrying slice information and reported by an exporter according to the embodiments of the present disclosure.
- the template includes two newly defined elements of IPFIX, which are as follows respectively.
- Network sliceID type the slice ID type and value are the same as those defined in the Exemplary embodiment 2.
- Network sliceID position this element indicates a carrying manner of the slice ID.
- the type value corresponding to the element is TBA3, that is, in a case where TBA3 is found in the template, it represents the field in the corresponding data carries a carrying manner of the slice ID.
- the value corresponding to the carrying manner of the slice ID needs to be defined, for example:
- FIG. 8 is a schematic diagram II of actual data content reported by an exporter according to the embodiments of the present disclosure.
- the template ID corresponding to the data is 257.
- the result of parsing the data according to the template is that the destination IPv6 address of the packet is ff06::c3, the Flow Label is 519 (namely, binary 1000000111), the slice ID type is AII, the carrying manner of the slice ID is that the slice ID is carried in the last 8 bits of the IPv6 Flow Label, and therefore the slice ID is 127 according to the IPv6 Flow Label.
- a new value for representing a new MPLS label type needs to be defined in values of the existing IPFIX MPLS label type element (the current MPLS label types include a VPN label, a BGP related label, an LDP label, and the like).
- the current MPLS label types include a VPN label, a BGP related label, an LDP label, and the like.
- a new element of IPFIX needs to be defined. For example, in a case where a new data extension header or an IPv6 extension header TLV carried at the bottom of the MPLS label stack is newly defined to carry the slice information, a new element of IPFIX is newly defined for the newly added data extension header or TLV.
- a comparison mode is entered correspondingly to compare whether the network slice ID value is consistent with the slice ID obtained from the Flow Label or whether the mapping relationship between the network slice ID value and the slice ID obtained from the Flow Label is correct.
- This embodiment corresponds to a manner of carrying the slice information in a packet extraction mode.
- a networksliceID position element dedicated for indicating the carrying position of the slice ID in the packet is defined.
- This embodiment provides another example, which enables to support the simple mode of the above Exemplary embodiment 2 and the packet extraction mode of the above Exemplary embodiment 3 based on fewer new elements.
- NetworksliceID type this element is used for indicating a type of the slice ID.
- the type value corresponding to the element is TBA1, that is, in a case where TBA1 is found in the template, it represents the field in the corresponding data carries the type of the slice ID.
- a corresponding value of the slice ID type also needs to be defined, and a manner of carrying the slice ID and the slice ID type may be acquired based on the corresponding value. For example:
- NetworksliceID value the type value corresponding to this element is TBA2, that is, in a case where TBA2 is found in the template, it represents the field in the corresponding data carries the value of the slice ID.
- a collector extracts data, in a case where it is found according to the slice ID type value that the slice ID is explicitly carried in a packet, and a networksliceID value is set with a value, it represents that a slice identifier is carried in a local table entry and a packet at the same time, a comparison mode is correspondingly entered to compare the slice identifier acquired from the packet and the slice identifier in the local table entry.
- FIG. 9 is a schematic diagram of a data template carrying hierarchical slice information and reported by an exporter according to the embodiments of the present disclosure. As shown in FIG. 9 , in a hierarchical slice network, an IPFIX is required to be able to report slice information of each layer. FIG. 9 shows a data template carrying information of two layers of slices reported by an exporter.
- information related to the second layer slice needs to be further defined, for example, networksliceID2 type, networksliceID2 value, and networksliceID2 position.
- the data structure and data value of the information related to the second layer slice may be consistent with those of the top layer slice, and the information related to the second layer slice only differs from the information related to the top layer slice in terms of its type.
- FIG. 10 is a schematic diagram of actual data content carrying hierarchical slice information and reported by an exporter according to the embodiments of the present disclosure.
- the actual data content reported by the exporter indicates that a template ID corresponding to the data is 258.
- a result of parsing the data according to the template is that a manner of carrying the top slice ID in a packet is that the top slice ID is carried in the last 8 bits of an IPv6 Flow Label, and therefore the top slice ID is 127 according to the Flow Label; a second layer slice ID of the packet is 129, and a slice ID type is FA-ID.
- a similar method may be used to define relevant new elements such as networksliceID3 and networksliceID4.
- the data structure and the data content described in the embodiments of the present disclosure are not used to limit the actual transmission format. During actual data transmission, other formats such as XML may be used, but the data structure and the data content may be consistent.
- the slice information may also be other packet content related to a slice or content in a local table entry of a device, for example, a forwarding queue corresponding to the slice.
- a new element or element type needs to be defined to carry and report a corresponding template and data.
- Table 1 is a related technical term table, as shown in Table 1:
- the computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, or an optical disk), and includes several instructions for instructing a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method of the embodiments of the present disclosure.
- a storage medium such as a ROM/RAM, a magnetic disk, or an optical disk
- FIG. 11 is a structure diagram I of a device for determining slice information according to the embodiments of the present disclosure. As shown in FIG. 11 , the apparatus includes:
- the first determining module 1104 includes: a comparing unit, configured to compare the target slice information with first slice information contained in a first template to obtain a comparison result, where the first template is any template in the pre-configured templates, and the comparison result indicates whether the target slice information contains the first slice information; and a first determining unit, configured to, in a case where the comparison result indicates that the target slice information contains the first slice information, determine that the first template is the target template.
- the apparatus further includes: a first comparing module, configured to compare the target template with a local table entry before generating the target packet based on the initial packet and the target template, so as to obtain a second comparison result, where the second comparison result indicates whether the target template matches the local table entry, and the local table entry is used for recording a correspondence between a packet and slice information; and the generating module 1106 includes: a generating unit, configured to, in a case where the second comparison result indicates that the target template matches the local table entry, generate the target packet based on the initial packet and the target template.
- the apparatus may further include: a second sending module, configured to send the target template to the receiving end before sending the target packet to the receiving end; and the first sending module 1108 includes: a sending unit, configured to send the target packet carrying an identifier of the target template to the receiving end.
- the target slice information may include at least one of: a slice identifier type of the target slice; a slice identifier of the target slice; a carrying position of a slice identifier of the target slice in the target packet; and content of a slice forwarding entry corresponding to the target slice.
- FIG. 12 is a structure diagram II of a device for determining slice information according to the embodiments of the present disclosure. As shown in FIG. 12 , the apparatus includes:
- the apparatus may further include: a second acquiring module, configured to acquire the target template from the sending end before acquiring the target packet from the sending end; and the second determining module 1204 includes: a second determining unit, configured to determine an identifier of the target template carried in the target packet, and determine the target template based on the identifier of the target template.
- the third determining module 1206 may include: a third determining unit, configured to determine the target format of the target slice information contained in the target template; a fourth determining unit, configured to parse the target packet based on the target format to determine the target slice information contained in the target packet.
- the target slice information may include at least one of: a slice identifier type of the target slice; a slice identifier of the target slice; a carrying position of a slice identifier of the target slice in the target packet; and content of a slice forwarding entry corresponding to the target slice.
- the fourth determining unit includes at least one of: a first acquiring subunit, configured to, in a case where the target format indicates that the target slice information includes the slice identifier of the target slice, the target packet based on the target format to obtain the slice identifier contained in the target slice information; a second acquiring subunit, configured to, in a case where the target format indicates that the target slice information includes a carrying manner of the slice identifier of the target slice in the target packet, parse the target packet based on the target format to obtain the target slice information, and acquire the slice identifier carried in the target packet in the carrying manner; a third acquiring subunit, configured to, in a case where the target format indicates that the target slice information includes a carrying manner of the slice identifier of the target slice in the target packet and a slice identifier field of the target slice, parse the target packet based on the target format to obtain the slice identifier carried in the target packet in the carrying manner and the slice identifier indicated by the slice identifier
- the apparatus may further include: a second comparing module, configured to, after parsing the target packet based on the target format to obtain the slice identifier carried in the target packet in the carrying manner and the slice identifier indicated by the slice identifier field, compare whether the slice identifier carried in the target packet is consistent with a slice identifier indicated by the slice identifier field; and a fourth determining module, configured to determine that a local table entry of the sending end is abnormal in a case where the slice identifier carried in the target packet is inconsistent with the slice identifier indicated by the slice identifier field, where the slice identifier field is determined by the sending end based on the local table entry.
- a second comparing module configured to, after parsing the target packet based on the target format to obtain the slice identifier carried in the target packet in the carrying manner and the slice identifier indicated by the slice identifier field, compare whether the slice identifier carried in the target packet is consistent with a slice identifier indicated by the slice identifier field
- each module may be implemented by software or hardware. The latter may be implemented in the following manner, but is not limited thereto. All the modules are located in a same processor; alternatively, the modules are located in different processors in an arbitrary combination.
- the embodiments of the present disclosure also provide a computer-readable storage medium.
- the computer-readable storage medium stores a computer program, where the computer program, when running on a processor, causes the processor to execute the operations in any one of the described method embodiments.
- the computer-readable storage medium may include, but is not limited to, any medium that can store a computer program, such as a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disc.
- a computer program such as a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disc.
- the embodiments of the present disclosure further provide an electronic device, including a memory and a processor.
- the memory stores a computer program.
- the processor is configured to run the computer program to execute operations in any one of the method embodiments.
- the electronic device may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
- the mechanism of IPFIX can be expanded, so that the IPFIX can support carrying relevant slice information in a collection packet, thereby enabling operations, such as statistical calculation and monitoring, to be performed on traffic in a slice dimension.
- the solution can support a single-layer and hierarchical network slice structure, and can support information collection under a plurality of slice information carrying manners, including for example the slice information being carried in a packet, being carried in a local table entry, and being carried in the packet and the local table entry at the same time.
- the comparison between a slice identifier in a packet and a slice identifier in a local table entry can also be supported.
- each module or each operation of the present disclosure may be implemented by a universal computing device, and the modules or operations may be concentrated on a single computing device or distributed on a network formed by a plurality of computing devices, and may be implemented by program codes executable for the computing devices, so that the modules or operations may be stored in a storage device for execution with the computing devices.
- the shown or described operations may be executed in sequences different from those described here in some cases.
- the shown or described modules or operations may form respective integrated circuit modules, or multiple modules or operations therein may form a single integrated circuit module for implementation. As such, the present disclosure is not limited to any particular hardware and software combination.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
A method and apparatus for determining slice information, a storage medium, and an electronic device. The method includes: receiving an initial packet; determining, from pre-configured templates, a target template matching the initial packet, wherein the target template contains a target format of target slice information of a target slice associated with the initial packet; generating a target packet based on the initial packet and the target template, wherein the target packet contains the target slice information in the target format; and sending the target packet to a receiving end to instruct the receiving end to execute following operations: parsing the target packet based on the target template, so as to determine the target slice information.
Description
- This application is a National Stage Filing of PCT International Application No. PCT/CN2022/096437 filed on May 31, 2022, which is based on and claims priority to Chinese Patent Application No. CN202110668840.5 filed on Jun. 16, 2021 and entitled “METHOD AND APPARATUS FOR DETERMINING SLICE INFORMATION, STORAGE MEDIUM, AND ELECTRONIC DEVICE”, the content of which is incorporated herein by reference in its entirety.
- The present disclosure relates to the field of communications, and in particular, to a method and apparatus for determining slice information, a storage medium, and an electronic device.
- Segment Routing (SR) is a source address-based routing method. A Segment Routing Header (SRH) is carried in a packet header of an existing Multi-Protocol Label Switching (MPLS) network or an Internet Protocol Version 6 (IPv6) packet header. The SRH carries a series of instruction operations (also referred to as segment operations) for routing and transmission of data in the network.
- An IP Flow Information Export (IPFIX) protocol is a protocol for data flow characteristic analysis and template-based formatted output. The format defined by the IPFIX is based on a data output format of Cisco Netflow Version 9, and enables IP flow information to be transferred from an Exporter to a Collector. The IPFIX unifies a traffic monitoring standard, and simplifies a flow output architecture by using a single and consistent model. The IPFIX may be used for facilitating services such as traffic accounting, traffic engineering, attack monitoring, and network Quality of Service (QoS) monitoring.
- A breakthrough concept of Network Slicing is proposed in a 5G network architecture. By means of network slicing, an operator is enabled to construct a plurality of dedicated, virtualized and isolated logical networks on a universal physical platform, so as to satisfy different requirements of different customers on network capabilities. A network slice is a logically independent virtual network structure formed by a combination of network functions. Different network slices correspond to different resource assurances and service levels, and in particular, different network slices may have huge differences in their charging standards and operation and maintenance costs.
- An Identity (ID) of a network slice may be referred to as a slice identifier or a slice ID for short, and is used for identifying the network slice. According to technical means for specifically implementing a network slice, a slice identifier may have different meanings and forms. Any identifier that can uniquely distinguish slices or resources within a specific range (for example, within the same physical port/link, within the same Interior Gateway Protocol (IGP) domain, within the entire network, etc.) may serve as a slice identifier. For example, in draft-dong-6man-enhanced-vpn-vtn-id, slice virtual topology may be divided according to IGP Multi-topology, and a multi-topology ID may serve as a slice identifier. In a case where slices are divided according to IGP Multi-process, an IGP process number may serve as a slice identifier. In a case where slices are divided according to a flex-algorithm (FA) defined in draft-ietf-lsr-flex-algo, an FA ID may serve as a slice identifier. In a case where slices are globally identified according to a global Administrative Instance Identifier (AII) in draft-peng-lsr-network-slicing, All may serve as a slice identifier.
- The existing method for carrying slice information may have the following problems. 1) There may be some legacy devices in a network, and even if a legacy device sets a corresponding field, this field may not represent a slice identifier from the perspective of this legacy device. Therefore, a packet analyzer needs to acquire the capability of each device in order to accurately acquire a slice identifier corresponding to a packet. 2) Different manners for carrying a slice identifier in a packet may be adopted in different forwarding plane technologies. Once a carrying position of the slice identifier changes or a new forwarding technology is introduced, the logic of a network analyzer needs to be updated accordingly.
- Aiming at the problem in the related art that slice information cannot be carried effectively in reported flow information, no effective solution has been proposed at present.
- Embodiments of the present disclosure provide a method and apparatus for determining slice information, a storage medium, and an electronic device, which may at least solve the problem in the related art that slice information cannot be effectively carried in reported flow information.
- According to an aspect of the embodiments of the present disclosure, a method for determining slice information is provided, including: receiving an initial packet; determining, from pre-configured templates, a target template matching the initial packet, where the target template contains a target format of target slice information of a target slice associated with the initial packet; generating a target packet based on the initial packet and the target template, where the target packet contains the target slice information in the target format; and sending the target packet to a receiving end to instruct the receiving end to execute following operations: parsing the target packet based on the target template, so as to determine the target slice information.
- According to another aspect of the embodiments of the present disclosure, a method for determining slice information is also provided, including: acquiring a target packet from a sending end, where the target packet is generated based on an initial packet and a target template matching the initial packet, the target template contains a target format of target slice information of a target slice associated with the initial packet, and the target packet contains the target slice information in the target format; determining the target template based on the target packet; and parsing the target packet based on the target template to determine the target slice information.
- According to yet another aspect of the embodiments of the present disclosure, an apparatus for determining slice information is further provided, including: a receiving module, configured to receive an initial packet; a first determining module, configured to determine, from pre-configured templates, a target template matching the initial packet, where the target template contains a target format of target slice information of a target slice associated with the initial packet; a generating module, configured to generate a target packet based on the initial packet and the target template, where the target packet contains the target slice information in the target format; and a first sending module, configured to send the target packet to a receiving end to instruct the receiving end to execute following operations: parsing the target packet based on the target template, so as to determine the target slice information.
- According to another aspect of the embodiments of the present disclosure, an apparatus for determining slice information is further provided, including: a first acquiring module, configured to acquire a target packet from a sending end, where the target packet is generated based on an initial packet and a target template matching the initial packet, the target template contains a target format of target slice information of a target slice associated with the initial packet, and the target packet contains the target slice information in the target format; a second determining module, configured to determine the target template based on the target packet; and a third determining module, configured to parse the target packet based on the target template to determine the target slice information.
- According to another aspect of the embodiments of the present disclosure, a computer-readable storage medium is further provided, where the computer-readable storage medium stores a computer program, and the computer program, when running on a processor, causes the processor to execute operations in any one of the method embodiments.
- According to another aspect of the embodiments of the present disclosure, an electronic device is also provided, including a memory, a processor and a computer program stored in the memory and operable on the processor, where the processor is configured to execute operations in any one of the method embodiments when running the computer program.
- Drawings, provided for further understanding of the present disclosure and forming a part of the description, are used to explain the present disclosure together with exemplary embodiments of the present disclosure rather than to limit the present disclosure. In the drawings:
-
FIG. 1 is a block diagram showing the hardware structure of a mobile terminal for determining slice information according to the embodiments of the present disclosure; -
FIG. 2 is a flowchart I of a method for determining slice information according to the embodiments of the present disclosure; -
FIG. 3 is a flowchart II of a method for determining slice information according to the embodiments of the present disclosure; -
FIG. 4 is a flowchart of a method for collecting slice information according to the embodiments of the present disclosure; -
FIG. 5 is a schematic diagram I of a data template carrying slice information and reported by an exporter according to the embodiments of the present disclosure; -
FIG. 6 is a schematic diagram I of actual data content reported by an exporter according to the embodiments of the present disclosure; -
FIG. 7 is a schematic diagram II of a data template carrying slice information and reported by an exporter according to the embodiments of the present disclosure; -
FIG. 8 is a schematic diagram II of actual data content reported by an exporter according to the embodiments of the present disclosure; -
FIG. 9 is a schematic diagram of a data template carrying hierarchical slice information and reported by an exporter according to the embodiments of the present disclosure; -
FIG. 10 is a schematic diagram of actual data content carrying hierarchical slice information and reported by an exporter according to the embodiments of the present disclosure; -
FIG. 11 is a structure diagram I of a device for determining slice information according to the embodiments of the present disclosure; and -
FIG. 12 is a structure diagram II of a device for determining slice information according to the embodiments of the present disclosure. - In order to make those having ordinary skill in the art better understand the solutions of the present disclosure, the following clearly and completely describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are merely a part of rather than all of the embodiments of the present disclosure. All other embodiments obtained by those having ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall belong to the scope of protection of the present disclosure.
- It should be noted that, terms such as “first” and “second” in the description, claims, and accompanying drawings of the present disclosure are used to distinguish similar objects, but are not necessarily used to describe a specific sequence or order. It should be understood that the data so used may be interchanged where appropriate so that embodiments of the present disclosure described herein may be implemented in sequences other than those illustrated or described herein. In addition, the terms “contain/include/include” and “have”, and any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or apparatus that includes a series of operations or units is not necessarily limited to those operations or units that are expressly listed, but may include other operations or units that are not expressly listed or inherent to such process, method, product, or apparatus.
- In the related art, a network slice identifier is mainly carried in the following manners.
- Manner 1, a network slice identifier is explicitly carried in a packet. In general, there are two modes for carrying the network slice identifier. In the first mode, an existing field in a packet is appropriately modified to carry a slice identifier. For example, in an IPv6 network, according to draft-filsfils-spring-srv6-stateless-slice-id, a bit is reserved in a Traffic Class field of an IPv6 packet header, and when the bit is set, it indicates that a Flow Label field of the packet header carries a slice identifier, and a part of bits in the Flow Label field are used to carry a specific value of the slice identifier. For another example, in an MPLS network, according to draft-decraene-mpls-slid-encoded-entropy-label-id, a part of bits in the MPLS Entropy Label are used to carry the slice information. In the second mode, a new field dedicated for carrying a slice identifier is defined. For example, in draft-dong-6man-enhanced-vpn-vtn-id, an option of an IPv6 hop-by-hop option header (abbreviated as HBH header) is newly defined for carrying a slice identifier.
-
Manner 2, the packet does not carry a slice identifier, and a mapping relationship between traffic and slice is provided in a local table entry of each forwarding device in the network. For example, a mapping relationship between a segment routing SID/MPLS label/IP address and a slice may be provided in a local table entry of each forwarding device in the network. - Manner 3 is a combination of Manner 1 and
Manner 2, a slice identifier is carried in a packet, and meanwhile, the forwarding device also locally stores the correspondence between the packet and the slice. This approach may be applied to a hierarchical slice architecture. For example, a network is first divided into several large top layer slices based on a global slice ID (for example, one slice corresponds to one province), and then each slice is divided into multiple sub-slices based on FA. The node first determines a specific top layer slice according to the slice ID carried in the packet, then continues to search for a forwarding entry of a corresponding sub-slice under the top layer slice according to a locally stored correspondence between the packet and the sub-slice, and finally forwards the packet. -
Manner 4, in a network having only one layer of slice, the manner of carrying a slice identifier in a packet, and meanwhile locally storing a slice identifier on each forwarding device may also be adopted. The apparatus first extracts a slice identifier according to the packet, and a forwarding entry related to the slice identifier is stored in a local table entry. The extracted slice identifier is mapped with the identifier in the local table entry (the mapping condition being that the two are consistent or the two have a mapping relationship), and then a forwarding action (operation/behavior) is obtained. - Even if the existing field is used/reconstructed to carry the slice ID, the following problems may still exist when the flow information reported based on the IPFIX directly carries the slice ID.
- 1) There may be some legacy devices in a network, and even if a legacy device sets a corresponding field, this field may not represent a slice identifier from the perspective of this legacy device. Therefore, a packet analyzer needs to acquire the capability of each device in order to accurately acquire a slice identifier corresponding to a packet. 2) Different manners for carrying a slice identifier in a packet may be adopted in different forwarding plane technologies. Once a carrying position of the slice identifier changes or a new forwarding technology is introduced, the logic of a network analyzer needs to be updated accordingly.
- Aiming at the described problems existing in the related art, the present disclosure provides a solution, and the present disclosure will be described below.
- The method embodiments provided in the embodiments of the present disclosure may be implemented in a mobile terminal, a computer terminal, or a similar computing apparatus. Taking the implementation on a mobile terminal as an example,
FIG. 1 is a block diagram showing the hardware structure of a mobile terminal for determining slice information according to the embodiments of the present disclosure. As shown inFIG. 1 , the mobile terminal may include one or more (only one is shown inFIG. 1 ) processors 102 (the one ormore processors 102 may include, but are not limited to, a Micro Controller Unit (MCU) or a processing apparatus such as a Field Programmable Gate Array (FPGA)) and amemory 104 configured to store data. In an exemplary embodiment, the mobile terminal may further include atransmission device 106 configured to perform communication functions and an input/output device 108. A person having ordinary skill in the art may understand that the structure shown inFIG. 1 is merely exemplary, and does not limit the structure of the foregoing mobile terminal. For example, the mobile terminal may further include more or fewer components than shown inFIG. 1 , or have a different configuration from that shown inFIG. 1 . - The
memory 104 may be configured to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the method for determining slice information in the embodiments of the present disclosure. The one ormore processors 102 run the computer program stored in thememory 104, so as to execute various function applications and data processing, that is, to implement the foregoing method. Thememory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, thememory 104 may further include a memory remotely located with respect to the one ormore processors 102, and the memory may be connected to the mobile terminal over a network. Examples of such network includes, but is not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. - The
transmission device 106 is provided to receive or transmit data via a network. Specific examples of the described network may include a wireless network provided by a communication provider of the mobile terminal. In an example, thetransmission device 106 may include a Network Interface Controller (NIC) that may be coupled to other network devices via a base station to communicate with the Internet. In an example, thetransmission device 106 may be a Radio Frequency (RF) module configured to communicate wirelessly with the Internet. - The embodiments provide a method for determining slice information.
FIG. 2 is a flowchart I of a method for determining slice information according to the embodiments of the present disclosure. As shown inFIG. 2 , the flow includes the following operations S202 to S208. - At S202, an initial packet is received.
- At S204, a target template matching the initial packet is determined from pre-configured templates, where the target template contains a target format of target slice information of a target slice associated with the initial packet.
- At S206, a target packet is generated based on the initial packet and the target template, where the target packet contains the target slice information in the target format.
- At S208, the target packet is sent to a receiving end to instruct the receiving end to execute an operation of parsing the target packet based on the target template, so as to determine the target slice information.
- By means of the described operations, a target template matching a received initial packet is determined from pre-configured templates, where the target template contains a target format of target slice information of a target slice associated with the initial packet; then, a target packet is generated based on the initial packet and the target template; and then, the target packet is sent to a receiving end to instruct the receiving end to parse the target packet based on the target template and determine the target slice information. By means of the technical solution, the problem in the related art that slice information cannot be carried effectively in reported flow information is solved, thereby achieving the purpose of carrying slice information in reported flow information, and further achieving the effects of performing statistics and monitoring on traffic in a slice dimension.
- The foregoing operations may be executed by a network device, for example, a network forwarding device, a network sending device, or a routing switching device. The foregoing operations may also be executed by, but are not limited to be executed by, other processing device or processing unit that has a similar processing capability. The following description takes the network forwarding device executing the foregoing operations as an example (which is only an exemplary description, and in actual operations, other devices or modules may also be used to execute the foregoing operations).
- In the described embodiments, a network forwarding device receives an initial packet, and then determines a target template matching the initial packet from pre-configured templates. In practical applications, there may be a plurality of templates in the pre-configured templates, where the target template is a template matching the initial packet, and the target template contains a target format of target slice information of a target slice associated with the initial packet. The network forwarding device then generates a target packet based on the initial packet and the target template, where the target packet contains target slice information in the target format, i.e., a target packet is packet statistical information generated according to the target template and the initial packet satisfying a template condition, and the packet statistical information contains target slice information. The network forwarding device sends the target packet to a receiving end (for example, a network collector) to instruct the receiving end to parse the target packet based on the target template and determine the target slice information. By implementing the technical solution, the problem in the related art that slice information cannot be effectively carried in reported flow information can be effectively solved, thereby achieving the purpose of carrying slice information in reported flow information, and further achieving the effects of performing statistics and monitoring on traffic in a slice dimension.
- In an exemplary embodiment, the target template matching the initial packet may be determined from the pre-configured templates in a following manner. The target slice information is compared with first slice information contained in a first template to obtain a comparison result, where the first template is any template in the pre-configured templates, and the comparison result indicates whether the target slice information contains the first slice information. In a case where the comparison result indicates that the target slice information contains the first slice information, it is determined that the first template is the target template. In this embodiment, there may be a plurality of templates in the pre-configured templates, and the target slice information is compared with first slice information contained in each template to obtain a comparison result, where the comparison result indicates whether the target slice information contains the first slice information. For example, a slice identifier type (corresponding to target slice information) of traffic received by a network forwarding device is ID-1, and a slice identifier type (corresponding to first slice information) in a certain template (such as a first template) is also ID-1, then the first template is a target template matching the initial packet. In practical applications, in a case where slice information in a template is a subset of the target slice information, it may be determined that the matching condition is also satisfied. For example, a certain template (such as a second template) only requires to collect slice information A and B, then traffic having slice information containing A, B and C is also considered to be matched with this template (namely, the second template). Therefore, in a case where the comparison result indicates that the target slice information includes the first slice information, it may be determined that the first template is a target template. By means of the present embodiment, the purpose of determining a target template matching target slice information is achieved.
- In an exemplary embodiment, before generating the target packet based on the initial packet and the target template, the method further includes the following operation: the target template is compared with a local table entry to obtain a second comparison result, where the second comparison result indicates whether the target template matches the local table entry, and the local table entry is used for recording a correspondence between a packet and slice information. The operation of generating the target packet based on the initial packet and the target template may include the following operation: in a case where the second comparison result indicates that the target template matches the local table entry, the target packet is generated based on the initial packet and the target template. In this embodiment, before generating the target packet based on the initial packet and the target template, a network forwarding device compares the target template with a local table entry to determine whether the target template matches the local table entry, where the local table entry is used for recording a correspondence between a packet and slice information; and generates the target packet based on the initial packet and the target template only when the second comparison result indicates that the target template matches the local table entry. In practical applications, the network forwarding device determines a corresponding local table entry based on the received traffic, and then compares slice information contained in the local table entry with the slice information contained in the target template to determine whether they are consistent, the network forwarding device will not report the packet information in a case where they are inconsistent, and the network forwarding device will send the packet information carrying the slice information only in a case where they are consistent.
- In an exemplary embodiment, before sending the target packet to the receiving end, the method may further include the following operation: the target template is sent to the receiving end. The operation of sending the target packet to the receiving end includes the following operation: the target packet carrying an identifier of the target template is sent to the receiving end. In this embodiment, before sending the target packet to the receiving end (or a network collector), a network forwarding device (or a network exporter) sends the target template to the receiving end. In practical applications, the network exporter reports all templates (possibly including a plurality of templates) configured to the network exporter to the network collector in advance. When sending the target packet to the receiving end, the network exporter may send the target packet carrying an identifier of the target template to the receiving end. In practical applications, when sending the packet information, the network exporter carries a template identifier (for example, a template ID) of the matched template in a packet header, where the template identifier indicates a specific template corresponding to the packet information, so that after receiving the packet information, the network collector can know which template is to be used when parsing the slice information from the packet information.
- In an exemplary embodiment, the target slice information may include at least one of: a slice identifier type of the target slice; a slice identifier of the target slice; a carrying position of a slice identifier of the target slice in the target packet; content of a slice forwarding entry corresponding to the target slice. In this embodiment, the target slice information may include a plurality of different types of information, thereby achieving an objective of carrying slice information of different types, and improving flexibility of the manner in which slice information is carried.
- The embodiment further provides a method for determining slice information.
FIG. 3 is a flowchart II of a method for determining slice information according to the embodiments of the present disclosure. As shown inFIG. 3 , the flow includes the following operations S302 to S306. - At S302, a target packet is acquired from a sending end, where the target packet is generated based on an initial packet and a target template matching the initial packet, the target template contains a target format of target slice information of a target slice associated with the initial packet, and the target packet contains the target slice information in the target format.
- At S304, the target template is determined based on the target packet.
- At S306, the target packet is parsed based on the target template to determine the target slice information.
- By means of the operations, a target packet sent by a sending end is acquired, where the target packet is generated based on an initial packet and a target template matching the initial packet, the target template contains a target format of target slice information of a target slice associated with the initial packet, and the target packet contains target slice information in the target format, thereby achieving the purpose of carrying slice information in the packet. The target template is determined based on the target packet, and then the target slice information can be determined by parsing the target packet based on the target template. By means of the technical solution, the problem in the related art that slice information cannot be effectively carried in reported flow information is solved, the purpose of carrying slice information in the reported flow information is achieved, and target slice information can be determined based on a target packet, thereby achieving the effects of performing statistics and monitoring on traffic in a slice dimension.
- The foregoing operations may be executed by a network device, such as a network receiving device or a network collector. The foregoing operations may also be executed by, but are not limited to be executed by, other processing device or processing unit that has a similar processing capability. The following description takes a network collector performing the foregoing operations as an example (which is only an exemplary description, and in actual operations, other devices or modules may also perform the foregoing operations).
- In the foregoing embodiment, a network collector acquires a target packet from a sending end (for example, a network exporter), where the target packet is generated by the network exporter based on an initial packet and a target template matching the initial packet, the target template includes a target format of target slice information of a target slice associated with the initial packet, and the target packet includes target slice information in the target format. By virtue of the solution, a purpose of carrying slice information in the packet is achieved. In addition, the network collector can determine the target template based on the target packet, and then parse the target packet based on the target template, so as to determine the target slice information. The purpose of carrying slice information in reported flow information is achieved, and target slice information can be determined based on a target packet, thereby achieving the effects of performing statistics and monitoring on traffic in a slice dimension.
- In an exemplary embodiment, before acquiring the target packet from the sending end, the method may further include an operation of acquiring the target template from the sending end. The target template may be determined based on the target packet in a following manner. An identifier of the target template carried in the target packet is determined, and the target template is determined based on the identifier of the target template. In this embodiment, before acquiring the target packet from the sending end (for example, a network exporter), a network collector first acquires a target template sent by the network exporter. In practical applications, the network exporter may report, to the network collector, the templates (possibly including a plurality of templates) configured to the network exporter in advance. The target template may be determined based on the target packet in the following manner. The identifier information of the target template carried in the target packet may be firstly determined, for example, in practical applications, when sending packet information, a network exporter carries a template identifier (e.g., a template ID) of the matched template in a packet header. After determining the identifier information of the target template, the network collector may determine the target template based on the identifier information of the target template.
- In an exemplary embodiment, the target packet may be parsed based on the target template to determine the target slice information in the following manner. The target format of the target slice information contained in the target template may be determined; and the target packet may be parsed based on the target format to determine the target slice information contained in the target packet. In this embodiment, the network collector may parse the target packet based on the target template and determines the target slice information in the following manner. The target format of the target slice information contained in the target template may be determined, and then the target packet may be parsed based on the target format, so as to further determine the target slice information contained in the target packet. Through this embodiment, the objective of determining the target slice information based on a target packet is achieved.
- In an exemplary embodiment, the target slice information may include at least one of: a slice identifier type of the target slice; a slice identifier of the target slice; a carrying position of a slice identifier of the target slice in the target packet; content of a slice forwarding entry corresponding to the target slice. In this embodiment, the target slice information includes a plurality of different types of information, thereby achieving an objective of carrying slice information of different types, and improving flexibility of the manner in which the slice information is carried.
- In an exemplary embodiment, the operation that the target packet is parsed based on the target format to determine the target slice information contained in the target packet may be implemented in at least one of the following manners. In a case where the target format indicates that the target slice information includes the slice identifier of the target slice, the target packet is parsed based on the target format to obtain the slice identifier contained in the target slice information. In a case where the target format indicates that the target slice information includes a carrying manner of the slice identifier of the target slice in the target packet, the target packet is parsed based on the target format to obtain the target slice information, and the slice identifier carried in the target packet in the carrying manner is acquired. In a case where the target format indicates that the target slice information includes a carrying manner of the slice identifier of the target slice in the target packet and a slice identifier field of the target slice, the target packet is parsed based on the target format to obtain the slice identifier carried in the target packet in the carrying manner and the slice identifier indicated by the slice identifier field. In a case where the target format indicates that the target slice information is multi-layer slice information, the target packet is parsed based on the target format to obtain slice information of each layer. In this embodiment, a network collector may parse the target packet based on the target format to determine the target slice information in at least one of the following four manners. In Manner 1, in a case where the target format indicates that the target slice information contains a slice identifier of the target slice, the target packet is parsed based on the target format to obtain the slice identifier contained in the target slice information. For example, in a practical application, in a case where reported slice information only contains a slice identifier, the network collector parses a target packet based on the target format to obtain the slice identifier contained in the target slice information. As an exemplary implementation, in a practical application, the network collector generally stores the slice identifier after parsing the target packet. In
Manner 2, in a case where the target format indicates that the target slice information includes a carrying manner of the slice identifier of the target slice in the target packet, the target packet is parsed based on the target format to obtain the target slice information, and the slice identifier carried in the target packet in the carrying manner is acquired. For example, in a case where the slice information carries a carrying manner of the slice identifier of the target slice in the target packet, and when the carrying manner of the slice identifier in the target packet has a corresponding value, it represents that the slice identifier is carried in a specific position in the packet, and a network collector parses the target packet based on the target format to obtain the target slice information, and acquires the slice identifier carried in the target packet, i.e., acquires the value of the target slice identifier carried in the target packet. In Manner 3, in a case where the target format indicates that the target slice information includes a carrying manner of the slice identifier of the target slice in the target packet and a slice identifier field of the target slice, the target packet is parsed based on the target format, so as to obtain the slice identifier carried in the target packet in the carrying manner and the slice identifier indicated by the slice identifier field. For example, in a case where the target slice information also carries a slice identifier field in addition to the carrying manner of the slice identifier in the target packet, the network collector parses the target packet, compares the slice identifier acquired from the target packet with the slice identifier indicated by the slice identifier field, and in practical applications, such comparison can be performed to determine whether the slice identifier indicated by the slice identifier field is accurate, and in a case where the values of the two are inconsistent or there is no correlation, such a record may be marked as abnormal. InManner 4, in a case where the target format indicates that the target slice information is multi-layer slice information, the target packet is parsed based on the target format to obtain slice information of each layer. For example, in a hierarchical slice network, in a case where the target format indicates that the target slice information is multi-layer slice information, a network collector parses the target packet based on the target format to obtain slice information of each layer, that is, the network collector independently parses slice information of each layer. Through this embodiment, the target packet may be parsed based on different target formats in different manners to determine the target slice information. - In an exemplary embodiment, after acquiring the slice identifier carried in the target packet in the carrying manner and the slice identifier indicated by the slice identifier field, the method may further include: whether the slice identifier carried in the target packet is consistent with a slice identifier indicated by the slice identifier field may be compared; and in a case where the slice identifier carried in the target packet is inconsistent with the slice identifier indicated by the slice identifier field, it is determined that a local table entry of the sending end is abnormal, where the slice identifier field is determined by the sending end based on the local table entry. In this embodiment, after acquiring the slice identifier carried in the target packet in the carrying manner and the slice identifier indicated by the slice identifier field, the network collector may compare the slice identifier obtained from the target packet with the slice identifier indicated by the slice identifier field to determine whether they are consistent; and in a case where a comparison result indicates that they are inconsistent, that is, in a case where the slice identifier obtained from the target packet is inconsistent with the slice identifier indicated by the slice identifier field, it is determined that a local table entry of the sending end is abnormal, where the slice identifier is determined by the sending end based on the local table entry. In practical applications, such a record may be marked as abnormal.
- The present disclosure will be described below in detail in conjunction with exemplary embodiments.
-
FIG. 4 is a flowchart of a method for collecting slice information according to the embodiments of the present disclosure. As shown inFIG. 4 , the flow includes the following operations S402 to S408. - At S402, an IPFIX template of an exporter (corresponding to the described network forwarding device or network sending device) is configured to request the exporter to report slice information. The IPFIX template is configured and enabled on the exporter, i.e., the forwarding device, and the exporter is required to also contain the slice information when collecting and reporting traffic. The slice information may include a slice identifier type, a slice identifier, a carrying position of the slice identifier in a packet, and specific contents (such as information about the next hop and the queue) of a slice forwarding entry.
- At S404, the exporter reports packet information carrying the slice information to the collector (corresponding to the described network collector). After receiving traffic, the exporter firstly needs to match the traffic with a pre-configured template, including for example matching the slice information related to the traffic with slice information carried in the template. For example, in a case where the slice identifier type in a certain template is flex-algo ID, the slice identifier type of the traffic matching this template also needs to be flex-algo ID. In a case where the slice information in the template is a subset of the slice information related to the traffic, it is also considered that a matching condition is satisfied. For example, in a case where the template requires to collect only slice information A and B, the traffic having slice information containing A, B and C is also considered to be matched with the template. In a case where the traffic matches a template, slice information is carried in reported packet information according to a correspondence between the traffic and the slice. According to a reporting rule of IPFIX, when reporting information to the collector, the exporter needs to report data template information first, and then report specific data value information.
- It should be noted that, in a practical application, in a case where a specific traffic matches a plurality of templates, a plurality of pieces of information corresponding to respective templates are reported.
- At S406, the collector parses the data from the exporter, acquires and stores the correspondence between the packet and the slice, enters a corresponding slice information parsing manner according to the data template, and parses the data packet received from the exporter.
- At S408, the analyzer extracts data from the collector and performs subsequent processing. A network analyzer extracts statistical data from the collector and performs subsequent processing, thereby providing a basis for a service. The processing operations related to slicing may include slice-based accounting, visualization of slice topology and real-time usage, etc.
- By means of the described embodiments, the purpose of carrying slice information in reported flow information is achieved, and target slice information can also be determined based on a target packet, thereby achieving the effects of performing statistics and monitoring on traffic in a slice dimension.
- In some exemplary implementations, according to different content contained in slice information reported by the exporter, the collector may use different slice information parsing manners, which are described below with reference to some examples.
- Manner 1: a simple mode in which reported slice information only includes a slice identifier. When a collector parses and stores a packet, the collector directly stores the value in the field as the slice identifier of the packet.
- Manner 2: a packet extraction mode in which slice information carries a carrying manner of a slice identifier in a packet. When a carrying manner of the slice identifier in the packet is set as a corresponding value, it indicates that a slice identifier is explicitly carried in a specific position in the packet, for example, a slice identifier may be carried in the first 8 bits of the IPv6 Flow Label, and the collector acquires, according to the IPv6 Flow Label value in the reported packet, the slice identifier value carried in the packet. In a case where a corresponding value cannot be obtained according to the carrying manner of the slice identifier in the packet, for example, the carrying manner indicates that the slice identifier is carried in the IPv6 Flow Label, but the reported actual data does not carry the IPv6 Flow Label field, the record should be marked as abnormal.
- Manner 3: a comparison mode which is based on the
foregoing Manner 2 and in which a slice identifier field is further carried in addition to the carrying manner of the slice identifier in the packet. The exporter may indicate, in a manner such as a slice identifier type, that the value of the slice identifier field is acquired by the exporter according to a local table entry recording the correspondence between the packet and the slice. On this basis, the collector may compare the slice identifier obtained from the packet with a directly reported slice identifier, so as to determine whether the slice information stored in the local forwarding entry of the exporter is accurate. - Manner 4: a hierarchical mode. In a hierarchical slicing network, data reported by an exporter may include slice information of multiple layers, expression modes of the slice information of different layers are independent of each other and may adopt any combination of the described
Manners 1, 2 and 3, and the collector independently parses the slice of each layer. -
FIG. 5 is a schematic diagram I of a data template carrying slice information and reported by an exporter according to the embodiments of the present disclosure. As shown inFIG. 5 , taking an SRv6 network as an example, in order to support the reporting of slice information, the template shown inFIG. 5 includes two newly defined elements of IPFIX, which are respectively as follows. - NetworksliceID type: this element is used for indicating a type of a slice ID. A type value corresponding to the element is TBA1, that is, in a case where TBA1 is found in the template, it represents the field in the corresponding data is used for carrying the type of the slice ID. Correspondingly, a corresponding type value of the slice ID needs to be further defined, for example:
-
- 0: slice is not supported or slice is not configured;
- 1: FA ID is used as the slice identifier;
- 2: MT-ID is used as the slice identifier;
- 3: All is used as the slice identifier;
- . . .
- 255: unknown type.
- NetworksliceID value: a type value corresponding to this element is TBA2, that is, in a case where TBA2 is found in the template, it represents the field in the corresponding data carries the value of the slice ID.
-
FIG. 6 is a schematic diagram I of actual data content reported by an exporter according to the embodiments of the present disclosure. As shown inFIG. 6 , the data represents a corresponding template ID of 256. A result of parsing the data according to the template is that a source IPv6 address of the packet is ff06::c2, a destination IPv6 address of the packet is ff06::c3, the type of the slice ID is FA-ID, and the value of the slice ID is 129. Further, in the SRv6 network, the IPv6 address represents the current SRv6 SID, so that the collector may obtain the correspondence between the SID and the slice ID. Similarly, in the MPLS network, in a case where the MPLS label and the slice ID information are included at the same time when reporting the packet information, the correspondence between the MPLS label and the slice ID may also be obtained. - The slice ID type is not mandatory, and may be selectively configured according to a data collection requirement. This embodiment corresponds to the manner of carrying slice information in a simple mode.
-
FIG. 7 is a schematic diagram II of a data template carrying slice information and reported by an exporter according to the embodiments of the present disclosure. As shown inFIG. 7 , in order to support the reporting of slice information, the template includes two newly defined elements of IPFIX, which are as follows respectively. - Network sliceID type: the slice ID type and value are the same as those defined in the
Exemplary embodiment 2. - Network sliceID position: this element indicates a carrying manner of the slice ID. The type value corresponding to the element is TBA3, that is, in a case where TBA3 is found in the template, it represents the field in the corresponding data carries a carrying manner of the slice ID. Correspondingly, the value corresponding to the carrying manner of the slice ID needs to be defined, for example:
-
- 0: the slice ID is not explicitly carried;
- 1: the slice ID is carried in an MPLS entropy label;
- 2: the slice ID is carried in the last 8 bits of an IPv6 Flow Label.
-
FIG. 8 is a schematic diagram II of actual data content reported by an exporter according to the embodiments of the present disclosure. As shown inFIG. 8 , in the actual data content reported by the exporter, it indicates that the template ID corresponding to the data is 257. The result of parsing the data according to the template is that the destination IPv6 address of the packet is ff06::c3, the Flow Label is 519 (namely, binary 1000000111), the slice ID type is AII, the carrying manner of the slice ID is that the slice ID is carried in the last 8 bits of the IPv6 Flow Label, and therefore the slice ID is 127 according to the IPv6 Flow Label. - It should be noted that, in a case where the packet is extended to newly define a field dedicated for carrying the slice information, in addition to a corresponding type value of a carrying position (i.e., carrying manner) of the slice identifier, a newly defined IPFIX element or element type value also needs to be defined for the newly defined field.
- For example, when an MPLS label type dedicated for carrying a slice is newly defined, a new value for representing a new MPLS label type needs to be defined in values of the existing IPFIX MPLS label type element (the current MPLS label types include a VPN label, a BGP related label, an LDP label, and the like). In a case where a field type not included in the current IPFIX element is extended to carry the slice information, a new element of IPFIX needs to be defined. For example, in a case where a new data extension header or an IPv6 extension header TLV carried at the bottom of the MPLS label stack is newly defined to carry the slice information, a new element of IPFIX is newly defined for the newly added data extension header or TLV.
- In a case where the reported template and data further carry the network slice ID value information defined in
Exemplary embodiment 2, a comparison mode is entered correspondingly to compare whether the network slice ID value is consistent with the slice ID obtained from the Flow Label or whether the mapping relationship between the network slice ID value and the slice ID obtained from the Flow Label is correct. - This embodiment corresponds to a manner of carrying the slice information in a packet extraction mode.
- In the above Exemplary embodiment 3, a networksliceID position element dedicated for indicating the carrying position of the slice ID in the packet is defined. In practical use, there are many extension methods for indicating the manner of carrying the slice ID in the packet. This embodiment provides another example, which enables to support the simple mode of the above
Exemplary embodiment 2 and the packet extraction mode of the above Exemplary embodiment 3 based on fewer new elements. - Similar to the above
Exemplary embodiment 2, two new elements are defined as follows. - NetworksliceID type: this element is used for indicating a type of the slice ID. The type value corresponding to the element is TBA1, that is, in a case where TBA1 is found in the template, it represents the field in the corresponding data carries the type of the slice ID. Correspondingly, a corresponding value of the slice ID type also needs to be defined, and a manner of carrying the slice ID and the slice ID type may be acquired based on the corresponding value. For example:
-
- 0: slice is not supported or slice is not configured;
- 1: FA ID is used as the slice identifier;
- 2: MT-ID is used as the slice identifier;
- 3: All is used as the slice identifier;
- 4: FA ID is used as the slice identifier and is carried in the IPv6 Flow Label;
- 5: MT-ID is used as the slice identifier and is carried in the IPv6 Flow Label;
- 6: MT-ID is used as the slice identifier and is carried in the MPLS label;
- . . .
- 255: unknown type.
- NetworksliceID value: the type value corresponding to this element is TBA2, that is, in a case where TBA2 is found in the template, it represents the field in the corresponding data carries the value of the slice ID.
- When a collector extracts data, in a case where it is found according to the slice ID type value that the slice ID is explicitly carried in a packet, and a networksliceID value is set with a value, it represents that a slice identifier is carried in a local table entry and a packet at the same time, a comparison mode is correspondingly entered to compare the slice identifier acquired from the packet and the slice identifier in the local table entry.
-
FIG. 9 is a schematic diagram of a data template carrying hierarchical slice information and reported by an exporter according to the embodiments of the present disclosure. As shown inFIG. 9 , in a hierarchical slice network, an IPFIX is required to be able to report slice information of each layer.FIG. 9 shows a data template carrying information of two layers of slices reported by an exporter. - In order to report hierarchical slice information, in addition to the networksliceID type, networksliceID value, and networksliceID position defined in the above
Exemplary embodiment 2 and Exemplary embodiment 3, information related to the second layer slice needs to be further defined, for example, networksliceID2 type, networksliceID2 value, and networksliceID2 position. The data structure and data value of the information related to the second layer slice may be consistent with those of the top layer slice, and the information related to the second layer slice only differs from the information related to the top layer slice in terms of its type. -
FIG. 10 is a schematic diagram of actual data content carrying hierarchical slice information and reported by an exporter according to the embodiments of the present disclosure. As shown inFIG. 10 , the actual data content reported by the exporter indicates that a template ID corresponding to the data is 258. A result of parsing the data according to the template is that a manner of carrying the top slice ID in a packet is that the top slice ID is carried in the last 8 bits of an IPv6 Flow Label, and therefore the top slice ID is 127 according to the Flow Label; a second layer slice ID of the packet is 129, and a slice ID type is FA-ID. - In a case where a slice structure having more than two layers exists, a similar method may be used to define relevant new elements such as networksliceID3 and networksliceID4.
- It should be noted that, the data structure and the data content described in the embodiments of the present disclosure are not used to limit the actual transmission format. During actual data transmission, other formats such as XML may be used, but the data structure and the data content may be consistent.
- In addition to the slice identifier type, the slice identifier, and the carrying position of the slice identifier in a packet that are mentioned in the embodiments, the slice information may also be other packet content related to a slice or content in a local table entry of a device, for example, a forwarding queue corresponding to the slice. Similarly, a new element or element type needs to be defined to carry and report a corresponding template and data.
- In order to facilitate understanding of the embodiments of the present disclosure, the abbreviations and full English names of related terms are provided. Table 1 is a related technical term table, as shown in Table 1:
-
TABLE 1 Acronym Full Name ID Identifier SR Segment Routing SID Segment Identifier IGP Interior Gateway Protocol BGP Border Gateway Protocol LDP Label Distribution Protocol IPFIX IP Flow Information Export FA Flex-algorithm XML Extensible Markup Language - Through the description of the foregoing embodiments, a person having ordinary skill in the art may clearly understand that the method according to the foregoing embodiments may be implemented by software in addition to a necessary universal hardware platform, and definitely may also be implemented by hardware. However, in many cases, the former is a better implementation. Based on such understanding, the essence of the technical solutions of the embodiments of the present disclosure or the part contributing to the related art may be embodied in the form of a software product. The computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, or an optical disk), and includes several instructions for instructing a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method of the embodiments of the present disclosure.
- The embodiments further provide an apparatus for determining slice information.
FIG. 11 is a structure diagram I of a device for determining slice information according to the embodiments of the present disclosure. As shown inFIG. 11 , the apparatus includes: -
- a
receiving module 1102, configured to receive an initial packet; - a first determining
module 1104, configured to determine, from pre-configured templates, a target template matching the initial packet, where the target template contains a target format of target slice information of a target slice associated with the initial packet; - a
generating module 1106, configured to generate a target packet based on the initial packet and the target template, where the target packet contains the target slice information in the target format; and - a
first sending module 1108, configured to send the target packet to a receiving end to instruct the receiving end to execute following operations: parsing the target packet based on the target template, so as to determine the target slice information.
- a
- In an exemplary embodiment, the first determining
module 1104 includes: a comparing unit, configured to compare the target slice information with first slice information contained in a first template to obtain a comparison result, where the first template is any template in the pre-configured templates, and the comparison result indicates whether the target slice information contains the first slice information; and a first determining unit, configured to, in a case where the comparison result indicates that the target slice information contains the first slice information, determine that the first template is the target template. - In an exemplary embodiment, the apparatus further includes: a first comparing module, configured to compare the target template with a local table entry before generating the target packet based on the initial packet and the target template, so as to obtain a second comparison result, where the second comparison result indicates whether the target template matches the local table entry, and the local table entry is used for recording a correspondence between a packet and slice information; and the
generating module 1106 includes: a generating unit, configured to, in a case where the second comparison result indicates that the target template matches the local table entry, generate the target packet based on the initial packet and the target template. - In an exemplary embodiment, the apparatus may further include: a second sending module, configured to send the target template to the receiving end before sending the target packet to the receiving end; and the
first sending module 1108 includes: a sending unit, configured to send the target packet carrying an identifier of the target template to the receiving end. - In an exemplary embodiment, the target slice information may include at least one of: a slice identifier type of the target slice; a slice identifier of the target slice; a carrying position of a slice identifier of the target slice in the target packet; and content of a slice forwarding entry corresponding to the target slice.
- The embodiments further provide a device for determining slice information.
FIG. 12 is a structure diagram II of a device for determining slice information according to the embodiments of the present disclosure. As shown inFIG. 12 , the apparatus includes: -
- a first acquiring
module 1202, configured to acquire a target packet from a sending end, where the target packet is generated based on an initial packet and a target template matching the initial packet, the target template contains a target format of target slice information of a target slice associated with the initial packet, and the target packet contains the target slice information in the target format; - a second determining
module 1204, configured to determine the target template based on the target packet; and - a third determining
module 1206, configured to parse the target packet based on the target template to determine the target slice information.
- a first acquiring
- In an exemplary embodiment, the apparatus may further include: a second acquiring module, configured to acquire the target template from the sending end before acquiring the target packet from the sending end; and the second determining
module 1204 includes: a second determining unit, configured to determine an identifier of the target template carried in the target packet, and determine the target template based on the identifier of the target template. - In an exemplary embodiment, the third determining
module 1206 may include: a third determining unit, configured to determine the target format of the target slice information contained in the target template; a fourth determining unit, configured to parse the target packet based on the target format to determine the target slice information contained in the target packet. - In an exemplary embodiment, the target slice information may include at least one of: a slice identifier type of the target slice; a slice identifier of the target slice; a carrying position of a slice identifier of the target slice in the target packet; and content of a slice forwarding entry corresponding to the target slice.
- In an exemplary embodiment, the fourth determining unit includes at least one of: a first acquiring subunit, configured to, in a case where the target format indicates that the target slice information includes the slice identifier of the target slice, the target packet based on the target format to obtain the slice identifier contained in the target slice information; a second acquiring subunit, configured to, in a case where the target format indicates that the target slice information includes a carrying manner of the slice identifier of the target slice in the target packet, parse the target packet based on the target format to obtain the target slice information, and acquire the slice identifier carried in the target packet in the carrying manner; a third acquiring subunit, configured to, in a case where the target format indicates that the target slice information includes a carrying manner of the slice identifier of the target slice in the target packet and a slice identifier field of the target slice, parse the target packet based on the target format to obtain the slice identifier carried in the target packet in the carrying manner and the slice identifier indicated by the slice identifier field; and a fourth acquiring subunit, configured to, in a case where the target format indicates that the target slice information is multi-layer slice information, parse the target packet based on the target format to obtain slice information of each layer.
- In an exemplary embodiment, the apparatus may further include: a second comparing module, configured to, after parsing the target packet based on the target format to obtain the slice identifier carried in the target packet in the carrying manner and the slice identifier indicated by the slice identifier field, compare whether the slice identifier carried in the target packet is consistent with a slice identifier indicated by the slice identifier field; and a fourth determining module, configured to determine that a local table entry of the sending end is abnormal in a case where the slice identifier carried in the target packet is inconsistent with the slice identifier indicated by the slice identifier field, where the slice identifier field is determined by the sending end based on the local table entry.
- It should be noted that each module may be implemented by software or hardware. The latter may be implemented in the following manner, but is not limited thereto. All the modules are located in a same processor; alternatively, the modules are located in different processors in an arbitrary combination.
- The embodiments of the present disclosure also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program, where the computer program, when running on a processor, causes the processor to execute the operations in any one of the described method embodiments.
- In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, any medium that can store a computer program, such as a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disc.
- The embodiments of the present disclosure further provide an electronic device, including a memory and a processor. The memory stores a computer program. The processor is configured to run the computer program to execute operations in any one of the method embodiments.
- In an exemplary embodiment, the electronic device may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
- For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary embodiments, and details are not repeatedly described in this embodiment.
- By means of the embodiments provided in the present disclosure, the mechanism of IPFIX can be expanded, so that the IPFIX can support carrying relevant slice information in a collection packet, thereby enabling operations, such as statistical calculation and monitoring, to be performed on traffic in a slice dimension. The solution can support a single-layer and hierarchical network slice structure, and can support information collection under a plurality of slice information carrying manners, including for example the slice information being carried in a packet, being carried in a local table entry, and being carried in the packet and the local table entry at the same time. Furthermore, the comparison between a slice identifier in a packet and a slice identifier in a local table entry can also be supported.
- Obviously, those having ordinary skill in the art should understand that each module or each operation of the present disclosure may be implemented by a universal computing device, and the modules or operations may be concentrated on a single computing device or distributed on a network formed by a plurality of computing devices, and may be implemented by program codes executable for the computing devices, so that the modules or operations may be stored in a storage device for execution with the computing devices. The shown or described operations may be executed in sequences different from those described here in some cases. The shown or described modules or operations may form respective integrated circuit modules, or multiple modules or operations therein may form a single integrated circuit module for implementation. As such, the present disclosure is not limited to any particular hardware and software combination.
- The foregoing descriptions are merely exemplary embodiments of the present disclosure, but are not intended to limit the present disclosure. For those having ordinary skill in the art, the present disclosure may have various modifications and variations. Any modifications, equivalent replacements, improvements and the like made within the principle of the present disclosure shall belong to the scope of protection defined by the appended set of claims of the present disclosure.
Claims (22)
1. A method for determining slice information, comprising:
receiving an initial packet;
determining, from pre-configured templates, a target template matching the initial packet, wherein the target template contains a target format of target slice information of a target slice associated with the initial packet;
generating a target packet based on the initial packet and the target template, wherein the target packet contains the target slice information in the target format; and
sending the target packet to a receiving end to instruct the receiving end to execute following operations: parsing the target packet based on the target template, so as to determine the target slice information.
2. The method according to claim 1 , wherein determining, from the pre-configured templates, the target template matching the initial packet comprises:
comparing the target slice information with first slice information contained in a first template to obtain a comparison result, wherein the first template is any template in the pre-configured templates, and the comparison result indicates whether the target slice information contains the first slice information; and
in a case where the comparison result indicates that the target slice information contains the first slice information, determining that the first template is the target template.
3. The method according to claim 1 , wherein
before generating the target packet based on the initial packet and the target template, the method further comprises: comparing the target template with a local table entry to obtain a second comparison result, wherein the second comparison result indicates whether the target template matches the local table entry, and the local table entry is used for recording a correspondence between a packet and slice information; and
generating the target packet based on the initial packet and the target template comprises: in a case where the second comparison result indicates that the target template matches the local table entry, generating the target packet based on the initial packet and the target template.
4. The method according to claim 1 , wherein
before sending the target packet to the receiving end, the method further comprises: sending the target template to the receiving end; and
sending the target packet to the receiving end comprises: sending the target packet carrying an identifier of the target template to the receiving end.
5. The method according to claim 1 , wherein the target slice information comprises at least one of:
a slice identifier type of the target slice;
a slice identifier of the target slice;
a carrying position of a slice identifier of the target slice in the target packet; and
content of a slice forwarding entry corresponding to the target slice.
6. A method for determining slice information, comprising:
acquiring a target packet from a sending end, wherein the target packet is generated based on an initial packet and a target template matching the initial packet, the target template contains a target format of target slice information of a target slice associated with the initial packet, and the target packet contains the target slice information in the target format;
determining the target template based on the target packet; and
parsing the target packet based on the target template to determine the target slice information.
7. The method according to claim 6 , wherein
before acquiring the target packet from the sending end, the method further comprises: acquiring the target template from the sending end; and
determining the target template based on the target packet comprises: determining an identifier of the target template carried in the target packet, and determining the target template based on the identifier of the target template.
8. The method according to claim 6 , wherein parsing the target packet based on the target template to determine the target slice information comprises:
determining the target format of the target slice information contained in the target template; and
parsing the target packet based on the target format to determine the target slice information contained in the target packet.
9. The method according to claim 6 , wherein the target slice information comprises at least one of:
a slice identifier type of the target slice;
a slice identifier of the target slice;
a carrying position of a slice identifier of the target slice in the target packet; and
content of a slice forwarding entry corresponding to the target slice.
10. The method according to claim 9 , wherein parsing the target packet based on the target format to determine the target slice information contained in the target packet comprises at least one of:
in a case where the target format indicates that the target slice information comprises the slice identifier of the target slice, parsing the target packet based on the target format to obtain the slice identifier contained in the target slice information;
in a case where the target format indicates that the target slice information comprises a carrying manner of the slice identifier of the target slice in the target packet, parsing the target packet based on the target format to obtain the target slice information, and acquiring the slice identifier carried in the target packet in the carrying manner;
in a case where the target format indicates that the target slice information comprises a carrying manner of the slice identifier of the target slice in the target packet and a slice identifier field of the target slice, parsing the target packet based on the target format to obtain the slice identifier carried in the target packet in the carrying manner and the slice identifier indicated by the slice identifier field; and
in a case where the target format indicates that the target slice information is multi-layer slice information, parsing the target packet based on the target format to obtain slice information of each layer.
11. The method according to claim 10 , wherein after parsing the target packet based on the target format to obtain the slice identifier carried in the target packet in the carrying manner and the slice identifier indicated by the slice identifier field, the method further comprises:
comparing whether the slice identifier carried in the target packet is consistent with a slice identifier indicated by the slice identifier field; and
in a case where the slice identifier carried in the target packet is inconsistent with the slice identifier indicated by the slice identifier field, determining that a local table entry of the sending end is abnormal, wherein the slice identifier field is determined by the sending end based on the local table entry.
12. (canceled)
13. (canceled)
14. A non-transitory computer-readable storage medium, the computer-readable storage medium storing program, wherein the program, when running on a processor, causes the processor to execute the method according to claim 1 .
15. An electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the method according to claim 1 when running the computer program.
16. The method according to claim 1 , wherein
before sending the target packet to the receiving end, the method further comprises: sending the pre-configured templates to the receiving end; and
sending the target packet to the receiving end comprises: sending the target packet carrying an identifier of the target template to the receiving end.
17. The method according to claim 1 , wherein the target slice information comprises at least one of: a next hop of a slice forwarding entry, and a queue of the slice forwarding entry.
18. The method according to claim 6 , wherein
before acquiring the target packet from the sending end, the method further comprises: acquiring pre-configured templates of the sending end from the sending end, wherein the target template is a template matching the initial packet and determined from the pre-configured templates; and
determining the target template based on the target packet comprises: determining an identifier of the target template carried in the target packet, and determining the target template based on the identifier of the target template.
19. The method according to claim 6 , wherein the target slice information comprises at least one of: a next hop of a slice forwarding entry, and a queue of the slice forwarding entry.
20. The method according to claim 6 , further comprising:
sending the target slice information to an analyzer for subsequent processing, wherein the subsequent processing comprises at least one of: slice-based accounting, visualization of slice topology and real-time usage.
21. A non-transitory computer-readable storage medium, the computer-readable storage medium storing program, wherein the program, when running on a processor, causes the processor to execute the method according to claim 6 .
22. An electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the method according to claim 6 when running the computer program.
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110668840.5A CN115484183A (en) | 2021-06-16 | 2021-06-16 | Method and device for determining slice information, storage medium and electronic device |
CN202110668840.5 | 2021-06-16 | ||
PCT/CN2022/096437 WO2022262574A1 (en) | 2021-06-16 | 2022-05-31 | Method and apparatus for determining slice information, and storage medium and electronic apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
US20240129233A1 true US20240129233A1 (en) | 2024-04-18 |
Family
ID=84420135
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US18/275,640 Pending US20240129233A1 (en) | 2021-06-16 | 2022-05-31 | Method and apparatus for determining slice information, storage medium, and electronic device |
Country Status (4)
Country | Link |
---|---|
US (1) | US20240129233A1 (en) |
EP (1) | EP4358483A1 (en) |
CN (1) | CN115484183A (en) |
WO (1) | WO2022262574A1 (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109586938B (en) * | 2017-09-29 | 2020-10-23 | 华为技术有限公司 | Method and device for generating instance service topology |
JP2021016012A (en) * | 2017-10-13 | 2021-02-12 | 株式会社Nttドコモ | Subnet information generation device and subnet information generation method |
CN108770016B (en) * | 2018-06-04 | 2019-07-05 | 北京邮电大学 | 5G end to end network slice generation method and device based on template |
CN111050361B (en) * | 2018-10-12 | 2023-07-25 | ***通信有限公司研究院 | Message transmission method, device and system |
CN113507416B (en) * | 2018-10-27 | 2022-05-10 | 华为技术有限公司 | Message processing method, related equipment and computer storage medium |
US11444835B2 (en) * | 2019-09-06 | 2022-09-13 | Wipro Limited | System and method of maintenance of network slice templates for slice orchestration |
-
2021
- 2021-06-16 CN CN202110668840.5A patent/CN115484183A/en active Pending
-
2022
- 2022-05-31 WO PCT/CN2022/096437 patent/WO2022262574A1/en active Application Filing
- 2022-05-31 EP EP22824054.5A patent/EP4358483A1/en active Pending
- 2022-05-31 US US18/275,640 patent/US20240129233A1/en active Pending
Also Published As
Publication number | Publication date |
---|---|
WO2022262574A1 (en) | 2022-12-22 |
CN115484183A (en) | 2022-12-16 |
EP4358483A1 (en) | 2024-04-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3958521A1 (en) | Method and apparatus for providing service for service flow | |
US11095546B2 (en) | Network device service quality detection method and apparatus | |
CN105024985B (en) | A kind of message processing method and device | |
US7839847B2 (en) | Methods and apparatus providing VPN traffic matrix construction | |
CN110178342B (en) | Scalable application level monitoring of SDN networks | |
US12021741B2 (en) | Packet measurement method, device, and system | |
US20220278904A1 (en) | Method, Apparatus, and System for Sending Packet and Receiving Packet to Perform OAM | |
US20220407791A1 (en) | Network performance detection method and apparatus, and network device | |
CN101159656B (en) | Packet sampling method, system and equipment | |
US11190417B2 (en) | Methods, systems, and computer readable media for processing network flow metadata at a network packet broker | |
US10523536B2 (en) | Length control for packet header sampling | |
WO2018150223A1 (en) | A method and system for identification of traffic flows causing network congestion in centralized control plane networks | |
CN113746654A (en) | IPv6 address management and flow analysis method and device | |
US20240098019A1 (en) | Packet Processing Method and Related Device | |
US20230421480A1 (en) | Route Processing Method and Network Device | |
WO2022009176A1 (en) | Cell accessibility prediction and actuation | |
US11032184B2 (en) | Method and device for collecting traffic flow value of BGP community attribute or BGP extended community attribute | |
US20230327983A1 (en) | Performance measurement in a segment routing network | |
CN112787930B (en) | Method, device and storage medium for monitoring running state of peer | |
US20240129233A1 (en) | Method and apparatus for determining slice information, storage medium, and electronic device | |
US11582156B2 (en) | Traffic detection method, apparatus, and system | |
WO2023093227A1 (en) | Information collection method and apparatus, and storage medium and electronic apparatus | |
US20240163208A1 (en) | Packet processing method and apparatus, and storage medium and electronic apparatus | |
WO2022227788A1 (en) | Method and device for collecting network slice resource information, and storage medium | |
WO2023240438A1 (en) | Packet processing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: ZTE CORPORATION, CHINA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:LIU, YAO;REEL/FRAME:064478/0662 Effective date: 20230601 |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION |