CN108512714B - Message transmission method, related equipment and system - Google Patents

Message transmission method, related equipment and system Download PDF

Info

Publication number
CN108512714B
CN108512714B CN201710112958.3A CN201710112958A CN108512714B CN 108512714 B CN108512714 B CN 108512714B CN 201710112958 A CN201710112958 A CN 201710112958A CN 108512714 B CN108512714 B CN 108512714B
Authority
CN
China
Prior art keywords
address
request message
management network
hop
network element
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
CN201710112958.3A
Other languages
Chinese (zh)
Other versions
CN108512714A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710112958.3A priority Critical patent/CN108512714B/en
Publication of CN108512714A publication Critical patent/CN108512714A/en
Application granted granted Critical
Publication of CN108512714B publication Critical patent/CN108512714B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • H04L12/1435Metric aspects volume-based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/02Capturing of monitoring data
    • H04L43/026Capturing of monitoring data using flow identification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a message transmission method, related equipment and a system, wherein a user gateway receives a request message; wherein, the request message carries quintuple; the user gateway inquires whether a forward next hop IP address associated with the quintuple of the request message exists in a session table; if not, the user gateway acquires the source MAC address of the request message; the user gateway inquires whether a forward next hop IP address associated with the source IP address exists in a session holding table or not; if so, the user gateway sends the request message to the user port of the traffic management network element indicated by the forward next-hop IP address. By adopting the embodiment of the invention, the flow of the user can be accurately monitored.

Description

