CN106059964B - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN106059964B
CN106059964B CN201610608322.3A CN201610608322A CN106059964B CN 106059964 B CN106059964 B CN 106059964B CN 201610608322 A CN201610608322 A CN 201610608322A CN 106059964 B CN106059964 B CN 106059964B
Authority
CN
China
Prior art keywords
message
forwarding plane
sending
extended
packet
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
CN201610608322.3A
Other languages
Chinese (zh)
Other versions
CN106059964A (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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN201610608322.3A priority Critical patent/CN106059964B/en
Publication of CN106059964A publication Critical patent/CN106059964A/en
Application granted granted Critical
Publication of CN106059964B publication Critical patent/CN106059964B/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
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/45Arrangements for providing or supporting expansion

Landscapes

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

Abstract

The invention discloses a message forwarding method and a device, wherein the method comprises the following steps: acquiring message characteristics of a first message; determining a forwarding plane corresponding to the message characteristics; if the forwarding plane corresponding to the message feature is an extended forwarding plane, sending first setting information and the first message corresponding to the extended forwarding plane, so that the extended forwarding plane processes the first message according to a first setting rule and the first setting information to obtain a second message, appointing a first sending port for the second message, and sending the first sending port and the second message to the original forwarding plane; and forwarding the second message through the first sending port. According to the scheme, the functions of the SDN network and the functions of the traditional network can be compatible in the network equipment, and the flexibility of the forwarding plane of the network equipment is improved.

Description

Message forwarding method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for forwarding a packet.
Background
In recent years, Network technologies have revolutionized under the guidance of the Software Defined Network (SDN) concept. The trend of SDN as a next generation network has been well recognized and recognized by the industry, especially the idea of forwarding control separation, and has put higher demands on the flexibility of the forwarding plane of the network device.
Although the SDN technology is rapidly developing, the realization and verification of the function thereof needs a certain time, and the function of the conventional network is still needed by many services. Therefore, how to combine the functions of the SDN network with the functions of the legacy network in the network device is a problem that needs to be solved.
Disclosure of Invention
The embodiment of the invention provides a message forwarding method and a message forwarding device, which are used for realizing the compatibility of the SDN function and the traditional network function in network equipment.
According to an embodiment of the present invention, a packet forwarding method is provided, which is applied to an original forwarding plane included in a network device, where the network device further includes an extended forwarding plane, and the method includes:
acquiring message characteristics of a first message;
determining a forwarding plane corresponding to the message characteristics;
if the forwarding plane corresponding to the message feature is an extended forwarding plane, sending first setting information and the first message corresponding to the extended forwarding plane, so that the extended forwarding plane processes the first message according to a first setting rule and the first setting information to obtain a second message, appointing a first sending port for the second message, and sending the first sending port and the second message to the original forwarding plane;
and forwarding the second message through the first sending port.
Specifically, determining a forwarding plane corresponding to the message feature specifically includes:
acquiring a corresponding relation between preset message characteristics and a forwarding plane;
searching the table entry comprising the message characteristics in the corresponding relation;
if the table entry comprising the message characteristics is found, the forwarding plane included in the table entry is obtained, and the forwarding plane corresponding to the message characteristics is obtained.
Specifically, if the original forwarding plane and the extended forwarding plane support the stacking function, the step of sending the first setting information and the first packet corresponding to the extended forwarding plane, so that the extended forwarding plane processes the first packet according to a first setting rule and the first setting information to obtain a second packet, and assigns a first sending port for the second packet, and sends the first sending port and the second packet to the original forwarding plane specifically includes:
acquiring first setting information corresponding to the extended forwarding plane;
adding a stacking information head comprising the first setting information in the first message to obtain a third message;
sending the third message to the extended forwarding plane, so that the extended forwarding plane obtains the first setting information and the first message from the third message, processes the first message according to a first setting rule and the first setting information to obtain a second message, assigns a first sending port for the second message, replaces the first setting information in the stack information header with the first sending port to obtain a fourth message, and sends the fourth message to the original forwarding plane.
Specifically, forwarding the second packet through the first sending port specifically includes:
receiving the fourth message sent by the extended forwarding plane;
acquiring the first sending port from the stacking information header, and acquiring the second message from the fourth message;
and sending the second message through the first sending port.
Optionally, the method further includes:
if the forwarding plane corresponding to the message feature is the original forwarding plane, processing the first message according to a second set rule corresponding to the original forwarding plane to obtain a fifth message;
assigning a second sending port for the fifth message;
and sending the fifth message through the second sending port.
According to an embodiment of the present invention, there is also provided a packet forwarding apparatus, applied to an original forwarding plane included in a network device, where the network device further includes an extended forwarding plane, and the apparatus includes:
the acquisition module is used for acquiring the message characteristics of the first message;
a determining module, configured to determine a forwarding plane corresponding to the packet feature;
a first sending module, configured to send, if a forwarding plane corresponding to the packet feature is an extended forwarding plane, first setting information and the first packet corresponding to the extended forwarding plane, so that the extended forwarding plane processes the first packet according to a first setting rule and the first setting information to obtain a second packet, assigns a first sending port for the second packet, and sends the first sending port and the second packet to the original forwarding plane;
and the second sending module is used for forwarding the second message through the first sending port.
Specifically, the determining module is configured to determine a forwarding plane corresponding to the packet feature, and specifically configured to:
acquiring a corresponding relation between preset message characteristics and a forwarding plane;
searching the table entry comprising the message characteristics in the corresponding relation;
if the table entry comprising the message characteristics is found, the forwarding plane included in the table entry is obtained, and the forwarding plane corresponding to the message characteristics is obtained.
Specifically, if the original forwarding plane and the extended forwarding plane support the stacking function, the first sending module is configured to send first setting information and the first packet corresponding to the extended forwarding plane, so that the extended forwarding plane processes the first packet according to a first setting rule and the first setting information to obtain a second packet, assigns a first sending port to the second packet, and sends the first sending port and the second packet to the original forwarding plane, and specifically is configured to:
acquiring first setting information corresponding to the extended forwarding plane;
adding a stacking information head comprising the first setting information in the first message to obtain a third message;
sending the third message to the extended forwarding plane, so that the extended forwarding plane obtains the first setting information and the first message from the third message, processes the first message according to a first setting rule and the first setting information to obtain a second message, assigns a first sending port for the second message, replaces the first setting information in the stack information header with the first sending port to obtain a fourth message, and sends the fourth message to the original forwarding plane.
Specifically, the second sending module is configured to forward the second packet through the first sending port, and specifically configured to:
receiving the fourth message sent by the extended forwarding plane;
acquiring the first sending port from the stacking information header, and acquiring the second message from the fourth message;
and sending the second message through the first sending port.
Optionally, the system further includes a third sending module, configured to:
if the forwarding plane corresponding to the message feature is the original forwarding plane, processing the first message according to a second set rule corresponding to the original forwarding plane to obtain a fifth message;
assigning a second sending port for the fifth message;
and sending the fifth message through the second sending port.
The invention has the following beneficial effects:
the embodiment of the invention provides a message forwarding method and a device, which are applied to an original forwarding plane included in network equipment, wherein the network equipment also comprises an extended forwarding plane, and the method comprises the following steps: acquiring message characteristics of a first message; determining a forwarding plane corresponding to the message characteristics; if the forwarding plane corresponding to the message feature is an extended forwarding plane, sending first setting information and the first message corresponding to the extended forwarding plane, so that the extended forwarding plane processes the first message according to a first setting rule and the first setting information to obtain a second message, appointing a first sending port for the second message, and sending the first sending port and the second message to the original forwarding plane; and forwarding the second message through the first sending port. In the scheme, the network equipment comprises an original forwarding plane and an extended forwarding plane, the original forwarding plane can realize the function of a traditional network, the extended forwarding plane can set rules for processing messages according to needs so as to realize the function of the SDN, and therefore the scheme can be compatible with the function of the SDN and the function of the traditional network in the network equipment, and the flexibility of the forwarding plane of the network equipment is improved.
Drawings
Fig. 1 is a flowchart of a message forwarding method in an embodiment of the present invention;
FIG. 2 is a flowchart of S12 in an embodiment of the present invention;
FIG. 3 is a flowchart of S13 in an embodiment of the present invention;
FIG. 4 is a flowchart of S14 in an embodiment of the present invention;
FIG. 5 is a block diagram of a box switch according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a packet forwarding apparatus in an embodiment of the present invention.
Detailed Description
In order to implement a function of compatible SDN network and a function of traditional network in a network device, an embodiment of the present invention provides a packet forwarding method, which may be applied in an original forwarding plane included in the network device, where the network device further includes an extended forwarding plane, the number of the extended forwarding planes may be set according to actual needs, the network device may be a switch, a router, or the like, and the switch may be a box switch, a cabinet switch, or the like, a flow of the method is shown in fig. 1, and the method includes the following steps:
s11: and acquiring the message characteristics of the first message.
Usually, the first message includes many feature information, such as a receiving port, etc., and the following description will take the message feature as the receiving port as an example.
Generally, a network device has a plurality of ports, and these ports are used to receive and transmit messages, and since messages received by different ports may have different processing manners, it is necessary to first determine the port for receiving the message. The message to be forwarded is defined as a first message, and the port for receiving the first message is defined as a receiving port.
S12: and determining a forwarding plane corresponding to the message characteristics.
The original forwarding plane is a forwarding plane set by the network device to satisfy the function of the conventional network, and the network device further includes an extended forwarding plane, so that the forwarding plane of the first packet can be determined by the original forwarding plane, and specifically can be determined according to the receiving port of the first packet.
S13: if the forwarding plane corresponding to the message characteristics is an extended forwarding plane, sending first setting information and a first message corresponding to the extended forwarding plane, so that the extended forwarding plane processes the first message according to a first setting rule and the first setting information to obtain a second message, appointing a first sending port for the second message, and sending the first sending port and the second message to the original forwarding plane.
And if the forwarding plane corresponding to the message characteristic is an extended forwarding plane, processing the first message by the extended forwarding plane. When the number of the extended forwarding planes is multiple, the original forwarding plane correspondingly stores the first setting information corresponding to each extended forwarding plane. And the original forwarding plane sends the first message and the first setting information to the extended forwarding plane. The first setting information may be set according to actual needs, for example, a receiving port and receiving time of the first packet.
The extended forwarding plane may preset processing rules of the packet, where the processing rules are defined as first setting rules, and the first setting rules may be MAC address learning, packet quantity statistics, routing policy making, open flow table (OpenFlow), and the like. The extended forwarding plane also specifies a sending port for the second packet, where the specified sending port is defined as the first sending port. The extended forwarding plane sends the second message and the first sending port to the original forwarding plane.
The extended forwarding plane may be implemented in a software form or a hardware form, and for the hardware form, a Field Programmable Gate Array (FPGA), a Complex Programmable Logic Device (CPLD), or the like may be used.
S14: and forwarding the second message through the first sending port.
Because the extended forwarding plane has processed the first message to obtain the second message and designates the first sending port for the second message, the original forwarding plane can directly send the second message through the first sending port, thereby realizing message forwarding.
In the scheme, the network equipment comprises an original forwarding plane and an extended forwarding plane, the original forwarding plane can realize the function of a traditional network, the extended forwarding plane can set rules for processing messages according to needs so as to realize the function of the SDN, and therefore the scheme can be compatible with the function of the SDN and the function of the traditional network in the network equipment, and the flexibility of the forwarding plane of the network equipment is improved.
The following describes each step of the above message forwarding method in detail.
Specifically, the implementation process of determining the forwarding plane corresponding to the packet feature in S12, as shown in fig. 2, specifically includes:
s121: and acquiring the corresponding relation between the preset message characteristics and the forwarding plane.
Because the message characteristics and the forwarding plane are preset, the forwarding plane corresponding to each message characteristic can be preset, and each message characteristic and the corresponding forwarding plane are stored in the corresponding relationship between the message characteristics and the forwarding plane. Wherein, the forwarding plane may be an original forwarding plane or an extended forwarding plane.
When the first message needs to be forwarded, the corresponding relationship is obtained first.
S122: and searching the table entry comprising the message characteristics in the corresponding relation.
S123: if the table entry including the message characteristics is found, the forwarding plane included in the table entry is obtained, and the forwarding plane corresponding to the message characteristics is obtained.
The determination of the forwarding plane corresponding to the message feature can be realized through steps S121 to S123, which only exemplifies one implementation manner, and other manners are not described again.
Specifically, in the above S13, the first setting information and the first packet corresponding to the extended forwarding plane are sent to the extended forwarding plane, so that the extended forwarding plane processes the first packet according to the first setting rule and the first setting information to obtain the second packet, and assigns the first sending port for the second packet, and sends the first sending port and the second packet to the original forwarding plane, the implementation manners of this step are various, and a description is given below by citing a manner, if the original forwarding plane and the extended forwarding plane support the stacking function, as shown in fig. 3, S13 specifically includes:
s131: first setting information corresponding to the extended forwarding plane is acquired.
Since the first setting information required for processing the first packet may be different for each extended forwarding plane, the first setting information corresponding to the extended forwarding plane needs to be obtained first.
S132: and adding a stacking information head comprising first setting information in the first message to obtain a third message.
The stacking technology can realize that a plurality of network devices interconnected through stacking links in a network work like one network device, and the plurality of network devices using the stacking technology are externally represented like one network device with a plurality of ports as long as the one logical network device is configured. The stacking header is the foundation of the stacking technology and contains some information required by the stacking technology. When the first message needs to be forwarded among a plurality of network devices in the stacking mode, the stacking information header is added into the first message, the stacking information header comprises first setting information, and the first message with the stacking information header added is defined as a third message.
When the network device is a switch, the original forwarding plane at this time may be a domain processor (field processor, FP) and a stack port of the switch chip. The stacked headers of different switch chips may not be in the same format, but all contain some of the most basic data, e.g., receive port and transmit port, etc.
S133: and sending the third message to an extended forwarding plane so that the extended plane acquires first setting information and a first message from the third message, processing the first message according to a first setting rule and the first setting information to obtain a second message, assigning a first sending port for the second message, replacing the first setting information in the stack information header with the first sending port to obtain a fourth message, and sending the fourth message to the original forwarding plane.
After the original forwarding plane sends the third message to the extended forwarding plane, the extended forwarding plane needs to be able to identify a stack information header carried in the third message, obtain first setting information and a first message therefrom, then process the first message in combination with a first setting rule and the first setting information, define the processed first message as a second message, assign a first sending port for the second message, replace the first setting information in the stack information header with the first sending port, and obtain a fourth message. The extended forwarding plane sends the fourth message to the original forwarding plane, so that the first sending port and the second message are sent to the original forwarding plane, and then the original forwarding plane forwards the fourth message for subsequent processing.
Accordingly, if the original forwarding plane and the extended forwarding plane support the stacking function, the implementation manner of forwarding the second packet through the first sending port in S14 specifically includes, as shown in fig. 4:
s141: and receiving a fourth message sent by the extended forwarding plane.
S142: and acquiring the first sending port from the stacking information head, and acquiring the second message from the fourth message.
S143: and sending the second message through the first sending port.
The original forwarding plane can send the second message through the first sending port through the S141-S143, and the extended forwarding plane can be added as needed, and the extended forwarding plane can realize the function of the SDN network as needed, so that the network device can be compatible with the function of the conventional network and the function of the SDN network, and the flexibility of the forwarding plane of the network device is increased.
In an optional implementation manner, the message forwarding method further includes: if the forwarding plane corresponding to the message characteristics is the original forwarding plane, processing the first message according to a second set rule corresponding to the original forwarding plane to obtain a fifth message; a second sending port is appointed for the fifth message; and sending the fifth message through the second sending port.
If the original forwarding plane determines that the forwarding plane corresponding to the message characteristics is self, the original forwarding plane can directly process the first message according to a second set rule, the processed first message is defined as a fifth message, a second sending port is appointed for the fifth message, and then the fifth message is sent through the second sending port, so that the function of the network equipment in the traditional network is realized.
The embodiment of the invention provides another message forwarding method, which is applied to a box type switch shown in fig. 5, wherein an FPGA (field programmable gate array) realizes an extended forwarding plane, an exchange chip is a Trident, an original forwarding plane is realized and is a core part of the switch, and the FPGA and the Trident are connected through a stacking port. It is assumed that the extended forwarding plane is an Openflow pipeline implemented by FPGA, capable of parsing the Higig header (i.e., the stack header) and encapsulating the Higig header. The extended forwarding plane is to convert the receiving port carried by the Higig header into a source port used by a flow table (table)0-n and encapsulate the first sending port decided by the Openflow pipeline into the Higig header.
If flow1 (which may be a message or a data flow) enters the switch from port 1, the original forwarding plane determines the forwarding plane corresponding to port 1, and if the extended forwarding plane corresponding to port 1 is an extended forwarding plane, the original forwarding plane obtains first setting information corresponding to the extended forwarding plane, then adds a Higig header to flow1, adds the first setting information and port 1 to the Higig header, and sends the first setting information and port 1 to the extended forwarding plane. If the first set rule is that a Differentiated Services Code Point (DSCP) is equal to 1, and a packet is forwarded to port 3, and a packet whose DSCP is not equal to 1 is forwarded to port 4, the extended forwarding plane will first calculate the DSCP of flow1, and then designate a sending port for flow1 according to the calculated DSCP, because flow1 has not changed, the sending port can be carried in a Higig header and sent to the original forwarding plane. The original forwarding plane sends flow1 through the send port carried in the Higig header.
The message method of the embodiment of the invention can set the extension forwarding plane of the exchanger according to actual needs, and the value brought by the extension forwarding plane depends on the extension forwarding plane and the application developed on the extension forwarding plane. For example, a service function chain implemented on Openflow can help a user pool resources in a traditional network, improve network device utilization, and increase business arrangement flexibility.
Based on the same inventive concept, an embodiment of the present invention provides a packet forwarding apparatus, which can be applied to an original forwarding plane of a network device, where the network device further includes an extended forwarding plane, and a structure of the apparatus is shown in fig. 6, and includes:
an obtaining module 61, configured to obtain a message feature of the first message;
a determining module 62, configured to determine a forwarding plane corresponding to the message feature;
a first sending module 63, configured to send, if the forwarding plane corresponding to the message feature is an extended forwarding plane, first setting information and a first message corresponding to the extended forwarding plane, so that the extended forwarding plane processes the first message according to a first setting rule and the first setting information to obtain a second message, assigns a first sending port for the second message, and sends the first sending port and the second message to the original forwarding plane;
the second sending module 64 is configured to forward the second packet through the first sending port.
In the scheme, the network equipment comprises an original forwarding plane and an extended forwarding plane, the original forwarding plane can realize the function of a traditional network, the extended forwarding plane can set rules for processing messages according to needs so as to realize the function of the SDN, and therefore the scheme can be compatible with the function of the SDN and the function of the traditional network in the network equipment, and the flexibility of the forwarding plane of the network equipment is improved.
Specifically, the determining module 62 is configured to determine a forwarding plane corresponding to the packet feature, and specifically configured to:
acquiring a corresponding relation between preset message characteristics and a forwarding plane;
searching a table item comprising message characteristics in the corresponding relation;
if the table entry including the message characteristics is found, the forwarding plane included in the table entry is obtained, and the forwarding plane corresponding to the message characteristics is obtained.
Specifically, if the original forwarding plane and the extended forwarding plane support the stacking function, the first sending module 63 is configured to send first setting information and a first message corresponding to the extended forwarding plane, so that the extended forwarding plane processes the first message according to a first setting rule and the first setting information to obtain a second message, assigns a first sending port for the second message, and sends the first sending port and the second message to the original forwarding plane, and specifically is configured to:
acquiring first setting information corresponding to an extended forwarding plane;
adding a stacking information head comprising first setting information in the first message to obtain a third message;
and sending the third message to an extended forwarding plane so that the extended forwarding plane obtains first setting information and a first message from the third message, processes the first message according to a first setting rule and the first setting information to obtain a second message, assigns a first sending port for the second message, replaces the first setting information in the stack information header with the first sending port to obtain a fourth message, and sends the fourth message to the original forwarding plane.
Specifically, the second sending module 64 is configured to forward the second packet through the first sending port, and specifically configured to:
receiving a fourth message sent by the extended forwarding plane;
acquiring a first sending port from the stacking information head, and acquiring a second message from a fourth message;
and sending the second message through the first sending port.
Optionally, the system further includes a third sending module, configured to:
if the forwarding plane corresponding to the message characteristics is the original forwarding plane, processing the first message according to a second set rule corresponding to the original forwarding plane to obtain a fifth message;
a second sending port is appointed for the fifth message;
and sending the fifth message through the second sending port.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While alternative embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (8)

1. A message forwarding method is applied to an original forwarding plane included in a network device, and is characterized in that the network device further includes an extended forwarding plane, and the extended forwarding plane sets rules for processing messages as required so as to implement functions of an SDN network, and the method includes:
acquiring message characteristics of a first message;
determining a forwarding plane corresponding to the message characteristics;
if the forwarding plane corresponding to the message feature is an extended forwarding plane, sending first setting information and the first message corresponding to the extended forwarding plane, so that the extended forwarding plane processes the first message according to a first setting rule and the first setting information to obtain a second message, appointing a first sending port for the second message, and sending the first sending port and the second message to the original forwarding plane;
forwarding the second message through the first sending port;
if the original forwarding plane and the extended forwarding plane support the stacking function, the step of sending the first setting information and the first packet corresponding to the extended forwarding plane so that the extended forwarding plane processes the first packet according to a first setting rule and the first setting information to obtain a second packet, assigning a first sending port to the second packet, and sending the first sending port and the second packet to the original forwarding plane specifically includes:
acquiring first setting information corresponding to the extended forwarding plane;
adding a stacking information head comprising the first setting information in the first message to obtain a third message;
sending the third message to the extended forwarding plane, so that the extended forwarding plane obtains the first setting information and the first message from the third message, processes the first message according to a first setting rule and the first setting information to obtain a second message, assigns a first sending port for the second message, replaces the first setting information in the stack information header with the first sending port to obtain a fourth message, and sends the fourth message to the original forwarding plane.
2. The method according to claim 1, wherein determining the forwarding plane corresponding to the packet feature specifically comprises:
acquiring a corresponding relation between preset message characteristics and a forwarding plane;
searching the table entry comprising the message characteristics in the corresponding relation;
if the table entry comprising the message characteristics is found, the forwarding plane included in the table entry is obtained, and the forwarding plane corresponding to the message characteristics is obtained.
3. The method according to claim 1, wherein forwarding the second packet through the first sending port specifically includes:
receiving the fourth message sent by the extended forwarding plane;
acquiring the first sending port from the stacking information header, and acquiring the second message from the fourth message;
and sending the second message through the first sending port.
4. The method of any of claims 1-3, further comprising:
if the forwarding plane corresponding to the message feature is the original forwarding plane, processing the first message according to a second set rule corresponding to the original forwarding plane to obtain a fifth message;
assigning a second sending port for the fifth message;
and sending the fifth message through the second sending port.
5. A message forwarding device is applied to an original forwarding plane included in a network device, and is characterized in that the network device further includes an extended forwarding plane, and the extended forwarding plane sets rules for processing messages as required so as to implement functions of an SDN network, and the device includes:
the acquisition module is used for acquiring the message characteristics of the first message;
a determining module, configured to determine a forwarding plane corresponding to the packet feature;
a first sending module, configured to send, if a forwarding plane corresponding to the packet feature is an extended forwarding plane, first setting information and the first packet corresponding to the extended forwarding plane, so that the extended forwarding plane processes the first packet according to a first setting rule and the first setting information to obtain a second packet, assigns a first sending port for the second packet, and sends the first sending port and the second packet to the original forwarding plane;
a second sending module, configured to forward the second packet through the first sending port;
if the original forwarding plane and the extended forwarding plane support the stacking function, the first sending module is configured to send first setting information and the first packet corresponding to the extended forwarding plane, so that the extended forwarding plane processes the first packet according to a first setting rule and the first setting information to obtain a second packet, assigns a first sending port for the second packet, and sends the first sending port and the second packet to the original forwarding plane, and specifically is configured to:
acquiring first setting information corresponding to the extended forwarding plane;
adding a stacking information head comprising the first setting information in the first message to obtain a third message;
sending the third message to the extended forwarding plane, so that the extended forwarding plane obtains the first setting information and the first message from the third message, processes the first message according to a first setting rule and the first setting information to obtain a second message, assigns a first sending port for the second message, replaces the first setting information in the stack information header with the first sending port to obtain a fourth message, and sends the fourth message to the original forwarding plane.
6. The apparatus according to claim 5, wherein the determining module is configured to determine a forwarding plane corresponding to the packet feature, and is specifically configured to:
acquiring a corresponding relation between preset message characteristics and a forwarding plane;
searching the table entry comprising the message characteristics in the corresponding relation;
if the table entry comprising the message characteristics is found, the forwarding plane included in the table entry is obtained, and the forwarding plane corresponding to the message characteristics is obtained.
7. The apparatus according to claim 5, wherein the second sending module is configured to forward the second packet through the first sending port, and is specifically configured to:
receiving the fourth message sent by the extended forwarding plane;
acquiring the first sending port from the stacking information header, and acquiring the second message from the fourth message;
and sending the second message through the first sending port.
8. The apparatus of any of claims 5-7, further comprising a third transmitting module to:
if the forwarding plane corresponding to the message feature is the original forwarding plane, processing the first message according to a second set rule corresponding to the original forwarding plane to obtain a fifth message;
assigning a second sending port for the fifth message;
and sending the fifth message through the second sending port.
CN201610608322.3A 2016-07-28 2016-07-28 Message forwarding method and device Active CN106059964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610608322.3A CN106059964B (en) 2016-07-28 2016-07-28 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610608322.3A CN106059964B (en) 2016-07-28 2016-07-28 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN106059964A CN106059964A (en) 2016-10-26
CN106059964B true CN106059964B (en) 2020-01-21

Family

ID=57196589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610608322.3A Active CN106059964B (en) 2016-07-28 2016-07-28 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN106059964B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566292B (en) * 2017-09-19 2020-12-25 新华三技术有限公司 Message forwarding method and device
CN107896182B (en) * 2017-11-30 2020-09-08 新华三技术有限公司 Message forwarding method and device
CN114745323A (en) * 2022-04-02 2022-07-12 北京东土军悦科技有限公司 Method and system for forwarding flow message
CN116389391B (en) * 2023-03-28 2024-03-29 南京金阵微电子技术有限公司 Switch chip logic cascading method and system and switch

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060449A (en) * 2006-06-16 2007-10-24 华为技术有限公司 Ethernet technology switching and forwarding method, system and equipment
US7382724B1 (en) * 2001-11-21 2008-06-03 Juniper Networks, Inc. Automatic switchover mechanism in a network device
CN102957619A (en) * 2011-08-25 2013-03-06 清华大学 Virtual routing system and method
CN104426768A (en) * 2013-09-05 2015-03-18 华为技术有限公司 Data message forwarding method and device
CN104704779A (en) * 2012-10-08 2015-06-10 瑞典爱立信有限公司 Method and apparatus for accelerating forwarding in software-defined networks

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9838305B2 (en) * 2013-07-11 2017-12-05 Avago Technologies General Ip (Singapore) Pte. Ltd. Method, system and apparatus for an OpenFlow hybrid architecture network device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7382724B1 (en) * 2001-11-21 2008-06-03 Juniper Networks, Inc. Automatic switchover mechanism in a network device
CN101060449A (en) * 2006-06-16 2007-10-24 华为技术有限公司 Ethernet technology switching and forwarding method, system and equipment
CN102957619A (en) * 2011-08-25 2013-03-06 清华大学 Virtual routing system and method
CN104704779A (en) * 2012-10-08 2015-06-10 瑞典爱立信有限公司 Method and apparatus for accelerating forwarding in software-defined networks
CN104426768A (en) * 2013-09-05 2015-03-18 华为技术有限公司 Data message forwarding method and device

Also Published As

Publication number Publication date
CN106059964A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
EP3142310B1 (en) Method, device, and system for configuring flow entries
CN102334112B (en) Method and system for virtual machine networking
CN106059964B (en) Message forwarding method and device
CN105578488B (en) Network data acquisition system and method
CN109962847B (en) Method and device for encapsulating service function chain message and computer readable storage medium
CN108768866B (en) Cross-card forwarding method and device for multicast message, network equipment and readable storage medium
EP3528439A1 (en) Service routing method and system
CN109088820B (en) Cross-device link aggregation method and device, computing device and storage medium
US10498643B2 (en) Method for constructing multipath forwarding rule, apparatus, and system
CN111801911B (en) Traffic function chain congestion tracking
JP5993817B2 (en) Routing system and method in carrier network
CN105591916A (en) Message transmission method and apparatus
US10182132B2 (en) Method, apparatus and system for communication between OpenFlow device and IP network device
CN104780111A (en) Packet forwarding method and device in virtualized network as well as virtualized network
CN115065637B (en) Method and device for transmitting computing power resource information and electronic equipment
EP3534577B1 (en) Forwarding multicast packets through an extended bridge
CN104683428A (en) Network service processing method and device
CN105743687B (en) Method and device for judging node fault
CN114157533A (en) Message cross-board multicast copying and forwarding method and system based on CLOS architecture
CN107645391B (en) Port configuration method and device of interface expansion equipment
CN103346950A (en) Sharing method and device of load between user service boards of rack-mounted wireless controller
US10025752B2 (en) Data processing method, processor, and data processing device
CN104184729A (en) Message processing method and device
CN117395195A (en) Communication method, device, equipment and storage medium
US10177935B2 (en) Data transfer system, data transfer server, data transfer method, and program recording medium

Legal Events

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