CN117729166A - Forwarding method and device for IB network direct route management message - Google Patents
Forwarding method and device for IB network direct route management message Download PDFInfo
- Publication number
- CN117729166A CN117729166A CN202311788380.5A CN202311788380A CN117729166A CN 117729166 A CN117729166 A CN 117729166A CN 202311788380 A CN202311788380 A CN 202311788380A CN 117729166 A CN117729166 A CN 117729166A
- Authority
- CN
- China
- Prior art keywords
- message
- smp
- direct route
- pointer
- hop
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000005540 biological transmission Effects 0.000 claims abstract description 44
- 238000012545 processing Methods 0.000 claims abstract description 41
- 239000011159 matrix material Substances 0.000 claims abstract description 10
- 230000004044 response Effects 0.000 claims description 16
- 235000008694 Humulus lupulus Nutrition 0.000 claims 4
- 239000004744 fabric Substances 0.000 description 14
- 230000002159 abnormal effect Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 238000007689 inspection Methods 0.000 description 8
- 230000008859 change Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a forwarding method and a forwarding device for an IB network direct route management message, wherein the method comprises the following steps: receiving the SMP message through an inlet port of the switching equipment, analyzing the SMP message, and judging whether the direct routing SMP message meets a predefined processing condition or not according to the message analysis result at the inlet port when the SMP message type is determined to be the direct routing SMP message according to the analysis result; when the predefined processing condition is met, determining an outlet port according to a message transmission direction, a jump pointer and a subnet path port number vector of the direct route SMP message; updating the domain segment in the direct route SMP message, and directly forwarding the direct route SMP message at the inlet port to the outlet port through the switch matrix after finishing message processing. The technical scheme of the invention reduces the transmission delay of the direct route SMP message in the switching equipment.
Description
Technical Field
The invention belongs to the field of network route management, and particularly relates to a forwarding method and device for an IB network direct route management message.
Background
In IB network, the subnet manager is used for configuring and managing subnet equipment, and is a key control module for subnet topology discovery, initialization and management. In a switching device switch, a subnet manager is located within a management port. The device performs communication between the subnet managers through a subnet management message (SMP), and performs a series of designated device operations such as attribute acquisition, attribute setting, event notification, etc., so as to implement management of a plurality of subnet managers in the subnet, and a specific transmission process of the SMP is shown in fig. 1.
The SMPs may be classified into a request SMP and a response SMP according to a transmission direction. At the source device, the subnet manager generates the request SMP and passes the request SMP to the subnet for forwarding. Switching equipment switches may be used to forward SMP between source and destination devices within the subnetwork. After the subnet manager of the device accepts the request SMP at the endpoint device, the subnet manager performs specific device operations, such as obtaining the attribute, setting the attribute, etc., on the attribute specified by the request SMP. After the end point device completes the device operation, a response SMP is generated. And the response SMP returns to the source equipment in the original path according to the forwarding path of the corresponding request SMP. By adopting the information transmission mechanism based on the request response SMP message, finally, the subnet manager can realize the functions of subnet topology structure discovery, subnet change monitoring, adding and deleting of management equipment, LID allocation of the subnet equipment, acquisition of possible connection paths among all end point equipment and the like.
When the SMP message is forwarded in the switching equipment, the determination of the message outlet port is firstly required to be completed. SMP messages can be divided into local device identification (LID) routing SMP messages and direct routing SMP messages according to different modes of the exit port query. For the SMP message of the LID route, the LID addresses of all the device ports on the SMP forwarding path are allocated, the switching device forwarding routing table is configured, and the SMP can determine the outlet port by inquiring the switching routing table when transmitting in the switching device. For the direct routing message, when all or part of LID addresses of the equipment on the SMP forwarding path are not determined and the routing table of the switching equipment is not configured, a forwarding path query mode is selected in combination with the LRH.DLID condition.
The SMP message is directly routed using an allowed local device identifier (PLID) identification. When the LRH.DLID in the message is PLID, the SMP is indicated to be positioned at the part of the forwarding Path where the LID address of the equipment port is not determined or the forwarding routing table of the switching equipment is not configured successfully, and the exit port can be determined by the Return Path port number vector/Initial Path port number vector (Return Path/Initial Path) in the message, so that the forwarding in the subnet is realized. When the LRH.DLID in the message is not PLID, the SMP is indicated to be positioned at the part where the LID address of the equipment port is determined and the configuration of the forwarding routing table of the switching equipment is successful, and the SMP can acquire the outlet port by inquiring the forwarding routing table.
At present, the conventional forwarding flow of the direct route SMP message in the IB protocol in the Switch device is shown in fig. 2, when the SMP message enters the Switch ingress port, and when the madheader.mgmtclass field segment is checked to determine that the message is the direct route SMP message and the lrh.dlid field segment is the PLID, the SMP message is forwarded to the subnet manager in the Switch management port through the Switch matrix fabric in the Switch chip. After the subnet manager in the management port performs operations such as message inspection, message processing, exit port determination, domain segment update and the like on the SMP, the processed message is forwarded to the exit port through the fabric.
In the traditional forwarding flow, the direct route SMP message of the terminal non-local switching equipment can be finally output from the switching equipment after being forwarded twice in the Switch switching equipment and is continuously transmitted to the subordinate equipment, so that the transmission delay of the direct route SMP message is large, the Fabric switching matrix is occupied twice, and the transmission of the normal data stream is influenced.
Disclosure of Invention
The invention aims to provide a forwarding method and a forwarding device for an IB network direct route management message, which aim to reduce transmission delay of a direct route SMP message in a switching device and reduce Fabric occupation.
According to a first aspect of the present invention, there is provided a forwarding method of an IB network direct route management message, including:
receiving an SMP message through an inlet port of a switching device, analyzing the SMP message, and judging whether the direct routing SMP message meets a predefined processing condition or not according to a message analysis result at the inlet port when the SMP message type is determined to be the direct routing SMP message;
when the predefined processing condition is met, determining an outlet port according to the message transmission direction, the jump pointer and the subnet path port number vector of the direct route SMP message;
updating the domain segment in the direct route SMP message, and directly forwarding the direct route SMP message at the inlet port to the outlet port through a switch matrix.
Preferably, the determining that the SMP message type is a direct route SMP message further includes:
and analyzing the SMP message to obtain a message type field, and determining that the message is a direct route SMP message through the message type field.
Preferably, the determining whether the directly routed SMP packet meets a predefined processing condition further includes:
the local equipment identification, the message length, the message transmission direction, the jump pointer and the jump times of the target port are obtained by analyzing the SMP message,
when the local equipment identification of the target port is PLID and the message length is equal to the actual packet length, judging the message transmission direction,
if the message transmission direction indicates that the direct route SMP message is determined to be the SMP request message through the message transmission direction, judging whether a jump Pointer Hop Pointer and a jump number Hop Count are equal to 0 or more than 255, whether the Hop Pointer is equal to the Hop Count, and whether the Hop pointer+1 is more than the Hop Count, if not, determining that the direct route SMP message meets the predefined processing condition;
if the message transmission direction indicates that the direct route SMP message is determined to be an SMP response message through the message transmission direction, judging whether a jump Pointer Hop Pointer and a jump number Hop Count are equal to 0 or more than 255, whether the Hop Pointer is equal to 1, whether the Hop pointer+1 is more than the Hop Count, and if not, determining that the direct route SMP message meets the predefined processing condition.
Preferably, the determining the egress port according to the packet transmission direction, the jump pointer and the subnet path port number vector of the directly routed SMP packet further includes:
obtaining a subnet path port number vector by analyzing the SMP message, wherein the subnet path port number vector comprises a return path port number vector and an initial path port number vector, and obtaining the return path port number vector and the initial path port number vector by analyzing the SMP message;
when the direct route SMP message is determined to be an SMP request message according to the message transmission direction, taking an entry indexed by the Hop Pointer in the initial path port number vector as an outlet port;
when the direct route SMP message is determined to be an SMP response message according to the message transmission direction, an entry indexed by the Hop Pointer in the return path port number vector is taken as an outlet port.
Preferably, the updating the domain segment in the direct route SMP message further includes:
when the message is a request SMP message, updating an entry indexed by the Hop Pointer in the return path port number vector to be a current entry port number, and carrying out 1 adding operation on the Hop Pointer;
and when the message is a response SMP message, performing 1 subtracting operation on the Hop Pointer.
According to a second aspect of the present invention, there is provided a forwarding apparatus for an IB network direct route management packet, comprising:
the analyzing unit is used for receiving the SMP message through an inlet port of the switching equipment, analyzing the SMP message, and judging whether the direct routing SMP message meets a predefined processing condition or not according to a message analyzing result at the inlet port when the SMP message type is determined to be the direct routing SMP message;
a forwarding unit, configured to determine an egress port according to a packet transmission direction, a hop pointer, and a subnet path port number vector of the direct route SMP packet when the predefined processing condition is satisfied;
and the updating unit is used for updating the domain segment in the direct routing SMP message and directly forwarding the direct routing SMP message at the inlet port to the outlet port through the switching matrix.
Compared with the related art, the technical scheme of the invention has the following advantages:
the method has the advantages that the inspection, updating and exit port determination of the direct route SMP message are completed quickly at the entrance, the transmission in the switching equipment of the message is completed by means of Fabric once forwarding, the transmission delay of the direct route SMP message in the switching equipment can be effectively reduced, the occupation of one Fabric is reduced, the transmission efficiency of non-management data packets is improved, the discovery time is saved, the Fabric switching bandwidth of other data messages is ensured, the topology change is discovered more efficiently, and the subnet management efficiency is improved. The scheme of the invention has strong robustness and compatibility, the abnormal message which can not be processed still supports to be forwarded to the management port of the switching equipment to process the traditional scheme in the protocol, and the open source subnet manager OPENSM does not need to be additionally changed.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure and process particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to the drawings without any inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an SMP transfer process according to the related art.
Fig. 2 is a schematic diagram of an SMP forwarding flow according to the related art.
Fig. 3 is a schematic diagram of an SMP forwarding flow according to the present invention.
Fig. 4 is a flow chart of a forwarding method for an IB network direct route management message according to the invention.
Fig. 5 is a message inspection flow chart in accordance with the present invention.
Fig. 6 is a flow chart of a direct route SMP process according to the present invention.
Detailed Description
In order to make 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. All other embodiments, which are derived by a person skilled in the art from the embodiments according to the invention without creative efforts, fall within the protection scope of the invention.
Aiming at the problem that secondary forwarding is required in the same switch when a direct routing SMP message is transmitted, the invention provides a forwarding method and a forwarding device of an IB network direct routing management message, as shown in figure 3, aiming at the direct routing SMP message with a DLID of PLID in a switch of a switching device, when a message end point is determined to be a non-primary switching device, the operations of message inspection, processing, outlet port determination, domain segment update and the like are directly completed at an inlet port of the switch of the switching device, and then the message is directly forwarded to an outlet port through a switching matrix Fabric, thereby reducing the transmission delay of the direct routing SMP message in the switching device, reducing primary occupation of Fabric and guaranteeing the Fabric switching bandwidth of other data messages.
Referring to the flowchart of fig. 4, the forwarding method of the IB network direct route management message provided by the invention includes:
step 101: and receiving an SMP message through an inlet port of the switching equipment, analyzing the SMP message, and judging whether the direct routing SMP message meets a predefined processing condition or not according to a message analysis result at the inlet port when the SMP message type is determined to be the direct routing SMP message.
First, a message parsing stage is performed. After receiving the SMP message, the switch ingress port parses the SMP message to obtain the message type madheader, mgmtclass, destination port lrh.dlid, message transmission direction dbit, hop Pointer, hop Count, return Path port number Return Path, and Initial Path port number Initial Path field, as shown in table 1.
TABLE 1
In the message inspection stage, whether the direct route SMP meets the fast processing condition of the ingress port needs to be judged according to the conditions of the message type, the message length, the domain segment content and the like, and the flow is shown in fig. 5. The message inspection process specifically comprises the following steps:
step 111: if the MadHeader.MgmtClass value in the message is 0x81, the current message is determined to be a direct route SMP, and the process proceeds to step 112.
Step 112: if the LRH.DLID is PLID, the message needs to obtain the egress port by querying the Return Path port number vector Return Path/Initial Path port number vector Initial Path, and step 113 is entered.
Step 113: if LRH.Pktlen is equal to the actual packet length, the message length meets the requirement, and D bit is judged at the moment. If D bit is 0, go to step 114; if D bit is 1, go to step 115. If lrh.pktlen is not equal to the actual packet length, it is necessary to choose to drop or forward to the switching device management port for processing in a conventional manner.
Step 114: when the D bit is 0, namely the current direct route SMP is the request message, judging the current scene according to the Hop Pointer and the Hop count, and sequentially decreasing the priority from top to bottom:
step 1141: when the Hop Pointer or Hop count is equal to 0 or more than 255, the message is abnormal, and the message is discarded by default, namely, the condition that the quick processing condition is not satisfied is determined. The message can be discarded when the message is abnormal, and the message can be selectively forwarded to the management port of the switching equipment for processing in view of robustness. Otherwise, step 1142 is entered.
Step 1142: when the Hop Pointer is equal to the Hop Count, that is, the message end device is the present-stage switching device, it is determined that the fast processing condition is not satisfied, and the SMP needs to be directly routed to forward to the management port of the switching device. Otherwise, step 1143 is entered.
Step 1143: when the Hop pointer+1> Hop Count, the message is abnormal, and the message is discarded by default, namely, the fact that the rapid processing condition is not met is determined. The message can be discarded when the message is abnormal, and the message can be selectively forwarded to the management port of the switching equipment for processing in view of robustness. Otherwise, step 1144 is entered.
Step 1144: when the scene is eliminated, the relation between the Hop Pointer and the Hop frequency HopCount is reasonable, and finally the Hop Pointer and the Hop Count are determined to meet the rapid processing conditions, so that the Hop Pointer and the Hop Count can be rapidly processed by an entry port, and the message inspection is finished.
Step 115: when the D bit is 1, namely the current direct route SMP is a response message, judging the current scene according to the Hop Pointer and Hop count, similarly dividing the current scene into four types, and sequentially decreasing the priority from top to bottom:
step 1151: when the Hop Pointer or Hop count is equal to 0 or more than 255, the message is abnormal, and the message is discarded by default, namely, the condition that the quick processing condition is not satisfied is determined. The message can be discarded when the message is abnormal, and the message can be selectively forwarded to the management port of the switching equipment for processing in view of robustness. Otherwise, step 1152 is entered.
Step 1152: when the Hop Pointer is equal to 1, that is, the message end device is the present-stage switching device, it is determined that the fast processing condition is not satisfied, and the SMP needs to be directly routed to forward to the switching device management port. Otherwise, step 1153 is entered.
Step 1153: when the Hop Pointer > Hop Count, the message is abnormal, and the message is discarded by default, namely the condition that the quick processing condition is not satisfied is determined. The message can be discarded when the message is abnormal, and the message can be selectively forwarded to the management port of the switching equipment for processing in view of robustness. Otherwise, step 1154 is entered.
Step 1154: when the scene is eliminated, the relation between the Hop Pointer and the Hop frequency HopCount is reasonable, and finally the Hop Pointer and the Hop Count are determined to meet the rapid processing conditions, so that the Hop Pointer and the Hop Count can be rapidly processed by an entry port.
Step 102: and when the predefined processing condition is met, determining an outlet port according to the message transmission direction, the jump pointer and the subnet path port number vector of the direct route SMP message.
When it is determined that the direct-route SMP meets the fast processing condition, the direct-route SMP may be processed by the current device ingress port, i.e., the egress port is determined by the Hop Pointer, dbit, return Path/Initial Path, specifically:
when the D bit is 0, that is, the message is a request SMP message, an entry indexed by the Hop Pointer in the Initial Path is used as an exit port. The exit port is then the Initial Path [ Hop Pointer ].
When the D bit is 1, that is, the message is a response SMP message, an entry indexed by the Hop Pointer in the Return Path is used as an exit port. The exit port is then Return Path [ Hop Pointer ].
If the determined egress port is present in the current sWitch device, the direct route SMP message is forwarded to the egress port via fabric. Otherwise, the protocol internal processing can be carried out in a traditional way by selecting to discard or forward to the switch equipment management port.
Step 103: updating the domain segment in the direct route SMP message, and directly forwarding the direct route SMP message at the inlet port to the outlet port through a switch matrix.
Referring to fig. 6, after the current device switch ingress port processes the direct route SMP packet, the direct route SMP needs to perform domain segment update on part of the packet content.
When D bit is 0, that is, the message is a request SMP message, updating an entry indexed by the Hop Pointer in the Return Path to the current entry port number, and then performing a 1-adding operation on the Hop Pointer
Return Path [ Hop Pointer ] = ingress port number;
when the D bit is 1, that is, the message is a response SMP message, the Hop Pointer is subjected to 1 subtracting operation.
In a further preferred embodiment, during the domain segment update process, the part of the domain segment covered by the fixed cyclic redundancy check (ICRC) check in the direct route SMP is modified, and the ICRC of the message needs to be recalculated. In a specific embodiment, the outgoing port link layer may be instructed by the satellite signal to re-perform ICRC computation on the directly routed SMP packet, or complete ICRC re-computation at the current ingress port.
Compared with the related technology, the forwarding method of the IB network direct route management message provided by the invention has the following advantages: the method has the advantages that the inspection, updating and exit port determination of the direct route SMP message are completed quickly at the entrance, the transmission in the switching equipment of the message is completed by means of Fabric once forwarding, the transmission delay of the direct route SMP message in the switching equipment can be effectively reduced, the occupation of one Fabric is reduced, the transmission efficiency of non-management data packets is improved, the discovery time is saved, the Fabric switching bandwidth of other data messages is ensured, the topology change is discovered more efficiently, and the subnet management efficiency is improved. The scheme of the invention has strong robustness and compatibility, the abnormal message which can not be processed still supports to be forwarded to the management port of the switching equipment to process the traditional scheme in the protocol, and the open source subnet manager OPENSM (Open subnet management) does not need to be additionally changed.
Accordingly, in a second aspect, the present invention provides a forwarding device for an IB network direct route management packet, including:
the analyzing unit is used for receiving the SMP message through an inlet port of the switching equipment, analyzing the SMP message, and judging whether the direct routing SMP message meets a predefined processing condition or not according to a message analyzing result at the inlet port when the SMP message type is determined to be the direct routing SMP message;
a forwarding unit, configured to determine an egress port according to a packet transmission direction, a hop pointer, and a subnet path port number vector of the direct route SMP packet when the predefined processing condition is satisfied;
and the updating unit is used for updating the domain segment in the direct routing SMP message and directly forwarding the direct routing SMP message at the inlet port to the outlet port through the switching matrix.
The above device may be implemented by a forwarding method of an IB network direct route management packet provided by the embodiment of the first aspect, and specific implementation manner may be referred to the description in the embodiment of the first aspect, which is not repeated herein.
It is understood that the circuit structures, names and parameters described in the above embodiments are only examples. Those skilled in the art may also make and adjust the structural features of the above embodiments as desired without limiting the inventive concept to the specific details of the examples described above.
While the invention has been described in detail with reference to the foregoing embodiments, it will be appreciated by those skilled in the art that variations may be made in the techniques described in the foregoing embodiments, or equivalents may be substituted for elements thereof; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. A method for forwarding a direct route management message of an IB network, comprising:
receiving an SMP message through an inlet port of a switching device, analyzing the SMP message, and judging whether the direct routing SMP message meets a predefined processing condition or not according to a message analysis result at the inlet port when the SMP message type is determined to be the direct routing SMP message;
when the predefined processing condition is met, determining an outlet port according to the message transmission direction, the jump pointer and the subnet path port number vector of the direct route SMP message;
updating the domain segment in the direct route SMP message, and directly forwarding the direct route SMP message at the inlet port to the outlet port through a switch matrix.
2. The method for forwarding the IB network direct route management message according to claim 1, wherein said determining that the SMP message type is a direct route SMP message further comprises:
and analyzing the SMP message to obtain a message type field, and determining that the message is a direct route SMP message through the message type field.
3. The method for forwarding the IB network direct route management message according to claim 1, wherein said determining whether the direct route SMP message meets a predefined processing condition further comprises:
the local equipment identification, the message length, the message transmission direction, the jump pointer and the jump times of the target port are obtained by analyzing the SMP message,
when the local equipment identification of the target port is PLID and the message length is equal to the actual packet length, judging the message transmission direction,
if the direct route SMP message is determined to be the SMP request message according to the message transmission direction, judging whether a jump Pointer Hop Pointer and the number of hops Hop Count are equal to 0 or more than 255, whether the Hop Pointer is equal to the Hop Count, and whether the Hop pointer+1 is more than the Hop Count, if not, determining that the direct route SMP message meets the predefined processing condition;
if the direct route SMP message is determined to be the SMP response message according to the message transmission direction, judging whether a jump Pointer Hop Pointer and the number of hops Hop Count are equal to or larger than 255, whether the Hop Pointer is equal to 1, and whether the Hop pointer+1 is larger than the Hop Count, if not, determining that the direct route SMP message meets the predefined processing condition.
4. The method for forwarding the IB network direct route management message according to claim 3, wherein determining the egress port according to the message transmission direction, the hop pointer, and the subnet path port number vector of the direct route SMP message further comprises:
obtaining a subnet path port number vector by analyzing the SMP message, wherein the subnet path port number vector comprises a return path port number vector and an initial path port number vector;
when the direct route SMP message is determined to be an SMP request message according to the message transmission direction, taking an entry indexed by the Hop Pointer in the initial path port number vector as an outlet port;
when the direct route SMP message is determined to be an SMP response message according to the message transmission direction, an entry indexed by the Hop Pointer in the return path port number vector is taken as an outlet port.
5. The method for forwarding the IB network direct route management message of claim 4, wherein updating the domain segment in the direct route SMP message further comprises:
when the message is a request SMP message, updating an entry indexed by the Hop Pointer in the return path port number vector to be a current entry port number, and carrying out 1 adding operation on the Hop Pointer;
and when the message is a response SMP message, performing 1 subtracting operation on the Hop Pointer.
6. A forwarding device for an IB network direct route management message, comprising:
the analyzing unit is used for receiving the SMP message through an inlet port of the switching equipment, analyzing the SMP message, and judging whether the direct routing SMP message meets a predefined processing condition or not according to a message analyzing result at the inlet port when the SMP message type is determined to be the direct routing SMP message;
a forwarding unit, configured to determine an egress port according to a packet transmission direction, a hop pointer, and a subnet path port number vector of the direct route SMP packet when the predefined processing condition is satisfied;
and the updating unit is used for updating the domain segment in the direct routing SMP message and directly forwarding the direct routing SMP message at the inlet port to the outlet port through the switching matrix.
7. The device for forwarding an IB network direct route management message of claim 6, wherein said parsing unit is further configured to:
and analyzing the SMP message to obtain a message type field, and determining that the message is a direct route SMP message through the message type field.
8. The device for forwarding an IB network direct route management message of claim 6, wherein said parsing unit is further configured to:
the local equipment identification, the message length, the message transmission direction, the jump pointer and the jump times of the target port are obtained by analyzing the SMP message,
when the local equipment identification of the target port is PLID and the message length is equal to the actual packet length, judging the message transmission direction,
if the direct route SMP message is determined to be the SMP request message according to the message transmission direction, judging whether a jump Pointer Hop Pointer and the number of hops Hop Count are equal to 0 or more than 255, whether the Hop Pointer is equal to the Hop Count, and whether the Hop pointer+1 is more than the Hop Count, if not, determining that the direct route SMP message meets the predefined processing condition;
if the direct route SMP message is determined to be the SMP response message according to the message transmission direction, judging whether a jump Pointer Hop Pointer and the number of hops Hop Count are equal to or larger than 255, whether the Hop Pointer is equal to 1, and whether the Hop pointer+1 is larger than the Hop Count, if not, determining that the direct route SMP message meets the predefined processing condition.
9. The IB network direct route management message forwarding device of claim 7, wherein said forwarding unit is further configured to:
obtaining a subnet path port number vector by analyzing the SMP message, wherein the subnet path port number vector comprises a return path port number vector and an initial path port number vector;
when the direct route SMP message is determined to be an SMP request message according to the message transmission direction, taking an entry indexed by the Hop Pointer in the initial path port number vector as an outlet port;
when the direct route SMP message is determined to be an SMP response message according to the message transmission direction, an entry indexed by the Hop Pointer in the return path port number vector is taken as an outlet port.
10. The device for forwarding an IB network direct route management message of claim 9, wherein the updating unit is further configured to:
when the message is a request SMP message, updating an entry indexed by the Hop Pointer in the return path port number vector to be a current entry port number, and carrying out 1 adding operation on the Hop Pointer;
and when the message is a response SMP message, performing 1 subtracting operation on the Hop Pointer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311788380.5A CN117729166B (en) | 2023-12-22 | 2023-12-22 | Forwarding method and device for IB network direct route management message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311788380.5A CN117729166B (en) | 2023-12-22 | 2023-12-22 | Forwarding method and device for IB network direct route management message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117729166A true CN117729166A (en) | 2024-03-19 |
CN117729166B CN117729166B (en) | 2024-07-30 |
Family
ID=90206859
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311788380.5A Active CN117729166B (en) | 2023-12-22 | 2023-12-22 | Forwarding method and device for IB network direct route management message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117729166B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080195766A1 (en) * | 2007-02-09 | 2008-08-14 | Fujitsu Limited | Disk-drive automatic recognition/setting apparatus and disk-drive automatic recognition/setting method |
CN106254250A (en) * | 2016-08-03 | 2016-12-21 | 成都之达科技有限公司 | Car networking short-distance networking method |
CN107005496A (en) * | 2014-12-27 | 2017-08-01 | 英特尔公司 | Technology for carrying out expansible local addressing in high performance network structure |
CN107852376A (en) * | 2016-01-27 | 2018-03-27 | 甲骨文国际公司 | The system and method that the router SMA of SMP connectivity inspections for supporting high-performance computing environment mid-span virtual router port is abstracted |
CN108028813A (en) * | 2016-01-28 | 2018-05-11 | 甲骨文国际公司 | System and method for using the subnet prefix value being used in the global route header (GRH) of linear forwarding table (LFT) lookup in high-performance computing environment |
-
2023
- 2023-12-22 CN CN202311788380.5A patent/CN117729166B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080195766A1 (en) * | 2007-02-09 | 2008-08-14 | Fujitsu Limited | Disk-drive automatic recognition/setting apparatus and disk-drive automatic recognition/setting method |
CN107005496A (en) * | 2014-12-27 | 2017-08-01 | 英特尔公司 | Technology for carrying out expansible local addressing in high performance network structure |
CN107852376A (en) * | 2016-01-27 | 2018-03-27 | 甲骨文国际公司 | The system and method that the router SMA of SMP connectivity inspections for supporting high-performance computing environment mid-span virtual router port is abstracted |
CN108028813A (en) * | 2016-01-28 | 2018-05-11 | 甲骨文国际公司 | System and method for using the subnet prefix value being used in the global route header (GRH) of linear forwarding table (LFT) lookup in high-performance computing environment |
CN106254250A (en) * | 2016-08-03 | 2016-12-21 | 成都之达科技有限公司 | Car networking short-distance networking method |
Also Published As
Publication number | Publication date |
---|---|
CN117729166B (en) | 2024-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1858212B1 (en) | A MAC Frame Transfer Method, an edge bridge, and a system for reducing flooding | |
US5754532A (en) | Use of multipoint connection services to establish call-tapping points in a switched network | |
KR100333250B1 (en) | Packet forwarding apparatus with a flow detection table | |
US7848333B2 (en) | Method of multi-port virtual local area network (VLAN) supported by multi-protocol label switch (MPLS) | |
US6570875B1 (en) | Automatic filtering and creation of virtual LANs among a plurality of switch ports | |
US7653062B2 (en) | Packet forwarding apparatus with packet controlling functions | |
US7787466B1 (en) | Nexthop to a forwarding table | |
EP1662722B1 (en) | Packet communication network system | |
WO2012093429A1 (en) | Communication control system, control server, forwarding node, communication control method, and communication control program | |
US20070171844A1 (en) | Determining network paths | |
JP2002185513A (en) | Packet communication network and method for controlling packet transfer | |
CN111935004B (en) | SR Policy-based automatic drainage expansion method, router and system | |
US7293106B2 (en) | Method of finding a path between two nodes in a network | |
EP1156629A1 (en) | Network system and communication node | |
CN117729166B (en) | Forwarding method and device for IB network direct route management message | |
CN113810308A (en) | Data transmission method and device, electronic equipment and storage medium | |
US6515998B1 (en) | Table data retrieving apparatus retrieving table in which reference data is stored by using retrieval key | |
US20070133546A1 (en) | Method for providing QoS using address system and system resolution protocol | |
CN113206793B (en) | Data stream forwarding method and device | |
GB2464889A (en) | Routing line controller | |
CN114448892B (en) | Software and hardware routing method and device | |
WO2024087688A1 (en) | Packet forwarding method and apparatus, device, storage medium, and computer program | |
US20020071150A1 (en) | Apparatus and method for controlling routing | |
KR100624475B1 (en) | Network Element and Packet Forwarding Method thereof | |
CN116346618A (en) | Route configuration method and device of switch and electronic equipment |
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 |