CN108259366A - A kind of message forwarding method and device - Google Patents

A kind of message forwarding method and device Download PDF

Info

Publication number
CN108259366A
CN108259366A CN201710612357.9A CN201710612357A CN108259366A CN 108259366 A CN108259366 A CN 108259366A CN 201710612357 A CN201710612357 A CN 201710612357A CN 108259366 A CN108259366 A CN 108259366A
Authority
CN
China
Prior art keywords
exit port
tunnel packet
address
virtual
tunnel
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.)
Granted
Application number
CN201710612357.9A
Other languages
Chinese (zh)
Other versions
CN108259366B (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201710612357.9A priority Critical patent/CN108259366B/en
Publication of CN108259366A publication Critical patent/CN108259366A/en
Application granted granted Critical
Publication of CN108259366B publication Critical patent/CN108259366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • 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)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of message forwarding method and device, this method include:Receive the tunnel packet that the purpose IP address that HJSW is sent is the virtual ip address;According to the source user datagram protocol UDP port number of the tunnel packet, the exit port for forwarding the tunnel packet is determined from the corresponding multiple exit ports of the virtual ip address;The tunnel packet is transmitted to by corresponding BRAS equipment by determining exit port.The load balancing of BRAS equipment can be realized in the case where not needing to controller and participating in using the embodiment of the present invention.

Description

