CN112788116A - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN112788116A
CN112788116A CN202011613703.3A CN202011613703A CN112788116A CN 112788116 A CN112788116 A CN 112788116A CN 202011613703 A CN202011613703 A CN 202011613703A CN 112788116 A CN112788116 A CN 112788116A
Authority
CN
China
Prior art keywords
session
data
forwarding
message
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011613703.3A
Other languages
Chinese (zh)
Inventor
刘世贞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202011613703.3A priority Critical patent/CN112788116A/en
Publication of CN112788116A publication Critical patent/CN112788116A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/142Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

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

Abstract

The application provides a method and a device for forwarding a message, which are applied to network equipment supporting a multi-channel protocol, wherein the method comprises the following steps: receiving a data message through a data channel; inquiring a session forwarding table item according to the session characteristics of the data message, wherein the session forwarding table item is created based on session information of a control message received by a control channel, and the session information comprises the session characteristics of the control message in the direction opposite to that of the data message, an output interface and a target MAC; and if the session forwarding table entry is inquired, forwarding the data message according to the outgoing interface and the target MAC in the session forwarding table entry. By the technical scheme, the route query process can be reduced, the message forwarding efficiency is improved, the consistency of the paths of the data channel and the control channel can be ensured, and the problem of service failure caused by the message sending error of the data channel is avoided.

Description

Message forwarding method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for forwarding a packet.
Background
Generally, when a forward message passes through a network device, an outlet interface is found according to a destination IP query route, and when a reverse message reaches a corresponding network device, the outlet interface is queried according to the destination IP, but when the network device has a plurality of equivalent routes, the inlet and outlet interfaces of the forward and reverse messages are not corresponding, and the situation that the message cannot be sent to the corresponding device occurs. The problem can be solved by using the session forwarding technology, on the network equipment which can open the session forwarding mode, the reverse message queries the session information created after the forward message routing, and the interface is obtained from the session information.
In the multi-channel protocol, after three handshakes of the TCP, two protocol parties may negotiate a plurality of channels, a control channel is used for signaling negotiation, and a data channel is used for transmitting data, but a packet of the data channel may be initiated from a reverse direction of the control channel, which may cause an outgoing interface of a packet sent by the data channel to be inconsistent with an outgoing interface of a reverse packet of the control channel, resulting in a service failure. To solve the above problem, a multi-channel protocol needs to be supported in a session forwarding environment.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for forwarding a packet, so as to solve the problem of service failure caused by a transmission error of a data packet received through a data channel in a multi-channel protocol under a session forwarding condition.
Specifically, the method is realized through the following technical scheme:
in a first aspect, the present application provides a method for forwarding a packet, which is applied to a network device supporting a multi-channel protocol, and the method includes:
receiving a data message through a data channel;
inquiring a session forwarding table item according to the session characteristics of the data message, wherein the session forwarding table item is created based on session information of a control message received by a control channel, and the session information comprises the session characteristics of the control message in the direction opposite to that of the data message, an output interface and a target MAC;
and if the session forwarding table entry is inquired, forwarding the data message according to the outgoing interface and the target MAC in the session forwarding table entry.
In a second aspect, the present application provides a device for forwarding a packet, which is applied to a network device supporting a multi-channel protocol, and the device includes:
a receiving unit, configured to receive a data packet through a data channel;
the query unit is used for querying a session forwarding table item according to the session characteristics of the data message, the session forwarding table item is created based on session information of a control message received by a control channel, and the session information comprises the session characteristics of the control message in the opposite direction to the data message, an output interface and a target MAC;
and the forwarding unit is used for forwarding the data message according to the outgoing interface and the target MAC in the session forwarding table entry if the session forwarding table entry is inquired.
In a third aspect, the present application provides a device for forwarding a packet, which is applied to a network device supporting a multi-channel protocol, and the device includes:
a processor; a memory for storing the processor-executable instructions;
wherein the processor is configured to:
receiving a data message through a data channel;
inquiring a session forwarding table item according to the session characteristics of the data message, wherein the session forwarding table item is created based on session information of a control message received by a control channel, and the session information comprises the session characteristics of the control message in the direction opposite to that of the data message, an output interface and a target MAC;
and if the session forwarding table entry is inquired, forwarding the data message according to the outgoing interface and the target MAC in the session forwarding table entry.
By analyzing the above technical solutions, it can be known that by establishing the session forwarding table entry associated with the data channel and the control channel and recording the session forwarding information of the control channel, the route query process can be reduced, and the forwarding efficiency of the packet can be improved. The session forwarding table entry queried by the data channel is created according to the control session of the control channel, so that the path consistency of the data channel and the control channel can be ensured, and the problem of service failure caused by the message sending error of the data channel is avoided.
Drawings
Fig. 1 is a flowchart illustrating a message forwarding method according to an exemplary embodiment of the present application;
fig. 2 is a flowchart illustrating another message forwarding method according to an exemplary embodiment of the present application;
fig. 3 is a flowchart illustrating another message forwarding method according to an exemplary embodiment of the present application;
fig. 4 is a hardware architecture diagram of a device where a message forwarding apparatus is located according to an exemplary embodiment of the present application;
fig. 5 is a block diagram of a message forwarding apparatus according to an exemplary embodiment of the present application.
Detailed Description
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 appended claims.
It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described herein. In some other embodiments, the method may include more or fewer steps than those described herein. Moreover, a single step described in this specification may be broken down into multiple steps for description in other embodiments; multiple steps described in this specification may be combined into a single step in other embodiments.
In the multi-channel protocol, after three handshakes of TCP, both sides of the protocol can negotiate one or more channels for transmitting signaling or data. For example, in FTP, an FTP client and a server first establish an FTP control connection, and then transmit data through a negotiated data transmission channel.
The FTP protocol uses by default two of the TCP ports, 20 and 21, with 20 ports for transmitting data and 21 ports for transmitting control information. In the FTP, there are active mode and passive mode, if the active mode is adopted, the data transmission port is 20 ports, and if the passive mode is adopted, which port is used is determined by negotiation between the server side and the client side.
In the active mode, the client is connected to the 21 PORT of the server, the client sends a PORT command to the server to tell the server that the server needs to adopt the active mode and open the PORT, and after receiving the PORT active mode command and the PORT number, the server is connected with the PORT opened by the client through the 20 PORT of the server to send data to the client.
In the passive mode, the client is connected to the 21 ports of the server, the client sends a PASV command to the server, the server locally opens one port, the opened port is informed to the client, and the client is connected to the opened port of the server for data transmission.
It can be seen that the server sends data to the client according to the port opened by the client in the active mode, the client sends data to the server according to the port opened by the server in the passive mode, and when sending data through the data channel, the obtained port is carried by a control command in the direction opposite to the data transmission direction.
In view of this, by establishing the session forwarding table entry associated with the data channel and the control channel and recording the session forwarding information of the control channel, the route query process can be reduced, and the forwarding efficiency of the packet can be improved. The session forwarding table entry queried by the data channel is created according to the control session of the control channel, so that the path consistency of the data channel and the control channel can be ensured, and the problem of service failure caused by the message sending error of the data channel is avoided.
The present application is described below with reference to specific embodiments and with reference to different application examples.
Referring to fig. 1, fig. 1 is a flowchart illustrating a message forwarding method according to an exemplary embodiment of the present application, where the method may be applied to a network device supporting a multi-channel protocol, and includes the following steps:
step 101: receiving a data message through a data channel;
step 102: inquiring a session forwarding table item according to the session characteristics of the data message, wherein the session forwarding table item is created based on session information of a control message received by a control channel, and the session information comprises the session characteristics of the control message in the direction opposite to that of the data message, an output interface and a target MAC;
step 103: and if the session forwarding table entry is inquired, forwarding the data message according to the outgoing interface and the target MAC in the session forwarding table entry.
In the multi-channel protocol, a network device receives a data packet through a data channel for transmitting data, and queries a session forwarding table entry according to session characteristics of the data packet, namely, quintuple information, a source IP, a destination IP, a source port, a destination port and a transport layer protocol.
As shown in table 1 below, a session characteristic of a data packet shown in an exemplary embodiment of the present application is:
source IP Destination IP Protocol number Source port Destination port
IP2 IP1 Protocol 1 Port 2 Port 1
TABLE 1
The session forwarding table entry is created according to session information of a control message received by a control channel for signaling negotiation, and after the network device identifies a protocol of a target port in the control message, the network device generates the session forwarding table entry for data message matching according to a specific protocol. The session forwarding table entry records session information of the control message, the session information is created according to session characteristics of the control message with the direction opposite to that of the data message, and the reverse control message records the output interface and the destination MAC information and also records the session information.
As shown in table 2 below, a session table of a control packet according to an exemplary embodiment of the present application is shown, where the session table records session information of the control packet, where the session information includes five tuples of packets in two directions of a session and fast forwarding information:
source IP Destination IP Protocol number Source port Destination port Outlet interface Destination MAC Direction
IP1 IP2 Protocol 1 Port 1 Port 2 Interface 1 MAC1 Forward direction
IP2 IP1 Protocol 1 Port 2 Port 1 Interface 2 MAC2 Reverse direction
TABLE 2
The session forwarding table entry records session information of a control packet in a direction opposite to that of the data packet, and is a session forwarding table entry shown in an exemplary embodiment of the present application as described in table 3 below:
source IP Destination IP Protocol number Source port Destination port Outlet interface Destination MAC Direction
IP2 IP1 Protocol 1 Port 2 Port 1 Interface 2 MAC2 Reverse direction
TABLE 3
If the corresponding session forwarding table entry is matched according to the session feature of the data message, the data message can be forwarded according to the outgoing interface and the destination MAC recorded in the session forwarding table entry.
For example, according to the session feature lookup table 3 of the data packet in table 1, a corresponding session forwarding table entry is queried, and the data packet is forwarded according to the egress interface and the destination MAC in table 3.
In an embodiment shown, if a session forwarding entry is queried, recording session information in the session forwarding entry into a data session corresponding to a data channel, and adding a data session identifier; and updating the data session, and forwarding the data message based on the updated session information.
As shown in table 4 below, for an updated data session table shown in an exemplary embodiment of the present application, a master identifier is added to the data session:
source IP Destination IP Protocol number Source port Destination port Outlet interface Destination MAC Direction Identification
IP2 IP1 Protocol 1 Port 2 Port 1 Interface 2 MAC2 Reverse direction master
TABLE 4
Furthermore, when receiving a data message corresponding to the session feature in the data session, judging whether the user opens the session forwarding mode; if yes, judging whether the data session has a data session identifier; if yes, the data message is forwarded according to the outgoing interface and the destination MAC in the data session.
For example, if a data packet is received, it is first queried that there is no corresponding data session according to the session characteristics, and if not, it means that the packet is received for the first time, a corresponding data session may be created. And then inquiring the session forwarding table entry, recording the session information in the session forwarding table entry into the data session, adding a data session identifier, finishing the updating of the data session at the moment, and forwarding the data message based on the updated session information.
If the corresponding data session is inquired, it is stated that the data message is not received for the first time, and the data message can be forwarded according to the information recorded in the data session. Judging whether a network device opens a session forwarding mode or not, checking session forwarding only if the session forwarding mode is opened, judging whether a data session is added with a data session identifier or not after the session forwarding mode is opened, if so, checking the data session for data message forwarding, and inquiring an output interface and a target MAC (media access control) forwarding data message recorded in the data session.
It should be noted that before querying the session forwarding table entry according to the session characteristics of the data packet, the session characteristics of the data packet received through the data channel are obtained, whether a data session corresponding to the data channel exists is queried based on the session characteristics, and if a data session corresponding to the data channel is not queried, a data session corresponding to the data channel is created.
If the data message is received for the first time, the data session is not established in the network equipment, and a session table of the data session can be established, so that the message can be directly forwarded according to the session table of the data session when the data message is received next time. If the corresponding session table exists, it indicates that the network device has received the packet of the data session before, and the data packet can be quickly forwarded directly according to the output interface and the destination MAC in the session table.
In an embodiment, the session information of the control packet is obtained by receiving the control packet through the control channel. The session information includes session characteristics of a control message in a direction opposite to that of the data message, and an ingress interface and a source MAC of the control message, the ingress interface included in the session information is used as an egress interface, the source MAC is used as a destination MAC, and a session forwarding table entry corresponding to the data message in the direction opposite to that of the control message is further created.
After receiving a control message of a control channel, creating a session forwarding table according to the control message, for example, in ftp, no matter in an active mode or a passive mode, the direction of initiating a data channel message is opposite to the direction of the control message carrying an ingress interface and a source MAC.
It should be noted that before the session information of the control packet is obtained, the control session corresponding to the control channel may be queried based on the session characteristics of the control packet, and if the control session is not queried, the control session corresponding to the control channel is created based on the session information, and it is determined whether the user has opened the session forwarding mode. If yes, adding a session forwarding identifier in the created session information of the control session, and recording an input interface and a source MAC of the control message as the session information into the control session.
In one embodiment shown, if the control session is queried, further querying whether the session information of the control session has a session forwarding identifier; if so, using the input interface contained in the session information as the output interface and the source MAC as the destination MAC, and further creating a session forwarding table entry corresponding to the data message with the opposite direction to the control message.
After the session forwarding mode is opened on the network equipment, the message can be forwarded by checking the session without checking a route, so that after the session forwarding mode is opened, a session forwarding identifier can be added to the session of the control message, the interface and the source MAC information are recorded, and when the message with the same session information is received next time and is matched with the corresponding session, the message is directly forwarded according to the session information.
For example, after a session is created for a forward packet of a control channel and a session forwarding identifier is added, a reverse packet of the control channel is matched with the session created for the forward packet during session query, the session forwarding identifier is checked, and a session forwarding mode is started by a network device, the reverse packet can directly perform packet conversion on an input interface and a source MAC in the session created for the forward packet, the reverse packet takes the input interface as an output interface, and the source MAC as a destination MAC for forwarding.
It can be seen from the above embodiments that, by establishing the session forwarding table entry associated with the data channel and the control channel, and recording the session forwarding information of the control channel, the route query process can be reduced, and the forwarding efficiency of the packet can be improved. The session forwarding table entry queried by the data channel is created according to the control session of the control channel, so that the path consistency of the data channel and the control channel can be ensured, and the problem of service failure caused by the message sending error of the data channel is avoided.
Referring to fig. 2, fig. 2 is a flowchart illustrating another packet forwarding method according to an exemplary embodiment of the present application.
As shown in fig. 2, in an embodiment shown, processing a control packet of a control channel includes the following steps:
s 201: and receiving the control message through the control channel.
s 202: inquiring whether a corresponding control session exists or not based on the session characteristics of the control message; if there is a control session, the session forwarding identifier needs to be checked for the session, and step s204 is executed; if not, a further control session needs to be created, step s203 is executed.
s 203: and creating a control session corresponding to the control channel and recording session information of the control channel.
s 204: checking whether the inquired control session has a session forwarding identifier; if the session forwarding identifier has been added, indicating that forwarding can be performed according to the session information, executing step s 208; if not, the route needs to be checked for forwarding, and step s206 is executed.
s 205: judging whether a user opens a session forwarding mode; if yes, forwarding can be carried out according to the session, and step s207 is executed; if the session forwarding mode is not opened, routing is required to be checked, and step s206 is executed.
s 206: and inquiring the route and forwarding according to the route information.
s 207: and adding a session forwarding identifier in the session information of the control session, and recording an input interface and a source MAC of the control message as the session information into the control session.
s 208: and taking an input interface of the session information as an output interface, and taking the source MAC as the destination MAC to create a session forwarding table entry. After receiving the information of the control message, preparing for the data channel message, and creating a session forwarding table entry.
As can be seen from the above embodiments, a corresponding control session is created for a control packet by receiving the control packet of the control channel, and in a session forwarding mode, a session forwarding identifier is added for the control session, and the ingress interface and source MAC information are recorded on the session, so as to further create a session forwarding entry, where the session forwarding entry records session forwarding information of the control packet.
Referring to fig. 3, fig. 3 is a flowchart illustrating another packet forwarding method according to an exemplary embodiment of the present application.
As shown in fig. 3, in an embodiment, processing a data packet of a data channel includes the following steps:
s 301: and receiving the data message through the data channel.
s 302: inquiring whether a corresponding data session exists or not based on the session characteristics of the data message; if yes, the data session is created before, and the forwarding is directly carried out according to the outgoing interface and the destination MAC recorded in the data session, and the step s307 is executed; if step s303 is not performed.
s 303: and creating a data session corresponding to the data channel.
s 304: inquiring whether a corresponding session forwarding table item exists or not based on the session characteristics of the data message, wherein the session forwarding table item is created in the process of processing the control message of the control channel; if yes, go to step s 306; if not, step s305 is performed.
s 305: and inquiring the route, and forwarding the message according to the route information.
s 306: and recording the session information in the inquired session forwarding table entry into a data session corresponding to the data channel, and adding a data session identifier, thereby completing the updating of the data session.
When receiving the message of the data channel, inquiring whether a corresponding data session exists, and checking a data session identifier.
s 307: judging whether a user opens a session forwarding mode; if so, the description can be forwarded according to the session information, and s308 is executed; if not, the route is required to be inquired, and the message is forwarded according to the route information.
s 308: judging whether the data session has a data session identifier; if yes, go to step s 309; if not, the route is required to be inquired, and the message is forwarded according to the route information.
In step s306, the data session is updated, a data session identifier is added to the data session, when a data packet of an existing corresponding data session is received, according to the data session identifier recorded in the data session, it is indicated that the data packet can be forwarded according to the egress interface and the destination MAC in the data session, and step s309 is executed.
s 309: and forwarding the data message according to the outgoing interface and the destination MAC in the data session.
It can be seen from the above embodiments that, by establishing the session forwarding table entry associated with the data channel and the control channel, and recording the session forwarding information of the control channel, the route query process can be reduced, and the forwarding efficiency of the packet can be improved. The session forwarding table entry queried by the data channel is created according to the control session of the control channel, so that the path consistency of the data channel and the control channel can be ensured, and the problem of service failure caused by the message sending error of the data channel is avoided.
Corresponding to the embodiment of the message forwarding method, the application also provides an embodiment of a message forwarding device.
Referring to fig. 4, the present application further provides a hardware architecture diagram of a device where a packet forwarding apparatus is located, which is applied to a network device supporting a multi-channel protocol, where the device includes: a communication interface 401, a processor 402, a memory 403, and a bus 404; wherein, the communication interface 401, the processor 402 and the memory 403 complete the communication with each other through the bus 404.
The processor 402 may be a CPU, the memory 403 may be a non-volatile memory, and the message forwarding logic instructions are stored in the memory 403, and the processor 402 may execute the message forwarding logic instructions stored in the memory 403 to implement the message forwarding function.
Up to this point, the description of the hardware configuration shown in fig. 4 is completed.
Referring to fig. 5, fig. 5 is a block diagram of an apparatus for forwarding a packet according to an exemplary embodiment of the present application, where the apparatus is applied to a network device supporting a multi-channel protocol, and the apparatus may include the following units:
a receiving unit 501, configured to receive a data packet through a data channel;
a querying unit 502, configured to query a session forwarding entry according to a session feature of the data packet, where the session forwarding entry is created based on session information of a control packet received by a control channel, and the session information includes a session feature of the control packet in an opposite direction to the data packet, an egress interface, and a destination MAC;
a forwarding unit 503, configured to forward the data packet according to the egress interface and the destination MAC in the session forwarding table entry if the session forwarding table entry is queried.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
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 a packet is applied to a network device supporting a multi-channel protocol, and the method comprises:
receiving a data message through a data channel;
inquiring a session forwarding table item according to the session characteristics of the data message, wherein the session forwarding table item is created based on session information of a control message received by a control channel, and the session information comprises the session characteristics of the control message in the direction opposite to that of the data message, an output interface and a target MAC;
and if the session forwarding table entry is inquired, forwarding the data message according to the outgoing interface and the target MAC in the session forwarding table entry.
2. The method of claim 1, further comprising:
if the session forwarding table entry is inquired, recording session information in the session forwarding table entry into a data session corresponding to the data channel, and adding a data session identifier; and updating the data session, and forwarding the data message based on the updated session information.
3. The method of claim 2, further comprising:
when receiving a data message corresponding to the session feature in the data session, judging whether a user opens a session forwarding mode;
if yes, judging whether the data session has a data session identifier;
and if so, forwarding the data message according to the outgoing interface and the destination MAC in the data session.
4. The method of claim 1, wherein before querying a session forwarding entry according to the session characteristic of the data packet, the method further comprises:
acquiring session characteristics of the data message received through the data channel;
querying a data session corresponding to the data channel based on the session features;
and if the data session corresponding to the data channel is not inquired, creating the data session corresponding to the data channel.
5. The method of claim 1, further comprising:
receiving the control message through the control channel;
acquiring session information of the control message; the session information comprises session characteristics of a control message in a direction opposite to that of the data message, an input interface of the control message and a source MAC (media access control);
and taking the input interface contained in the session information as an output interface, taking the source MAC as a target MAC, and further creating the session forwarding table entry corresponding to the data message with the direction opposite to the control message direction.
6. The method of claim 5, wherein prior to obtaining session information for the control packet, the method further comprises:
inquiring a control session corresponding to the control channel based on the session characteristics of the control message;
if the control session is not inquired, creating a control session corresponding to the control channel based on the session information, and judging whether a user opens a session forwarding mode;
if yes, adding a session forwarding identifier in the created session information of the control session, and recording an input interface and a source MAC of the control message as the session information into the control session.
7. The method of claim 6,
if the control conversation is inquired, further inquiring whether conversation information of the control conversation has a conversation forwarding identifier;
and if so, taking the input interface contained in the session information as an output interface and the source MAC as a destination MAC, and further creating the session forwarding table entry corresponding to the data message with the direction opposite to that of the control message.
8. An apparatus for forwarding a packet, applied to a network device supporting a multi-channel protocol, the apparatus comprising:
a receiving unit, configured to receive a data packet through a data channel;
the query unit is used for querying a session forwarding table item according to the session characteristics of the data message, the session forwarding table item is created based on session information of a control message received by a control channel, and the session information comprises the session characteristics of the control message in the opposite direction to the data message, an output interface and a target MAC;
and the forwarding unit is used for forwarding the data message according to the outgoing interface and the target MAC in the session forwarding table entry if the session forwarding table entry is inquired.
9. An apparatus for forwarding a packet, applied to a network device supporting a multi-channel protocol, the apparatus comprising:
a processor; a memory for storing the processor-executable instructions;
wherein the processor is configured to:
receiving a data message through a data channel;
inquiring a session forwarding table item according to the session characteristics of the data message, wherein the session forwarding table item is created based on session information of a control message received by a control channel, and the session information comprises the session characteristics of the control message in the direction opposite to that of the data message, an output interface and a target MAC;
and if the session forwarding table entry is inquired, forwarding the data message according to the outgoing interface and the target MAC in the session forwarding table entry.
CN202011613703.3A 2020-12-30 2020-12-30 Message forwarding method and device Pending CN112788116A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011613703.3A CN112788116A (en) 2020-12-30 2020-12-30 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011613703.3A CN112788116A (en) 2020-12-30 2020-12-30 Message forwarding method and device

Publications (1)

Publication Number Publication Date
CN112788116A true CN112788116A (en) 2021-05-11

Family

ID=75753941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011613703.3A Pending CN112788116A (en) 2020-12-30 2020-12-30 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN112788116A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065735A (en) * 2022-03-08 2022-09-16 阿里巴巴(中国)有限公司 Message processing method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103430499A (en) * 2013-02-06 2013-12-04 华为技术有限公司 Method and apparatus for establishing multicast data channel in network virtual system
US20140198808A1 (en) * 2011-09-29 2014-07-17 Hangzhou H3C Technologies Co., Ltd. Learning a mac address
CN106330715A (en) * 2015-06-30 2017-01-11 杭州华三通信技术有限公司 Message processing method and device
CN107454000A (en) * 2016-05-31 2017-12-08 华为技术有限公司 Network data transmission device and method
CN107948076A (en) * 2017-12-29 2018-04-20 杭州迪普科技股份有限公司 A kind of method and device to E-Packet

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140198808A1 (en) * 2011-09-29 2014-07-17 Hangzhou H3C Technologies Co., Ltd. Learning a mac address
CN103430499A (en) * 2013-02-06 2013-12-04 华为技术有限公司 Method and apparatus for establishing multicast data channel in network virtual system
CN106330715A (en) * 2015-06-30 2017-01-11 杭州华三通信技术有限公司 Message processing method and device
CN107454000A (en) * 2016-05-31 2017-12-08 华为技术有限公司 Network data transmission device and method
CN107948076A (en) * 2017-12-29 2018-04-20 杭州迪普科技股份有限公司 A kind of method and device to E-Packet

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065735A (en) * 2022-03-08 2022-09-16 阿里巴巴(中国)有限公司 Message processing method and electronic equipment