Message transmission method, related equipment and system
Technical Field
The present invention relates to the field of communications, and in particular, to a method, a related device, and a system for transmitting a packet.
Background
With the increase of traffic and the number of users in the internet, the traffic in the network increases more and more rapidly, and in the existing scheme, accurate statistics needs to be performed on the internet access behavior of each user, for example: the statistics of the internet access time and the consumed traffic of the user is needed, and the current scheme for performing statistics on the traffic of the user is as follows: the user gateway selects which traffic management network element to forward the message to according to the source IP address of the message, the selected traffic management network element forwards the message to the internet gateway, and the internet gateway forwards the message to a server in the network according to the destination IP address of the message; the internet gateway receives a response message sent by the server, forwards the message to a corresponding flow management network element according to a destination IP address of the response message, the flow management network element sends the response message to the user gateway, and the user gateway forwards the response message to a corresponding terminal according to the destination IP address. By the method, the forward flow and the reverse flow of the same user are ensured to pass through the same flow management network element, so that the accurate statistics of the user flow is realized.
However, the applicant finds that, when the IP address of the terminal changes, for example, in a DHCP (Dynamic Host Configuration Protocol, DHCP for short) scenario, the same IP address may be used by multiple terminals, so that the current scheme for counting the terminal traffic according to the IP address of the terminal is inaccurate.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a message transmission method, which can implement accurate statistics on user traffic.
In a first aspect, the present application provides a message transmission method, where the message transmission method is applied to a traffic management system, where the traffic management system includes a user gateway, multiple traffic management network elements, and an internet gateway, and each traffic management network element is used to monitor an internet behavior of a user, such as monitoring an internet duration and a consumed traffic of the user. Each traffic management network element comprises a user port and an internet port, the user port represents a port between the traffic management network element and a user gateway, and the internet port represents a port between the traffic management network element and an internet gateway. The method comprises the steps that a terminal to a server in the Internet is called a forward direction, and a message sent by the corresponding terminal is a forward message; the direction from the server to the terminal is called reverse direction, and the message sent by the corresponding server is a reverse message. The message transmission method comprises the following steps: the method comprises the steps that a user gateway receives a request message sent by a terminal, wherein the request message carries a quintuple, the quintuple comprises a source IP address, a destination IP address, a source port number, a destination port number and a protocol type, a session table can be preset in the user gateway, each table item of the session table stores a quintuple and a forward next-hop IP address, and the forward next-hop IP address in the session table is the IP address of a user port of a plurality of flow management network elements. Meanwhile, a session holding table is also stored in the user gateway, each table entry in the session holding table stores an MAC address and a forward next-hop IP address, and the forward next-hop IP address in the session holding table indicates an IP address of a user port of a certain traffic management network element among the plurality of traffic management network elements. The user gateway receives a request message sent by a terminal, the request message carries a quintuple, the user gateway inquires whether a forward next hop IP address associated with the quintuple exists in a session table, if not, the user gateway determines a source MAC address of the request message, the source MAC address of the request message is the MAC address of the terminal sending the request message, the user gateway inquires whether the forward next hop IP address associated with the source MAC address exists in a session holding table, and if so, the user gateway sends the request message to a user port of a traffic management network element indicated by the forward next hop IP address inquired in the session holding table.
By implementing the embodiment, the user gateway queries the associated forward next-hop IP address in the session table according to the quintuple of the request message in the request message sent by the receiving terminal, or queries the associated forward next-hop IP address in the session holding table according to the source MAC address of the request message, so that the traffic of the same user can be ensured to pass through the same traffic management network element, and the accurate monitoring of the user traffic is realized.
In a possible implementation manner of the first aspect, the user gateway sends the request message to the user port of the traffic management network element indicated by the next hop IP address when querying the forward next hop IP address associated with the five-tuple of the request message in the session table.
In a possible implementation manner of the first aspect, when the user gateway finds that there is no associated forward next-hop IP address after querying in the session table and the session holding table, the user gateway determines to select a target traffic management network element from the multiple traffic management network elements according to a preset offloading algorithm, determines an IP address of a user port of the target traffic management network element, and takes the IP address as the forward next-hop IP address. Newly building a table entry in the session table, binding the quintuple of the request message and the forward IP address, and storing the bound table entry in the newly built table entry; and the user gateway newly establishes an item in the session holding table, and stores the source MAC address and the forward next hop IP of the request message in the newly established item.
In a possible implementation manner of the first aspect, the user gateway receives a response packet sent by a certain traffic management network element of the multiple traffic management network elements, queries whether a related reverse next-hop IP address exists in the session table according to a five-tuple of the response packet, and if so, sends the response packet to the terminal according to an indication of the queried reverse next-hop IP address; if not, discarding the response message.
In a second aspect, the present application provides a packet transmission method, including:
the internet gateway receives a request message sent by a certain traffic management network element in the multiple traffic management network elements through an internet port, the request message carries a quintuple, the internet gateway inquires whether a forward next-hop IP address associated with the quintuple of the request message exists in a session table, the forward next-hop IP address represents an IP address of a server in the internet, and if so, the request message is forwarded to a corresponding server in the internet according to the indication of the forward next-hop IP address.
In a possible implementation manner of the second aspect, in a case that the internet gateway queries in the session table that there is no forward next hop IP address associated with the quintuple of the request packet, the internet gateway queries, according to the destination IP address of the request packet, the associated forward next hop IP address in the routing table, and forwards the request packet to a corresponding server in the internet according to an indication of the queried forward next hop IP address. Meanwhile, the internet gateway acquires a source MAC address of the request message, wherein the source MAC address is an MAC address of an internet port of the traffic management network element, the internet gateway can utilize an ARP protocol to check the IP address of the internet port of the traffic management network element, the internet gateway creates a table entry in a session table, binds the quintuple, the forward next-hop IP address and the reverse next-hop IP address of the request message and stores the bound table entry in the created table entry.
In a possible implementation manner combined with the second aspect, the internet gateway receives a response packet returned by the network side, and the internet gateway queries whether a correlated reverse next hop IP address exists in the session table according to a five-tuple of the response packet, and if so, sends the response packet to an internet port of the traffic management network element indicated by the reverse next hop IP address; if not, the internet gateway discards the response message.
In a third aspect, the present application provides a method for maintaining a traffic management network element list, including: the user gateway is associated with a plurality of traffic management network elements, allocates an IP address to the user port of each traffic management network element, and generates a user port list according to the MAC address of the user port of each traffic management network element and the allocated IP address. The user gateway allocates an IP address to the internet port of each traffic management network element, and generates an internet port list according to the MAC address of the internet port of each traffic management network element and the allocated IP address, at this time, the user gateway and the internet gateway do not know the mapping relationship between the user port and the internet port on each traffic management network element, so that the user gateway initiates a probe to the traffic management network element to be probed, and the probing process includes: a user gateway sends a detection request message to a traffic management network element, the source IP address of the detection request message is the IP address of the user gateway, the destination IP address is the IP address of an internet gateway, the forward-to-next-hop IP address is the IP address of a user port of the traffic management network element to be detected, the user gateway sends the detection request message to the traffic management network element through the user port according to the forward-to-next-hop IP address, the traffic management network element sends the detection request message to the internet gateway through the internet port, the internet gateway obtains the source MAC address of the received detection request message, the source MAC address of the detection request message is the MAC address of the internet port of the traffic management network element to be detected, the user gateway returns the IP address and the MAC address of the internet port of the traffic management network element to be detected according to an ARP protocol, the source MAC address corresponds to the IP address of the internet port corresponding to the IP address of the internet port, the IP address is the IP network element address of the internet port of the traffic management network element to be detected, the internet gateway returns the IP address and the MAC address of the internet port of the traffic management network element to the user gateway, and the user gateway judges whether the MAC address and the IP address carried in the detection request message are positioned in the internet port list, if so, the user gateway establishes a binding relationship between the user port of the traffic management network element to be detected and the internet port, and informs the binding relationship to the internet port. According to the detection method, the user gateway can detect the binding relationship between the user port and the internet port on each traffic management network element.
In a fourth aspect, the present application provides a user gateway, where the user gateway has a function of implementing a user gateway behavior in the foregoing method. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions.
In one possible implementation, the user gateway includes:
in another possible implementation manner, the user gateway includes: a receiver, a transmitter, a memory, and a processor; the memory stores a set of program codes, and the processor is configured to call the program codes stored in the memory and execute the message transmission method in each possible implementation manner of the first aspect, the third aspect, and the first aspect.
Based on the same inventive concept, as the principle and the beneficial effects of the device for solving the problems can be referred to the method implementation modes and the brought beneficial effects of the possible user gateways, the implementation of the device can be referred to the implementation of the method, and repeated parts are not described again.
A fifth aspect of the present application provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to perform the message transmission method in each possible implementation manner of the first aspect, the third aspect, and the first aspect.
A further aspect of the present application provides a computer program product containing instructions, which when run on a computer, causes the computer to perform the message transmission method in the first aspect, the third aspect, and each possible implementation manner of the first aspect.
In a sixth aspect, the present application provides an internet gateway having functionality for implementing the behavior of the internet gateway in the above method. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions.
In one possible implementation, the internet gateway includes:
in another possible implementation manner, the internet gateway includes: a receiver, a transmitter, a memory, and a processor; wherein the memory stores a set of program codes, and the processor is configured to call the program codes stored in the memory and execute the message transmission method in each possible implementation manner of the second aspect and the second aspect.
Based on the same inventive concept, as the principle and the beneficial effects of the device for solving the problems can be referred to the method implementation modes and the brought beneficial effects of the possible user gateways, the implementation of the device can be referred to the implementation of the method, and repeated parts are not described again.
A seventh aspect of the present application provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to perform the above-described second aspect and each of the possible message transmission methods of the second aspect.
A further aspect of the present application provides a computer program product containing instructions which, when run on a computer, cause the computer to perform the second aspect and each of the possible message transmission methods of the second aspect.
In another aspect, the present application provides a traffic charging system, including a user gateway, a plurality of traffic management network elements, and an internet gateway;
the user gateway is used for receiving the request message; inquiring whether a forward next hop IP address associated with a quintuple of the request message exists in a session table of the user gateway; if not, acquiring a source MAC address of the request message, and inquiring whether a forward next hop IP address associated with the source IP address exists in a session holding table of the user gateway or not; if so, sending the request message to a user port of the traffic management network element indicated by the next-hop IP address; the traffic management network element indicated by the forward next-hop IP address belongs to a plurality of traffic management network elements;
the traffic management network element is used for receiving the request message through the user port and sending the request message to the internet gateway through the internet port;
the Internet gateway is used for receiving the request message forwarded by the traffic management network element; inquiring whether a forward next hop IP address associated with the quintuple exists in a session table of the internet gateway; if not, inquiring the forward next-hop IP address of the request message in the routing table; acquiring a source MAC address of a request message, inquiring to obtain an IP address of a flow management network element according to the source MAC address of the request message, and storing the IP address obtained by inquiry in a table entry as a reverse next-hop IP address; creating list item in session list of internetwork, binding quintuple, forward next hop IP address and reverse next hop IP address, and storing them in the created list item.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present invention, the drawings required to be used in the embodiments or the background art of the present invention will be described below.
Fig. 1 is a schematic structural diagram of a traffic charging system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a message transmission method according to an embodiment of the present invention;
fig. 3 is another schematic flow chart of a message transmission method according to an embodiment of the present invention;
fig. 4 is another schematic flow chart of a message transmission method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of port probing of a traffic management network element according to an embodiment of the present invention;
fig. 6 is a specific example of port probing of a traffic management network element according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a user gateway according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an internet gateway according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described below with reference to the drawings.
Fig. 1 is a schematic diagram of an architecture of a traffic charging system according to an embodiment of the present invention, where the communication system includes m terminals, an access network, a user gateway, n traffic management network elements, an internet gateway, and k servers, where m, n, and k are integers greater than 1. Each of the n traffic management network elements is configured to monitor traffic of the terminal, for example: and monitoring the internet surfing time, the consumed flow, the data network type and the like of the terminal. Each traffic management network element is provided with a user port representing an interface adjacent to the terminal and an internet port representing a port connected to the server, and the IP addresses and MAC addresses of the user port and the internet port may be different for each traffic management network element. The terminal passes through an Access network and a user gateway, where the Access network in the present application includes, but is not limited to, a Global System for Mobile Communication (GSM) Access network, a Code Division Multiple Access (CDMA) System Access network, a Wideband Code Division Multiple Access (WCDMA) Access network, a Worldwide Interoperability for Microwave Access (WiMAX) Access network, a Long Term Evolution (LTE) Access network, or a subsequent evolution Access network.
A terminal in the present application is a device with wireless communication capabilities, and may be a handheld device with wireless communication capabilities, an in-vehicle device, a wearable device, a computing device or other processing device connected to a wireless modem, etc. Terminals can be called different names in different networks, for example: user equipment, access terminal, subscriber unit, subscriber station, mobile station, remote terminal, mobile device, user terminal, Wireless communication device, user agent or user equipment, cellular telephone, cordless telephone, Session Initiation Protocol (SIP) telephone, Wireless Local Loop (WLL) station, Personal Digital Assistant (PDA), terminal in a 5G network or future evolution network, and the like.
The access network in the present application includes devices for providing wireless communication functions, and the devices in the access network include but are not limited to: a Base Station (e.g., BTS (Base Transceiver Station, BTS), a Node B (NodeB, NB), an evolved Node B (eNB or eNodeB), a transmission Node or a transmission reception point (TRP or TP) or a next generation Node B (gNB) in an NR system, a Base Station or a network device in a future communication network), a relay Station, an access point, a vehicle-mounted device, a wearable device, a Wireless Fidelity (Wi-Fi) Station, a Wireless backhaul Node, a small Station, a micro Station, and so on.
It should be noted that, in addition to the centralized deployment in fig. 1, the user gateway and the internet gateway of the present application may also adopt a distributed deployment manner, that is, the user gateway includes a plurality of sub-gateways, and each sub-gateway manages terminals in different ranges. The internet gateway includes a plurality of sub-gateways, each word gateway managing a different range of servers.
It should be noted that m traffic management network elements of the present application may be divided into three pools: the system comprises a main pool, a standby pool and a fault pool, wherein the main pool comprises a currently working flow management network element, the standby pool comprises a flow management network element playing a backup role, and the fault pool comprises a flow management network element with a fault. When a certain traffic management network element in the main pool fails, the traffic management network element is moved to the failure pool, and meanwhile, a certain traffic management network element in the standby pool is moved to the main pool. And when the fault of a certain traffic management network element in the fault pool is recovered, moving the traffic management network element into the standby pool. The user gateway may detect the health status of the traffic management network element by sending a probe request message to the traffic management network element: if a detection response message corresponding to the detection request message is received within a preset time length, indicating that the flow management network element is in a normal state; and if the detection response message corresponding to the detection request message is not received within the preset time length, indicating that the flow management network element is in a fault state.
Referring to fig. 2, fig. 2 is a schematic flow chart of a message transmission method according to an embodiment of the present invention, where the method includes, but is not limited to, the following steps:
s201, receiving a request message sent by a terminal.
Specifically, the terminal sends a request message to a corresponding user gateway through the access network, where the request message may be generated by an application program in the terminal. The method comprises the steps that a user gateway receives a request message sent by a terminal, the request message carries a five-tuple, the five-tuple comprises a source IP address, a destination IP address, a source port number, a destination port number and a protocol type, the source IP address represents the IP address of the terminal, the destination IP address represents the IP address of a server in the Internet, the source port number represents the serial number of a port of the request message sent by the terminal, the destination port number represents the serial number of a port of the request message received by the server, the protocol type represents the type of a protocol for transmitting the request message, and the protocol type comprises but is not limited to IP protocols such as TCP and UDP. The request message may further include a source MAC address indicating a MAC address of a previous neighboring device of the user gateway, in addition to the quintuple.
S202, whether a forward next hop IP address associated with the quintuple of the request message exists or not is inquired in the session table.
Specifically, a session table may be preset in the user gateway, where the session table includes a plurality of entries, each entry stores a quintuple and a forward next-hop IP address, the user gateway determines the quintuple carried in the request message, queries whether an entry associated with the quintuple exists in the session table according to the quintuple, and if so, determines the forward next-hop IP address stored in the queried entry, and executes S203. If no entry associated with the five-tuple exists in the session table, S204 is executed.
S203, sending the request message to a user port of the traffic management network element according to the forward next-hop IP address recorded in the session table.
Specifically, the user gateway determines a corresponding traffic management network element according to the forward next-hop IP address queried in S202, and sends the request packet to the user port of the traffic management network element.
S204, inquiring whether a forward next hop IP address associated with the source MAC address of the request message exists in the session holding table.
Specifically, the user gateway is preset with a session holding table, the session holding table includes a plurality of entries, each entry stores a source MAC address and a forward next hop IP address, the user gateway queries whether an entry associated with the source MAC address of the request packet exists in the session holding table, and if so, determines the forward next hop IP address queried in the queried entry, and executes S205. If the session holding table does not have the table entry associated with the source MAC address of the request packet, S206 is executed. The source MAC address of the request packet indicates the MAC address of the last adjacent device of the user gateway, for example, the source MAC address of the request packet is the MAC address of the terminal.
S205, sending the request message to the user port of the flow management network element according to the forward next-hop IP address recorded in the session holding table.
Specifically, the user gateway determines a corresponding traffic management network element according to the forward next-hop IP address queried in S204, and the user gateway sends the request packet to the user port of the determined traffic management network element.
S206, selecting a target traffic management network element from the traffic management network elements according to a preset flow distribution algorithm, determining the IP address of the user port of the target traffic management network element, and taking the IP address as the forward next-hop IP address of the request message.
Specifically, the user gateway assigns an IP address to a user port and an internet port of each traffic management network element in the plurality of traffic management network elements in advance, and methods for assigning the IP address include, but are not limited to, a static IP assignment method or a dynamic IP assignment method. The user gateway selects a target traffic management network element from the traffic management network elements according to a preset flow distribution algorithm, determines the IP address of the user port of the target traffic management network element, and takes the IP address as the forward next-hop IP address of the request message.
Optionally, the multiple traffic management network elements are numbered in advance according to 1, 2, and 3 … …, the user gateway obtains the quintuple of the request packet, performs hash operation on the quintuple to obtain a hash value, performs modulo operation on the obtained hash value and the number of the multiple traffic management network elements, and takes the obtained modulo value as the serial number of the target traffic management network element.
Optionally, when the request packet carries both an IPv4 address and an IPv6 address, the user gateway performs hash operation according to the source MAC address of the request packet to obtain a hash value, performs modulo calculation on the obtained hash value and the number of the plurality of traffic management network elements, and uses the obtained modulo value as the serial number of the target traffic management network element.
Optionally, when the request packet only carries an IPv4 address or an IPv6 address, the user gateway performs hash operation according to the source IP address of the request packet to obtain a hash value, performs modulo on the obtained hash value and the number of the plurality of traffic management network elements, and uses the obtained modulo value as the serial number of the target traffic management network element.
And S207, sending a request message according to the determined forward next-hop IP address.
Specifically, the user gateway sends the request message to the user port of the corresponding traffic management network element according to the forward next-hop IP address determined in S206.
S208, creating an item in the session table, and storing the five-tuple and the determined forward next-hop IP address in the created item after binding.
Specifically, the user gateway creates a new entry in the session table, stores the five-tuple of the request packet and the forward next hop IP address determined in S206 in the created entry, where the five-tuple stored in the entry and the forward next hop IP address have a binding relationship.
S209, creating a table entry in the session holding table, and storing the source MAC address of the request message and the determined forward next-hop IP address in the created table entry after binding.
Specifically, the user gateway newly establishes an entry in the session holding table, obtains the source MAC address of the request packet, where the source MAC address of the request packet is the MAC address of the terminal, and binds the source MAC address of the request packet and the forward next hop IP address determined in S206 and stores the bound source MAC address in the established entry.
In the embodiment of the present invention, the traffic management network element receives the request message sent by the user gateway through the user port, and can count the internet access service of the terminal sending the request message for charging, for example, charging is performed according to the internet access traffic or the internet access duration, and the traffic management network element forwards the request message to the corresponding internet port and sends the request message to the internet gateway through the internet port. In the case that the internet gateways are deployed in a distributed manner, the traffic management network element may send the request packet to the corresponding internet gateway according to a preset rule, for example: and sending the request message by adopting a random mode, a service type priority mode or a flow priority mode.
In the method described in fig. 2, the user gateway queries the associated forward next-hop IP address in the session table according to the quintuple of the request message in the request message sent by the receiving terminal, or queries the associated forward next-hop IP address in the session holding table according to the source MAC address of the request message, so as to ensure that the traffic of the same user passes through the same traffic management network element, thereby realizing accurate monitoring of the traffic of the user.
Referring to fig. 3, a schematic flow chart of a message transmission method according to an embodiment of the present invention is provided, where in the embodiment of the present invention, the method includes:
s301, receiving a request message sent by a traffic management network element.
Specifically, the internet gateway receives a request message sent by a traffic management network element, where the request message carries a quintuple.
S302, whether a forward next hop IP address associated with the quintuple of the request message exists or not is inquired in the session table.
Specifically, the internet gateway is preset with a session table, the session table includes a plurality of table entries, each table entry stores a quintuple and a next hop IP address, the internet gateway queries whether a table entry associated with the quintuple of the request packet exists in the session table, if so, determines the next hop IP address stored in the table entry, and executes S303. If no entry associated with the five-tuple of the request message exists in the session table, S304 is executed.
S303, forwarding the request message according to the next hop IP address recorded in the session table.
Specifically, the internet gateway forwards the request message to the device in the internet according to the next hop IP address.
S304, obtaining the source MAC address of the request message.
Specifically, the internet gateway obtains a source MAC address of a request message, where the source MAC address can be carried in the request message, and the source MAC address is an MAC address of an internet port of a traffic management network element.
S305, inquiring a routing table according to the destination IP address of the request message to obtain the forward next-hop IP address.
S306, inquiring the related IP address according to the source MAC address of the request message, and taking the inquired IP address as a reverse next-hop IP address.
S307, creating a table entry in the session table, and storing the quintuple of the request message, the forward next-hop IP address and the reverse next-hop IP address in the created table entry after binding.
And S308, forwarding the request message according to the forward next-hop IP address.
As can be seen from the embodiment of fig. 3, after receiving a request message of a user, the internet gateway directly performs reverse lookup on a reverse next-hop IP address according to a source MAC address of the request message, so that when receiving a response message corresponding to the request message, the internet gateway can directly obtain the reverse next-hop IP address by looking up a session table, thereby avoiding a large amount of time consumed by looking up a routing table and reducing message transmission delay.
Referring to fig. 4, a schematic flow chart of a message transmission method according to an embodiment of the present invention is shown, where in the embodiment of the present invention, the method includes:
s401, receiving a response message sent by the server.
Specifically, the internet gateway receives a response message sent by the server.
S402, inquiring whether a reverse next hop IP address associated with the quintuple of the response message exists in the session table.
S403, sending the request message to an internet port of the traffic management network element according to the reverse next-hop IP address recorded in the session.
S404, discarding the response message.
Referring to fig. 5, a schematic flow chart of a message transmission method according to an embodiment of the present invention is provided, where in the embodiment of the present invention, the method includes:
s501, the user gateway generates a detection request message.
Specifically, the user gateway associates a plurality of traffic management network elements, each traffic management network element has a user port and an internet port, the user gateway allocates an IP address to each user port and each internet port, the user gateway generates a user port list according to the user ports of the plurality of traffic management network elements, and each entry in the user port list stores the IP address and the MAC address of the user port. And meanwhile, the user gateway generates an internet port list according to the internet ports of the plurality of traffic management network elements, and each table entry in the internet port list stores the IP address and the MAC address of the internet port. The user gateway generates a detection request message, wherein the source IP address of the detection request message is the IP address of the user gateway, the forward-to-next-hop IP address is the IP address of the user port of the traffic management network element to be detected, and the destination IP address is the IP address of the internet gateway.
S502, the user gateway sends a detection request message to the traffic management network element.
Specifically, the user gateway sends the detection request message to the traffic management network element to be detected according to the forward next-hop IP address of the detection request message.
S503, the traffic management network element forwards the detection request message from the user port to the Internet port.
Specifically, the traffic management network element receives a probe request message sent by the user gateway from the user port, forwards the probe request message to the corresponding internet port, and modifies a source MAC address of the probe request message into an MAC address of the internet port of the traffic management network element.
S504, the traffic management network element sends the detection request message to the Internet gateway.
Specifically, the traffic management network element sends the detection request message to the internet gateway according to the destination IP address carried in the detection request message.
S505, the internet gateway acquires the source MAC address of the detection request message and inquires the IP address related to the source MAC address.
Specifically, the internet gateway receives the detection request message, and obtains a source MAC address carried in the detection request message, where the source MAC address is an MAC address of the traffic management network element.
S506, generating a detection response message according to the source MAC address and the inquired IP address.
Specifically, the internet gateway may reversely check the IP address of the internet port of the traffic management network element according to the ARP protocol, and fill the IP address and the MAC address of the internet port of the traffic management network element to be detected in the detection response message.
S507, the internet gateway sends a detection response message to the user gateway.
And S508, inquiring whether the source MAC address and the IP address are positioned in the Internet port list.
Specifically, the user gateway receives the probe response message, acquires an MAC address and an IP address carried in the probe response message, where the MAC address and the IP address are an IP address and an MAC address of an internet port of the traffic management network element to be detected, and queries whether the MAC address and the IP address are located in an internet port list, if so, then S509 is executed.
And S509, binding the user port and the Internet port.
Specifically, the user gateway binds the IP address and MAC address of the user port with the IP address and MAC address of the internet port,
and S510, the user gateway informs the internet gateway of the binding relationship.
Specifically, the user gateway notifies the internet gateway of the binding relationship between the user port and the internet port determined in S509, and the internet gateway learns the MAC address and the IP address of the user interface of the traffic management network element to be detected and the internet interface according to the binding relationship.
By implementing the embodiment, the user gateway queries the associated forward next-hop IP address in the session table according to the quintuple of the request message in the request message sent by the receiving terminal, or queries the associated forward next-hop IP address in the session holding table according to the source MAC address of the request message, so that the traffic of the same user can be ensured to pass through the same traffic management network element, and the accurate monitoring of the user traffic is realized.
Referring to fig. 6, the following describes the binding relationship between the user port and the internet port according to the example of fig. 6: the user gateway is connected with the traffic management network element 1 and the traffic management network element 2, the internet gateway is connected with the traffic management network element 1 and the traffic management network element 2, and the user gateway is also connected with the internet gateway. The IP address of the user gateway is 1.1.1.254, the IP address of the internet gateway is 2.2.2.254, the user gateway receives a DHCP request initiated by the traffic management network element 1, the DHCP request carries the MAC address 1-1-1 of the user port of the traffic management network element 1, and the IP address and the MAC address allocated to the user port of the traffic management network element 1 are bound. The traffic management network element 1 sends a DHCP request to the subscriber gateway through the internet gateway, and requests the subscriber gateway to allocate an IP address to the internet port of the traffic management network element 1, the DHCP request carries an MAC address of the internet port of the traffic management network element 1, and the subscriber gateway receives the DHCP request and allocates an IP address of 2.2.2.1 to the internet port of the traffic management network element 1. Similarly, the IP address allocated by the user gateway to the user port of the traffic management network element 2 is 1.1.1.2, and the IP address allocated to the internet port of the traffic management network element 2 is 2.2.2.2. The user gateway generates a user port list (MAC: 1-1-1, IP: 1.1.1.1), (MAC: 3-3-3, IP: 1.1.1.2), and the user gateway generates an internet port list: (MAC: 2-2-2, IP: 2.2.2.1), (MAC: 4-4-4, 2.2.2.2).
Taking the traffic management network element 1 as an example, the user gateway needs to detect IP addresses of a user port and an internet port on the traffic network element 1, the user gateway sends a detection request message to the traffic management network element 1, a source IP address carried in the detection request message is an IP address 1.1.1.254 of the user gateway, and a forward next-hop IP address is an IP address of the user port of the traffic management network element 1: 1.1.1.1, the destination IP address is IP address 2.2.2.254 of the internet gateway, and the user gateway: 1.1.1.1 sending the detection request message to the user port of the traffic management network element 1, the traffic management network element 1 forwarding the detection request message to the corresponding internet port, and updating the source MAC address of the detection request message to the MAC address of the internet port: 2.2.2.1, the internet gateway receives the detection request message, obtains a source MAC address carried in the detection request message, reversely checks that an IP address associated with the source MAC address is 2.2.2.1 according to an ARP protocol, fills the source MAC address and the inquired IP address into the detection response message, returns the detection response message to the user gateway, receives the detection request message, obtains the MAC address and the IP address carried in the detection response message, inquires that the MAC address and the IP address carried in the detection response message exist in the internet port list for a long time, and if the MAC address and the IP address are contained in the detection response message, the MAC address is indicated: 2-2-2 and IP address 2.2.2.1 are address information of an internet port of the traffic management network element 1, the user gateway binds (MAC: 1-1-1, IP: 1.1.1.1) with (MAC: 2-2-2, IP: 2.2.2.1), and informs the internet gateway of the binding relation.
The probing of the user port and the internet port of the traffic management network element 2 by the user gateway may refer to the probing of the traffic management network element 1, which is not described herein again.
Referring to fig. 7, fig. 7 is a user gateway 70 according to an embodiment of the present invention, where the user gateway 70 includes a processor 701, a memory 703 and a communication interface 702, and the processor 701, the memory 703 and the communication interface 702 are connected to each other through a bus.
The Memory 703 includes, but is not limited to, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), or a portable Read-Only Memory (CD-ROM), and the Memory 703 is used for related instructions and data. Communication interface 702 is used to receive and transmit data.
The processor 701 may be one or more Central Processing Units (CPUs), and in the case that the processor 701 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The processor 701 in the user gateway 70 is configured to read the program code stored in the memory 703, and perform the following operations:
receiving a request message; wherein, the request message carries a quintuple;
inquiring whether a forward next hop IP address associated with the quintuple of the request message exists in a session table;
if not, acquiring a source MAC address of the request message;
inquiring whether a forward next hop IP address associated with the source IP address exists in a session holding table or not;
if so, the user gateway sends the request message to a user port of the traffic management network element indicated by the forward next-hop IP address.
Optionally, the processor 701 is further configured to:
querying a forward next hop IP address with the five-tuple association in the session table;
and sending the request message to a traffic management network element.
Optionally, the processor 701 is further configured to:
in the case that there is no forward next hop IP address associated with the five tuple of the packet in the session table and there is no forward next hop IP address associated with the source MAC address in the session holding table,
determining a target traffic management network element from a plurality of traffic management network elements according to one or more parameters in the five-tuple, and taking the IP address of the user port of the target traffic management network element as a target forward next-hop IP address;
creating a table entry in the session table, and storing the five-tuple and the target forward next-hop IP address in the created table entry after binding;
and establishing a table entry in a session holding table, and binding the source MAC address and the target forward next hop IP address and then storing the bound source MAC address and the target forward next hop IP address in the established table entry.
Optionally, the determining, by the processor 701, a target management network element from a plurality of traffic management network elements according to one or more parameters in the five-tuple includes:
performing hash operation on one or more parameters in the quintuple to obtain a hash value;
and determining the number of a plurality of traffic management network elements, and performing modulo operation on the hash value and the number to obtain the serial number of the target management network element.
It should be noted that the implementation of each operation may also correspond to the corresponding description of the method embodiments shown in fig. 2 to 4.
In summary, by implementing the embodiment of the present invention, the user gateway queries the associated forward next-hop IP address in the session table according to the quintuple of the request message in the request message sent by the receiving terminal, or queries the associated forward next-hop IP address in the session holding table according to the source MAC address of the request message, so as to ensure that the traffic of the same user passes through the same traffic management network element, and realize accurate monitoring of the traffic of the user.
Referring to fig. 8, fig. 8 is a diagram of an internet gateway 80 according to an embodiment of the present invention, where the internet gateway 80 includes a processor 801, a memory 803, and a communication interface 802, and the processor 801, the memory 803, and the communication interface 802 are connected to each other through a bus.
The Memory 803 includes, but is not limited to, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), or a portable Read Only Memory (CD-ROM), and the Memory 803 is used for related instructions and data. The communication interface 802 is used for receiving and transmitting data.
The processor 801 may be one or more Central Processing Units (CPUs), and in the case that the processor 801 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The processor 801 in the internet gateway 80 is configured to read the program code stored in the memory 803, and perform the following operations:
receiving a request message sent by a traffic management network element through an internet port; wherein, the request message carries a quintuple;
querying whether a forward next hop IP address associated with the five-tuple exists in a session table;
if not, inquiring the forward next-hop IP address of the request message in a routing table;
acquiring a source MAC address of the request message, inquiring to obtain an IP address of a flow management network element according to the source MAC address of the request message, and storing the IP address obtained by inquiry in the table entry as a reverse next-hop IP address;
creating a table entry in the session table, and storing the five-tuple, the forward next-hop IP address and the reverse next-hop IP address in the created table entry after binding.
Optionally, the processor 801 is further configured to:
receiving a response message corresponding to the request message;
inquiring whether a table item associated with the response message exists in the session table;
if so, determining a reverse next hop IP address according to the associated table entry, and sending the response message to an internet port of a traffic management network element according to the reverse next hop IP address;
if not, discarding the response message.
The embodiment can see that after receiving a request message of a user, the internet gateway directly searches the reverse next-hop IP address according to the source MAC address of the request message, so that when receiving a response message corresponding to the request message, the internet gateway can directly obtain the reverse next-hop IP address by searching the session table, thereby avoiding a large amount of time consumed by searching the routing table and reducing message transmission delay.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.

