A method and device for forwarding messages

A technology for forwarding messages and messages, applied in the field of communications, can solve the problems of different links, unreachable links, network delay links, etc., and achieve the effect of avoiding excessive network delay

Active Publication Date: 2021-08-24
HANGZHOU DPTECH TECH
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, this application provides a method and device for message forwarding to solve the problem of network delay or link failure caused by the difference between the link for forwarding the reply message and the link for receiving the request message

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for forwarding messages
  • A method and device for forwarding messages
  • A method and device for forwarding messages

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053]In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, and to make the above-mentioned purposes, features and advantages of the embodiments of the present invention more obvious and understandable, the following describes the existing technical solutions and the present invention in conjunction with the accompanying drawings. The technical solutions in the embodiments of the invention are described in further detail.

[0054] see figure 2 , which is a flowchart of a method for forwarding a message shown in this application, the method is applied to a gateway device, and includes the following steps:

[0055] Step 201: Receive a first message, search a preset session table according to the quintuple of the first message, and determine whether there is a corresponding session entry.

[0056] Wherein, the above-mentioned session table is empty when the gateway device has not yet processed the m...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present application provides a method and device for forwarding messages, which are applied to gateway devices. The method includes: receiving a first message, searching the session table according to the quintuple of the first message, and determining whether there is a corresponding session Table entry; if there is no corresponding session entry, create a new session entry according to the quintuple; wherein, the session entry includes a mapping relationship between the quintuple of the session to which the first message belongs and the fast forwarding information , the fast forwarding information includes an outgoing interface and a next-hop MAC; determine whether the incoming interface of the first message is one of the specified interfaces corresponding to the equivalent link, and if so, in the session entry Record the fast forwarding information of the reverse message of the first message in the record, so that the reverse message of the first message is subsequently forwarded according to the fast forwarding information. In this application, the link for forwarding the reverse message is the same as the link for receiving the first message, which avoids the situation of excessive network delay or link failure.

Description

technical field [0001] The present application relates to the technical field of communications, and in particular to a method and device for forwarding messages. Background technique [0002] The gateway of a large-scale LAN generally has multiple egress links to the outside world. For example, there may be mobile links, Unicom links, and education network links between the gateway of a university LAN and the external network; or, in a load-balanced environment , a server set composed of multiple servers provides external services through the gateway device, and there may be multiple egress links between the gateway device and the external network. [0003] see figure 1 , is a network architecture diagram shown in this application, such as figure 1 As shown, multiple servers in the LAN form a server set to provide services to the external network, and there are 3 egress links between the gateway device of the LAN and the external network. When the gateway device receives...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/741H04L29/12H04L45/74
CPCH04L45/54H04L45/745H04L61/255H04L2101/622
Inventor 袁野
Owner HANGZHOU DPTECH TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products