CN116527559B - Message forwarding processing and sending method, device, equipment and medium for network slice - Google Patents

Message forwarding processing and sending method, device, equipment and medium for network slice Download PDF

Info

Publication number
CN116527559B
CN116527559B CN202310800362.8A CN202310800362A CN116527559B CN 116527559 B CN116527559 B CN 116527559B CN 202310800362 A CN202310800362 A CN 202310800362A CN 116527559 B CN116527559 B CN 116527559B
Authority
CN
China
Prior art keywords
message
slice
forwarding
source address
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.)
Active
Application number
CN202310800362.8A
Other languages
Chinese (zh)
Other versions
CN116527559A (en
Inventor
孙嘉琪
杨广铭
刘志华
蓝双凤
袁雪敬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202310800362.8A priority Critical patent/CN116527559B/en
Publication of CN116527559A publication Critical patent/CN116527559A/en
Application granted granted Critical
Publication of CN116527559B publication Critical patent/CN116527559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/72Routing based on the source address
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/30Routing of multiclass traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/38Flow based routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a method, a device, equipment, a medium and a program product for forwarding and sending a message of a network slice, which relate to the technical field of network technology and security. The application can provide better and more flexible granularity safety isolation for the service, and improve the utilization rate of network physical resources and more efficient channel control. The method comprises the following steps: and receiving the message, if the source address in the message header of the message comprises a preset slice prefix, acquiring a slice identifier included in the source address, if a slice channel corresponding to the slice identifier does not exist, processing the message according to a strict mode mark included in the slice identifier, and if the slice channel corresponding to the slice identifier exists, forwarding the message through the slice channel.

Description

Message forwarding processing and sending method, device, equipment and medium for network slice
Technical Field
The present application relates to the field of network technologies and security technologies, and in particular, to a method for forwarding and processing a message of a network slice, a method and apparatus for sending a message of a network slice, a network device, a storage medium, and a computer program product.
Background
With the development of private line service, the requirements on the service of the private line service are higher and higher, the requirements on flexible slicing granularity, high safety isolation and deterministic time delay and jitter guarantee are all provided, and a high-reliability and high-safety independent forwarding channel is required to be provided for clients in an IPv6/SRv6 network.
In the traditional technology, the service level Shift (SLA) of a user is ensured based on QoS or H-QoS by looking up a routing table for forwarding according to a destination address, a plurality of scheduling levels are set in the same data pipeline through a scheduling queue, and traffic entering an interface is classified and managed for a plurality of times, but the traffic cannot be isolated for multiple users or multiple services, and for the SLA of the user, the SLA of the user can be isolated through FlexE physical isolation, but the current granularity is 5Gbps at the minimum, and large pipeline level slices are deployed in a network by taking a client as a unit, so that the utilization rate of network physical resources is extremely low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method for forwarding a packet of a network slice, a method for sending a packet of a network slice, an apparatus, a network device, a storage medium, and a computer program product.
In a first aspect, the present application provides a method for forwarding and processing a message of a network slice. The method comprises the following steps:
receiving a message;
if the source address in the message header of the message comprises a preset slice prefix, acquiring a slice identifier included in the source address;
if the slice channel corresponding to the slice identifier does not exist, processing the message according to a strict mode mark included in the slice identifier;
and if the slice channel corresponding to the slice identifier exists, forwarding the message through the slice channel.
In one embodiment, the processing the packet according to the strict mode flag included in the slice identifier includes: and when the strict mode mark is a first value, forwarding the message in a best effort mode.
In one embodiment, the processing the packet according to the strict mode flag included in the slice identifier includes: and discarding the message when the strict mode mark is a second value.
In one embodiment, after obtaining the slice identifier included in the source address, the method further includes: and searching a slice channel corresponding to the slice identifier according to the slice identifier and the output interface corresponding to the message.
In one embodiment, the method further comprises: if the source address in the message header of the message does not comprise the preset slice prefix, forwarding the message through the output interface corresponding to the message.
In one embodiment, the method further comprises: and searching an output interface corresponding to the message according to the destination address in the message header of the message.
In one embodiment, after receiving the message, the method further comprises: matching a source address in a message header of the message with one or more preset slice prefixes to obtain a matching result; and determining whether a source address in a message header of the message comprises a preset slice prefix according to the matching result.
In a second aspect, the present application provides a method for sending a message of a network slice. The method comprises the following steps:
determining a preset slice prefix and a slice identifier; the slice identifier comprises a strict mode flag;
obtaining a message based on the slice prefix and the slice identifier; the source address in the message header of the message comprises the preset slice prefix and slice identifier; the message is sent to forwarding equipment; the forwarding device is configured to forward the packet according to the packet forwarding processing method of the network slice according to any one of the embodiments.
In a third aspect, the present application further provides a device for forwarding and processing a network slice. The device comprises:
the message receiving module is used for receiving the message;
the identification acquisition module is used for acquiring a slice identification included in a source address if the source address in a message header of the message comprises a preset slice prefix;
the message processing module is used for processing the message according to a strict mode mark included by the slice identifier if the slice channel corresponding to the slice identifier does not exist;
and the message forwarding module is used for forwarding the message through the slice channel if the slice channel corresponding to the slice identifier exists.
In a fourth aspect, the present application further provides a network slice message sending device. The device comprises:
the information determining module is used for determining a preset slice prefix and a preset slice identifier; the slice identifier comprises a strict mode flag;
the message obtaining module is used for obtaining a message based on the slice prefix and the slice identifier; the source address in the message header of the message comprises the preset slice prefix and slice identifier;
the message sending module is used for sending the message to the forwarding equipment;
the forwarding device is configured to forward the packet according to the packet forwarding processing method of the network slice according to any one of the embodiments.
In a fifth aspect, the present application further provides a network device. The network device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
receiving a message; if the source address in the message header of the message comprises a preset slice prefix, acquiring a slice identifier included in the source address; if the slice channel corresponding to the slice identifier does not exist, processing the message according to a strict mode mark included in the slice identifier; and if the slice channel corresponding to the slice identifier exists, forwarding the message through the slice channel.
In a sixth aspect, the present application further provides a network device. The network device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
determining a preset slice prefix and a slice identifier; the slice identifier comprises a strict mode flag; obtaining a message based on the slice prefix and the slice identifier; the source address in the message header of the message comprises the preset slice prefix and slice identifier; the message is sent to forwarding equipment; the forwarding device is configured to forward the packet according to the packet forwarding processing method of the network slice according to any one of the embodiments.
In a seventh aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving a message; if the source address in the message header of the message comprises a preset slice prefix, acquiring a slice identifier included in the source address; if the slice channel corresponding to the slice identifier does not exist, processing the message according to a strict mode mark included in the slice identifier; and if the slice channel corresponding to the slice identifier exists, forwarding the message through the slice channel.
In an eighth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
determining a preset slice prefix and a slice identifier; the slice identifier comprises a strict mode flag; obtaining a message based on the slice prefix and the slice identifier; the source address in the message header of the message comprises the preset slice prefix and slice identifier; the message is sent to forwarding equipment; the forwarding device is configured to forward the packet according to the packet forwarding processing method of the network slice according to any one of the embodiments.
In a ninth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
receiving a message; if the source address in the message header of the message comprises a preset slice prefix, acquiring a slice identifier included in the source address; if the slice channel corresponding to the slice identifier does not exist, processing the message according to a strict mode mark included in the slice identifier; and if the slice channel corresponding to the slice identifier exists, forwarding the message through the slice channel.
In a tenth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
determining a preset slice prefix and a slice identifier; the slice identifier comprises a strict mode flag; obtaining a message based on the slice prefix and the slice identifier; the source address in the message header of the message comprises the preset slice prefix and slice identifier; the message is sent to forwarding equipment; the forwarding device is configured to forward the packet according to the packet forwarding processing method of the network slice according to any one of the embodiments.
The message forwarding processing method of the network slice, the message sending method of the network slice, the device, the network equipment, the storage medium and the computer program product are used for receiving the message, if the source address in the message header of the message comprises a preset slice prefix, the slice identifier included in the source address is obtained, if the slice channel corresponding to the slice identifier does not exist, the message is processed according to the strict mode mark included in the slice identifier, and if the slice channel corresponding to the slice identifier exists, the message is forwarded through the slice channel. In the scheme, when the source address in the message header carries a preset slice prefix and a slice identifier containing a strict mode mark, the source address in the message header of the received message can be used for further acquiring the slice identifier contained in the source address during forwarding, if the slice channel corresponding to the slice identifier exists, the message is forwarded through the slice channel, if the slice channel corresponding to the slice identifier does not exist, the message is processed according to the strict mode mark contained in the slice identifier, so that the preset slice prefix and the slice identifier containing the strict mode mark can be carried through a unicast reverse path, the traffic is introduced into a resource exclusive sub-channel based on the slice identifier, the designated forwarding channel forwarding of the traffic of specific service in the network is realized, flexible and different-size granularity slice capabilities are provided for the designated forwarding channel forwarding, the better and more flexible granularity safety isolation is provided, the service pain point of opening the dedicated slice isolation channel for clients is solved, the network physical resource utilization rate is improved, the channel control is more efficient, and the method can be particularly applied to IPv6/SRv network deterministic slice application scenes, 5G special slice special line scenes and the like.
Drawings
FIG. 1 is a diagram of an application environment of a related method according to an embodiment of the present application;
FIG. 2 is a diagram illustrating a message encapsulation format according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a message structure in a source address according to an embodiment of the present application;
FIG. 4 is a diagram illustrating the definition of each field in a source address according to an embodiment of the present application;
fig. 5 is a flow chart of a message forwarding processing method of a network slice in an embodiment of the present application;
fig. 6 is a flow chart of a message forwarding method for network slices according to an embodiment of the present application;
fig. 7 is a flow chart of a method for sending a message of a network slice in an embodiment of the application;
fig. 8 is a block diagram of a packet forwarding device for network slice according to an embodiment of the present application;
FIG. 9 is a block diagram illustrating a network slice message sending apparatus according to an embodiment of the present application;
fig. 10 is an internal structural diagram of a network device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The method for forwarding and processing the message of the network slice and the method for sending the message of the network slice provided by the embodiment of the application can be applied to an application environment shown in fig. 1, wherein the application environment can comprise a message sending device and a forwarding device, and the message sending device communicates with the forwarding device through a network.
Specifically, the method for forwarding and processing the message of the network slice provided by the application can be executed by forwarding equipment, and the method for sending the message of the network slice provided by the application can be executed by the message sending equipment. The message sending device can determine a preset slice prefix and a slice identifier, the slice identifier comprises a strict mode mark, the message sending device obtains a message based on the slice prefix and the slice identifier, a source address in a message header of the message comprises the preset slice prefix and the slice identifier, the message sending device sends the message to the forwarding device, the forwarding device receives the message, if the source address in the message header of the message comprises the preset slice prefix, the forwarding device obtains the slice identifier contained in the source address, if a slice channel corresponding to the slice identifier does not exist, the forwarding device processes the message according to the strict mode mark contained in the slice identifier, and if the slice channel corresponding to the slice identifier exists, the message is forwarded through the slice channel. Therefore, in the method provided by the application, the source address in the message header can be utilized to carry the preset slice prefix and the slice identifier containing the strict mode mark, when the source address in the message header of the received message contains the preset slice prefix in forwarding, the slice identifier contained in the source address can be further acquired, if the slice channel corresponding to the slice identifier exists, the message is forwarded through the slice channel, and if the slice channel corresponding to the slice identifier does not exist, the message is processed according to the strict mode mark contained in the slice identifier, so that the preset slice prefix and the slice identifier containing the strict mode mark can be carried through a unicast reverse path, the flow is introduced into the exclusive sub-channel based on the slice identifier, the designated forwarding channel for the flow of specific service in the network is realized, the flexible and different-size granularity slice capability is provided, the better and more flexible granularity security isolation is provided, the service pain point of opening the exclusive slice isolation channel for the client is solved, the network physical resource utilization rate is improved, the channel control is more efficient, and the method can be applied to IPv6/SRv network slice forwarding special scene application scenes, 5G special scene application scenes and the like.
In a specific implementation, the message in the method provided by the application can be an IPv6 message, as shown in fig. 2, a preset slice prefix and a slice identifier containing a Strict mode Flag (struct-Flag) can be carried at a source address (SA, sourceAddress) of the IPv6 message, the source address of the IPv6 message can also carry a node identifier and a filler, and for the allocation of 128 bits (bits) of the source address, in combination with fig. 3, the slice prefix 48-bit, the node identifier 32-bit, the filler 16-bit and the slice identifier 32-bit containing the Strict mode Flag (struct-Flag, SF) can be allocated in sequence, that is, for a specific unicast reverse path, the slice identifier 32-bit containing the Strict mode Flag (struct-Flag) can be carried by using the low 32 bits (96 th bit-128 bits) of the source address in the IPv6 message, for forwarding resources (line card bandwidth and switching network resources) of forwarding equipment, the forwarding resources (line card bandwidth and switching network resources) can be managed and scheduled in a centralized manner according to container resources, each node can reserve the forwarding resources (line card bandwidth and switching network resources) based on slice identifiers, and end-to-end centralized management and scheduling according to container resources can provide a more flexible and safer isolation channel technology, when forwarding, when a source address in a message header of a received message contains a preset slice prefix, traffic can be introduced into a resource exclusive sub-channel based on slice identifiers, specified forwarding channel forwarding of traffic for specific services in a network can be realized, and forwarding actions after entering the specified forwarding channel can be determined through a 96 th bit custom Strict mode Flag (struct-Flag) in figure 3, the slice prefix of the source address and the node identifier in the header of the IPv6 message can form a routable prefix, the routable prefix can be advertised by the IGP for source address routing addressing among devices, and the devices can identify and reserve the line card bandwidth and the switching network resources according to the slice identifier. With respect to the source address, as previously described, the source address may include a slice prefix, a node identifier, a padding, and a slice identifier including a Strict mode Flag (stract-Flag, SF), the length of the slice prefix may be set to 48 bits, the slice prefix of each specific region (e.g., province) may be the same, the planned length may be 46 bits, bits 47-48 may be zero-padded, the slice prefix may be used for a device to identify whether the source address carries the slice identifier, support planning of multiple slice prefixes, the length of the node identifier may be set to 32 bits, the source address identifier may be used to distinguish different devices, the padding length may be set to 16 bits, the length of the slice identifier may be set to 32 bits when the total length of the slice prefix and the node identifier is less than 96, the length of the slice identifier may be set to 32 bits, the slice identifier may be located at the lower 32 bits of the IPv6 source address, the highest bit (the first bit of the lower 32 bits) may be used as the Strict mode Flag (stract-Flag, SF), and the lower 31 bits may be used to find the corresponding slice interface or subchannel (i.e., forwarding channel).
Based on this, in one embodiment, a method for forwarding a packet of a network slice is provided, where the method may be applied to a forwarding device as in fig. 1, and the method may include the following steps:
step S501, a message is received.
Step S502, if the source address in the header of the message includes a preset slice prefix, the slice identifier included in the source address is obtained.
In steps S501 and S502, the forwarding device may receive a message from the message sending device, and if the forwarding device detects that the source address in the header of the message includes a preset slice prefix, the forwarding device may further obtain a slice identifier included in the source address in the header of the message, where the slice identifier includes a strict mode flag.
Step S503, if the slice channel corresponding to the slice identifier does not exist, the message is processed according to the strict mode mark included in the slice identifier.
Step S504, if the slice channel corresponding to the slice identifier exists, the message is forwarded through the slice channel.
In the above steps S503 and S504, after obtaining the slice identifier included in the source address in the header of the packet, the forwarding device may search the slice channel corresponding to the slice identifier.
For a slice channel, in one embodiment, after obtaining the slice identifier included in the source address, the method of the present application may further include the steps of: and searching a slice channel corresponding to the slice identifier according to the slice identifier and the output interface corresponding to the message. Specifically, referring to fig. 4, the forwarding device may search a corresponding slice resource interface or sub-channel (i.e., a slice channel corresponding to a slice identifier) according to the low 31 bits in the source address and the output interface corresponding to the message.
Further, if the slice channel corresponding to the slice identifier exists, the forwarding device forwards the message through the slice channel, and at this time, the forwarding device can further determine forwarding action/forwarding control after entering the slice channel according to the strict mode identifier included in the slice identifier; if the slice channel corresponding to the slice identifier does not exist, the forwarding device processes the message according to the strict mode mark included by the slice identifier.
In one embodiment, the processing the packet according to the strict mode flag included in the slice identifier in step S503 may include: when the strict mode flag is the first value, the message is forwarded in a best effort manner. In particular, the first value may be 0, i.e. in case the strict mode flag is 0 when the slicing channel is not present, the forwarding device forwards the message in a best effort manner.
In one embodiment, the processing of the message according to the strict mode flag included in the slice identifier in step S503 may further include: and discarding the message when the strict mode flag is a second value. In particular, the second value may be 1, i.e. when the slice channel is not present, the forwarding device may discard the message in case the strict mode flag is 1.
The method for forwarding the message of the network slice can further acquire the slice identifier included in the source address when the source address in the message header of the received message contains the preset slice prefix, forwards the message through the slice channel if the slice channel corresponding to the slice identifier exists, processes the message according to the strict mode identifier included in the slice identifier if the slice channel corresponding to the slice identifier does not exist, so that the preset slice prefix and the slice identifier containing the strict mode identifier can be carried by a unicast reverse path, the flow is introduced into a resource monopolizing sub-channel based on the slice identifier, the designated forwarding channel forwarding of the flow aiming at specific service in the network is realized, the flexible and different-size slice capability is provided for the specific forwarding sub-channel, the better and more flexible granularity security isolation is provided, the service pain point of opening the dedicated slice isolation channel for clients is solved, the network physical resource utilization rate is improved, the channel control is more efficient, and the method can be particularly applied to the scenes such as IPv6/SRv network deterministic forwarding application scenes and 5G slice special line scenes.
For forwarding the message, in one embodiment, the method of the present application may further include the following steps: if the source address in the message header of the message does not comprise the preset slice prefix, the message is forwarded through the outgoing interface corresponding to the message. In this embodiment, after receiving a message, if the forwarding device detects that the source address in the header of the message does not include a preset slice prefix, the forwarding device forwards the message through the outgoing interface corresponding to the message.
In one embodiment, the method of the present application may further comprise the steps of: and searching an output interface corresponding to the message according to the destination address in the message header of the message.
In this embodiment, after receiving a message, the forwarding device may find an output interface corresponding to the message according to a destination address in a header of the message, so as to forward the message through the output interface when detecting that a source address in the header of the message does not include a preset slice prefix, and find a corresponding slice channel in combination with a slice identifier when the source address in the header of the message includes the preset slice prefix.
In one embodiment, the method of the present application may further comprise the steps of:
matching a source address in a message header of a message with one or more preset slice prefixes to obtain a matching result; and determining whether the source address in the message header of the message comprises a preset slice prefix according to the matching result.
In this embodiment, the forwarding device may obtain one or more preset slice prefixes, where the slice prefixes may be planned in advance by related personnel, so that, when the forwarding device receives a packet, a source address in a header of an IPv6 packet may carry the preset slice prefix, the packet is parsed, and the source address in the header of the IPv6 packet is matched with the one or more preset slice prefixes to obtain a matching result, and whether the packet is a slice packet or not is identified according to the matching result, that is, whether the source address in the header of the packet includes the preset slice prefix or not.
As a specific embodiment, as shown in fig. 6, there is further provided a method for forwarding a packet of a network slice, including the following steps: the forwarding equipment receives the message, searches an output interface corresponding to the message according to a destination address in a message header of the message, analyzes a source address in the message header of the message, matches the source address in the message header of the message with one or more preset slice prefixes to obtain a matching result, and determines whether the source address in the message header of the message comprises the preset slice prefix according to the matching result. If the source address does not comprise the preset slice prefix, forwarding the message through an output interface corresponding to the message; if the source address in the header of the message includes a preset slice prefix, the slice identifier can be resolved from the low 32 bits in the source address, and the slice channel corresponding to the slice identifier is searched according to the slice identifier and the output interface corresponding to the message. If the slice channel corresponding to the slice identifier exists, forwarding the message through the slice channel; if the slice channel corresponding to the slice identifier does not exist, the message is forwarded in a Best Effort (BE) mode when the strict mode identifier is a first value, and the message is discarded when the strict mode identifier is a second value.
In one embodiment, as shown in fig. 7, there is further provided a method for sending a message of a network slice, where the method may be applied to a message sending device as in fig. 1, and the method may include the following steps:
step S701, determining a preset slice prefix and slice identifier.
The slice identifier includes a strict mode flag, and the strict mode flag may be set to a first value or a second value, where the first value may take 0, and the second value may take 1.
Step S702, obtaining the message based on the slice prefix and the slice identifier.
The source address in the header of the message may be provided with a slice prefix and a slice identifier, and in combination with fig. 2 and 3, the source address in the header of the message may be provided with a slice prefix, a node identifier, a filling and a slice identifier in sequence, so as to obtain a corresponding message.
Step S703, sending the message to the forwarding device.
In this step, the source address in the header may carry a preset slice prefix and a slice identifier containing a strict mode flag, and may be sent to the forwarding device, where the forwarding device may forward the packet according to the packet forwarding processing method of the network slice described in any of the foregoing embodiments.
According to the method for sending the network slice message, the source address in the message header carries the preset slice prefix and the slice identifier containing the strict mode mark, and the corresponding message is sent to the forwarding equipment, so that the forwarding equipment can further acquire the slice identifier contained in the source address according to the identification of the preset slice prefix during forwarding, and forwards the message through the slice channel when the corresponding slice channel exists, and processes the message according to the strict mode mark contained in the slice identifier when the corresponding slice channel does not exist, so that the preset slice prefix and the slice identifier containing the strict mode mark can be carried by the unicast reverse path, the flow of the specific service is introduced into the resource exclusive sub-channel, and the network service with flexible, different-size granularity slicing capability, better and more flexible granularity safety isolation can be obtained in the IPv6/SRv network deterministic slice forwarding application scene, the 5G slice private line scene and other scenes.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a message forwarding processing device for the network slice, which is used for realizing the message forwarding processing method for the network slice. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the message forwarding processing device for one or more network slices provided below may refer to the limitation of the message forwarding processing method for a network slice hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 8, a packet forwarding processing apparatus for a network slice is provided, where the apparatus 800 may include:
a message receiving module 801, configured to receive a message;
an identifier obtaining module 802, configured to obtain a slice identifier included in a source address if the source address in a header of the message includes a preset slice prefix;
a message processing module 803, configured to process the message according to a strict mode flag included in the slice identifier if the slice channel corresponding to the slice identifier does not exist;
and the message forwarding module 804 is configured to forward the message through the slice channel if the slice channel corresponding to the slice identifier exists.
In one embodiment, the packet processing module 803 is configured to forward the packet in a best effort manner when the strict mode flag is a first value.
In one embodiment, the packet processing module 803 is configured to discard the packet when the strict mode flag is a second value.
In one embodiment, the apparatus 800 further comprises: and the channel searching module is used for searching the slice channel corresponding to the slice identifier according to the slice identifier and the output interface corresponding to the message.
In an embodiment, the message forwarding module 804 may be further configured to forward the message through an output interface corresponding to the message if the source address in the header of the message does not include a preset slice prefix.
In one embodiment, the apparatus 800 further comprises: and the output interface searching module is used for searching the output interface corresponding to the message according to the destination address in the message header of the message.
In one embodiment, the apparatus 800 further comprises: the prefix matching module is used for matching the source address in the message header of the message with one or more preset slice prefixes to obtain a matching result; and determining whether a source address in a message header of the message comprises a preset slice prefix according to the matching result.
Based on the same inventive concept, the embodiment of the application also provides a network slice message sending device for realizing the above related network slice message sending method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the message sending device for one or more network slices provided below may refer to the limitation of the message sending method for a network slice hereinabove, and will not be described herein.
In one embodiment, as shown in fig. 9, a network slice messaging apparatus is provided, where the apparatus 900 may include:
the information determining module 901 is configured to determine a preset slice prefix and a slice identifier; the slice identifier comprises a strict mode flag;
a message obtaining module 902, configured to obtain a message based on the slice prefix and the slice identifier; the source address in the message header of the message comprises the preset slice prefix and slice identifier;
a message sending module 903, configured to send the message to a forwarding device;
the forwarding device is configured to forward the packet according to the packet forwarding processing method of the network slice according to any one of the embodiments.
All or part of the modules in the message forwarding processing device of the network slice and the message sending device of the network slice can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or independent of a processor in the network device, or may be stored in software in a memory in the network device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a network device is provided, which may be used as a messaging device, a forwarding device, and an internal structure of the network device may be as shown in fig. 10. The network device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the network device is configured to provide computing and control capabilities. The memory of the network device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium may store an operating system, a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the network device is used to exchange information between the processor and the external device. The communication interface of the network device is used for communicating with an external device through a network connection. The computer program is executed by a processor to realize a message forwarding processing method of a network slice and a message sending method of the network slice.
It will be appreciated by those skilled in the art that the architecture shown in fig. 10 is merely a block diagram of a portion of the architecture associated with the inventive arrangements and is not limiting as to the network device to which the inventive arrangements are applied, and that a particular network device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a network device is provided, including a memory having a computer program stored therein and a processor, which when executing the computer program performs the steps of the method embodiments described above.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (9)

1. The message forwarding processing method for the network slice is characterized by comprising the following steps:
receiving a message;
matching a source address in a message header of the message with one or more preset slice prefixes to obtain a matching result; determining whether a source address in a message header of the message comprises a preset slice prefix according to the matching result; wherein the slice prefix is obtained by planning in advance;
if the source address in the message header of the message comprises a preset slice prefix, acquiring a slice identifier included in the source address; the slice prefix is used for identifying whether the source address carries a slice identifier;
if the slice channel corresponding to the slice identifier does not exist, processing the message according to a strict mode mark included in the slice identifier; the processing the message according to the strict mode mark included in the slice identifier includes: when the strict mode mark is a first value, forwarding the message in a best effort mode;
if the slice channel corresponding to the slice identifier exists, forwarding the message through the slice channel;
if the source address in the message header of the message does not comprise the preset slice prefix, forwarding the message through the output interface corresponding to the message.
2. The method of claim 1, wherein the processing the message according to the strict mode flag included in the slice identifier comprises:
and discarding the message when the strict mode mark is a second value.
3. The method according to any one of claims 1 to 2, wherein after obtaining the slice identity comprised by the source address, the method further comprises:
and searching a slice channel corresponding to the slice identifier according to the slice identifier and the output interface corresponding to the message.
4. The method according to claim 1, wherein the method further comprises:
and searching an output interface corresponding to the message according to the destination address in the message header of the message.
5. A method for sending a message of a network slice, the method comprising:
determining a preset slice prefix and a slice identifier; the slice identifier comprises a strict mode flag;
obtaining a message based on the slice prefix and the slice identifier; the source address in the message header of the message comprises the preset slice prefix and slice identifier;
the message is sent to forwarding equipment;
the forwarding device is configured to forward the packet according to the packet forwarding processing method of the network slice according to any one of claims 1 to 4.
6. A message forwarding processing device for network slicing, the device comprising:
the message receiving module is used for receiving the message;
the prefix matching module is used for matching the source address in the message header of the message with one or more preset slice prefixes to obtain a matching result; determining whether a source address in a message header of the message comprises a preset slice prefix according to the matching result; wherein the slice prefix is obtained by planning in advance;
the identification acquisition module is used for acquiring a slice identification included in a source address if the source address in a message header of the message comprises a preset slice prefix; the slice prefix is used for identifying whether the source address carries a slice identifier;
the message processing module is used for processing the message according to a strict mode mark included by the slice identifier if the slice channel corresponding to the slice identifier does not exist; the processing the message according to the strict mode mark included in the slice identifier includes: when the strict mode mark is a first value, forwarding the message in a best effort mode;
the message forwarding module is used for forwarding the message through the slice channel if the slice channel corresponding to the slice identifier exists;
and the message forwarding module is further used for forwarding the message through an output interface corresponding to the message if the source address in the message header of the message does not comprise the preset slice prefix.
7. A message sending device for network slicing, the device comprising:
the information determining module is used for determining a preset slice prefix and a preset slice identifier; the slice identifier comprises a strict mode flag;
the message obtaining module is used for obtaining a message based on the slice prefix and the slice identifier; the source address in the message header of the message comprises the preset slice prefix and slice identifier;
the message sending module is used for sending the message to the forwarding equipment;
the forwarding device is configured to forward the packet according to the packet forwarding processing method of the network slice according to any one of claims 1 to 4.
8. A network device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 4 or of claim 5 when the computer program is executed.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 4 or of claim 5.
CN202310800362.8A 2023-07-03 2023-07-03 Message forwarding processing and sending method, device, equipment and medium for network slice Active CN116527559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310800362.8A CN116527559B (en) 2023-07-03 2023-07-03 Message forwarding processing and sending method, device, equipment and medium for network slice

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310800362.8A CN116527559B (en) 2023-07-03 2023-07-03 Message forwarding processing and sending method, device, equipment and medium for network slice

Publications (2)

Publication Number Publication Date
CN116527559A CN116527559A (en) 2023-08-01
CN116527559B true CN116527559B (en) 2023-09-29

Family

ID=87398020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310800362.8A Active CN116527559B (en) 2023-07-03 2023-07-03 Message forwarding processing and sending method, device, equipment and medium for network slice

Country Status (1)

Country Link
CN (1) CN116527559B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117955908A (en) * 2024-03-27 2024-04-30 之江实验室 NDN network slicing method, device, equipment and medium based on SDN controller

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556784A (en) * 2021-07-29 2021-10-26 新华三技术有限公司 Network slice implementation method and device and electronic equipment
CN115334589A (en) * 2021-05-11 2022-11-11 中国移动通信有限公司研究院 Message transmission method, device, related equipment and storage medium
WO2023016566A1 (en) * 2021-08-13 2023-02-16 中国移动通信有限公司研究院 Resource allocation method and apparatus, and network node

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334589A (en) * 2021-05-11 2022-11-11 中国移动通信有限公司研究院 Message transmission method, device, related equipment and storage medium
CN113556784A (en) * 2021-07-29 2021-10-26 新华三技术有限公司 Network slice implementation method and device and electronic equipment
WO2023016566A1 (en) * 2021-08-13 2023-02-16 中国移动通信有限公司研究院 Resource allocation method and apparatus, and network node

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
The BGP Tunnel Encapsulation Attribute;K. Patel等;IETF RFC 9012;全文 *

Also Published As

Publication number Publication date
CN116527559A (en) 2023-08-01

Similar Documents

Publication Publication Date Title
CN111512601B (en) Segmented routing network processing of packets
CN111628995A (en) SID compression method, SID compression device, SID compression equipment and storage medium based on SRv6
CN108259347B (en) Message transmission method and device
CN108768866B (en) Cross-card forwarding method and device for multicast message, network equipment and readable storage medium
CN106878194B (en) Message processing method and device
CN107547391B (en) Message transmission method and device
CN111510386B (en) Method and device for processing message
CN108989209B (en) BIER MPLS network equipment, message forwarding method and medium thereof
CN106713144B (en) Reading and writing method of message outlet information and forwarding engine
CN116527559B (en) Message forwarding processing and sending method, device, equipment and medium for network slice
EP3278513A1 (en) Transforming a service packet from a first domain to a second domain
CN112511988B (en) Message forwarding method, device, system, network device and storage medium
CN112311643B (en) EVPN message forwarding method, system, storage medium and terminal
US20240106751A1 (en) Method and apparatus for processing detnet data packet
CN107547346B (en) Message transmission method and device
CN115280745B (en) Stream following detection method and electronic equipment
CN107086960B (en) Message transmission method and device
CN110661713B (en) Message forwarding method and device
CN106230730B (en) Multicast transmission method and device
CN112087389B (en) Message matching table look-up method, system, storage medium and terminal
US20230254246A1 (en) Mechanisms for packet path tracing and per-hop delay measurement in segment routing with multiprotocol label switching (sr-mpls) networks
CN108777654B (en) Message forwarding method and routing equipment
Lo et al. Flow entry conflict detection scheme for software-defined network
US11483899B2 (en) Network system that processes data generated by data generation device, communication control device, and communication control method
JP2016103697A (en) Network system, control device, communication device, control method and program for communication device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant