CN106789655B - Method and device for sending route announcement message - Google Patents

Method and device for sending route announcement message Download PDF

Info

Publication number
CN106789655B
CN106789655B CN201611067357.7A CN201611067357A CN106789655B CN 106789655 B CN106789655 B CN 106789655B CN 201611067357 A CN201611067357 A CN 201611067357A CN 106789655 B CN106789655 B CN 106789655B
Authority
CN
China
Prior art keywords
vlan
message
routing request
host
route
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
CN201611067357.7A
Other languages
Chinese (zh)
Other versions
CN106789655A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201611067357.7A priority Critical patent/CN106789655B/en
Publication of CN106789655A publication Critical patent/CN106789655A/en
Application granted granted Critical
Publication of CN106789655B publication Critical patent/CN106789655B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • 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/16Multipoint 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 embodiment of the invention provides a method and a device for sending a route notification message, wherein the method is applied to gateway equipment and comprises the following steps: receiving a routing request message sent by a host; determining a designated Virtual Local Area Network (VLAN) to which the host belongs according to the routing request message; and broadcasting a route notification message in the appointed VLAN. The embodiment of the invention can reduce the packet sending burden of the RA message in the fuzzy terminal network of the gateway equipment, thereby solving the problem of heavy packet sending task when the existing gateway equipment sends the RA message.

Description