Claims (13)

1. A method for packet transmission, comprising:
the user gateway receives the request message; wherein, the request message carries a quintuple;
the user gateway inquires whether a forward next hop IP address associated with the quintuple of the request message exists in a session table;
if the session table does not have a forward next hop IP address associated with the quintuple, the user gateway acquires a source Media Access Control (MAC) address of the request message;
the user gateway inquires whether a forward next hop IP address associated with the source MAC address exists in a session holding table or not;
if the session holding table has a forward next hop IP address associated with the source MAC address, the user gateway sends the request message to a user port of a traffic management network element indicated by the forward next hop IP address associated with the source MAC address;
and if the session table has the forward next-hop IP address associated with the quintuple, the user gateway sends the request message to a user port of the traffic management network element indicated by the forward next-hop IP address associated with the quintuple.
2. The method of claim 1, further comprising:
the user gateway inquires the forward next hop IP address with the five-tuple association in the session table;
and the user gateway sends the request message to a flow management network element.
3. The method of claim 1, further comprising:
in the case that there is no forward next hop IP address associated with the five tuple of the packet in the session table and there is no forward next hop IP address associated with the source MAC address in the session holding table,
determining a target traffic management network element from a plurality of traffic management network elements according to one or more parameters in the five-tuple, and taking the IP address of the user port of the target traffic management network element as a target forward next-hop IP address;
creating a table entry in the session table, and storing the five-tuple and the target forward next-hop IP address in the created table entry after binding;
and establishing a table entry in a session holding table, and binding the source MAC address and the target forward next hop IP address and then storing the bound source MAC address and the target forward next hop IP address in the established table entry.
4. The method of claim 3, wherein determining a target management network element from a plurality of traffic management network elements based on one or more parameters in the five-tuple comprises:
performing hash operation on one or more parameters in the quintuple to obtain a hash value;
and determining the number of a plurality of traffic management network elements, and performing modulo operation on the hash value and the number to obtain the serial number of the target management network element.
5. A method for packet transmission, comprising:
the internet gateway receives a request message sent by a traffic management network element through an internet port; wherein, the request message carries a quintuple;
the internet gateway inquires whether a forward next hop IP address associated with the quintuple exists in a session table;
if the session table does not have the forward next hop IP address associated with the quintuple, inquiring the forward next hop IP address of the request message in a routing table;
acquiring a source MAC address of the request message, inquiring to obtain an IP address of a flow management network element according to the source MAC address of the request message, and storing the IP address obtained by inquiry in a table entry as a reverse next-hop IP address;
creating a table entry in the session table, and storing the five-tuple, the forward next-hop IP address and the reverse next-hop IP address in the created table entry after binding.
6. The method of claim 5, further comprising:
the internet gateway receives a response message corresponding to the request message;
the Internet gateway inquires whether a table item associated with the response message exists in the session table;
if the session table has a table entry associated with the response message, the internet gateway determines a reverse next hop IP address according to the associated table entry, and sends the response message to an internet port of a traffic management network element according to the reverse next hop IP address;
and if the session table does not have the table entry associated with the response message, the internet gateway discards the response message.
7. A subscriber gateway, comprising: a memory storing program code and a processor calling the program code for performing the following:
receiving a request message; wherein, the request message carries a quintuple;
inquiring whether a forward next hop IP address associated with the quintuple of the request message exists in a session table;
if the session table does not have a forward next hop IP address associated with the quintuple, acquiring a source MAC address of the request message;
inquiring whether a forward next hop IP address associated with the source MAC address exists in a session holding table or not;
if the session holding table has a forward next hop IP address associated with the source MAC address, the user gateway sends the request message to a user port of a traffic management network element indicated by the forward next hop IP address associated with the source MAC address;
and if the session table has the forward next-hop IP address associated with the quintuple, the user gateway sends the request message to a user port of the traffic management network element indicated by the forward next-hop IP address associated with the quintuple.
8. The subscriber gateway of claim 7, wherein the processor is further configured to perform:
querying a forward next hop IP address with the five-tuple association in the session table;
and sending the request message to a traffic management network element.
9. The subscriber gateway of claim 7, wherein the processor is further configured to perform:
in the case that there is no forward next hop IP address associated with the five tuple of the packet in the session table and there is no forward next hop IP address associated with the source MAC address in the session holding table,
determining a target traffic management network element from a plurality of traffic management network elements according to one or more parameters in the five-tuple, and taking the IP address of the user port of the target traffic management network element as a target forward next-hop IP address;
creating a table entry in the session table, and storing the five-tuple and the target forward next-hop IP address in the created table entry after binding;
and establishing a table entry in a session holding table, and binding the source MAC address and the target forward next hop IP address and then storing the bound source MAC address and the target forward next hop IP address in the established table entry.
10. The subscriber gateway of claim 9, wherein the processor performing the determining a target management network element from a plurality of traffic management network elements based on one or more parameters in the five tuple comprises:
performing hash operation on one or more parameters in the quintuple to obtain a hash value;
and determining the number of a plurality of traffic management network elements, and performing modulo operation on the hash value and the number to obtain the serial number of the target management network element.
11. An internet gateway comprising a memory and a processor, the memory storing program code, the processor invoking the program code for performing the operations of:
receiving a request message sent by a traffic management network element through an internet port; wherein, the request message carries a quintuple;
querying whether a forward next hop IP address associated with the five-tuple exists in a session table;
if the session table does not have the forward next hop IP address associated with the quintuple, inquiring the forward next hop IP address of the request message in a routing table;
acquiring a source MAC address of the request message, inquiring to obtain an IP address of a flow management network element according to the source MAC address of the request message, and storing the IP address obtained by inquiry in a table entry as a reverse next-hop IP address;
creating a table entry in the session table, and storing the five-tuple, the forward next-hop IP address and the reverse next-hop IP address in the created table entry after binding.
12. The internet gateway of claim 11, wherein the processor is further configured to perform:
receiving a response message corresponding to the request message;
inquiring whether a table item associated with the response message exists in the session table;
if the session table has a table entry associated with the response message, determining a reverse next hop IP address according to the associated table entry, and sending the response message to an internet port of a traffic management network element according to the reverse next hop IP address;
and if the session table does not have the table entry associated with the response message, discarding the response message.
13. A flow charging system is characterized by comprising a user gateway, a plurality of flow management network elements and an internet gateway;
the user gateway is used for receiving a request message; inquiring whether a forward next hop IP address associated with the quintuple of the request message exists in a session table of the user gateway; if the session table does not have the forward next hop IP address associated with the quintuple, acquiring a source MAC address of the request message, and inquiring whether the session holding table of the user gateway has the forward next hop IP address associated with the source MAC address; if the session holding table has a forward next hop IP address associated with the source MAC address, sending the request message to a user port of a traffic management network element indicated by the forward next hop IP address associated with the source MAC address; if the session table has a forward next-hop IP address associated with the quintuple, the user gateway sends the request message to a user port of a traffic management network element indicated by the forward next-hop IP address associated with the quintuple; the traffic management network element indicated by the forward next-hop IP address associated with the source MAC address and the traffic management network element indicated by the forward next-hop IP address associated with the quintuple belong to the plurality of traffic management network elements;
the traffic management network element is configured to receive the request packet through a user port, and send the request packet to the internet gateway through an internet port;
the internet gateway is used for receiving the request message forwarded by the traffic management network element; inquiring whether a forward next hop IP address associated with the quintuple exists in a session table of the internet gateway; if the session table does not have the forward next hop IP address associated with the quintuple, inquiring the forward next hop IP address of the request message in a routing table; acquiring a source MAC address of the request message, inquiring to obtain an IP address of a flow management network element according to the source MAC address of the request message, and storing the IP address obtained by inquiry in a table entry as a reverse next-hop IP address; creating a table entry in a session table of the internet gateway, and storing a quintuple, a forward next hop IP address and a reverse next hop IP address in the created table entry after binding.
CN201710112958.3A 2017-02-28 2017-02-28 Message transmission method, related equipment and system Active CN108512714B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710112958.3A CN108512714B (en) 2017-02-28 2017-02-28 Message transmission method, related equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710112958.3A CN108512714B (en) 2017-02-28 2017-02-28 Message transmission method, related equipment and system

