CN117914782A - Information processing method, device, equipment and medium - Google Patents

Information processing method, device, equipment and medium Download PDF

Info

Publication number
CN117914782A
CN117914782A CN202410095849.5A CN202410095849A CN117914782A CN 117914782 A CN117914782 A CN 117914782A CN 202410095849 A CN202410095849 A CN 202410095849A CN 117914782 A CN117914782 A CN 117914782A
Authority
CN
China
Prior art keywords
srv
searching
service message
service
information processing
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
Application number
CN202410095849.5A
Other languages
Chinese (zh)
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.)
Suzhou Centec Communications Co Ltd
Original Assignee
Suzhou Centec Communications Co 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 Suzhou Centec Communications Co Ltd filed Critical Suzhou Centec Communications Co Ltd
Priority to CN202410095849.5A priority Critical patent/CN117914782A/en
Publication of CN117914782A publication Critical patent/CN117914782A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides an information processing method, an information processing device, information processing equipment and an information processing medium, and relates to the technical field of Internet, wherein the method comprises the following steps: and obtaining SRv-TE service message to be processed, and analyzing SRv-TE service message to obtain Internet protocol destination address and segment identifier of segment route message header of SRv-TE service message. And searching for the searching states corresponding to the SRv-TE service message based on the Internet protocol destination address and the segment identifier respectively, so as to determine the processing logic corresponding to the SRv-TE service message according to the searching states. Thereby conveniently realizing SRv-TE service message processing.

Description

