CN112333098B - Message forwarding method and device between service board cards - Google Patents

Message forwarding method and device between service board cards Download PDF

Info

Publication number
CN112333098B
CN112333098B CN202011183130.5A CN202011183130A CN112333098B CN 112333098 B CN112333098 B CN 112333098B CN 202011183130 A CN202011183130 A CN 202011183130A CN 112333098 B CN112333098 B CN 112333098B
Authority
CN
China
Prior art keywords
service board
message
board card
service
card
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
CN202011183130.5A
Other languages
Chinese (zh)
Other versions
CN112333098A (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202011183130.5A priority Critical patent/CN112333098B/en
Publication of CN112333098A publication Critical patent/CN112333098A/en
Application granted granted Critical
Publication of CN112333098B publication Critical patent/CN112333098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/54Organization of routing tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Abstract

The present specification provides a method for forwarding a packet between service boards, which only needs to issue an inter-board forwarding table to a first service board in each service board path. After receiving the message, the first service board inquires a forwarding table between boards according to the type of the message, packaging the guiding information for representing that the message sequentially passes through the 2 nd service board to the Nth service board into the message, and then forwarding the message to the second service board; and each service board card is sequentially processed and forwarded according to the guide information in the message until the service board card is forwarded to the last service board card.

Description

Message forwarding method and device between service board cards
Technical Field
The present disclosure relates to the field of computer network technologies, and in particular, to a method and an apparatus for forwarding a packet between service boards.
Background
The network device is usually configured with a plurality of service boards, wherein different service boards are used for performing different processing on the message, and therefore, a specific message processing flow can be realized by a specific service board path. The main control board of the network device usually determines a corresponding message processing flow according to the type of the received message, and also determines a service board path through which the message needs to pass.
In practical application, the main control board of the network device needs to determine the corresponding relationship between different message types and different service board paths in advance according to the configuration of a user, where the corresponding relationship is used to implement different message processing procedures performed on different types of messages by the network device.
Specifically, the master control board sends an inter-board forwarding table to each service board according to the correspondence between different message types and different service board paths. For any service board card path (assumed to include N service board cards), in the process of a message flowing through the service board card path, each service board card in the first N-1 service board cards queries its own inter-board forwarding table according to the type of the message, so as to forward the processed message to the next service board card, and the nth service board card forwards the processed message to a certain output interface of the network device.
However, there is a need for a method for forwarding messages between service boards with lower latency.
Disclosure of Invention
In order to solve the problem of delay in the method for forwarding the message between the service board cards, the present specification provides a method for forwarding the message between the service board cards, where a network device includes a plurality of service board cards, and the method includes:
sending an inter-board forwarding table to each service board card in advance, wherein the inter-board forwarding table comprises a one-to-one correspondence relationship between at least one service board card path taking the service board card as a starting point and at least one message type group;
determining a service board card path corresponding to the message according to the message type of the message for the message received by the network equipment, wherein the service board card path is used as a target path containing N service board cards;
after the message enters the target path, executing:
the 1 st service board card inquires a self inter-board forwarding table based on the message type of the message; according to the query result, writing guide information into the message, and then forwarding the message to the 2 nd service board card; the guide information is used for representing that the messages are sequentially forwarded to the Nth service board card by the 2 nd service board card;
and the 2 nd service board card to the N-1 th service board card sequentially forward the messages to the Nth service board card based on the guidance information in the messages.
The present specification also provides a network device, which includes a plurality of service boards;
sending an inter-board forwarding table to each service board card in advance, wherein the inter-board forwarding table comprises a one-to-one correspondence relationship between at least one service board card path taking the service board card as a starting point and at least one message type group;
determining a service board card path corresponding to the message according to the message type of the message for the message received by the network equipment, wherein the service board card path is used as a target path containing N service board cards;
after the message enters the target path
The 1 st service board executes: inquiring self inter-board forwarding table based on the message type of the message; according to the query result, writing guide information into the message, and then forwarding the message to the 2 nd service board card; the guide information is used for representing that the messages are sequentially forwarded to the Nth service board card by the 2 nd service board card;
the 2 nd to the N-1 th service boards perform: and sequentially forwarding the messages to the Nth service board card based on the guidance information in the messages.
In the technical solution of the embodiment of the present description, only the inter-board forwarding table needs to be issued to the first service board of each service board path. After receiving the message, the first service board inquires a forwarding table between boards according to the type of the message, packaging the guiding information for representing that the message sequentially passes through the 2 nd service board to the Nth service board into the message, and then forwarding the message to the second service board; and each subsequent service board card is sequentially processed and forwarded according to the guide information in the message until the service board card is forwarded to the last service board card.
Through the technical scheme of the embodiment of the specification, in the process of message forwarding between service board cards of a certain service board card path, only the first service board card needs to query the forwarding table between the board cards, and other service board cards do not need to query the forwarding table between the board cards, so that the time delay of message forwarding between the service board cards is reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
Fig. 1 is a schematic diagram of a scenario shown in this specification.
Fig. 2 is a schematic diagram of a network device structure shown in this specification.
Fig. 3 is a flow chart of packet forwarding between service boards shown in this specification.
Fig. 4 is a schematic diagram of user configuration information shown in this specification.
Fig. 5 is a schematic diagram of a network device shown in this specification.
Detailed Description
As the demand for communication services increases, technicians improve the traditional networking mode to concentrate various service processes on one network device, as shown in fig. 1. In order to satisfy multiple service processing flows, the network device has multiple service board cards, where different service board cards are used to implement different message processing, and a specific service board card path is used to implement a specific message processing flow. The main control board of the network device usually determines a corresponding message processing flow according to the type of the received message, and also determines a service board path through which the message needs to pass.
In practical application, a main control board of the network device needs to determine a corresponding relationship between different message types and different service board paths in advance according to a configuration of a user, and the main control board issues an inter-board forwarding table to each service board according to the corresponding relationship between the different message types and the different service board paths. For any service board card path (assumed to include N service board cards), in the process of flowing a message through the service board card path, each service board card in the first N-1 service board cards queries its own inter-board forwarding table according to the type of the message, so as to forward the processed message to the next service board card, and the nth service board card forwards the processed message to a certain output interface of the network device.
It should be noted that the type of the message is defined by the user according to actual needs, and in this specification, the "determining the type of the message according to the ingress interface and/or the network identifier" is taken as an example, where the network identifiers are the same and are indicated in the same network segment, and the network identifier may be a network identifier corresponding to a source address (source IP) or a network identifier corresponding to a destination address (destination IP). In addition, a one-to-one correspondence relationship exists between one service board path and at least one packet type group, that is, each packet type corresponds to one determined service board path. In actual configuration, different message types may exist to perform the same service processing flow, and therefore, a situation that the same service board path corresponds to multiple message types may exist, so that each service board path corresponds to one message type group, and at least one message type in the message type group exists. As the configuration information shown in fig. 4, "a message received by the ingress interface 1 and having a network segment Q", and "a message received by the ingress interface 2", the corresponding paths of the service board cards are: the service board B → the service board C → the service board F → the service board D, therefore, for the packet type group corresponding to the service board path "service board B → service board C → service board F → service board D", the packet type group is { "the packet received by the input interface 1 and having the network segment Q", and "the packet received by the input interface 2" }.
Specifically, for example, the network device has three input interfaces (input interface 1, input interface 2, and input interface 3), 5 service boards (service board a, service board B, service board C, service board D, and service board F), as shown in fig. 2, and the configuration of the user is as shown in fig. 4:
for a message received by the input interface 1 and having a network segment P, there are four services in the service flow to be performed, and the corresponding service board card paths are: traffic board a → traffic board B → traffic board C → traffic board D.
For a message received by the input interface 1 and having a network segment Q, there are four services in the service flow to be performed, and the corresponding service board card paths are: traffic board B → traffic board C → traffic board F → traffic board D.
For the message received by the input interface 2, there are four services in the service flow that needs to be performed, and the corresponding service board card paths are: traffic board B → traffic board C → traffic board F → traffic board D.
For the message received by the input interface 3, the service flow to be performed has four services, and the corresponding service board card path is: traffic board C → traffic board B → traffic board D.
Then, according to the configuration, the generated inter-board forwarding tables of the service board card a, the service board card B, the service board card C and the service board card F sequentially are:
table 1 inter-board forwarding table of service board a
Packet type group The next service board card identification
{ "message received by ingress interface 1 and having network segment P" } Identification of service board card B
Table 2 inter-board forwarding table of service board B
Figure BDA0002750713800000051
Table 3 inter-board forwarding table of service board C
Figure BDA0002750713800000052
Table 4 inter-board forwarding table of service board F
Figure BDA0002750713800000061
And the inter-board forwarding table corresponding to the service board card D is an empty table.
Supposing that the network device receives a message from the input interface 2, the main control board transfers the message to the service board B according to the stored configuration information, and the service board 1 queries the self inter-board forwarding table according to the message type of the message after completing service processing on the message, and transfers the message to the service board C; after the service board C finishes service processing on the packet, inquiring an inter-board forwarding table of the packet according to the packet type of the packet, and forwarding the packet to a service board F; after the service board F finishes service processing on the message, inquiring an inter-board forwarding table of the service board F according to the message type of the message, and forwarding the message to a service board D; and after the service board D finishes service processing on the message, determining an outgoing interface of the message according to the destination address of the message and forwarding the outgoing interface to the corresponding outgoing interface.
In this implementation manner, the main control board needs to calculate and generate an inter-board forwarding table corresponding to each message type of each service board according to the configuration, and issue the inter-board forwarding table to each service board, and in the process of forwarding the message between the service boards, the inter-board forwarding table needs to be queried once through each service board. However, this approach has the following disadvantages:
1. the forwarding tables between the boards of each service board card are different, the main control board card needs to calculate and generate the forwarding table between the boards of each service board card according to the configuration information, and the calculation process is complex.
2. In the process of forwarding the message between the service boards, the forwarding table between the boards needs to be queried once when the message passes through one service board, so that the delay of message forwarding between the service boards is increased.
3. The master control board card issues the inter-board forwarding tables to the service board cards respectively, and even if the master control service board card issues the inter-board forwarding tables to the service board cards, the time from the inter-board forwarding tables to the service board cards is not necessarily the same, so that a time difference exists between the master control board card and the service board cards in the process of issuing the inter-board forwarding tables to the service board cards, which may cause inconsistency of path information among the service board cards and may not correctly process and forward the message.
In the technical solution of the embodiment of the present specification, the master control board issues an inter-board forwarding table to each service board, where the inter-board forwarding table includes a one-to-one correspondence relationship between at least one service board path that uses the service board as a starting point and at least one packet type group. After receiving the message, the first service board queries a self board-to-board forwarding table according to the message type of the message, then according to a table lookup result, the guidance information used for representing that the message will sequentially pass through the 2 nd service board card to the Nth service board card is packaged into the message, and the subsequent service board cards sequentially forward the message according to the guidance information in the message until the message is forwarded to the last service board card.
The guidance information is used for representing that the message sequentially passes through a 2 nd service board card to an Nth service board card, and the contained information is specifically information of a 3 rd service board card to an Nth service board card, so that the 2 nd service board card to the N-1 th service board card can confirm a next service board card of the message.
With continued reference to the schematic diagram of the network device in fig. 2 and the configuration information diagram in fig. 4, in the service processing flows corresponding to the four message types, the service board a, the service board B, and the service board C are respectively located at the beginning of one of the service board paths, so that the master control board mainly needs to calculate and issue an inter-board forwarding table of the service board a, the service board B, and the service board C, as follows:
table 5 inter-board forwarding table of service board a
Figure BDA0002750713800000071
Table 6 inter-board forwarding table of service board B
Figure BDA0002750713800000072
Table 7 inter-board forwarding table of service board C
Packet type group Service board card identification path
{ "message received by ingress interface 3" } Service board B → service board D
The service board card D and the service board card F are not the first service board card of any service board card path, and therefore the master control board card does not need to issue an inter-board forwarding table to the service board card D and the service board card F.
Assuming that the network device receives a message from the interface 2, the main control board forwards the message to the service board B according to the stored configuration information, after the service board B finishes service processing on the message, the service board B queries its own inter-board forwarding table according to the message type of the message, writes a service board path (service board F → service board D) between other service boards of the message into the message as guide information, and forwards the message to the service board C; after the service board C finishes processing the message, reading the guide information in the message, and forwarding the message to a service board F according to the guide information; after the service board card F finishes processing the message, reading the guide information in the message, and forwarding the message to a service board card D according to the guide information; and after the last service board D finishes processing the message, determining an outgoing interface of the message according to the destination address of the message and forwarding the outgoing interface to the corresponding outgoing interface.
Through the technical scheme of the embodiment of the specification, the following beneficial effects can be included:
1. the main control board only needs to calculate the one-to-one corresponding relation between the service board path and the message type group, and the calculation process is simplified.
2. Only the first service board card is needed to inquire the forwarding table between boards, and other service board cards do not need to inquire the forwarding table between boards, so that the time delay of message forwarding between the service board cards is reduced.
3. For the path information of one service board card, only the forwarding table between boards needs to be issued to the first service board card, and the problem that the forwarding table between the receiving boards of each service board card has time difference does not exist.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the claims that follow.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if," as used herein, may be interpreted as "at \8230; \8230when" or "when 8230; \823030when" or "in response to a determination," depending on the context.
The following is a detailed description of examples of the present specification.
In one or more embodiments of the present description, an inter-board forwarding table is issued to each service board in advance, where the inter-board forwarding table includes a one-to-one correspondence relationship between at least one service board path that uses the service board as a starting point and at least one packet type group. After receiving a message, the network device determines a service board card path corresponding to the message and including N service board cards as a target path according to the stored configuration information and the message type of the message.
After entering the target path, the packet is forwarded according to the flow shown in fig. 3, including the following steps:
step 102, the 1 st service board inquires a self board forwarding table based on the message type of the message.
And step 104, writing the guide information into the message according to the query result, and then forwarding the message to the 2 nd service board card.
The query result includes information including a forwarding sequence between the service boards, and generally only a service board path including the 2 nd to nth service boards is used, and may be a result in a form of (service board 2 → service board 3 → 8230; 8230 → service board N), or, of course, a result in a form of (service board 1 → service board 2 → service board 3 → 8230; → service board N).
The above-mentioned guiding information is used to represent the 3 rd to nth service boards through which the message will pass. Specifically, the guidance information may be a board identifier sequence obtained according to a sequence from the 3 rd service board to the nth service board, such as (service board identifier 3, service board identifier 4, \8230;, service board identifier N); the method can also obtain the card identifier pairs of each service card and the next service card according to the forwarding relationship between the 2 nd service card and the nth service card, such as (service card identifier 2, service card identifier 3), (service card identifier 3, service card identifier 4), \8230, (service card identifier N-1, service card identifier N).
It should be noted that the writing of the guidance information into the message is to enable the message to carry the guidance information, and the service board can identify the guidance information from the message, and may specifically write the header, the tail, or the interior of the message.
In practical application, there may be a case that the service board card is a virtual board card (composed of a plurality of entity service board cards capable of performing the same service processing), at this time, it may be determined that a certain entity service board card in the virtual board card has more messages for performing service processing according to a traffic sharing algorithm set by a user, and then the identity of the entity service board card is used as the board card identity of the virtual service board card.
And 106, sequentially forwarding the message to the Nth service board card from the 2 nd service board card to the N-1 st service board card based on the guidance information in the message.
Specifically, in the configuration information shown in fig. 4, one of the paths of the service board card is: service board B → service board C → service board F → service board D, and the path of this service board includes 4 service boards, that is, N =4. After receiving the message, the 2 nd service board C reads the guide information in the message, and then forwards the message to the 3 rd service board F; after receiving the message, the 3 rd service board F reads the guidance information in the message, and then forwards the message to the 4 th service board D.
In one or more specific embodiments, after determining the (i + 1) th service board of the packet to be forwarded, the ith service board updates the direction information, that is, the (i + 1) th board identifier in the board identifier sequence may be deleted, where i belongs to [2, n-1]. That is, after any one of the 2 nd to N-1 th service boards receives the message and determines the next service board, the useless guide information in the guide information is deleted. Taking the example that the guide information is the board identification sequence, the specific implementation process is as follows (for convenience of description, in the following description, the ith service board is called a service board i, and the identification of the ith service board is called a service board identification i):
the service board card 1: inquiring the forwarding table between boards according to the message type of the message, determining that the next service board of the message is the service board 2, encapsulating the board identification sequence (service board identification 3, service board identification 4, \8230;, service board identification N) to the message, and then forwarding the message to the service board 2.
And (3) the service board card 2: according to the board identification sequence in the message, determining that the next service board of the message is the service board 3, deleting the service board identification at the outermost layer of the board identification sequence, wherein the board identification sequence is (service board identification 4, \8230; service board identification N), and then forwarding the message to the service board 3.
And (3) a service board card: according to the board identification sequence in the message, determining that the next service board of the message is the service board 4, deleting the service board identification on the outermost layer of the board identification sequence, wherein the board identification sequence is (service board identification 5, \8230; service board identification N), and then forwarding the message to the service board 3.
……
A service board card N-1: and determining that the next service board of the message is a service board N according to the board identification sequence in the message, deleting the service board identification at the outermost layer of the board identification sequence, deleting the board identification sequence, and then forwarding the message to the service board N.
A service board card N: and determining the outgoing interface information of the message according to the destination address of the message, and forwarding the message to a corresponding outgoing interface.
In an optional manner, the guidance information is not updated or changed from the 2 nd service board card to the N-1 st service board card, and when the last service board card, that is, the nth service board card receives the message, the guidance information is deleted in a unified manner.
In practical applications, the main control board further needs to issue a FIB table (Forward Information data base, forwarding Information table) to the service board at the end of the path of the service board, where the FIB table includes a corresponding relationship between a destination address and a forwarding output interface, and is used for the service board at the end of the path of the service board to confirm the output interface of the message. In practical applications, the corresponding relationship between the destination address and the forwarding output interface is that one output interface corresponds to a plurality of destination addresses, but each destination address has a certain output interface.
Therefore, in one or more embodiments, the main control board may not issue the FIB table (also referred to as a destination forwarding table in this specification) to the service board at the end of the path of the service board, but issue the FIB table to the service board at the beginning of the path of the service board, at this time, in step 102, the 1 st service board further needs to query the FIB table according to the destination address of the message, and determine the outgoing interface information of the message; in step 104, the outgoing interface information is also encapsulated into the message as part of the message's direction information. Continuing to take the example that the guide information is the board card identification sequence, the specific implementation is as follows:
the service board card 1: inquiring a forwarding table between boards according to the message type of the message, determining that the next service board of the message is a service board 2, encapsulating a board identification sequence (service board identification 3, service board identification 4, \8230;, service board identification N) to the message, inquiring an FIB table according to the destination address of the message, determining outgoing interface information of the message, encapsulating the outgoing interface information into the message, and then forwarding the message to the service board 2.
And (3) the service board card 2: and determining the next service board as the service board 3 according to the board identification sequence in the message, deleting the service board identification on the outermost layer of the board identification sequence, wherein the board identification sequence is (service board identification 4, \8230;, service board identification N), and forwarding the message to the service board 3.
The service board card 3: according to the board identification sequence in the message, the next service board is determined to be the service board 4, the service board identification at the outmost layer of the board identification sequence is deleted, at this time, the board identification sequence is (service board identification 5, \8230;, service board identification N), and then the message is forwarded to the service board 3.
……
A service board card N-1: and determining the next service board as a service board N according to the board identification sequence in the message, deleting the service board identification at the outermost layer of the board identification sequence, deleting the board identification sequence at the moment, and then forwarding the message to the service board N.
A service board card N: and determining the outgoing interface of the message according to the outgoing interface information in the message, deleting the outgoing interface information of the message, and forwarding the message to the corresponding outgoing interface.
Similarly, in an optional manner, the guide information is not updated or changed from the 2 nd service board to the N-1 th service board, and when the last service board, that is, the nth service board receives the message, the guide information is deleted uniformly.
Alternatively, after encapsulating the outbound interface information into the card identification sequence, for example, (service card identification 3, service card identification 4, \8230;, service card identification N, outbound interface information), when the nth service card receives the message, the guidance information is (outbound interface information).
In addition, in practical application, a situation that a service board card fails may exist, for example, a certain service board card is pulled out or a certain service board card is short-circuited, and after the master control board card scans and monitors that a fault occurs in a certain service board card, for each service board card path of the service board card including the fault, it is determined whether the fault service board card is the 1 st service board card in the service board card path, if not, the service board card path is updated based on the fault service board card, and based on the updated service board card path, the inter-board forwarding table is newly issued to the 1 st service board card in the service board card path. Updating the path of the service board card based on the failed service board card means that if a substitute service board card for replacing the failed service board card exists, the substitute service board card is used for replacing the position in the failed service board card; and if the substitute service board card for replacing the fault service board card does not exist, deleting the fault service board card in the service board card path.
In this case, only the inter-board forwarding table of the first service board in the path of the service boards needs to be deleted, instead of deleting the inter-board forwarding tables of all the service boards in the prior art, so that the fault convergence time of the service boards is reduced.
It should be noted that, if a service board is neither the first service board (the service board at the beginning of the path of the service board) nor the last service board (the service board at the end of the path of the service board), it may be a service board without a routing forwarding function (because table lookup is not needed).
If a service board is not the first service board in any service board path, then an empty inter-board forwarding table may be issued or an inter-board forwarding table may not be issued. If a service is not the last service board card of any service board card path, an empty FIB table can be issued or the FIB table is not issued.
The present specification provides a network device, as shown in fig. 5, including a main control board, a plurality of service boards:
the main control board card executes: for each service board card, issuing an inter-board forwarding table to the service board card, wherein the inter-board forwarding table comprises a one-to-one correspondence relationship between at least one service board card path taking the service board card as a starting point and at least one message type group; for a message received by the network equipment, determining a service board card path corresponding to the message and including N service board cards as a target path according to the message type of the message;
after the message enters the target path
The 1 st service board executes: inquiring an inter-board forwarding table of the message based on the message type of the message; according to the query result, writing guide information into the message, and then forwarding the message to the 2 nd service board card; the guide information is used for representing that the messages are sequentially forwarded to the Nth service board card by the 2 nd service board card;
the 2 nd to the N-1 th service boards perform: and sequentially forwarding the messages to the Nth service board card based on the guidance information in the messages.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (9)

1. A method for forwarding messages among service board cards is characterized in that network equipment comprises a plurality of service board cards, and a forwarding table among the service board cards is issued to each service board card in advance, wherein the forwarding table among the service board cards comprises a one-to-one correspondence relationship between at least one service board card path taking the service board card as a starting point and at least one message type group; determining a service board card path containing N service board cards corresponding to a message as a target path according to the message type of the message for the message received by the network equipment;
the method comprises the following steps:
after the message enters the target path, the 1 st service board card inquires a self inter-board forwarding table based on the message type of the message; according to the query result, writing guide information into the message, and then forwarding the message to the 2 nd service board card; the guide information is used for representing that the message sequentially passes through the 2 nd service board card to the Nth service board card; the guide information comprises a board card identification sequence; the board card identification sequence is a sequence obtained by the board card identifications of the 3 rd to the Nth service board cards of the target path according to the sequence;
and the 2 nd service board card to the N-1 th service board card sequentially forward the messages to the Nth service board card based on the guidance information in the messages.
2. The method of claim 1, wherein a packet type of the packet is defined based on an ingress interface corresponding to the packet and/or a network identifier corresponding to the packet.
3. The method of claim 1, further comprising:
after the ith service board card determines the (i + 1) th service board card of the message to be forwarded, updating the guidance information, including: deleting the (i + 1) th board card identification in the board card identification sequence; i belongs to [2, N-1].
4. The method of claim 1, wherein in a case that at least one of the traffic boards of the target path is a virtual board, the virtual board is used to represent at least two physical boards, the method further comprising:
and the 1 st service board card selects a board card identifier of an entity board card corresponding to the virtual board card based on a pre-deployed flow sharing algorithm for each virtual board card in the target path, and writes the selected board card identifier into the board card identifier sequence as the board card identifier of the virtual board card.
5. The method of claim 1, further comprising:
if any service board card is monitored to have a fault, judging whether the fault service board card is the 1 st service board card in the service board card path or not aiming at each service board card path of the service board cards containing the fault; if not, updating the service board card path based on the failed service board card, and retransmitting an inter-board forwarding table to the 1 st service board card of the service board card path based on the updated service board card path.
6. The method of claim 1,
the method comprises the steps that a destination forwarding table is issued to each service board card in advance, wherein the destination forwarding table comprises one-to-one correspondence between at least one destination address group and at least one egress interface;
the guidance information further includes: and the output interface information corresponding to the destination address of the message.
7. The method of claim 6, further comprising:
the Nth service board card determines an output interface corresponding to the message based on the guidance information in the message;
deleting the guiding information in the message, and then forwarding the message to the determined outgoing interface.
8. A network device is characterized by comprising a plurality of service board cards;
sending an inter-board forwarding table to each service board card in advance, wherein the inter-board forwarding table comprises a one-to-one correspondence relationship between at least one service board card path taking the service board card as a starting point and at least one message type group; for a message received by the network equipment, determining a service board card path corresponding to the message and including N service board cards as a target path according to the message type of the message;
after the packet enters the target path, the packet is sent to the target path,
the 1 st service board executes: inquiring self inter-board forwarding table based on the message type of the message; according to the query result, writing guide information into the message, and then forwarding the message to the 2 nd service board card; the guide information is used for representing that the message sequentially passes through the 2 nd service board card to the Nth service board card; the guide information comprises a board card identification sequence; the board card identification sequence is a sequence obtained by the board card identifications of the 3 rd service board card to the Nth service board card of the target path according to a sequence;
the 2 nd service board card to the (N-1) th service board card execute: and sequentially forwarding the messages to the Nth service board card based on the guidance information in the messages.
9. The network device of claim 8, further comprising a master control board;
the main control board card executes: for each service board card, issuing an inter-board forwarding table to the service board card, wherein the inter-board forwarding table comprises a one-to-one correspondence relationship between at least one service board card path taking the service board card as a starting point and at least one message type group; and for the message received by the network equipment, determining a service board card path which comprises N service board cards and corresponds to the message as a target path according to the message type of the message.
CN202011183130.5A 2020-10-29 2020-10-29 Message forwarding method and device between service board cards Active CN112333098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011183130.5A CN112333098B (en) 2020-10-29 2020-10-29 Message forwarding method and device between service board cards

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011183130.5A CN112333098B (en) 2020-10-29 2020-10-29 Message forwarding method and device between service board cards

Publications (2)

Publication Number Publication Date
CN112333098A CN112333098A (en) 2021-02-05
CN112333098B true CN112333098B (en) 2022-11-25

Family

ID=74296700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011183130.5A Active CN112333098B (en) 2020-10-29 2020-10-29 Message forwarding method and device between service board cards

Country Status (1)

Country Link
CN (1) CN112333098B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691469B (en) * 2021-07-27 2023-12-26 新华三技术有限公司合肥分公司 Message disorder rearrangement method and single board
CN115150317B (en) * 2022-06-22 2023-09-12 杭州迪普科技股份有限公司 Routing table entry issuing method and device, electronic equipment and computer readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059946A (en) * 2016-05-23 2016-10-26 杭州华三通信技术有限公司 Message forwarding method and message forwarding device
CN107820267A (en) * 2014-09-02 2018-03-20 福建三元达网络技术有限公司 The message processing method and system of more board LTE gateways
CN111092819A (en) * 2019-12-26 2020-05-01 瑞斯康达科技发展股份有限公司 Method and equipment for receiving and transmitting multicast service message
CN111131079A (en) * 2019-12-26 2020-05-08 杭州迪普科技股份有限公司 Policy query method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158749A (en) * 2013-05-14 2014-11-19 华为技术有限公司 Message forwarding method in software defined networking, network equipment and software defined networking
CN104811400B (en) * 2014-01-26 2018-04-06 杭州迪普科技股份有限公司 A kind of distributed network equipment
CN105227463B (en) * 2014-06-13 2018-09-04 杭州迪普科技股份有限公司 A kind of communication means in distributed apparatus between business board
CN104184663B (en) * 2014-07-17 2018-02-06 北京交通大学 Communication means and device based on software defined network and integrated identification network
CN104283789B (en) * 2014-09-19 2016-04-13 深圳市腾讯计算机***有限公司 Route convergent method and system
CN106302841A (en) * 2015-05-18 2017-01-04 中兴通讯股份有限公司 A kind of method and device of carrier class networks address conversion
CN111385209B (en) * 2018-12-28 2021-06-22 华为技术有限公司 Message processing method, message forwarding method, device and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107820267A (en) * 2014-09-02 2018-03-20 福建三元达网络技术有限公司 The message processing method and system of more board LTE gateways
CN106059946A (en) * 2016-05-23 2016-10-26 杭州华三通信技术有限公司 Message forwarding method and message forwarding device
CN111092819A (en) * 2019-12-26 2020-05-01 瑞斯康达科技发展股份有限公司 Method and equipment for receiving and transmitting multicast service message
CN111131079A (en) * 2019-12-26 2020-05-08 杭州迪普科技股份有限公司 Policy query method and device

Also Published As

Publication number Publication date
CN112333098A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
US6633565B1 (en) Apparatus for and method of flow switching in a data communications network
CN112333098B (en) Message forwarding method and device between service board cards
US10541861B2 (en) Network system, method, and switch device
EP0910224B1 (en) Apparatus and method for connection switching and control
US11082308B2 (en) Multi-path aware tracing and probing functionality at service topology layer
JP3640299B2 (en) A proposal and response architecture for route lookup and packet classification requests
US6650642B1 (en) Network relaying apparatus and network relaying method capable of high-speed routing and packet transfer
US6697361B2 (en) Method and apparatus for stream aggregation in a multiprotocol label switching network environment
CN106878194B (en) Message processing method and device
US8040888B1 (en) Packet switch with port route tables
US20180241608A1 (en) Forwarding ethernet packets
CN108600099B (en) Message forwarding method and device and leaf equipment
US6499061B1 (en) Method and system for assigning labels to data flows over a packet switched network
WO2015114473A1 (en) Method and apparatus for locality sensitive hash-based load balancing
CN107547346B (en) Message transmission method and device
CN109743414B (en) Method for improving address translation availability using redundant connections and computer readable storage medium
US6658003B1 (en) Network relaying apparatus and network relaying method capable of high-speed flow detection
CN110166857B (en) Method for realizing dynamic configuration of fiber channel switch
CN113259268A (en) Network port and serial port data forwarding gateway and method supporting redundancy architecture
US10178018B2 (en) Transmission and reception devices
JP2000196672A (en) Inter-network repeater
CN110768917B (en) Message transmission method and device
CN115426312A (en) Method and device for managing, optimizing and forwarding identifiers in large-scale multi-modal network
CN106411553B (en) Method and device for optimizing service chain path
US7636352B2 (en) Maintaining filtering database consistency

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