Publications (2)

Publication Number Publication Date
CN108512714A CN108512714A (en) 2018-09-07
CN108512714B true CN108512714B (en) 2021-10-01

Family

ID=63374239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710112958.3A Active CN108512714B (en) 2017-02-28 2017-02-28 Message transmission method, related equipment and system

Country Status (1)

Country Link
CN (1) CN108512714B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111064668B (en) * 2018-10-17 2022-06-14 华为技术有限公司 Method and device for generating routing table entry and related equipment
CN109361608B (en) * 2018-11-23 2021-04-27 北京六方云信息技术有限公司 Message processing method, system and storage medium
CN111953770B (en) * 2020-08-07 2022-11-25 平安科技(深圳)有限公司 Route forwarding method and device, route equipment and readable storage medium
CN114938348A (en) * 2021-02-04 2022-08-23 北京金山云网络技术有限公司 Data stream forwarding method and device, electronic equipment and storage medium
CN114285659B (en) * 2021-12-28 2024-05-24 深圳市酷开网络科技股份有限公司 Reverse proxy method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1380773A (en) * 2002-04-25 2002-11-20 复旦大学 Enhanced NAT-PT protocol scheme
CN101938415A (en) * 2010-08-30 2011-01-05 北京傲天动联技术有限公司 Rapid forwarding method for network forwarding device
CN102664804A (en) * 2012-04-24 2012-09-12 汉柏科技有限公司 Method and system for achieving network bridge function of network equipment
CN103595711A (en) * 2013-11-06 2014-02-19 神州数码网络(北京)有限公司 Adjusting safety access method and exchanger

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170515B (en) * 2007-12-04 2010-10-13 华为技术有限公司 A method, system and gateway device for processing packets
CN102025643B (en) * 2010-12-30 2012-07-04 华为技术有限公司 Flow table search method and device
US9118572B2 (en) * 2013-09-10 2015-08-25 Cisco Technology, Inc. Redundancy for inter-AS L2VPN service with optimal forwarding

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1380773A (en) * 2002-04-25 2002-11-20 复旦大学 Enhanced NAT-PT protocol scheme
CN101938415A (en) * 2010-08-30 2011-01-05 北京傲天动联技术有限公司 Rapid forwarding method for network forwarding device
CN102664804A (en) * 2012-04-24 2012-09-12 汉柏科技有限公司 Method and system for achieving network bridge function of network equipment
CN103595711A (en) * 2013-11-06 2014-02-19 神州数码网络(北京)有限公司 Adjusting safety access method and exchanger