Similar Documents

Publication Publication Date Title
CN107948076B (en) Method and device for forwarding message
US20220078114A1 (en) Method and Apparatus for Providing Service for Traffic Flow
US6654792B1 (en) Method and architecture for logical aggregation of multiple servers
US7873027B2 (en) Database management system and method of using it to transmit packets
US7570648B2 (en) Enhanced H-VPLS service architecture using control word
EP1892929B1 (en) A method, an apparatus and a system for message transmission
EP2100406B1 (en) Method and apparatus for implementing multicast routing
CN109361606B (en) Message processing system and network equipment
US7957279B2 (en) Session border control using multiple processors
WO2021008591A1 (en) Data transmission method, device, and system
CN110086798B (en) Method and device for communication based on public virtual interface
WO2018049691A1 (en) Session persistence method and apparatus, and storage medium
US20230010837A1 (en) Fault diagnosis method and apparatus thereof
WO2023103461A1 (en) Cross-board message multicast replication and forwarding method and system based on clos architecture
CN108093041A (en) Single channel VDI proxy servers and implementation method
WO2020258302A1 (en) Method, switch, and sites for data transmission
CN112788116A (en) Message forwarding method and device
GB2592315A (en) Methods and systems for sending packets through a plurality of tunnels
US10291750B1 (en) Aggregating data sessions between autonomous systems
CN107483628A (en) Unidirectional proxy method and system based on DPDK
CN116095197B (en) Data transmission method and related device
CN101232510A (en) Method and system for implementing multi-network port device multicast
WO2015074258A1 (en) Method, apparatus and system for controlling forwarding of service data in virtual network
WO2014117474A1 (en) Routing method, system, and related device
CN115883256B (en) Data transmission method, device and storage medium based on encryption tunnel

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210511