Method and device for sending route announcement message
Technical Field
The present invention relates to the field of computer network technologies, and in particular, to a method and an apparatus for sending a route advertisement packet.
Background
With the rapid development of computer network technology, a host can learn an Internet protocol version 6(Internet protocol version 6, IPv6) gateway address in a network through a Route Advertisement (RA) message sent by a gateway device, for example, modify each parameter of IPv6 and automatically generate an IPv6 address according to a prefix of the RA message, thereby implementing address automatic configuration.
In general, the RA message in the IPv6 network is an announcement message sent by the gateway device to the stateless address host of the access, and is sent by a timed broadcast. When there is a new host on the network, the new host will usually send a routing Request (RS) message to the gateway device to trigger the gateway device to respond to the RA message. In order to avoid that a plurality of newly-added hosts need the RA message, the gateway device does not directly respond to the RA message, but adjusts the next sending time of the broadcast RA message, thereby ensuring that all hosts on the network can receive the RA message as soon as possible.
VLAN termination refers to that after a received message is matched with a corresponding interface according to VLAN label (Tag) information carried by the message, the VLAN Tag of the message is removed, and then the message is subjected to three-layer forwarding or other service processing. The fuzzy termination means that an interface configured with VLAN termination only allows receiving a packet with a VLAN Identifier (ID) within a specified range, and a VLAN packet not within the range does not allow passing through the interface. Currently, in a Network with fuzzy termination, all broadcast messages need to be copied and sent in each Virtual Local Area Network (VLAN) within a specified range. Taking QINQ fuzzy termination with two layers of VLAN Tag messages as an example, if the range of the designated outer layer VLAN Tag is from VLAN300 to VLAN500 and the range of the designated inner layer VLAN Tag is from VLAN 1 to VLAN 4094, it is necessary to wait until gateway devices such as routers send (201 × 4094-1) broadcast messages, and hosts in the outer layer VLAN500 and inner layer VLAN 4094 subnets can receive and respond to the messages.
Obviously, currently, when a gateway device sends an RA message in a fuzzy termination networking, the message needs to be encapsulated according to the range of an inner-layer VLAN Tag and an outer-layer VLAN Tag, and broadcast in the whole networking, so that the number of copies of the message is huge, and a packet sending task is heavy, so that a host with a later VLAN number needs to wait for a long time before receiving the RA message.
Disclosure of Invention
The embodiment of the invention provides a method and a device for sending a route notification message, which are used for solving the problem of heavy packet sending task when the existing gateway equipment sends an RA message under a fuzzy terminal networking.
In order to solve the above problem, an embodiment of the present invention discloses a method for sending a route advertisement packet, where the method is applied to a gateway device, and includes:
receiving a routing request message sent by a host;
determining a designated Virtual Local Area Network (VLAN) to which the host belongs according to the routing request message;
and broadcasting a route notification message in the appointed VLAN.
Optionally, when receiving the routing request packet, the method further includes:
determining the copying times of a route notification message according to a VLAN fuzzy terminated VLAN range configured on a designated interface, wherein the designated interface is an interface for receiving the route request message;
and when the copying times exceed a limit value, executing the step of determining the appointed VLAN to which the host belongs according to the routing request message.
Optionally, the determining, according to the routing request packet, a designated virtual local area network VLAN to which the host belongs includes:
and analyzing the VLAN Tag carried in the routing request message, and determining the appointed VLAN to which the host belongs.
Optionally, the method further comprises:
recording the VLAN Tag carried in the routing request message, and storing the recorded VLAN Tag to a VLAN list of an appointed interface;
and broadcasting the route notification message according to the VLAN Tag in the VLAN list when the route notification message is sent at regular time.
Optionally, the broadcasting the route advertisement packet according to the VLAN Tag in the VLAN list includes:
determining the number of messages sent at regular time by adopting the VLAN Tag in the VLAN list;
and copying and broadcasting the route notification message according to the message quantity.
The embodiment of the invention also discloses a device for sending the route notification message, which is applied to gateway equipment and comprises the following steps:
the routing request receiving module is used for receiving a routing request message sent by the host;
a virtual local area network determining module, configured to determine, according to the routing request packet, a designated virtual local area network VLAN to which the host belongs;
and the route notification broadcasting module is used for broadcasting the route notification message in the appointed VLAN.
Optionally, the apparatus further comprises:
a duplication frequency determining module, configured to determine duplication frequency of a route advertisement message in a VLAN range in which VLAN fuzzy termination is configured on an assigned interface, where the assigned interface is an interface for receiving the route request message;
and the triggering module is used for triggering the virtual local area network determining module to execute the step of determining the appointed virtual local area network VLAN which the host belongs to according to the routing request message when the copying times exceed a limit value.
Optionally, the virtual local area network determining module is specifically configured to analyze a VLAN Tag carried in the routing request packet, and determine an assigned VLAN to which the host belongs.
Optionally, the method further comprises:
the recording module is used for recording the VLAN Tag carried in the routing request message and storing the recorded VLANTag into the VLAN list of the specified interface;
and the timing sending module is used for broadcasting the route notification message according to the LANtag in the VLAN list when the route notification message is sent at a timing.
Optionally, the timing sending module is specifically configured to determine the number of packets sent at a timing by using a VLAN Tag in the VLAN list; and copying and broadcasting the route notification message according to the message quantity.
The embodiment of the invention has the following advantages:
by the embodiment of the invention, the gateway equipment under the fuzzy terminating networking can not directly traverse the fuzzy terminating VLAN to send the RA message, but determines the appointed VLAN to which the host belongs according to the sent RS message so as to broadcast the RA message in the appointed VLAN, so that each host belonging to the appointed VLAN can quickly receive the RA message, and the consumption of a Central Processing Unit (CPU) and network resources by meaningless VLAN traversal and RA message copying and sending is avoided, thereby reducing the packet sending burden of the RA message in the fuzzy terminating network of the gateway equipment such as a router and the like, and solving the problem of heavy packet sending task of the existing gateway equipment when sending the RA message.
Drawings
Fig. 1 is a flowchart illustrating steps of an embodiment of a method for sending a route advertisement packet according to the present invention;
fig. 2 is a flowchart illustrating steps of an alternative embodiment of a method for sending a route advertisement packet according to the present invention;
fig. 3A is a block diagram of a sending apparatus of a route advertisement packet according to an embodiment of the present invention;
fig. 3B is a block diagram of an alternative embodiment of a device for sending a route advertisement packet according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
In the actual processing, the inventor of the present invention finds that when a gateway device of the existing fuzzy terminating networking system sends an RA packet in a broadcast manner, traversal needs to be performed on a terminating VLAN, and the RA packet needs to be sent, so that situations of meaningless VLAN traversal and RA packet copy sending exist.
In the embodiment of the invention, the gateway equipment can determine the appointed VLAN according to the received RS message without traversing the fuzzy terminal VLAN to send the RA message under the fuzzy terminal networking, and broadcasts the route notification message in the appointed VLAN, thereby avoiding the consumption of CPU and network resources caused by meaningless VLAN traversing, RA message copying and sending, and ensuring that a host sending the RS message can quickly receive the RA message.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for sending a route advertisement packet according to the present invention is shown. The information sending method can be specifically applied to gateway equipment of a fuzzy terminal networking system, and specifically comprises the following steps:
step 102, receiving a routing request message sent by a host.
In the embodiment of the invention, the gateway equipment broadcasts and sends the RA message, so that each host can automatically generate the IPv6 address according to the RA message, and the aim of automatic address configuration is fulfilled. For example, in the fuzzy termination networking, the host may trigger the gateway device to quickly generate the RA message by sending the RS message.
And 104, determining the appointed VLAN to which the host belongs according to the routing request message.
In the embodiment of the invention, the RS message carries the VLAN Tag, and the VLAN Tag is analyzed to determine the corresponding VLAN, namely the appointed VLAN.
And 106, broadcasting a route notification message in the appointed VLAN.
When receiving the RS message, the gateway device can determine the interface for receiving the RS message as a designated interface, and further can broadcast a route announcement message in a designated VLAN through the designated interface, namely send an RA message to each host belonging to the designated VLAN, thereby avoiding situations that CPU and network resources are consumed by meaningless VLAN traversal and RA message copy sending, and ensuring that the host sending the RS message can quickly receive the RA message; and other hosts belonging to the appointed VLAN can acquire the RA message sent by the gateway equipment without sending RS messages, so as to realize automatic address configuration according to the RA message.
In an example of the present invention, in the IPV6 network, when the range of the fuzzy-terminated VLANs configured on the above-mentioned designated interface of the gateway device is from 300 to 500 in the inner layer and from 1 to 4094 in the outer layer, when a VLAN host a belonging to the inner layer 300 and 500 in the outer layer initiates an RS message, the gateway device can determine the VLAN to which the host a belongs, that is, the designated VLAN (VLAN with 300 in the inner layer and 500 in the outer layer) according to the VLAN Tag carried in the RS message sent by the host a, and the gateway device can directly respond to the RA broadcast message to the designated VLAN without traversing the inner and outer VLANs (201 x 4094) configured on the designated interface and sending duplicate RA broadcast messages in each VLAN, thereby enabling a quick response to the RS message of the host under the fuzzy-terminated networking.
The embodiment of the invention optimizes the sending method of the RA message in the fuzzy terminal networking, avoids meaningless CPU and network resources consumed by copying and sending the RA message, thereby reducing the packet sending burden of the RA message in the fuzzy terminal network by gateway equipment such as a router and the like, solving the problem of heavy packet sending task when the existing gateway equipment sends the RA message, and enabling a host accessed to the gateway equipment to obtain the RA message more quickly.
In the fuzzy terminating networking, RA messaging may include the following two cases: when the designated interface is configured as a router interface as gateway equipment, the gateway equipment can send RA messages at fixed time by enabling the router function; in another case, when receiving an RS message sent by the host through the designated interface, the gateway device responds to the RS message and sends an RA message. The designated interface may include a three-layer interface on the network device, and the VLAN fuzzy termination and the range of the VLAN fuzzy termination may be configured below the designated interface.
Referring to fig. 2, a flowchart illustrating steps of an alternative embodiment of a method for sending a route advertisement packet according to the present invention is shown, which may specifically include the following steps:
step 202, a routing request message sent by a host is received.
In an optional embodiment of the present invention, when receiving the routing request packet, the method further includes: determining the copying times of a route notification message according to a VLAN fuzzy terminated VLAN range configured on a designated interface, wherein the designated interface is an interface for receiving the route request message; and when the copying times exceed a limit value, executing the step of determining the appointed VLAN to which the host belongs according to the routing request message.
In the embodiment of the present invention, when the gateway device receives the routing request packet, the interface that can receive the routing request packet is determined as the designated interface. Specifically, when the interface of the gateway device is configured as a router interface, the gateway device may receive an RS message sent by the host through the interface, or may broadcast an RA message in a VLAN range configured on the interface through the interface. For example, the gateway device may determine the number of times of copying corresponding to the route advertisement packet according to the VLAN range of VLAN fuzzy termination configured on the designated interface; detecting whether the copying times exceed a preset limit value or not; if the number of times of copying exceeds the limit value, the step of determining the designated VLAN according to the VLAN Tag carried by the route request message, namely the step 204, can be executed before sending the route notification message, so as to avoid meaningless VLAN traversal, and CPU and network resource consumption caused by copying and sending the RA message, thereby ensuring that the host can quickly receive the RA message. Optionally, if the number of times of copying does not exceed the limit value, each host in the VLAN range where the VLAN is terminated in a fuzzy manner can receive the RA message as soon as possible by adjusting the next transmission time of the broadcast RA message; step 204 may also be executed to reduce a packet sending burden of the RA packet in the fuzzy terminating network by the gateway device, which is not limited in this embodiment of the present invention.
As a specific example of the present invention, when an interface of a device just configured is a router interface, a gateway device may use the interface as a designated interface to obtain a range of each layer of VLAN corresponding to the designated interface; and then, calculating the range of each layer of VLAN, determining the sending times of the broadcast message of the specified interface, taking the sending times as the copying times, and determining whether to enter a preset fuzzy terminating RA message optimized sending mode by detecting whether the copying times exceed a preset limit value. After entering the fuzzy terminating RA message optimized sending mode, the gateway device may execute step 204 when receiving the routing request message. The limit value may be set according to a performance parameter of the gateway device, so as to ensure that the gateway device can quickly respond to the RS packet of the host under the fuzzy termination networking, and if the limit value is set to 255, the embodiment of the present invention does not specifically limit this.
Step 204, analyzing the VLAN Tag carried in the routing request message, and determining the designated VLAN to which the host belongs.
Specifically, the RS packet may carry a VLAN Tag. After receiving the RS packet sent by the host, the gateway device analyzes the VLAN Tag corresponding to the host, so that the VLAN Tag can be used to determine the designated VLAN to which the host sending the RS packet belongs. For example, if the RS packet sent by the host a extracts that the value of the inner VLAN Tag is 300 and the value of the outer VLAN Tag is 500, the gateway device may determine that the VLAN with the inner layer being 300 and the outer layer being 500 is the VLAN to which the host a belongs, and use the VLAN as the designated VLAN.
It should be noted that, the embodiment of the present invention does not limit the execution time of the step of determining whether to enter the fuzzy terminating RA message optimized sending mode by the gateway device, and for example, when receiving the RS message, the gateway device may also determine whether to enter the fuzzy terminating RA message optimized sending mode by calculating the VLAN range broadcast by the designated interface.
In a preferred embodiment of the present invention, the gateway device may determine, according to the VLAN range corresponding to the specified interface, the number of times of copying corresponding to the route advertisement packet, and specifically may include: and acquiring each layer of VLAN range corresponding to the specified interface, calculating each layer of VLAN range, determining the sending times of the broadcast message of the specified interface, and further taking the sending times as the copying times.
For example, the gateway device may determine the number of times of sending the RA packet broadcast by the specified interface by calculating the product of the VLAN ranges of the respective layers, and may copy the RA packet according to the number of times of copying, using the number of times of sending as the number of times of copying, so that the RA packet may be sent to the host that needs the RA packet. Specifically, when calculating the number of times that the broadcast RA packet needs to be copied, the gateway device may obtain the inner VLAN range and the outer VLAN range that are sent in a fuzzy termination manner, and may determine the product of the inner VLAN range and the outer VLAN range (VLAN range — outer VLAN range) as the number of times that the RA packet is copied.
Step 206, broadcasting a route advertisement message in the designated VLAN.
In a preferred embodiment of the present invention, the sending method of the route advertisement packet may further include: recording the VLAN Tag carried in the routing request message, and storing the recorded VLAN Tag to a VLAN list of the specified interface; therefore, when the route notification message is sent at regular time, the route notification message can be broadcasted according to the VLAN Tag in the VLAN list.
In the embodiment of the present invention, optionally, when the gateway device sends the route notification packet at regular time, the number of packets sent at regular time may be determined by using the VLAN Tag in the VLAN list; and copying and broadcasting the route notification message according to the message quantity. Specifically, the gateway device may record the analyzed VLAN Tag, and may store the recorded VLAN Tag to the VLAN list of the specified interface, so that when the route notification packet is sent at regular time, the timing broadcast range corresponding to the route notification packet may be determined based on the VLAN Tag recorded in the VLAN list; further, the number of messages to be sent at a fixed time can be calculated based on the fixed time broadcast range, the route notification message can be copied according to the number of the messages, and the copied route notification message can be sent by broadcasting.
For example, when the VLAN range of the interface fuzzy termination is from 300 to 500 at the inner layer and from 1 to 4094 at the outer layer, the gateway device in the embodiment of the present invention may avoid the existing network device from directly traversing the fuzzy termination transmission, that is, it is not necessary to traverse the inner and outer VLANs (201 × 4094) to transmit the route advertisement message, but when the host a (the inner VLAN 400 and the outer VLAN 500) initiates an RS request, it responds to the route advertisement message at the specified VLAN (the inner VLAN 400 and the outer VLAN 500) and records the VLAN VLANTag of the specified VLAN in the VLAN list, that is, the gateway device receives the RS message requested by the host in the RA message optimized transmission mode, and immediately responds to broadcast the RA message at the VLAN where the host is located; and the VLAN Tag carried by the RS message can be recorded in a VLAN list, and then the route notification message can be sent to the host in the appointed VLAN list at regular time, for example, when the route notification message is sent in a timing mode, the VLAN recorded in the VLAN list of the appointed interface can be traversed, and the broadcast RA message can be copied and sent.
Through the embodiment of the invention, the gateway equipment can record the VLANTAG corresponding to the host after receiving the RS message of the host and respond to the broadcast RA message in the appointed VLAN, thereby ensuring that the host can quickly receive the RA message and other hosts of the VLAN to which the host belongs can acquire the router configuration without sending RS. When hosts of different VLANs under the interface are continuously online, the gateway device records the VLAN TAG corresponding to the VLAN to which each host belongs in the host VLAN list under the appointed interface, so that when the broadcast RA is triggered to be sent at regular time, the VLAN TAG stored in the VLAN list of the appointed interface is directly used for traversing, copying and sending the broadcast RA. The VLAN list can be stored in a file, so that the gateway device can rapidly acquire the previous host VLAN list when the system is restarted.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 3A, a block diagram of a sending apparatus of a route advertisement packet according to an embodiment of the present invention is shown. The information sending device may be specifically applied to a gateway device, and specifically may include the following modules:
a routing request receiving module 302, configured to receive a routing request message sent by a host.
A virtual local area network determining module 304, configured to determine, according to the routing request packet, a designated virtual local area network VLAN to which the host belongs.
A route advertisement broadcasting module 306, configured to broadcast the route advertisement packet within the specified VLAN.
Referring to fig. 3B, a block diagram of a sending apparatus of a route advertisement packet according to an embodiment of the present invention is shown.
In a preferred embodiment of the present invention, the apparatus for sending the route advertisement packet may further include the following modules:
a duplication number determining module 308, configured to determine the duplication number of the route advertisement packet in the VLAN range terminated in a fuzzy manner according to the VLAN configured on the designated interface, where the designated interface is an interface for receiving the route request packet.
A triggering module 310, configured to trigger the VLAN determining module 304 to perform the step of determining the designated VLAN to which the host belongs according to the routing request packet when the number of times of copying exceeds a limit value.
In a preferred embodiment of the present invention, the duplication number determining module 308 may be specifically configured to obtain each layer VLAN range corresponding to the specified interface, calculate each layer VLAN range, determine the sending number of the broadcast packet of the specified interface, and use the sending number as the duplication number.
In a preferred embodiment of the present invention, the virtual local area network determining module 304 is specifically configured to analyze a VLAN Tag carried in the routing request packet, and determine an assigned VLAN to which the host belongs. For example, the virtual local area network determining module 304 may be specifically configured to obtain a VLAN TAG corresponding to the new host from the routing request packet; and determining the appointed VLAN to which the newly added host belongs based on the VLAN TAG.
In a preferred embodiment of the present invention, the sending device of the route advertisement message may further include a recording module 312 and a timing sending module 314.
A recording module 312, configured to record the VLAN Tag carried in the routing request packet, and store the recorded VLAN Tag in the VLAN list of the specified interface.
And the timing sending module 314 is configured to broadcast the route advertisement packet according to the LANTag in the VLAN list when the route advertisement packet is sent at a timing.
Optionally, the timing sending module 314 is specifically configured to determine the number of the regularly sent packets by using the LAN Tag in the VLAN list when the route notification packet is regularly sent; and copying and broadcasting the route notification message according to the message quantity. For example, when responding to a routing request message, the gateway device may record the VLAN TAG carried in the routing request message by calling the recording module 312, and store the VLAN TAG in the VLAN list of the specified interface, so that when calling the timing sending module 314 to send a routing notification message at regular time, the gateway device may determine the number of messages sent at regular time according to the LAN TAG in the VLAN list; and copying the route notification message according to the message quantity, and broadcasting and sending.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method for sending a route notification message and the device for sending a route notification message provided by the invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the above embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A method for sending a route advertisement message is applied to a gateway device, and comprises the following steps:
receiving a routing request message sent by a host; the routing request message comprises a plurality of layers of VLANs;
under the fuzzy termination networking, determining the copying times of a route notification message according to a VLAN (virtual local area network) range of VLAN fuzzy termination configured on a designated interface, wherein the designated interface is an interface for receiving the route request message;
when the copying times exceed a limit value, determining an appointed VLAN to which the host belongs according to the multilayer VLAN in the routing request message;
and broadcasting a route notification message in the appointed VLAN so that each host automatically generates an IPv6 address according to the route notification message.
2. The method of claim 1, wherein the determining the designated Virtual Local Area Network (VLAN) to which the host belongs according to the routing request message comprises:
and analyzing the VLAN Tag carried in the routing request message, and determining the appointed VLAN to which the host belongs.
3. The method of claim 2, further comprising:
recording the VLAN Tag carried in the routing request message, and storing the recorded VLAN Tag to a VLAN list of an appointed interface;
and broadcasting the route notification message according to the VLAN Tag in the VLAN list when the route notification message is sent at regular time.
4. The method of claim 3, wherein said broadcasting said route advertisement message according to the VLAN Tag in said VLAN list comprises:
determining the number of messages sent at regular time by adopting the VLAN Tag in the VLAN list;
and copying and broadcasting the route notification message according to the message quantity.
5. A device for sending a route advertisement packet, wherein the device is applied to a gateway device, and comprises:
the routing request receiving module is used for receiving a routing request message sent by the host; the routing request message comprises a plurality of layers of VLANs;
a virtual local area network determining module, configured to determine, according to the multiple layers of VLANs in the routing request message, an assigned virtual local area network VLAN to which the host belongs;
a route notification broadcasting module, configured to broadcast a route notification message in the specified VLAN, so that each host automatically generates an IPv6 address according to the route notification message;
the duplication frequency determining module is used for determining the duplication frequency of the route notification message according to a VLAN (virtual local area network) range of VLAN fuzzy termination configured on a designated interface under the fuzzy termination networking, wherein the designated interface is an interface for receiving the route request message;
and the triggering module is used for triggering the virtual local area network determining module to execute the step of determining the appointed virtual local area network VLAN which the host belongs to according to the routing request message when the copying times exceed a limit value.
6. The apparatus according to claim 5, wherein the virtual local area network determining module is specifically configured to parse a VLAN Tag carried in the routing request packet, and determine the specified VLAN to which the host belongs.
7. The apparatus of claim 6, further comprising:
the recording module is used for recording the VLAN Tag carried in the routing request message and storing the recorded VLAN Tag to the VLAN list of the specified interface;
and the timing sending module is used for broadcasting the route notification message according to the LAN Tag in the VLAN list when the route notification message is sent at a timing.
8. The apparatus according to claim 7, wherein the timing sending module is specifically configured to determine the number of packets sent at a timing by using a VLAN Tag in the VLAN list; and copying and broadcasting the route notification message according to the message quantity.
CN201611067357.7A 2016-11-28 2016-11-28 Method and device for sending route announcement message Active CN106789655B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611067357.7A CN106789655B (en) 2016-11-28 2016-11-28 Method and device for sending route announcement message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611067357.7A CN106789655B (en) 2016-11-28 2016-11-28 Method and device for sending route announcement message