Also Published As

Publication number Publication date
CN108512714A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
CN108512714B (en) Message transmission method, related equipment and system
EP3993347A1 (en) Method and device for application migration
CN110365727B (en) Communication method and related device
CN110838991B (en) Gateway connection method, device, storage medium, electronic equipment and gateway equipment
US8159988B2 (en) Relay apparatus, relay method, and recording medium storing relay program
EP3588919A1 (en) Routing issuing method and device
US9602397B2 (en) Flow control apparatus, network system, network control method, and program
WO2016189928A1 (en) Destination server indication device, service using system, client terminal, destination server indication method, and program
CN106507414B (en) Message forwarding method and device
CN113452805A (en) NAT traversal method, equipment and system
JP6167587B2 (en) Communication device, communication network system, and content server selection method in communication device
KR102182767B1 (en) Discovery of multi-hop capabilities and routing on a per link basis
JP5326977B2 (en) Change notification method, change notification device and program
CN114598532B (en) Connection establishment method, device, electronic equipment and storage medium
CN103701952A (en) Downlink transmission method of business data and grouped data gateway
CN104363176A (en) Message control method and equipment
CN113169936B (en) Service chaining mechanism for data stream processing
WO2015145953A1 (en) Communication terminal, communication method, and program-containing storage medium
JP2020010315A (en) Network topology acquisition method and device
CN112449377A (en) Network data reporting method and device
WO2023123308A1 (en) Packet forwarding method, device, electronic equipment, and medium
JP5703111B2 (en) Communication system and apparatus
US8634429B2 (en) Communication system and method
JP6703274B2 (en) Management device, wireless communication system, and throughput estimation program
KR20180004142A (en) Aggregation of targeted and search queries

Legal Events

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