Information processing method, device, equipment and medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to an information processing method, apparatus, device, and medium.
Background
The services of the IPv6 source routes (Segment Routing IPv, SRv) are divided into SRv BE and SRv TE, and researches show that SRv TE services are inconvenient to realize in the decapsulation process, and the reliability is required to BE improved.
Disclosure of Invention
One of the purposes of the present invention includes, for example, providing an information processing method, apparatus, device, and medium to at least partially improve convenience and reliability of implementing SRv TE traffic in a decapsulation process.
Embodiments of the invention may be implemented as follows:
in a first aspect, the present invention provides an information processing method, including:
Obtaining SRv-TE service messages to be processed;
Analyzing the SRv-TE service message to obtain an Internet protocol destination address and a segment identifier of a segment routing message header of the SRv-TE service message;
Searching and obtaining the searching state corresponding to the SRv-TE service message based on the Internet protocol destination address and the segment identifier respectively;
And determining processing logic corresponding to the SRv-TE service message according to each searching state.
In an alternative embodiment, the parsing the SRv-TE service packet to obtain the ip destination address and the segment identifier of the segment routing header of the SRv-TE service packet includes:
Analyzing the SRv-TE service message to obtain an Internet protocol destination address of the SRv-TE service message, wherein the Internet protocol destination address is marked as IPDA;
under the condition that the value of NextHeader fields of the message Header is a first set value, taking out the Routing Type from the Routing Header; the first set value is used for representing that the SRv-TE service message carries a Routing Header;
Taking out SID [0] from SRH under the condition that the Routing Type is the second set value, and taking SID [0] of the SRH as a segment identifier of the segment Routing message header; wherein the second set point is used for characterizing the SRH format.
In an optional embodiment, the searching for the searching state corresponding to the SRv-TE service packet based on the internet protocol destination address and the segment identifier includes:
Searching whether the SRv-TE service message corresponds to a first searching result or not based on the IPDA;
And searching whether the SRv-TE service message corresponds to a second searching result or not based on the SID [0] of the SRH.
In an optional implementation manner, the searching whether the SRv-TE service packet corresponds to the first search result based on the IPDA includes:
Searching the IPv6Valid of the SRv-TE service message based on IPDA;
Under the condition that the IPv6Valid is found, analyzing to obtain the IPv6Da;
Putting the IPv6Da into a Hash0Key to perform Hash searching;
if the hash result is found, taking out the hash0Cmd from the hash result, configuring SWAP operation to replace IPv6Da in the hash0Cmd, and setting hit0 as 1;
if the hash result is not found, setting hit0 to 0;
Wherein, when hit0 is 1, it indicates that there is a first search result, and when hit0 is 0, it indicates that there is no first search result.
In an optional implementation manner, the searching whether the SRv-TE service packet corresponds to the second search result based on the SID [0] of the SRH includes:
searching SrhValid of the SRv-TE service message based on SID [0] of the SRH;
under the condition that SrhValid is found out and SL is obtained through analysis as a third set value, SID [0] is put into a Hash1Key for Hash searching;
If the hash result is found, taking out the hash1Cmd from the hash result, configuring unpacking operation in the hash1Cmd, deleting IPv6 and SRH, and setting hit1 as 1;
If the hash result is not found, setting hit1 to 0;
Wherein, when hit1 is 1, it indicates that there is a second search result, and when hit1 is 0, it indicates that there is no second search result.
In an alternative embodiment, the determining, according to each of the search states, processing logic corresponding to the SRv-TE service packet includes:
Determining to decapsulate the SRv6-TE service message locally when the first search result and the second search result exist, and the first search result indicates that the SRv-TE service message needs to be processed locally, and the second search result indicates that the SRv-TE service message needs to be decapsulated;
determining to exchange the SRv-TE service message locally when the first search result exists and the second search result does not exist;
And in the case that the first search result does not exist, ignoring the search result based on SID [0] of the SRH.
In an optional embodiment, the searching for the searching state corresponding to the SRv-TE service packet based on the internet protocol destination address and the segment identifier includes:
and searching in parallel based on the Internet protocol destination address and the segment identifier to obtain the searching states respectively corresponding to the SRv-TE service messages.
In a second aspect, an embodiment of the present invention provides an information processing apparatus including:
The information acquisition module is used for acquiring SRv-TE service messages to be processed;
the information processing module is used for analyzing the SRv-TE service message to obtain an Internet protocol destination address and a segment identifier of a segment routing message header of the SRv-TE service message; searching and obtaining the searching state corresponding to the SRv-TE service message based on the Internet protocol destination address and the segment identifier respectively; and determining processing logic corresponding to the SRv-TE service message according to each searching state.
In a third aspect, the present invention provides an electronic device comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the information processing method of any of the preceding embodiments when the program is executed.
In a fourth aspect, the present invention provides a computer readable storage medium, where the computer readable storage medium includes a computer program, where the computer program controls an electronic device where the computer readable storage medium is located to execute the information processing method according to any one of the foregoing embodiments.
The beneficial effects of the embodiment of the invention include, for example: by analyzing SRv the TE service message, searching the corresponding searching state of the SRv TE service message based on the Internet protocol destination address and the segment identifier to determine the message processing logic, the processing of the SRv TE service message is completed in one pipeline. The loopback processing is not needed as in the prior art, so that the processing convenience of SRv-TE service messages is improved, the bandwidth of a network chip is saved, the available service bandwidth of the network chip is further increased, packet loss caused by insufficient loopback bandwidth is avoided, and the message processing reliability is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic diagram of a processing flow of an existing SRv6-BE service according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a processing flow of a conventional SRv-TE service according to an embodiment of the present invention.
Fig. 3 shows an application scenario schematic diagram provided by the embodiment of the invention.
Fig. 4 shows one of flow diagrams of an information processing method according to an embodiment of the present invention.
Fig. 5 shows a second flowchart of an information processing method according to an embodiment of the present invention.
Fig. 6 shows a third flowchart of an information processing method according to an embodiment of the present invention.
Fig. 7 shows a flowchart of an information processing method according to an embodiment of the present invention.
Fig. 8 shows a fifth flowchart of an information processing method according to an embodiment of the present invention.
Fig. 9 is a block diagram showing an exemplary configuration of an information processing apparatus according to an embodiment of the present invention.
Icon: 100-an electronic device; 110-memory; a 120-processor; 130-a communication module; 140-an information processing device; 141-an information obtaining module; 142-information processing module.
Detailed Description
In this embodiment, key terms are defined as follows:
Abbreviations English full name Chinese interpretation
SRv6 Segment Routing IPv6 IPv6 source routing
SID Segment Id Segment identifier
Node-SID Node Segment ID Device segment identifier
VPN-SID Virtual Private Network Segment ID Virtual private network segment identifier
BE Best Effort Best effort
TE Traffic Engineering Traffic engineering
SRH Segment Routing Header Segment routing message header
IPDA Internet Protocol Destination Address Internet protocol destination address
Nowadays, SRv's 6 traffic is divided into two main classes SRv BE and SRv TE. Referring to fig. 1, when the be service is decapsulated, only one SID, i.e., IPv6Da, needs to be processed. Referring to fig. 2, te traffic needs to process two SIDs, node-SID (IPv 6 Da) and VPN-SID (last SID in SRH), respectively, when decapsulating.
It is found that the current device only supports processing one SID in one pipeline, and for a scene needing to process two SIDs, the decapsulation process can be completed by executing the pipeline twice in a loop-back mode. As shown in FIG. 1, the node for decapsulation is PE2, and for SRv-BE service, PE2 only needs to process IPDA (D1:100), and the decapsulation process is performed. For SRv6-TE traffic, PE2 needs to handle IPDA (D1: 40) and SID [0] (D1: 100).
It is known that the existing network chip pipeline only supports SRv SIDs once, and for SRv-TE traffic, more complex processing operations need to be performed. Referring to fig. 2, the method includes: the first pass pipeline matches IPDA, performs a SWAP operation, copies SID [0] to the IPDA location, loops back to the reentry pipeline. The second pass pipeline matches IPDA, which is now SID [0], performs the DECAP (decapsulation) operation, and completes the business process.
Under the condition that SRv-TE service needs to carry out loopback processing, in view of the fact that the loopback bandwidth of a network chip is limited, the bandwidth of the network chip is generally only 1/4 or less of the whole bandwidth of the network chip, and therefore when the loopback bandwidth is insufficient, packet loss occurs and the service is affected. Even if the loop-back bandwidth of the network chip is upgraded, for example, 1/2 of the overall bandwidth of the network chip is taken as the loop-back bandwidth, the bandwidth providing capability of the network chip is affected, and the available bandwidth which is finally provided may be only 1/2.
Based on the above-mentioned research, the embodiment of the present invention provides an information processing scheme, compared with the prior art for SRv-TE traffic, the first pass uses IPDA to search, performs a SWAP (SWAP) operation, SWAPs the last SID (SID [0 ]) in the extension header to the IPDA position, and then loops back, and when the second pass pipeline processes, the IPDA is processed as the first pass process. In the embodiment, the processing logic of SRv-TE service messages is skillfully improved, and the SRv-TE service messages are processed in one assembly line without carrying out loop-back processing as in the prior art, so that the processing convenience of SRv-TE service messages is improved, the bandwidth of a network chip is saved, the available service bandwidth of the network chip is further increased, packet loss caused by insufficient loop-back bandwidth is avoided, and the message processing reliability is improved.
The present invention is directed to a method for manufacturing a semiconductor device, and a semiconductor device manufactured by the method.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
Fig. 3 is a block diagram of an electronic device 100 according to the present embodiment, where the electronic device 100 in the present embodiment may be a server, a processing device, a processing platform, etc. capable of performing data interaction and processing. The electronic device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, the processor 120, and the communication module 130 are electrically connected directly or indirectly to each other to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
Wherein the memory 110 is used for storing programs or data. The memory 110 may be, but is not limited to, random access memory (Random Access Memory, RAM), read Only Memory (ROM), programmable read only memory (Programmable Read-only memory, PROM), erasable read only memory (Erasable Programmable Read-only memory, EPROM), electrically erasable read only memory (Electric Erasable Programmable Read-only memory, EEPROM), etc.
The processor 120 is used to read/write data or programs stored in the memory 110 and perform corresponding functions.
The communication module 130 is configured to establish a communication connection between the electronic device 100 and other communication terminals through the network, and is configured to transmit and receive data through the network.
It should be understood that the structure shown in fig. 3 is merely a schematic diagram of the structure of the electronic device 100, and that the electronic device 100 may further include more or fewer components than those shown in fig. 3, or have a different configuration than that shown in fig. 3. The components shown in fig. 3 may be implemented in hardware, software, or a combination thereof. For example, a network chip for SRv traffic handling may be included in the electronic device 100.
Referring to fig. 4 in combination, a flowchart of an information processing method according to an embodiment of the invention may be executed by the electronic device 100 shown in fig. 3, for example, may be executed by the processor 120 in the electronic device 100. The information processing method includes S110, S120, S130, and S140.
S110, obtaining SRv-TE service messages to be processed.
S120, analyzing the SRv-TE service message to obtain the Internet protocol destination address and the segment identifier of the segment routing message header of the SRv-TE service message.
S130, searching and obtaining the searching state corresponding to the SRv-TE service message based on the Internet protocol destination address and the segment identifier.
And S140, determining processing logic corresponding to the SRv-TE service message according to each searching state.
By skillfully setting processing logic, SRv-TE service messages are processed in one-pass assembly line without loop-back processing, so that the bandwidth of a network chip is saved, the available service bandwidth is improved, and the convenience and reliability of SRv-TE service message processing are improved.
In S120, the section identifier of the section routing header and the internet protocol destination address obtained by parsing SRv-TE service packets can be flexibly implemented.
For example, the SRv-TE service packet may be directly parsed to obtain an ip destination address of the SRv-TE service packet, which is identified as IPDA.
For another example, when the value of NextHeader field of the Header is the first set value, the Routing Type may be extracted from the Routing Header. The first setting value is used for representing that the SRv-TE service message carries a Routing Header. And under the condition that the Routing Type is a second set value, extracting SID [0] from the SRH, and taking the SID [0] of the SRH as a segment identifier of the segment Routing message header. Wherein the second set point is used for characterizing the SRH format.
For example, referring to fig. 5, in the case that the format of SRv-TE service packet is shown in the structure table in fig. 5, the main contents in the structure are defined as follows:
Internet protocol (Internet Protocol, IP), destination address (Destination Address, DA), internet protocol destination address (Internet Protocol Destination Address, IPDA), internet protocol version six (Internet Protocol Version, IPv 6), internet protocol version six destination address (IPv 6 DA).
The IPv6Valid represents that the message is in IPv6 format, and is identified by the ETHERTYPE =x0806 field of the ethernet message.
NextHeader is a field of the IPv6 header, which is used to indicate the type of the following content of the IPv6 header, taking the first setting value as 43 as an example, and when NextHeader is 43, it indicates that the following content of the IPv6 header is an SRH extension header (Segment Routing Header).
Based on the above definition, as the flow shown in fig. 5, the message parsing flow is as follows:
For SRv6-TE traffic packets, since the first 12 bytes of the ethernet packet are ethernet addresses, the next 2 bytes are ETHERTYPE, when ETHERTYPE =0x0806, IPv6 valid=1.
The Next Protocol is fetched from the 7 th Byte of the IPv6 Header, and if 43, the Routing Header is carried, and then the Routing Type is fetched from the 3 rd Byte of the Routing Header. If 4, representing the SRH format, srhValid =1, and SID [0] is taken from the 9 th Byte of the SRH.
IPv6DA is taken from the 9 th byte of the IPv6 header and SL (Segment Left) is taken from the 4 th byte of the SRH.
In the case that SRv-TE service packets are obtained by parsing, S130 may be implemented as follows: and searching whether the SRv-TE service message corresponds to a first searching result or not based on the IPDA.
For example, based on IPDA, searching the IPv6Valid of the SRv-TE service message, and under the condition that the IPv6Valid is found, analyzing to obtain the IPv6Da.
And putting the IPv6Da into a Hash0Key to perform Hash searching. If the hash result is found, the hash0Cmd is taken out from the hash result, SWAP operation is configured on the hash0Cmd to replace IPv6Da, and hit0 is set to be 1. If the hash result is not found, setting hit0 to 0; wherein, when hit0 is 1, it indicates that there is a first search result, and when hit0 is 0, it indicates that there is no first search result.
And searching whether the SRv-TE service message corresponds to a second searching result or not based on the SID [0] of the SRH.
For example, srhValid of the SRv-TE service packet is looked up based on SID [0] of the SRH.
And under the condition that SrhValid is found and the SL is obtained through analysis as a third set value, putting SID [0] into a Hash1Key for Hash searching. If the hash result is found, the hash1Cmd is taken out from the hash result, the unpacking operation is configured in the hash1Cmd, the IPv6 and the SRH are deleted, and the hit1 is set to be 1. If the hash result is not found, set hit1 to 0. Wherein, when hit1 is 1, it indicates that there is a second search result, and when hit1 is 0, it indicates that there is no second search result.
For example, referring to fig. 6, after the message parsing is completed as shown in fig. 5, if IPv6Valid is found, the IPv6Da obtained by the parsing is put into the Hash0Key, a standard Hash lookup is performed, if there is a result in the Hash lookup, hit0 is set to 1, and the Hash0Cmd is taken out from the Hash lookup result, and the typical SWAP operation configured by the Hash0Cmd replaces the IPv6Da.
If SrhValid is found and the parsed SL is 1, the parsed SID [0] is put into a Hash1Key, standard Hash lookup is executed, if the Hash lookup has a result, hit1 is set to 1, the Hash1Cmd is taken out from the Hash lookup result, the general decapsulation operation of the Hash1Cma configuration is carried out, and both IPv6 and SRH are deleted from the message.
In this embodiment, the searching based on the internet protocol destination address and the segment identifier may be performed in parallel, so as to obtain the searching states corresponding to SRv-TE service packets respectively. Illustratively, for SRv-TE service messages, the last SID (SID [0 ]) in the IPDA and message extension header is parsed, and the searching and processing are performed in parallel. On the basis of completing SRv-TE service message processing by one-pass assembly line, the processing efficiency is further improved.
In the case that the search status is whether the first search result and the second search result are corresponding, S140 may be implemented by: and under the condition that the first search result and the second search result exist, the first search result represents that the SRv-TE service message needs to be processed locally, and the second search result represents that the SRv-TE service message needs to be unpackaged, the SRv-TE service message is determined to be unpackaged locally.
And under the condition that the first search result exists and the second search result does not exist, determining to exchange the SRv-TE service message locally.
And in the case that the first search result does not exist, ignoring the search result based on SID [0] of the SRH.
For example, referring to fig. 7, after obtaining the states of Hit0 and Hit1 based on the flow shown in fig. 6, subsequent processing logic is determined according to the states of Hit0 and Hit 1:
If Hit0 has no lookup result, then no processing is needed, skipping the logic of SRv.
If Hit0 has a search result, but Hit1 has no search result, the operation of hash0 is executed at this time, and standard IPv6Da exchange operation is performed.
If Hit0 has a search result and Hit1 also has a search result, which means that the message needs to be terminated, standard decapsulation operation is performed, and the IPv6 header and SRH header information is deleted.
Thus, the SRv-TE service message is conveniently and reliably processed in one-pass pipeline.
In order to more clearly illustrate the implementation principle of the present embodiment, please refer to fig. 8 in combination, and take the implementation of each function of the information processing method based on the parsing module, the searching module and the processing module as an example, the scheme of processing two SIDs based on a pipeline in the present embodiment is illustrated.
in fig. 8, the parsing module is configured to parse the message to obtain SID [0] of the IPDA and the SRH, and corresponding IPv6Valid, srhValid and SL.
The searching module is used for supporting two parallel searching, and adding one parallel searching to search SID [0] on the basis of supporting the original one-time searching and fixing the use of IPDA, and checking whether SL is 1 before searching SID [0] and possibly performing decapsulation (Decap) when SL is 1 in order to avoid the situation of mismatching.
The processing module is used for merging (merge) results according to the two searching states to determine message processing logic. The processing module performs mainly two operations, one is switching (Swap) and the other is decapsulating (Decap). Based on the search states corresponding to IPDA and SID [0], three processing states exist for the message:
First, the message is terminated and the packet is Decap (hit1=1 and hit0=1 in fig. 7).
Second, the next SID is copied to IPDA by Swap to continue processing for subsequent devices (hit1=0 and hit0=1 in fig. 7).
Third, the message that needs no processing is filtered, the SRv processing is skipped, and normal routing processing is performed (hit1=0 and hit0=0 in fig. 7).
Taking fig. 2 as an example, in the case where the IPv6DA of the message received by the device is D1::40, the SID [0] in the SRH is D1::: 100, and sl=1 in the SRH, since the message is in IPv6 format and carries the SRH, two searches are performed, the IPv6DA is used for the first time (D1: 40), and the SID [0] is used for the second time (D1: 100). When the device is not D1:40, the first search will not result, and therefore will not process SRv. When the device is D1:40, but D1:100 is not the device configuration, the first lookup will have the result, performing standard SWAP operations. When the device is D1:40 and D1:100 is the device configuration, both the first and second lookups will have results and SL=1, thus standard decapsulation operations will be performed.
By using the information processing scheme in the embodiment of the invention, the service message of SRv-TE only needs to be executed once in the unpacking equipment, and twice in the unpacking equipment is not needed, so that the processing capacity is improved by about one time. The new search interface and the processing logic are completely parallel to the original pipeline search interface and the processing logic, so that the length of the pipeline is not increased, the forwarding delay is kept, and the hardware cost is not increased. The newly added searching interface decides whether to search according to the characteristics of the message, so that invalid searching and abnormal conditions caused by invalid searching are avoided, and the power consumption of the chip is reduced.
In order to perform the respective steps of the above-described embodiments and the respective possible ways, an implementation of an information processing apparatus is given below. Referring to fig. 9, fig. 9 is a functional block diagram of an information processing apparatus 140 according to an embodiment of the present invention, where the information processing apparatus 140 can be applied to the electronic device 100 shown in fig. 3. It should be noted that, the basic principle and the technical effects of the information processing apparatus 140 provided in this embodiment are the same as those of the above-mentioned method embodiment, and for brevity, reference should be made to the corresponding content in the above-mentioned method embodiment. The information processing apparatus 140 includes an information obtaining module 141 and an information processing module 142.
The information obtaining module 141 is configured to obtain SRv-TE service packets to be processed.
The information processing module 142 is configured to parse the SRv-TE service packet to obtain an internet protocol destination address and a segment identifier of a segment routing header of the SRv-TE service packet; searching and obtaining the searching state corresponding to the SRv-TE service message based on the Internet protocol destination address and the segment identifier respectively; and determining processing logic corresponding to the SRv-TE service message according to each searching state.
On the basis of the above, the embodiment of the invention also provides a computer readable storage medium, which comprises a computer program, and when the computer program runs, the electronic equipment where the computer readable storage medium is located is controlled to execute the information processing method.
Compared with the prior art that the processing flow needs to be looped back and executed twice for SRv-TE service, the scheme in the embodiment of the invention is inconvenient to realize, and packet loss possibly occurs due to insufficient bandwidth of the looped back. In the embodiment, the processing logic of SRv-TE service messages is skillfully improved, and the SRv-TE service messages are processed in one assembly line without carrying out loop-back processing as in the prior art, so that the processing convenience of SRv-TE service messages is improved, the bandwidth of a network chip is saved, the available service bandwidth of the network chip is further increased, and the message processing reliability is improved.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present invention may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An information processing method, characterized by comprising:
Obtaining SRv-TE service messages to be processed;
Analyzing the SRv-TE service message to obtain an Internet protocol destination address and a segment identifier of a segment routing message header of the SRv-TE service message;
Searching and obtaining the searching state corresponding to the SRv-TE service message based on the Internet protocol destination address and the segment identifier respectively;
And determining processing logic corresponding to the SRv-TE service message according to each searching state.
2. The information processing method according to claim 1, wherein the parsing the SRv-TE service packet to obtain the ip destination address and the segment identifier of the segment routing header of the SRv-TE service packet includes:
Analyzing the SRv-TE service message to obtain an Internet protocol destination address of the SRv-TE service message, wherein the Internet protocol destination address is marked as IPDA;
under the condition that the value of NextHeader fields of the message Header is a first set value, taking out the Routing Type from the Routing Header; the first set value is used for representing that the SRv-TE service message carries a Routing Header;
Taking out SID [0] from SRH under the condition that the Routing Type is the second set value, and taking SID [0] of the SRH as a segment identifier of the segment Routing message header; wherein the second set point is used for characterizing the SRH format.
3. The information processing method according to claim 2, wherein the searching for the search state corresponding to the SRv-TE service packet based on the internet protocol destination address and the segment identifier respectively includes:
Searching whether the SRv-TE service message corresponds to a first searching result or not based on the IPDA;
And searching whether the SRv-TE service message corresponds to a second searching result or not based on the SID [0] of the SRH.
4. The method of information processing according to claim 3, wherein said searching whether the SRv-TE service packet corresponds to a first search result based on the IPDA includes:
Searching the IPv6Valid of the SRv-TE service message based on IPDA;
Under the condition that the IPv6Valid is found, analyzing to obtain the IPv6Da;
Putting the IPv6Da into a Hash0Key to perform Hash searching;
if the hash result is found, taking out the hash0Cmd from the hash result, configuring SWAP operation to replace IPv6Da in the hash0Cmd, and setting hit0 as 1;
if the hash result is not found, setting hit0 to 0;
Wherein, when hit0 is 1, it indicates that there is a first search result, and when hit0 is 0, it indicates that there is no first search result.
5. The information processing method according to claim 3, wherein said searching whether the SRv-TE service packet corresponds to the second search result based on SID [0] of the SRH includes:
searching SrhValid of the SRv-TE service message based on SID [0] of the SRH;
under the condition that SrhValid is found out and SL is obtained through analysis as a third set value, SID [0] is put into a Hash1Key for Hash searching;
If the hash result is found, taking out the hash1Cmd from the hash result, configuring unpacking operation in the hash1Cmd, deleting IPv6 and SRH, and setting hit1 as 1;
If the hash result is not found, setting hit1 to 0;
Wherein, when hit1 is 1, it indicates that there is a second search result, and when hit1 is 0, it indicates that there is no second search result.
6. The information processing method according to claim 3, wherein the determining processing logic corresponding to the SRv-TE service packet according to each of the lookup states includes:
Determining to decapsulate the SRv6-TE service message locally when the first search result and the second search result exist, and the first search result indicates that the SRv-TE service message needs to be processed locally, and the second search result indicates that the SRv-TE service message needs to be decapsulated;
determining to exchange the SRv-TE service message locally when the first search result exists and the second search result does not exist;
And in the case that the first search result does not exist, ignoring the search result based on SID [0] of the SRH.
7. The information processing method according to any one of claims 1 to 6, wherein the searching for the search state corresponding to the SRv-TE service packet based on the internet protocol destination address and the segment identifier respectively includes:
and searching in parallel based on the Internet protocol destination address and the segment identifier to obtain the searching states respectively corresponding to the SRv-TE service messages.
8. An information processing apparatus, characterized by comprising:
The information acquisition module is used for acquiring SRv-TE service messages to be processed;
the information processing module is used for analyzing the SRv-TE service message to obtain an Internet protocol destination address and a segment identifier of a segment routing message header of the SRv-TE service message; searching and obtaining the searching state corresponding to the SRv-TE service message based on the Internet protocol destination address and the segment identifier respectively; and determining processing logic corresponding to the SRv-TE service message according to each searching state.
9. An electronic device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, which processor implements the information processing method of any one of claims 1 to 7 when executing the program.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a computer program which, when run, controls an electronic device in which the computer readable storage medium is located to perform the information processing method according to any one of claims 1 to 7.
CN202410095849.5A 2024-01-23 2024-01-23 Information processing method, device, equipment and medium Pending CN117914782A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410095849.5A CN117914782A (en) 2024-01-23 2024-01-23 Information processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410095849.5A CN117914782A (en) 2024-01-23 2024-01-23 Information processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN117914782A true CN117914782A (en) 2024-04-19