Publications (2)

Publication Number Publication Date
CN106789655A CN106789655A (en) 2017-05-31
CN106789655B true CN106789655B (en) 2020-09-25

Family

ID=58902383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611067357.7A Active CN106789655B (en) 2016-11-28 2016-11-28 Method and device for sending route announcement message

Country Status (1)

Country Link
CN (1) CN106789655B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547286B (en) * 2017-09-25 2020-10-09 新华三技术有限公司 Method and device for generating Address Resolution Protocol (ARP) table
CN109327558A (en) * 2018-10-30 2019-02-12 新华三技术有限公司合肥分公司 Address management method and device
CN112584393B (en) * 2019-09-27 2022-07-22 上海华为技术有限公司 Base station configuration method, device, equipment and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223279A (en) * 2011-06-14 2011-10-19 杭州华三通信技术有限公司 Method for processing multi-VLAN (virtual local area network) and nodes

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8599860B2 (en) * 2009-05-14 2013-12-03 Futurewei Technologies, Inc. Multiple prefix connections with translated virtual local area network
CN102694752B (en) * 2011-03-21 2015-03-11 国基电子(上海)有限公司 Gateway equipment
CN102694664B (en) * 2011-03-25 2014-11-05 华为技术有限公司 Multicast method and multicast equipment
CN102611952B (en) * 2012-03-29 2015-04-01 杭州华三通信技术有限公司 Method and device for realizing port consultation between fabric channel over Ethernet (FCoE) forwarders
CN102857587B (en) * 2012-08-17 2016-02-03 福建三元达网络技术有限公司 The method and system in dynamic address pond are shared under multi-VLAN environment
CN103200470B (en) * 2013-04-07 2016-06-22 潍坊学院 The dispensing device of a kind of Gbit passive optical network system multicast service and method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223279A (en) * 2011-06-14 2011-10-19 杭州华三通信技术有限公司 Method for processing multi-VLAN (virtual local area network) and nodes