A kind of message forwarding method and device
Technical field
The present invention relates to network communication technology field more particularly to a kind of message forwarding methods and device.
Background technology
BRAS (Broadband Remote Access Server, Broadband Remote Access Server) is towards broadband network The access gateway of application, it is located at the marginal layer of backbone network, can complete user bandwidth IP (Internet Protocol, mutually Networking protocol)/ATM (Asynchronous Transfer Mode, asynchronous transfer mode) net data access, realize commercial building The broadband access network of space and neighbours living.
VXLAN (Virtual Extensible Local Area Network, expansible Virtual Local Area Network) is to be based on IP network, using " MAC (Media Access Control, media access control) in UDP (User Datagram Protocol, User Datagram Protocol) " the two-layer VPN technologies of packing forms.VXLAN can be based on existing service provider Or enterprise IP network, the physical site for dispersion provide two layers of interconnection, and business isolation can be provided for different tenants.
In a kind of typically BRAS resource pool flow scheduling networkings based on VXLAN, HJSW (convergence switch) is direct One-to-many VXLAN tunnels are established with multiple BRAS equipments, when HSJW receives the message of user's transmission, are issued according to controller Configuration forwards the message to a BRAS equipment in multiple BRAS equipments.
However practice is found, in above-mentioned networking, which BRAS equipment needs message is forwarded to is controlled by controller, when During one BRAS equipment performance deficiency, controller is needed to re-issue the switching that BRAS equipment is realized in configuration, realized complex.
Invention content
The present invention provides a kind of message forwarding method and device, to realize BRAS in the case where not needing to controller and participating in The load balancing of equipment.
It is according to embodiments of the present invention in a first aspect, a kind of message forwarding method is provided, applied to resource pool gateway Pool- GW, the Pool-GW respectively with convergence switch HJSW, same resource pool grouping in multiple Broadband Remote Access Server BRAS equipment connects, and the multiple BRAS equipment is configured with identical virtual ip address, and the multiple BRAS equipment uses respectively The virtual ip address has tunnel with HJSW foundation, and includes the Pool-GW, this method on the corresponding path in the tunnel Including:
Receive the tunnel packet that the purpose IP address that HJSW is sent is the virtual ip address;
It is corresponding more from the virtual ip address according to the source user datagram protocol UDP port number of the tunnel packet The exit port for forwarding the tunnel packet is determined in a exit port;
The tunnel packet is transmitted to by corresponding BRAS equipment by determining exit port.
Second aspect according to embodiments of the present invention provides a kind of apparatus for forwarding message, applied to resource pool gateway Pool- GW, the Pool-GW respectively with convergence switch HJSW, same resource pool grouping in multiple Broadband Remote Access Server BRAS equipment connects, and the multiple BRAS equipment is configured with identical virtual ip address, and the multiple BRAS equipment uses respectively The virtual ip address has tunnel with HJSW foundation, and includes the Pool-GW, the device on the corresponding path in the tunnel Including:
Receiving unit, the purpose IP address for receiving HJSW transmissions are the tunnel packet of the virtual ip address;
Determination unit, for the source user datagram protocol UDP port number according to the tunnel packet, from the virtual IP address The exit port for forwarding the tunnel packet is determined in the corresponding multiple exit ports in address;
Transmitting element, for the tunnel packet to be transmitted to corresponding BRAS equipment by determining exit port.
Using the embodiment of the present invention, when the tunnel packet that the purpose IP address for receiving HJSW transmissions is virtual ip address When, according to the source UDP port number of the tunnel packet, determine to forward the exit port of the VXLAN encapsulated messages, and pass through identified The tunnel packet is transmitted to corresponding BRAS equipment by exit port, so as to be realized in the case where not needing to controller and participating in The load balancing of BRAS equipment.
Description of the drawings
Fig. 1 is that a kind of framework of BRAS resource pool flow scheduling networkings based on VXLAN provided in an embodiment of the present invention shows It is intended to;
Fig. 2 is a kind of flow diagram of message forwarding method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of message forwarding method provided in an embodiment of the present invention;
Fig. 4 is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention;
Fig. 5 is a kind of hardware architecture diagram of apparatus for forwarding message provided in an embodiment of the present invention;
Fig. 6 is a kind of functional structure chart of message forwarding control logic provided in an embodiment of the present invention.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the technical solution in the embodiment of the present invention, below first to this hair The group-network construction that bright embodiment is applicable in is briefly described.
Fig. 1 is referred to, is a kind of BRAS resource pool flow scheduling networkings based on VXLAN provided in an embodiment of the present invention Configuration diagram, as shown in Figure 1, the networking other than including HJSW and BRAS equipment, further includes Pool-GW (resource pools Gateway), which is the sole inlet of BRAS equipment in BRAS resource pools (also referred to herein simply as resource pool), and HJSW passes through Pool-GW establishes physical connection with multiple BRAS equipments in the grouping of same resource pool, multiple in same resource pool grouping BRAS equipment is configured with identical virtual ip address, and multiple BRAS equipment is established respectively using the virtual ip address and HJSW Have a VXLAN tunnels, i.e., by between multiple BRAS equipments in HJSW and resource pool grouping multiple and different physical link (including What physical link and Pool-GW between HJSW and Pool-GW were connect respectively with multiple BRAS equipments in resource pool grouping Physical link) the virtual logical links (i.e. VXLAN tunnels) between multiple BRAS equipments in HJSW and resource pool grouping.
Wherein, due to the sole inlet that Pool-GW is BRAS equipment in resource pool, the virtual IP address of BRAS equipment Tunnel between location and HJSW includes Pool-GW on corresponding path;Multiple BRAS equipments in same resource pool grouping can Using as Pool-GW to the virtual ip address of multiple BRAS equipment ECMP (Equal-Cost Multipath Routing, Equivalent route) next-hop.
In order to enable the above-mentioned purpose of the embodiment of the present invention, feature and advantage more obvious understandable, below in conjunction with the accompanying drawings Technical solution in the embodiment of the present invention is described in further detail.
Fig. 2 is referred to, is a kind of flow diagram of message forwarding method provided in an embodiment of the present invention, wherein, the report Literary retransmission method can be applied to the HJSW in networking shown in Fig. 1, as shown in Fig. 2, the message forwarding method can include it is following Step:
Step 201, when receiving message, tunnel encapsulation is carried out to the message, and according to the terminal carried in the message Identification information determines the source UDP port number of tunnel packet.
In the embodiment of the present invention, when HJSW receives message, HJSW can carry out tunnel encapsulation to the message received, And the source UDP port number of tunnel packet is determined according to the terminal identification information carried in the message.
Wherein, the message that HJSW is received can be PPPOE (Point to Point Protocol over Ethernet, the point-to-point protocol based on Ethernet) user terminal send message or IPOE (Internet Protocol Over Ethernet, the Internet protocol based on Ethernet) user terminal send message;Above-mentioned terminal identification information can be with Unique identification information for the user terminal for sending the message.
In the present invention in one embodiment, it is above-mentioned that tunnel packet is determined according to the terminal identification information carried in message Source UDP port number, including:
Five-tuple information according to being carried in message determines the source UDP port number of tunnel packet.
In this embodiment, it is contemplated that the five-tuple information for the message that different user terminals are sent is different, and therefore, HJSW connects It, can be according to five-tuple (i.e. source port, source IP address, purpose IP address, destination interface and the transmission of the message when receiving message Layer protocol) UDP port number is calculated, and using the UDP port number as the source UDP ends in outer layer UDP of tunnel packet Slogan is carried in tunnel packet.
Wherein, the source UDP port number determined according to different five-tuple information is different;It is determined according to identical five-tuple information Source UDP port number is identical.
What deserves to be explained is although in above-described embodiment using the five-tuple information in message as terminal identification information for The calculating of carry out source UDP port number, but be not limited to carry out source UDP using the five-tuple information in message in the embodiment of the present invention The calculating of port numbers, for example, it is also possible to according to the source MAC of message carry out source UDP port number calculating or, according to message Source MAC and source IP address carry out source UDP port number calculating.
Step 202 forwards the tunnel packet by the tunnel between HJSW and BRAS equipment, so that Pool-GW is received During to tunnel packet, according to the source UDP port number of tunnel packet, determine to forward the exit port of the tunnel packet.
In the embodiment of the present invention, after HJSW carries out tunnel encapsulation to the message received, HJSW and BRAS can be passed through Tunnel (tunnel that i.e. above-mentioned BRAS equipment is established using virtual ip address with HJSW) between equipment forwards the tunnel packet, In, the purpose IP address of the tunnel packet is the virtual ip address of above-mentioned BRAS equipment.
Wherein, due to carrying the real physical links (underlay links) in the tunnel between HJSW and Pool-GW Physical link during physical link and Pool-GW and same resource pool are grouped between each BRAS equipment, therefore, HJSW passes through During the VXLAN tunnels forwarding tunnel message, which can first be forwarded to Pool-GW.
In the embodiment of the present invention, processing mode when Pool-GW receives the tunnel packet of HJSW transmissions may refer to Fig. 3 Associated description in shown method flow, this will not be repeated here for the embodiment of the present invention.
Fig. 3 is referred to, is a kind of flow diagram of message forwarding method provided in an embodiment of the present invention, wherein, the report Literary retransmission method can be applied to the Pool-GW in networking shown in Fig. 1, as shown in figure 3, the message forwarding method can include with Lower step:
Step 301, the tunnel packet for receiving the virtual ip address that the purpose IP address that HJSW is sent is BRAS equipment.
In the embodiment of the present invention, the specific implementation that HJSW equipment sends tunnel packet to Pool-GW may refer to shown in Fig. 2 Associated description in method flow, details are not described herein for the embodiment of the present invention.
The source UDP port number of tunnel packet that step 302, basis receive, from the corresponding multiple outlets of virtual ip address The exit port for forwarding the tunnel packet is determined in mouthful.
In the embodiment of the present invention, in order to realize load balancing, avoid single BRAS equipment load excessive, Pool-GW needs Ensure that the message that will be received relatively evenly distributes to each BRAS equipment in resource pool grouping as possible;Meanwhile Pool-GW is needed Ensure that the message that same user terminal is sent distributes to same BRAS equipment.
Correspondingly, in embodiments of the present invention, it when Pool-GW receives the VXLAN encapsulated messages of HJSW transmissions, can obtain The source UDP port number in outer layer UDP of the tunnel packet is taken, and according to the source UDP port number, it is corresponding from virtual ip address The exit port for forwarding the tunnel packet is determined in multiple exit ports;Wherein, which is Pool-GW and BRAS equipment Between the corresponding port of physical link.
In the embodiment of the present invention, in order to realize above-mentioned load balancing demand, do not occurring the corresponding BRAS equipment of exit port In the case of failure, it is used to forward according to what not homologous UDP port number was determined from the corresponding multiple exit ports of virtual ip address The exit port of tunnel packet is not exactly the same, according to identical sources UDP port number from the corresponding multiple exit ports of virtual ip address The determining exit port for forwarding tunnel message is identical.
In the present invention in one embodiment, the above-mentioned source UDP port number according to tunnel packet, from virtual ip address pair It is determined in the multiple exit ports answered for the exit port of forwarding tunnel message, can included:
The corresponding hash value of source UDP port number of the tunnel packet is determined using default Hash (hash) algorithm;Wherein, it is sharp With the quantity phase of the quantity exit port corresponding with the virtual ip address for presetting the different hash values that hash algorithm is calculated Together, and hash value exit port corresponding with virtual ip address corresponds;
Exit port corresponding with identified hash value in multiple exit port is determined as forwarding the tunnel packet Exit port.
In this embodiment, in order to ensure the tunnel packet of different user terminals be uniformly distributed to resource pool grouping in Each BRAS equipment is handled, and is ensured in the case where not occurring BRAS equipment failure, the tunnel packet of same user terminal Same BRAS equipment is assigned to, hash algorithm can be utilized to determine the exit port of forwarding tunnel message.
In this embodiment, the quantity of the corresponding different result of calculations (different hash values) of the hash algorithm is with virtual IP address The quantity of the corresponding exit port in location is identical, and the corresponding difference hash value of hash algorithm exit port corresponding with virtual ip address It corresponds.
As an example it is assumed that include 3 BRAS equipments (BRAS1~BRAS3), Pool-GW altogether in the grouping of BRAS resource pools The exit port for connecting 3 BRAS equipments is respectively Port1~Port3, then is used to determine that the hash algorithm of exit port can be right Answer three different hash values (such as 1~3), and 3 hash values corresponded with 3 exit ports (for example, 1 corresponding Port1,2 Corresponding Port2,3 correspond to Port3), and then, Pool-GW can be utilized according to the source UDP port number of the tunnel packet received The hash algorithm is calculated, and determines according to the hash value being calculated to forward the exit port of the tunnel packet.For example, it is assumed that The hash value being calculated is 1, then the tunnel packet is transmitted to BRAS equipment 1 by Port1 and handled.
The tunnel packet received is transmitted to corresponding BRAS equipment by step 303 by identified exit port.
In the embodiment of the present invention, after Pool-GW determines the exit port for the tunnel packet that forwarding receives, it can will connect The tunnel packet received is transmitted to corresponding BRAS equipment by the exit port.
As it can be seen that in method flow shown in Fig. 2 and Fig. 3, by disposing Pool-GW between HJSW and BRAS equipment, and The sole inlet of each BRAS equipment during the Pool-GW is grouped as resource pool, and be multiple BRAS in the grouping of same resource pool The identical virtual ip address of device configuration, so can will HJSW and same resource pool grouping in multiple BRAS equipments between The same tunnel that multiple and different physical links are virtually established for BRAS equipment using the virtual ip address with HJSW, same resource ECMP next-hop of multiple BRAS equipments as Pool-GW to the virtual ip address of multiple BRAS equipment in the grouping of pond;When The message received is encapsulated as tunnel packet by HJSW, and pass through the tunnel forwarding when, Pool-GW can utilize preset algorithm will The tunnel packet received is forwarded to corresponding BRAS equipment, ensures that the message that will be received relatively evenly distributes to money as possible Each BRAS equipment in the grouping of source pond, so as to realize the load point of BRAS equipment in the case where not needing to controller and participating in Load.
Further, in embodiments of the present invention, it is contemplated that when the BRAS equipment in resource pool grouping breaks down, lead to Crossing the terminal device of BRAS equipment access network needs to reach the standard grade again, in order to ensure to access network by failure BRAS equipment Terminal device can reach the standard grade again, and other terminals of BRAS equipment access network not broken down in being grouped by resource pool Equipment is not influenced by failure BRAS equipment, can the terminal device that network is accessed by failure BRAS equipment be distributed to resource Other BRAS equipments not broken down in the grouping of pond, other BRAS equipment accesses do not broken down in being grouped by resource pool The terminal device of network then remains unchanged.
Correspondingly, in the present invention in one embodiment, when the identified exit port pair for forwarding tunnel message When the BRAS equipment answered breaks down, which can also include:
It is forwarded to the source UDP port number of the tunnel packet of the BRAS equipment as needed, redefines to forward the tunnel The exit port of road message, and the tunnel packet is forwarded to by the exit port redefined in resource pool grouping and is not broken down Other BRAS equipments.
In this embodiment, when certain exit port (hereinafter referred to target for forwarding tunnel message that Pool-GW is determined Exit port) corresponding BRAS equipment is again true for tunnel packet needs forward by the target exit port when sending failure Port is made, so as to originally be forwarded by the tunnel packet that target exit port forwards by the exit port redefined.
Wherein, the tunnel packet for being forwarded by other exit ports except target exit port, it may not be necessary to carry out Exit port is redistributed.
In a kind of optional embodiment of the embodiment, the above-mentioned tunnel packet for being forwarded to the BRAS equipment as needed Source UDP port number, redefine the exit port for forwarding the tunnel packet, can include:
The corresponding hash value of source UDP port number of the tunnel packet is determined using updated hash algorithm;Wherein, it utilizes It is corresponding in the quantity exit port corresponding with virtual ip address for the different hash values that updated hash algorithm is calculated not send out The quantity of the exit port of the BRAS equipment of raw failure is identical, and the exit port of hash value and the corresponding BRAS equipment not broken down It corresponds;
Exit port corresponding with the hash value in the corresponding exit port of BRAS equipment not broken down is determined as being used for Forward the exit port of the tunnel packet.
In this embodiment, when Pool-GW utilizes hash algorithm to determine for forwarding the exit port in VXLAN tunnels (it implements the associated description that may refer in above-mentioned steps 302), if determining for the exit port of forwarding tunnel message When (by taking above-mentioned target exit port as an example) corresponding BRAS equipment breaks down, Pool-GW can update hash algorithm, will utilize The quantity of different hash values that the hash algorithm is calculated is updated to corresponding in exit port corresponding with virtual ip address not send out The quantity of the exit port of the BRAS equipment of raw failure is identical, and the outlet of the hash value and the corresponding BRAS equipment not broken down Mouth corresponds.
Still by taking examples cited in step 302 as an example, it is assumed that the corresponding BRAS1 of Port1 break down, then Pool-GW can be with The hash algorithm is updated, will 2 (being assumed to be 1 and 2) be updated to by the quantity of different hash values that hash algorithm is calculated, Wherein 1 corresponds to BRAS2, and 2 correspond to BRAS3;And then it for the originally determining tunnel packet for being transmitted to BRAS1, re-uses more Hash algorithm after new determines new exit port.
In this embodiment, it after Pool-GW updates hash algorithm, can be determined originally using updated hash algorithm It determines the corresponding hash value of source UDP port number for the tunnel packet for needing to forward by target exit port, and correspondence is not occurred Exit port corresponding with the hash value is determined as the outlet for forwarding the tunnel packet in the exit port of the BRAS equipment of failure Mouthful.
For example, it is assumed that the tunnel packet for needing to forward by Port1 was originally determined for some, it is updated when utilizing Hash value is calculated as 1 according to the source UDP port number of the tunnel packet in hash algorithm, then by Port2 by the tunnel packet It is forwarded to BRAS equipment 2.
It should be noted that in embodiments of the present invention, for there is BRAS equipment failure, and hash algorithm updates Situation, when Pool-GW receives the tunnel packet that purpose IP address is virtual ip address, Pool-GW first still can be by Hash is carried out to the source UDP port number of tunnel packet according to default hash algorithm (default hash algorithm as stated in step 302), When the corresponding exit port of obtained hash value exit port corresponding for failure BRAS equipment, Pool-GW can be further according to more Hash algorithm after new carries out Hash to the source UDP port number of the tunnel packet, from the corresponding BRAS equipment not broken down An exit port is selected in exit port as the exit port for forwarding the tunnel packet.
In order to which those skilled in the art is made to more fully understand technical solution provided in an embodiment of the present invention, with reference to specific Application scenarios illustrate technical solution provided in an embodiment of the present invention.
Fig. 4 is referred to, is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention, as shown in figure 4, In the application scenarios, it is assumed that resource pool grouping includes 4 BRAS equipments (BRAS1~BRAS4), and HJSW passes through Pool-GW Each BRAS equipment in being grouped respectively with resource pool establishes physical connection;BRAS1~BRAS4 is with being configured with identical virtual IP address Location, and BRAS1~BRAS4 has VXLAN tunnels using the virtual ip address and HJSW foundation;BRAS1~BRAS4 is as Pool- GW to the virtual ip address equivalent route next-hop, when Pool-GW is according to receiving purpose IP address as the virtual ip address VXLAN encapsulated messages when, find the corresponding equivalent route of the virtual ip address, and according to default hash algorithm to this The source UDP port number of VXLAN encapsulated messages carries out Hash, determines equivalence road corresponding with the hash value in multiple equivalent route By corresponding exit port.
Application scenarios based on shown in Fig. 4, message forwarding method provided in an embodiment of the present invention realize that flow is as follows:
1st, when HJSW receives the message of terminal device transmission, VXLAN encapsulation, and five in message are carried out to message Tuple information determines the source UDP port number in outer layer UDP of VXLAN encapsulated messages, and the destination IP of the VXLAN encapsulated messages Address is the virtual ip address of above-mentioned BRAS equipment;
2nd, HJSW forwards VXLAN encapsulated messages by above-mentioned VXLAN tunnels;
3rd, Pool-GW receives the VXLAN encapsulated messages of HJSW forwardings, and finds the destination IP of the VXLAN encapsulated messages When address is virtual ip address, route table items are searched according to the virtual ip address, find the corresponding equivalence of the virtual ip address Routing, and then, Pool-GW obtains the source UDP port number in outer layer UDP of the VXLAN encapsulated messages, and utilizes default Hash Algorithm carries out Hash to the source UDP port number, to determine to forward VXLAN envelopes from the corresponding equivalent route of the virtual ip address Fill the corresponding exit port of equivalent route of message;
Wherein, in this embodiment, Pool-GW determines the realization of the exit port of VXLAN encapsulated messages using hash algorithm Principle can be as shown in table 1:
Table 1
Hash value Exit port
0 BRAS1
1 BRAS2
2 BRAS3
3 BRAS4
Wherein, exit port shows corresponding by the physical link between Pool-GW and BRASi for BRASi (i=1~4) Port forwarding VXLAN encapsulated messages (passing through the port of Pool-GW connections BRASi forwarding VXLAN encapsulated messages)
In this embodiment, since resource pool grouping includes 4 BRAS equipments, utilize default hash algorithm meter Obtained different hash values can have 4 (0~3), and then, hash algorithm is preset to VXLAN encapsulated messages according to utilizing Source UDP port number in outer layer UDP carries out the hash value that Hash is obtained and determines to forward the exit port of the VXLAN encapsulated messages.
For example, it is assumed that using default hash algorithm to the source UDP port number in outer layer UDP of VXLAN encapsulated messages into The hash value that row Hash is obtained is 2, then the exit port of the VXLAN encapsulated messages is the port that Pool-GW is connect with BRAS3.
In another example, it is assumed that hash algorithm is preset to the source UDP ends in outer layer UDP of VXLAN encapsulated messages using utilizing It is 3 that slogan, which carries out the hash value that Hash is obtained, then the exit port of the VXLAN encapsulated messages is the end that Pool-GW is connect with BRAS4 Mouthful.
4th, the VXLAN encapsulated messages that Pool-GW is received according to the forwarding of identified exit port;
5th, when resource pool grouping in multiple BRAS equipments break down there are target BRAS equipment when (in this embodiment By taking BRAS4 breaks down as an example), the terminal device of network is accessed by BRAS4 to be needed to reach the standard grade again;
6th, when Pool-GW perceives BRAS4 and breaks down, it would be desirable to which the VXLAN encapsulated messages for being transmitted to BRAS4 are transmitted to Other BRAS equipments (BRAS1~3) not broken down;
Wherein, in this embodiment, Pool-GW can be by enhanced hash algorithm, the BRAS equipment that will be broken down (i.e. BRAS4) corresponding Hash resource allocations give other BRAS equipments, and the original Hash resources of other BRAS equipments are kept not Become.
Specifically, the hash algorithm for determining exit port can be updated, the corresponding difference of updated hash algorithm The quantity of hash value is 3 (0~2), for originally determining to need what is forwarded by the exit port that Pool-GW is connect with BRAS4 VXLAN encapsulated messages can utilize updated hash algorithm, according to the source UDP port number of the VXLAN encapsulated messages, again Corresponding hash value is calculated, and the exit port of the VXLAN encapsulated messages is redefined according to the hash value recalculated.
Hereafter, when the purpose IP address that BRAS equipment receives HJSW transmissions is the VXLAN encapsulated messages of virtual ip address, Still Hash first is carried out to the source UDP port number of the VXLAN encapsulated messages using 1 corresponding hash algorithm of table, when what is obtained When the corresponding exit port of hash value is failure BRAS equipment corresponding exit port, Pool-GW is further according to updated Hash Algorithm carries out Hash to the source UDP port number of the VXLAN encapsulated messages, redefines to forward the VXLAN encapsulated messages Exit port.
By above description as can be seen that in technical solution provided in an embodiment of the present invention, sent when receiving HJSW Purpose IP address when being the tunnel packet of virtual ip address, according to the source UDP port number of the tunnel packet, determine that forwarding should The exit port of VXLAN encapsulated messages, and pass through identified exit port and the tunnel packet is transmitted to corresponding BRAS equipment, from And the load balancing of BRAS equipment is realized in the case where not needing to controller and participating in.
Method provided by the invention is described above.Device provided by the invention is described below:
Fig. 5 is the hardware architecture diagram of a kind of apparatus for forwarding message that disclosure example provides.The apparatus for forwarding message It may include processor 501, the machine readable storage medium 502 for being stored with machine-executable instruction.Processor 501 with it is machine readable Storage medium 502 can communicate via system bus 503.Also, by read and perform in machine readable storage medium 502 with report The corresponding machine-executable instruction of text forwarding control logic, processor 501 can perform above-described message transmitting method.
Machine readable storage medium 502 referred to herein can be any electronics, magnetism, optics or other physical stores Device can include or store information, such as executable instruction, data, etc..For example, machine readable storage medium can be: RAM (Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, storage are driven Dynamic device (such as hard disk drive), solid state disk, any kind of storage dish (such as CD, dvd) or similar storage are situated between Matter or combination thereof.
As shown in fig. 6, functionally dividing, above-mentioned message forwarding control logic can include receiving unit 601, determine list Member 602 and transmitting element 603.Wherein:
Receiving unit 601, the purpose IP address for receiving HJSW transmissions are the tunnel packet of the virtual ip address;
Determination unit 602, for the source user datagram protocol UDP port number according to the tunnel packet, from the void Intend determining the exit port for forwarding the tunnel packet in the corresponding multiple exit ports of IP address;
Transmitting element 603, for the tunnel packet to be transmitted to corresponding BRAS equipment by determining exit port.
Preferably, the determination unit 602 is additionally operable to when the identified exit port pair for being used to forward the tunnel packet When the BRAS equipment answered breaks down, it is forwarded to the source UDP port number of the tunnel packet of the BRAS equipment as needed, again really Determine the exit port for forwarding the tunnel packet;
The transmitting element 603 is additionally operable to the tunnel packet being forwarded to the resource by the exit port redefined The other BRAS equipments not broken down in the grouping of pond.
Preferably, the determination unit 602, specifically for determining the tunnel packet using default hash hash algorithm The corresponding hash value of source UDP port number;Wherein, the quantity for the different hash values being calculated using the default hash algorithm with The quantity of the corresponding exit port of the virtual ip address is identical, and hash value exit port corresponding with the virtual ip address It corresponds;Exit port corresponding with identified hash value in the multiple exit port is determined as forwarding the tunnel The exit port of message.
Preferably, the determination unit 602, specifically for determining the tunnel packet using updated hash algorithm The corresponding hash value of source UDP port number;In the exit port for the BRAS equipment that the correspondence is not broken down with the hash value pair The exit port answered is determined as the exit port for forwarding the tunnel packet;Wherein, it is calculated using updated hash algorithm Different hash values quantity exit port corresponding with the virtual ip address in the corresponding BRAS equipment not broken down go out The quantity of port is identical, and the hash value is corresponded with the exit port of the corresponding BRAS equipment not broken down.
Preferably, the tunnel is VXLAN tunnels;The tunnel packet is VXLAN encapsulated messages.
The function of each unit and the realization process of effect specifically refer to and step are corresponded in the above method in above device Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related part is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component The unit of explanation may or may not be physically separate, and the component shown as unit can be or can also It is not physical unit, you can be located at a place or can also be distributed in multiple network element.It can be according to reality It needs that some or all of module therein is selected to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
As seen from the above-described embodiment, when the tunnel packet that the purpose IP address for receiving HJSW transmissions is virtual ip address When, according to the source UDP port number of the tunnel packet, determine to forward the exit port of the VXLAN encapsulated messages, and pass through identified The tunnel packet is transmitted to corresponding BRAS equipment by exit port, so as to be realized in the case where not needing to controller and participating in The load balancing of BRAS equipment.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or Person's adaptive change follows the general principle of the present invention and including undocumented common knowledge in the art of the invention Or conventional techniques.Description and embodiments are considered only as illustratively, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claim.

Claims (10)

1. a kind of message forwarding method, which is characterized in that applied to resource pool gateway Pool-GW, the Pool-GW respectively with remittance Multiple Broadband Remote Access Server BRAS equipments connection in poly- interchanger HJSW, the grouping of same resource pool, it is the multiple BRAS equipment is configured with identical virtual ip address, and the multiple BRAS equipment is built respectively using the virtual ip address with HJSW It is vertical to have tunnel, and include the Pool-GW on the corresponding path in the tunnel, this method includes:
Receive the tunnel packet that the purpose IP address that HJSW is sent is the virtual ip address;
According to the source user datagram protocol UDP port number of the tunnel packet, from the virtual ip address it is corresponding it is multiple go out The exit port for forwarding the tunnel packet is determined in port;
The tunnel packet is transmitted to by corresponding BRAS equipment by determining exit port.
2. according to the method described in claim 1, it is characterized in that, when the identified outlet for being used to forward the tunnel packet When the corresponding BRAS equipment of mouth breaks down, the method further includes:
It is forwarded to the source UDP port number of the tunnel packet of the BRAS equipment as needed, redefines to forward the tunnel report The exit port of text, and the tunnel packet is forwarded to by the exit port redefined in the resource pool grouping and is not broken down Other BRAS equipments.
3. according to the method described in claim 1, it is characterized in that, the source UDP port number according to the tunnel packet, from The exit port for forwarding the tunnel packet is determined in the corresponding multiple exit ports of the virtual ip address, including:
The corresponding hash value of source UDP port number of the tunnel packet is determined using default hash hash algorithm;Wherein, institute is utilized State the quantity phase of the quantity exit port corresponding with the virtual ip address for the different hash values that default hash algorithm is calculated Together, and hash value exit port corresponding with the virtual ip address corresponds;
Exit port corresponding with identified hash value in the multiple exit port is determined as forwarding the tunnel packet Exit port.
4. the according to the method described in claim 2, it is characterized in that, tunnel report for being forwarded to the BRAS equipment as needed The source UDP port number of text, redefines the exit port for forwarding the tunnel packet, including:
The corresponding hash value of source UDP port number of the tunnel packet is determined using updated hash algorithm;Wherein, using more In the quantity of the different hash values exit port corresponding with the virtual ip address that hash algorithm after new is calculated it is corresponding not The quantity of the exit port of the BRAS equipment to break down is identical, and the hash value is set with the corresponding BRAS not broken down Standby exit port corresponds;
Exit port corresponding with the hash value is determined as being used in the exit port for the BRAS equipment that the correspondence is not broken down Forward the exit port of the tunnel packet.
5. according to claim 1-4 any one of them methods, which is characterized in that the tunnel is virtual expansible LAN VXLAN tunnels;The tunnel packet is VXLAN encapsulated messages.
6. a kind of apparatus for forwarding message, which is characterized in that applied to resource pool gateway Pool-GW, the Pool-GW respectively with remittance Multiple Broadband Remote Access Server BRAS equipments connection in poly- interchanger HJSW, the grouping of same resource pool, it is the multiple BRAS equipment is configured with identical virtual ip address, and the multiple BRAS equipment is built respectively using the virtual ip address with HJSW It is vertical to have tunnel, and include the Pool-GW on the corresponding path in the tunnel, which includes:
Receiving unit, the purpose IP address for receiving HJSW transmissions are the tunnel packet of the virtual ip address;
Determination unit, for the source user datagram protocol UDP port number according to the tunnel packet, from the virtual ip address The exit port for forwarding the tunnel packet is determined in corresponding multiple exit ports;
Transmitting element, for the tunnel packet to be transmitted to corresponding BRAS equipment by determining exit port.
7. device according to claim 6, which is characterized in that
The determination unit is additionally operable to when the identified corresponding BRAS equipment hair of exit port for being used to forward the tunnel packet During raw failure, it is forwarded to the source UDP port number of the tunnel packet of the BRAS equipment as needed, redefines to forward the tunnel The exit port of road message;
The transmitting element is additionally operable to the tunnel packet being forwarded in the resource pool grouping by the exit port redefined The other BRAS equipments not broken down.
8. device according to claim 6, which is characterized in that
The determination unit, specifically for determining the source UDP port number pair of the tunnel packet using default hash hash algorithm The hash value answered;Wherein, the quantity for the different hash values being calculated using the default hash algorithm is with the virtual IP address The quantity of the corresponding exit port in location is identical, and hash value exit port corresponding with the virtual ip address corresponds;It will Exit port corresponding with identified hash value is determined as the outlet for forwarding the tunnel packet in the multiple exit port Mouthful.
9. device according to claim 7, which is characterized in that
The determination unit, specifically for determining the source UDP port number pair of the tunnel packet using updated hash algorithm The hash value answered;Exit port corresponding with the hash value determines in the exit port for the BRAS equipment that the correspondence is not broken down To be used to forward the exit port of the tunnel packet;Wherein, the different hash values being calculated using updated hash algorithm The corresponding quantity of the exit port of BRAS equipment not broken down is identical in quantity exit port corresponding with the virtual ip address, And the hash value is corresponded with the exit port of the corresponding BRAS equipment not broken down.
10. according to claim 6-9 any one of them devices, which is characterized in that the tunnel is virtual expansible LAN VXLAN tunnels;The tunnel packet is VXLAN encapsulated messages.
CN201710612357.9A 2017-07-25 2017-07-25 Message forwarding method and device Active CN108259366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710612357.9A CN108259366B (en) 2017-07-25 2017-07-25 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710612357.9A CN108259366B (en) 2017-07-25 2017-07-25 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN108259366A true CN108259366A (en) 2018-07-06
CN108259366B CN108259366B (en) 2021-09-21

Family

ID=62722189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710612357.9A Active CN108259366B (en) 2017-07-25 2017-07-25 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN108259366B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193756A (en) * 2018-11-14 2020-05-22 中移(杭州)信息技术有限公司 VXLAN tunnel load balancing method and related equipment
CN111314200A (en) * 2020-02-29 2020-06-19 新华三技术有限公司 Message forwarding method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150381493A1 (en) * 2014-06-30 2015-12-31 Juniper Networks, Inc. Service chaining across multiple networks
CN105763385A (en) * 2016-04-27 2016-07-13 杭州华三通信技术有限公司 Flow scheduling method and apparatus
CN105763416A (en) * 2016-04-27 2016-07-13 杭州华三通信技术有限公司 Data transmission method and controller
CN106209906A (en) * 2016-08-24 2016-12-07 迈普通信技术股份有限公司 A kind of Layer 2 Tunneling Protocol L2TP message transmitting method and endpoint of a tunnel equipment
CN106230668A (en) * 2016-07-14 2016-12-14 杭州华三通信技术有限公司 Connection control method and device
US9736211B2 (en) * 2012-08-27 2017-08-15 Vmware, Inc. Method and system for enabling multi-core processing of VXLAN traffic

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9736211B2 (en) * 2012-08-27 2017-08-15 Vmware, Inc. Method and system for enabling multi-core processing of VXLAN traffic
US20150381493A1 (en) * 2014-06-30 2015-12-31 Juniper Networks, Inc. Service chaining across multiple networks
CN105763385A (en) * 2016-04-27 2016-07-13 杭州华三通信技术有限公司 Flow scheduling method and apparatus
CN105763416A (en) * 2016-04-27 2016-07-13 杭州华三通信技术有限公司 Data transmission method and controller
CN106230668A (en) * 2016-07-14 2016-12-14 杭州华三通信技术有限公司 Connection control method and device
CN106209906A (en) * 2016-08-24 2016-12-07 迈普通信技术股份有限公司 A kind of Layer 2 Tunneling Protocol L2TP message transmitting method and endpoint of a tunnel equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193756A (en) * 2018-11-14 2020-05-22 中移(杭州)信息技术有限公司 VXLAN tunnel load balancing method and related equipment
CN111193756B (en) * 2018-11-14 2023-04-07 中移(杭州)信息技术有限公司 VXLAN tunnel load balancing method and related equipment
CN111314200A (en) * 2020-02-29 2020-06-19 新华三技术有限公司 Message forwarding method and device
CN111314200B (en) * 2020-02-29 2023-10-20 新华三技术有限公司 Message forwarding method and device

Also Published As

Publication number Publication date
CN108259366B (en) 2021-09-21

Similar Documents

Publication Publication Date Title
US11436037B2 (en) Learning of tunnel endpoint selections
US11218537B2 (en) Load balancing in distributed computing systems
US10659358B2 (en) Method and apparatus for advanced statistics collection
CN112640369B (en) Method, apparatus, and machine-readable medium for intelligently using peers in a public cloud
US11212210B2 (en) Selective route exporting using source type
US9912616B2 (en) Grouping tunnel endpoints of a bridge cluster
CN103997414B (en) Generate method and the network control unit of configuration information
US20190007322A1 (en) Virtual network device and related method
CN111052686A (en) Executing online services in a public cloud
US11190444B2 (en) Configuration mechanisms in a switchless network
US10164885B2 (en) Load balancing over multiple tunnel endpoints
US9819574B2 (en) Concerted multi-destination forwarding in a joint TRILL fabric and VXLAN/IP fabric data center
JP2021530912A (en) Network slice control method and device, computer readable storage medium
US20200244486A1 (en) Dynamic customer vlan identifiers in a telecommunications network
CN103595648A (en) Method and system for balancing load at receiving side of server
CN111095880A (en) High availability of stateful services in public cloud logic networks
CN110324159B (en) Link configuration method, controller and storage medium
EP3378201B1 (en) Load balancing over multiple tunnel endpoints
CN108718278A (en) A kind of message transmitting method and device
CN105577723A (en) Method of realizing load sharing in virtualization network and apparatus thereof
US11165653B2 (en) Node discovery mechanisms in a switchless network
CN103124240A (en) Gateway configuration method, gateway devices and network system
CN105681198A (en) Business chain processing method, device and system
CN104717117A (en) FIBRE CHANNEL OVER ETHERNET (FCoE) OVER VIRTUAL PORT CHANNEL (vPC)
CN106130920A (en) A kind of message forwarding method and device

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