Family

ID=90696585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410095849.5A Pending CN117914782A (en) 2024-01-23 2024-01-23 Information processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117914782A (en)

Similar Documents

Publication Publication Date Title
US11336574B2 (en) Segment routing extension headers
CN109981457B (en) Message processing method, network node and system
JP3399928B2 (en) High-speed transfer and filtering of network packets in computer systems
US8867363B2 (en) Resilient forwarding of packets with a per-customer edge (per-CE) label
JP6369532B2 (en) Network control method, network system and apparatus, and program
US20060146826A1 (en) Communication apparatus
WO2021083341A1 (en) Method for processing message, and network node and system
US20210021688A1 (en) Network access method and device for edge router
CN112702773B (en) Communication method and device
CN110011941B (en) Message forwarding method and device
US7508774B2 (en) Extensions to the spanning tree protocol
EP4044529A1 (en) Detnet data packet processing method and apparatus
US6950873B2 (en) Apparatus and method for port sharing a plurality of server processes
CN112787922A (en) Message processing method, network node and system
JP7239258B2 (en) Traffic flow processing method and apparatus
US6542503B1 (en) Multicast echo removal
US20030123387A1 (en) Device and method for filtering network traffic
CN117914782A (en) Information processing method, device, equipment and medium
CN114172841B (en) Message forwarding method and device, electronic equipment and read storage medium
CN114978986A (en) Data transmission method, device and storage medium
US7423974B2 (en) Disabling mutually recursive routes
US20040111426A1 (en) Dynamic management method for forwarding information in router having distributed architecture
CN113132273A (en) Data forwarding method and device
CN111107536B (en) User plane function forwarding method, device, system and storage medium
US11968119B1 (en) Service Function Chaining using uSID in SRv6

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