Also Published As

Publication number Publication date
CN106789655A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
US10191758B2 (en) Directing data traffic between intra-server virtual machines
US20190075049A1 (en) Determining Direction of Network Sessions
CN110830564B (en) CDN scheduling method, device, system and computer readable storage medium
CN109361608B (en) Message processing method, system and storage medium
WO2017206576A1 (en) Gateway service processing method and apparatus
CN109104395B (en) Method and device for scanning, discovering and identifying service of Internet assets
JP6633775B2 (en) Packet transmission
CN106789655B (en) Method and device for sending route announcement message
CN110493344B (en) File downloading method and device
CN109379209B (en) Method and device for upgrading storage service of video network
CN110430116A (en) Data forwarding method and device, edge device and readable storage medium storing program for executing
KR102162851B1 (en) Method and device for determining popular live broadcast video
CN110401513B (en) Data transmission method and device
JP6185918B2 (en) Gateway, method corresponding to gateway, computer program, and storage means
CN105450686A (en) Method and device for establishing server cluster
CN107547676B (en) Address processing method and device
US9729422B2 (en) Trace feature across the network (depth and breadth)-wise
CN108965219B (en) Data processing method and device based on video network
WO2017161840A1 (en) Data stream transmission method and device
CN110493555B (en) Request processing method, user terminal, core server, device and storage medium
CN110475160B (en) Method and device for transmitting video data across video network
CN112583627A (en) Networking topology structure display method and device
CN112702801B (en) Method and device for establishing session
CN112311829B (en) Method, device, medium and equipment for scheduling access request
TWI837922B (en) Traffic influence for initial eas selection

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