CN112867086A - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN112867086A
CN112867086A CN202110127109.1A CN202110127109A CN112867086A CN 112867086 A CN112867086 A CN 112867086A CN 202110127109 A CN202110127109 A CN 202110127109A CN 112867086 A CN112867086 A CN 112867086A
Authority
CN
China
Prior art keywords
switch
access
directly connected
switches
message
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
CN202110127109.1A
Other languages
Chinese (zh)
Other versions
CN112867086B (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 Security Technologies Co Ltd
Original Assignee
New H3C Security 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 Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202110127109.1A priority Critical patent/CN112867086B/en
Publication of CN112867086A publication Critical patent/CN112867086A/en
Application granted granted Critical
Publication of CN112867086B publication Critical patent/CN112867086B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/248Connectivity information update

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a message processing method and a device, the method is applied to an AP in an IPv 6-based distributed network, and the method comprises the following steps: when monitoring that the wireless terminal roams to the AP, generating an unsolicited neighbor advertisement NA message carrying address information of the wireless terminal; and sending the NA message to an access switch directly connected with the AP in the distributed network, so that the access switch finds ND table items according to neighbors learned by the NA message, generates a route after the wireless terminal roams, and sends the generated update message for adding the route to a plurality of aggregation switches directly connected with the access switch in the distributed network, a core switch directly connected with the aggregation switches, and other access switches except the access switch in the access switches directly connected with the aggregation switches. The method and the device can improve the user experience of the holding user of the wireless terminal.

Description

Message processing method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a packet
Background
In a conventional Internet Protocol (IP) network, an IP address is dynamically allocated to a user through a Dynamic Host Configuration Protocol (DHCP) server, and when a wireless terminal in the IP network roams, an access gateway changes and the IP address of the wireless terminal changes, so that a problem of long interruption time of wireless service traffic occurs.
With the development of network technology, the concept of distributed gateways is gradually formed. And the gateways of the wireless terminals are unified by adopting a distributed network. Even if the wireless terminal roams, the IP address of the gateway to which the wireless terminal is connected and the IP address of the wireless terminal are not changed. Therefore, network management is facilitated, and user experience of the wireless terminal in roaming is improved to a certain extent. However, when a wireless terminal in a distributed network roams from an Access Point (AP) to another AP, how to quickly notify an Access switch directly connected to the AP by the AP to assist the wireless terminal to quickly implement roaming becomes a crucial issue that needs to be solved currently.
As shown in fig. 1, fig. 1 is a schematic diagram of an architecture of a conventional distributed network. In fig. 1, a DHCP server, a Remote authentication digital In user service (Radius) server, and an Access Controller (AC) are all directly connected to a core switch; the APs (such as APs 1-4 shown in fig. 1) are directly connected to the access switch to construct a wireless network, and the wired terminals (such as Personal Computers (PCs) 1-PC 4 shown in fig. 1) can also be directly connected to the access switch to construct a wired network. Both the wired terminal and the wireless terminal can dynamically apply for an IPv4/IPv6 address through a DHCP Relay (Relay), or allocate an IPv6 address through a stateless address to access an IP network.
The aggregation switch is also directly connected to the core switch and to each access switch. An External Border Gateway Protocol (EBGP) neighbor is established among the access switch, the aggregation switch and the core switch. Each access switch learns an Address Resolution Protocol (ARP)/Neighbor Discovery (ND) message and converts the learned ARP/ND message into a terminal host route. Each access switch announces the terminal host route to the convergence switch through the EBGP protocol, and the convergence switch synchronizes the terminal host route to other access switches of the core switch.
All access switches in the network are configured with the same gateway IP address, the same three-layer gateway MAC address and the ARP/ND local proxy function is started. Therefore, when the wireless terminal roams, the IP address of the wireless terminal access gateway and the IP address of the wireless terminal remain the same. When an access switch in the network receives an ARP/ND message sent by a roaming wireless terminal, the synchronous operation of the host routing of the terminal is triggered, namely, the access switch notifies the host routing of the roaming terminal to a convergence switch through an EBGP protocol, and the convergence switch synchronizes the host routing of the roaming terminal to a core switch and other access switches, so as to realize the roaming of the wireless terminal.
However, when the wireless terminal roams to a new AP, the wireless terminal does not immediately send an ARP/ND packet, which results in that the access switch directly connected to the new AP cannot trigger the synchronization operation of the corresponding host route in time, and cannot implement the fast roaming of the wireless terminal, and the problem of long interruption time of the wireless service traffic still exists.
At present, in the scenario that the distributed network in fig. 1 is based on IPv4, a corresponding solution has been provided to solve the above problem; in the scenario that the distributed network in fig. 1 is an IPv 6-based distributed network, because there are few applications of IPv 6-based wireless networks in the market, fast roaming of wireless terminals cannot be achieved.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a message processing method and device.
According to a first aspect of the embodiments of the present application, there is provided a message processing method, where the method is applied to an AP in an IPv 6-based distributed network, and the method includes:
when monitoring that the wireless terminal roams to the AP, generating an unsolicited Neighbor Advertisement (NA) message carrying address information of the wireless terminal;
sending the NA message to an access switch directly connected with the AP in the distributed network, so that the access switch generates a route after the wireless terminal roams based on an ND table item learned by the NA message, and sends a generated updating message for adding the route to a plurality of aggregation switches directly connected with the access switch in the distributed network, core switches directly connected with the aggregation switches and other access switches except the access switch in the access switches directly connected with the aggregation switches;
the access switch and the access switch directly connected with the AP accessed by the wireless terminal before roaming are different access switches, and the same aggregation switch is directly connected;
the protocol type of the update message is EBGP.
According to a second aspect of the embodiments of the present application, there is provided a message processing method, where the method is applied to an access switch in an IPv 6-based distributed network, and the method includes:
when an unsolicited NA message sent by a first AP directly connected with the access switch in the distributed network is received, learning an ND table item according to the NA message, wherein the NA message is sent by the first AP when monitoring that a wireless terminal roams to the first AP, and the NA message carries address information of the wireless terminal;
generating a route after the wireless terminal roams according to the ND table item, and sending a generated first updating message for adding the route to a plurality of aggregation switches directly connected with the access switch in the distributed network, a core switch directly connected with the aggregation switches and other access switches except the access switch in the access switches directly connected with the aggregation switches;
the access switch and an access switch directly connected with a second AP accessed by the wireless terminal before roaming are different access switches, and the same aggregation switch is directly connected;
the protocol type of the first update message is EBGP.
According to a third aspect of the embodiments of the present application, there is provided a packet processing apparatus, where the apparatus is applied to an AP in an IPv 6-based distributed network, and the apparatus includes:
a generating module, configured to generate an unsolicited NA packet carrying address information of the wireless terminal when it is monitored that the wireless terminal roams to the AP;
a sending module, configured to send the NA packet to an access switch in the distributed network that is directly connected to the AP, so that the access switch generates a route after roaming of the wireless terminal according to an ND entry learned by the NA packet, and sends a generated update message for adding the route to a plurality of aggregation switches in the distributed network that are directly connected to the access switch, a core switch in direct connection with the aggregation switches, and other access switches in the access switches in direct connection with the aggregation switches except the access switch;
the access switch and the access switch directly connected with the AP accessed by the wireless terminal before roaming are different access switches, and the same aggregation switch is directly connected;
the protocol type of the update message is EBGP.
According to a fourth aspect of the embodiments of the present application, there is provided a message processing apparatus, where the apparatus is applied to an access switch in an IPv 6-based distributed network, and the apparatus includes:
the device comprises a learning module and a sending module, wherein the learning module is used for learning an ND (network routing) table item according to an NA message when receiving an unsolicited NA message sent by a first AP (access point) directly connected with an access switch in the distributed network, wherein the NA message is sent by the first AP when monitoring that a wireless terminal roams to the first AP, and the NA message carries address information of the wireless terminal;
a sending module, configured to generate a route after the wireless terminal roams according to the ND table entry, and send a generated first update message for adding the route to a plurality of aggregation switches directly connected to the access switch in the distributed network, a core switch directly connected to the aggregation switches, and other access switches except the access switch, in the access switches directly connected to the aggregation switches;
the access switch and an access switch directly connected with a second AP accessed by the wireless terminal before roaming are different access switches, and the same aggregation switch is directly connected;
the protocol type of the first update message is EBGP.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the embodiment of the application, for an AP in an IPv 6-based distributed network, once it is monitored that a wireless terminal roams to itself, an unsolicited NA message carrying address information of the wireless terminal is not generated and sent to an access switch in the distributed network directly connected to the AP, so that the access switch generates a route after roaming of the wireless terminal according to an ND table entry learned by the NA message, and sends a generated update message for adding the route to a plurality of aggregation switches in the distributed network directly connected to the access switch, a core switch in the distributed network directly connected to the aggregation switches, and other access switches in the distributed network except the access switch, and the aggregation switches, the core switch, and other access switches update corresponding route tables in time, therefore, the quick roaming of the wireless terminal can be realized, the wireless service flow of the wireless terminal is ensured to be quickly forwarded, and the user experience of the user holding the wireless terminal is further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of a conventional network architecture of a distributed network;
fig. 2 is a schematic flowchart of a message processing method according to an embodiment of the present application;
fig. 3 is a second schematic flowchart of a message processing method according to an embodiment of the present application;
fig. 4A is a schematic structural diagram of a distributed network according to an embodiment of the present application;
fig. 4B is a second schematic structural diagram of a distributed network according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another.
Next, examples of the present application will be described in detail.
An embodiment of the present application provides a message processing method, which is applied to an AP in an IPv 6-based distributed network, and as shown in fig. 2, the method may include the following steps:
s21, when it is monitored that the wireless terminal roams to the AP, generating an unsolicited NA packet carrying address information of the wireless terminal.
In this step, the address information may include an IP address and a MAC address of the wireless terminal.
Note that the unsolicited NA packet in this step is not a packet that responds to a Neighbor Solicitation (NS) packet, but a packet that is used to notify a Neighbor node of change information of the node.
And S22, sending the NA message to an access switch directly connected with the AP in the distributed network, so that the access switch finds ND table items according to neighbors learned by the NA message, generates a route after the wireless terminal roams, and sends the generated update message for adding the route to a plurality of aggregation switches directly connected with the access switch in the distributed network, a core switch directly connected with the aggregation switches, and other access switches except the access switch in the plurality of access switches directly connected with the aggregation switches.
In this step, the protocol type of the update message is EBGP.
It should be noted that, in this embodiment of the application, the access switch and the access switch directly connected to the AP accessed by the wireless terminal before roaming are different access switches, and the same aggregation switch is directly connected to the access switch.
For any AP in the distributed network, the monitoring process for monitoring whether the wireless terminal accessing itself is a roaming wireless terminal is the prior art, and is not described in detail herein.
Once the AP monitors that the wireless terminal roams to itself, the AP immediately generates an unsolicited NA packet carrying address information of the wireless terminal, and actively sends the unsolicited NA packet to an access switch directly connected to the AP in the distributed network.
The subsequent access switch may generate a route after the wireless terminal roams according to the ND entry learned by the NA packet (for example, information including an IP address, an MAC address, and the like of the wireless terminal), add the route to the local host routing table, and further generate an update (updata) message for adding the route, and then send the update message to a core switch and a plurality of aggregation switches directly connected to the access switch in the distributed network.
For the core switch, when the update message sent by the access switch is received, the route is added to the local routing table according to the update message.
For each aggregation switch, when receiving the update message sent by the access switch, the route is added to the local routing table according to the update message, and the update message is also sent to other access switches except the access switch in the access switches directly connected to the aggregation switch.
For any other access switch, when the update message sent by the aggregation switch directly connected with the other access switch is received, the route is added in the far-end host routing table according to the update message, so that the wireless terminal is assisted to rapidly realize roaming, the wireless service flow after the wireless terminal roams can be rapidly forwarded, and the user experience of a corresponding user is further improved.
In addition, if the other access switch is an access switch directly connected to the AP to which the wireless terminal has accessed before roaming, it will also detect whether the wireless terminal has actually roamed, and if so, the other access switch will also withdraw the route of the wireless terminal before roaming from the host routing table, and generate an update message for withdrawing the route of the wireless terminal before roaming, and then the other access switch will send the update message to the aggregation switch directly connected to the other access switch. Here, the protocol type of the update message for revoking the route before the roaming of the wireless terminal is EBGP.
When the aggregation switch directly connected with the other access switches receives the update message for canceling the route of the wireless terminal before roaming, the route of the wireless terminal before roaming is canceled from the local routing table according to the update message, and the update message is sent to the access switches except the other access switches in the access switches directly connected with the aggregation switch, so that the access switches can cancel the route of the wireless terminal before roaming from the remote host routing table according to the update message. Since the access switch for which the roaming of the wireless terminal is monitored is one of the access switches, the route before the roaming of the wireless terminal is cancelled, so as to save the table entry resource in the route table.
The embodiment of the present application further provides a message processing method, where the method is applied to an access switch in an IPv 6-based distributed network, and as shown in fig. 3, the method may include the following steps:
and S31, when an unsolicited NA message sent by a first AP directly connected with the access switch in the distributed network is received, learning an ND table item according to the NA message.
In this step, the NA packet is sent by the first AP when it is monitored that the wireless terminal roams to the first AP, and the NA packet carries address information of the wireless terminal, where the address information may include an IP address and an MAC address of the wireless terminal. The ND table entry may include information such as an IP address and a MAC address of the wireless terminal.
And S32, generating a route of the wireless terminal according to the ND table item, and sending the generated first updating message for adding the route to a plurality of aggregation switches directly connected with the access switch in the distributed network, a core switch directly connected with the aggregation switches, and other access switches except the access switch in the access switches directly connected with the aggregation switches.
In this step, the protocol type of the first update message is EBGP.
It should be noted that, in this embodiment of the application, the access switch and the access switch directly connected to the second AP accessed by the wireless terminal before roaming are different access switches, and the same aggregation switch is directly connected to the access switch.
Specifically, in step S22, the access switch may send the generated first update message for adding the route to a plurality of aggregation switches directly connected to the access switch in the distributed network, a core switch directly connected to the aggregation switches, and other access switches except the access switch, among the plurality of access switches directly connected to the aggregation switches, in the following manner:
the generated first updating message for adding the route (the route refers to the route after the wireless terminal roams) is sent to a core switch and a plurality of aggregation switches which are directly connected with an access switch in a distributed network, the route is added to a local routing table by the core switch according to the first updating message, the route is added to the local routing table by each aggregation switch according to the first updating message, the first updating message is sent to other access switches except the access switch in the access switch directly connected with the aggregation switch, and the route is added to a far-end host routing table by other access switches according to the first updating message.
Further, in the embodiment of the present application, in order to save the routing table entry resource and simultaneously implement accurate forwarding of the wireless service traffic after the roaming of the wireless terminal, the access switch may further perform the following operations:
and when receiving a second updating message which is sent by a convergence switch directly connected with an access switch directly connected with the second AP and used for canceling the route of the wireless terminal before roaming, canceling the route of the wireless terminal before roaming from the local routing table.
In the operation flow, the second update message is generated and sent to the corresponding aggregation switch after the access switch directly connected to the second AP receives the first update message sent by the corresponding aggregation switch and detects that the wireless terminal roams.
The following describes the message processing method in detail by taking the network architecture of the IPv 6-based distributed network shown in fig. 4A and 4B as an example.
In fig. 4A and 4B, a core switch 1 is directly connected to a convergence switch 1 and a convergence switch 2, respectively; the aggregation switch 1 and the aggregation switch 2 are respectively connected with the access switch 1, the access switch 2 and the access switch 3 directly; the AP1 is directly connected with the access switch 1, the AP2 is directly connected with the access switch 2, and the AP3 is directly connected with the access switch 3; the wireless terminal 1 accesses the access switch 2 through the AP2, the wireless terminal 2 accesses the access switch 1 through the AP1, and the wireless terminal 3 accesses the access switch 3 through the AP 3. The distributed network shown in fig. 4A and 4B may further include a DHCP server, a Radius server, and an AC directly connected to the core switch 1, which are not shown in the figure, and other APs and wired terminals directly connected to each access switch.
Assuming that the wireless terminal 1 roams from the AP2 to the AP1, when the AP1 monitors that the wireless terminal 1 roams to itself, the AP1 immediately generates an unsolicited NA packet carrying the IP address and the MAC address of the wireless terminal 1 and actively transmits the unsolicited NA packet to the access switch 1 directly connected to the AP1 (as shown in fig. 4A).
After receiving the NA message, the access switch 1 generates a route of the wireless terminal 1 (which may be referred to as a latest route of the wireless terminal 1) according to the ND entry learned by the NA message, and adds the route to a local host routing table; then, the access switch 1 further generates an updata message 1 for adding the route, and sends the updata message 1 to the aggregation switch 1 and the aggregation switch 2 directly connected to the access switch 1 (as shown in fig. 4A), and the aggregation switch 1 and the aggregation switch 2 assist in completing the synchronization operation of the route. Here, the protocol type of the updata message 1 is EBGP.
When receiving the updata message 1 sent by the access switch 1, the aggregation switch 1 adds the route to the local routing table according to the updata message 1, and since the aggregation switch 1 is further directly connected to the core switch 1, the access switch 2, and the access switch 3, the aggregation switch 1 further continues to send the updata message 1 to the core switch 1, the access switch 2, and the access switch 3 (as shown in fig. 4A).
When receiving the updata message 1 sent by the access switch 1, the aggregation switch 2 adds the route to the local routing table according to the updata message 1. Since the aggregation switch 1 is further directly connected to the core switch, the access switch 2, and the access switch 3, the aggregation switch 2 further sends the updata message 1 to the access switch 2 and the access switch 3 (as shown in fig. 4A).
Subsequently, for the core switch 1, when receiving the updata message 1 sent by the aggregation switch 1, adding the route in the local routing table according to the updata message 1; when receiving the updata message 1 sent by the aggregation switch 2, the route is added in the local routing table according to the updata message 1, and the added route based on the updata message 1 from the aggregation switch 1 form an equivalent route.
For the access switch 2 and the access switch 3, when receiving the updata message 1 sent by the aggregation switch 1, adding the route in a far-end host routing table according to the updata message 1; when receiving the updata message 1 sent by the aggregation switch 2, adding the route in the far-end host routing table according to the updata message 1, wherein the added route and the added route based on the updata message 1 from the aggregation switch 1 form an equivalent route.
In this way, the route is synchronized in the distributed network, and the wireless traffic after roaming of the wireless terminal 1 can be forwarded in time based on the route.
In addition, in this embodiment of the present application, after adding the route to the remote host routing table, the access switch 2 finds that the wireless terminal 1 corresponding to the route is a wireless terminal that is accessed to the AP2 directly connected to itself, and detects whether the wireless terminal 1 actually roams, and as a result of the detection, the access switch 2 cancels the route before roaming of the wireless terminal 1 from the local host routing table, which not only saves the routing table entry resources, but also can accurately forward the wireless service traffic after roaming of the wireless terminal 1. And, the access switch 2 further generates an updata message 2 for revoking the route before the roaming of the wireless terminal 1, sends the updata message 2 to the aggregation switch 1 and the aggregation switch 2 directly connected to the access switch 2 (as shown in fig. 4B), and the aggregation switch 1 and the aggregation switch 2 assist in completing the synchronization operation of revoking the route. Here, the protocol type of the updata message 2 is EBGP.
When receiving the updata message 2, the aggregation switch 1 cancels the route of the wireless terminal 1 before roaming from the local routing table according to the updata message 2. Since the aggregation switch 1 is further directly connected to the core switch 1, the access switch 1, and the access switch 3, the aggregation switch 1 further continues to send the updata message 2 to the core switch 1, the access switch 1, and the access switch 3 (as shown in fig. 4B).
And when receiving the updata message 2, the aggregation switch 2 cancels the route of the wireless terminal 1 before roaming from the local routing table according to the updata message 2. Since the aggregation switch 2 is further directly connected to the core switch 1, the access switch 1, and the access switch 3, the aggregation switch 2 further continues to send the updata message 2 to the core switch 1, the access switch 1, and the access switch 3 (as shown in fig. 4B).
Subsequently, for the core switch 1, when receiving the updata message 2 sent by the aggregation switch 1, revoking the route of the wireless terminal 1 before roaming from the local routing table according to the updata message 2; when receiving the updata message 2 sent by the aggregation switch 2, the route of the wireless terminal 1 before roaming is withdrawn from the local routing table according to the updata message 2.
For the access switch 1 and the access switch 3, when receiving the updata message 2 sent by the aggregation switch 1, revoking the route of the wireless terminal 1 before roaming from the far-end host routing table according to the updata message 2; when receiving the updata message 2 sent by the aggregation switch 2, withdrawing the route of the wireless terminal 1 before roaming from the far-end host routing table according to the updata message 2.
As can be seen from the above technical solutions, in the embodiment of the present application, for an AP in an IPv 6-based distributed network, once it is monitored that a wireless terminal roams to itself, an unsolicited NA message carrying address information of the wireless terminal is immediately generated and sent to an access switch in the distributed network directly connected to the AP, so that the access switch generates a route after roaming of the wireless terminal according to an ND entry learned by the NA message, and sends a generated update message for adding the route to a plurality of aggregation switches in the distributed network directly connected to the access switch, a core switch in the plurality of aggregation switches directly connected to the core switch, and other access switches in the plurality of aggregation switches directly connected to the access switch, among the access switches in the distributed network, except for the access switch, the access switches are connected to the aggregation switches, The core switch and other access switches update corresponding routing tables in time, so that the rapid roaming of the wireless terminal can be realized, the wireless service flow of the wireless terminal is ensured to be rapidly forwarded, and the user experience of a user holding the wireless terminal is further improved.
Based on the same inventive concept, the present application further provides a message processing apparatus, where the apparatus is applied to an AP in an IPv 6-based distributed network, and a schematic structural diagram of the apparatus is shown in fig. 5, where the apparatus specifically includes:
a generating module 51, configured to generate an unsolicited NA packet carrying address information of a wireless terminal when it is monitored that the wireless terminal roams to the AP;
a sending module 52, configured to send the NA packet to an access switch in the distributed network that is directly connected to the AP, so that the access switch generates a route after roaming of the wireless terminal according to an ND entry learned by the NA packet, and sends a generated update message for adding the route to a plurality of aggregation switches in the distributed network that are directly connected to the access switch, a core switch in direct connection with the aggregation switches, and other access switches in the access switches in direct connection with the aggregation switches except the access switch;
the access switch and the access switch directly connected with the AP accessed by the wireless terminal before roaming are different access switches, and the same aggregation switch is directly connected;
the protocol type of the update message is EBGP.
Based on the same inventive concept, the present application further provides a message processing apparatus, where the apparatus is applied to an access switch in an IPv 6-based distributed network, and a schematic structural diagram of the apparatus is shown in fig. 6, and specifically includes:
a learning module 61, configured to learn an ND entry according to an NA packet when receiving an unsolicited NA packet sent by a first access point AP directly connected to the access switch in the distributed network, where the NA packet is sent by the first AP when monitoring that a wireless terminal roams to the first AP, and the NA packet carries address information of the wireless terminal;
a sending module 62, configured to generate a route after the wireless terminal roams according to the ND entry, and send a generated first update message for adding the route to a plurality of aggregation switches directly connected to the access switch in the distributed network, a core switch directly connected to the aggregation switches, and other access switches except the access switch, in the access switches directly connected to the aggregation switches;
the access switch and an access switch directly connected with a second AP accessed by the wireless terminal before roaming are different access switches, and the same aggregation switch is directly connected;
the protocol type of the first update message is EBGP.
Preferably, the sending module 61 is specifically configured to:
sending the generated first updating message for adding the route to a core switch and a plurality of aggregation switches which are directly connected with the access switch in the distributed network, adding the route in a local routing table by the core switch according to the first updating message, adding the route in the local routing table by each aggregation switch according to the first updating message, sending the first updating message to other access switches except the access switch in the access switch directly connected with the aggregation switch, and adding the route in a far-end host routing table by other access switches according to the first updating message.
Preferably, the apparatus further comprises:
a revocation module (not shown in fig. 6), configured to, upon receiving a second update message that is sent by an aggregation switch directly connected to an access switch directly connected to the second AP and is used to revoke a route of the wireless terminal before roaming, revoke the route of the wireless terminal before roaming from a home host routing table;
and the second updating message is generated and sent to the corresponding aggregation switch after the access switch directly connected with the second AP receives the first updating message sent by the corresponding aggregation switch and detects that the wireless terminal roams.
As can be seen from the above technical solutions, in the embodiment of the present application, for an AP in an IPv 6-based distributed network, once it is monitored that a wireless terminal roams to itself, an unsolicited NA message carrying address information of the wireless terminal is immediately generated and sent to an access switch in the distributed network directly connected to the AP, so that the access switch generates a route after roaming of the wireless terminal according to an ND entry learned by the NA message, and sends a generated update message for adding the route to a plurality of aggregation switches in the distributed network directly connected to the access switch, a core switch in the plurality of aggregation switches directly connected to the core switch, and other access switches in the plurality of aggregation switches directly connected to the access switch, among the access switches in the distributed network, except for the access switch, the access switches are connected to the aggregation switches, The core switch and other access switches update corresponding routing tables in time, so that the rapid roaming of the wireless terminal can be realized, the wireless service flow of the wireless terminal is ensured to be rapidly forwarded, and the user experience of a user holding the wireless terminal is further improved.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (8)

1. A message processing method is applied to an Access Point (AP) in an IPv 6-based distributed network, and the method comprises the following steps:
when monitoring that the wireless terminal roams to the AP, generating an unsolicited Neighbor Advertisement (NA) message carrying address information of the wireless terminal;
sending the NA message to an access switch directly connected with the AP in the distributed network, so that the access switch finds ND table items according to neighbors learned by the NA message, generates a route after the wireless terminal roams, and sends generated update information for adding the route to a plurality of aggregation switches directly connected with the access switch in the distributed network, core switches directly connected with the aggregation switches and other access switches except the access switch in the access switches directly connected with the aggregation switches;
the access switch and the access switch directly connected with the AP accessed by the wireless terminal before roaming are different access switches, and the same aggregation switch is directly connected;
the protocol type of the update message is an External Border Gateway Protocol (EBGP).
2. A message processing method is applied to an access switch in an IPv 6-based distributed network, and the method comprises the following steps:
when an unsolicited Neighbor Advertisement (NA) message sent by a first Access Point (AP) directly connected with the access switch in the distributed network is received, learning Neighbor Discovery (ND) table items according to the NA message, wherein the NA message is sent by the first AP when monitoring that a wireless terminal roams onto the first AP, and carries address information of the wireless terminal;
generating a route after the wireless terminal roams according to the ND table item, and sending a generated first updating message for adding the route to a plurality of aggregation switches directly connected with the access switch in the distributed network, a core switch directly connected with the aggregation switches and other access switches except the access switch in the access switches directly connected with the aggregation switches;
the access switch and an access switch directly connected with a second AP accessed by the wireless terminal before roaming are different access switches, and the same aggregation switch is directly connected;
the protocol type of the first update message is an External Border Gateway Protocol (EBGP).
3. The method according to claim 2, wherein sending the generated first update message for adding the route to a plurality of aggregation switches directly connected to the access switch in the distributed network, a core switch directly connected to the aggregation switches, and other access switches except the access switch among the access switches directly connected to the aggregation switches specifically includes:
sending the generated first updating message for adding the route to a core switch and a plurality of aggregation switches which are directly connected with the access switch in the distributed network, adding the route in a local routing table by the core switch according to the first updating message, adding the route in the local routing table by each aggregation switch according to the first updating message, sending the first updating message to other access switches except the access switch in the access switch directly connected with the aggregation switch, and adding the route in a far-end host routing table by other access switches according to the first updating message.
4. The method of claim 2, further comprising:
when receiving a second update message which is sent by a convergence switch directly connected with an access switch directly connected with the second AP and used for revoking the route of the wireless terminal before roaming, revoking the route of the wireless terminal before roaming from a local host routing table;
and the second updating message is generated and sent to the corresponding aggregation switch after the access switch directly connected with the second AP receives the first updating message sent by the corresponding aggregation switch and detects that the wireless terminal roams.
5. A message processing apparatus, which is applied to an access point AP in an IPv 6-based distributed network, and which includes:
a generating module, configured to generate an unsolicited neighbor advertisement NA packet carrying address information of the wireless terminal when it is monitored that the wireless terminal roams to the AP;
a sending module, configured to send the NA packet to an access switch in the distributed network that is directly connected to the AP, so that the access switch discovers an ND entry according to a neighbor learned by the NA packet, generates a route after the wireless terminal roams, and sends a generated update message for adding the route to a plurality of aggregation switches in the distributed network that are directly connected to the access switch, core switches directly connected to the aggregation switches, and other access switches, except the access switch, in the access switches directly connected to the aggregation switches;
the access switch and the access switch directly connected with the AP accessed by the wireless terminal before roaming are different access switches, and the same aggregation switch is directly connected;
the protocol type of the update message is an External Border Gateway Protocol (EBGP).
6. A message processing apparatus, wherein the apparatus is applied to an access switch in an IPv 6-based distributed network, and the apparatus comprises:
the device comprises a learning module and a sending module, wherein the learning module is used for learning Neighbor Discovery (ND) table items according to an NA message when the unsolicited Neighbor Advertisement (NA) message sent by a first Access Point (AP) directly connected with an access switch in the distributed network is received, the NA message is sent when the first AP monitors that a wireless terminal roams to the first AP, and the NA message carries address information of the wireless terminal;
a sending module, configured to generate a route after the wireless terminal roams according to the ND table entry, and send a generated first update message for adding the route to a plurality of aggregation switches directly connected to the access switch in the distributed network, a core switch directly connected to the aggregation switches, and other access switches except the access switch, in the access switches directly connected to the aggregation switches;
the access switch and an access switch directly connected with a second AP accessed by the wireless terminal before roaming are different access switches, and the same aggregation switch is directly connected;
the protocol type of the first update message is an External Border Gateway Protocol (EBGP).
7. The apparatus of claim 6, wherein the sending module is specifically configured to:
sending the generated first updating message for adding the route to a core switch and a plurality of aggregation switches which are directly connected with the access switch in the distributed network, adding the route in a local routing table by the core switch according to the first updating message, adding the route in the local routing table by each aggregation switch according to the first updating message, sending the first updating message to other access switches except the access switch in the access switch directly connected with the aggregation switch, and adding the route in a far-end host routing table by other access switches according to the first updating message.
8. The apparatus of claim 6, further comprising:
a revocation module, configured to revoke, when receiving a second update message, which is sent by a convergence switch directly connected to an access switch directly connected to the second AP, and is used to revoke a route before roaming of the wireless terminal, the route before roaming of the wireless terminal from a home terminal host routing table;
and the second updating message is generated and sent to the corresponding aggregation switch after the access switch directly connected with the second AP receives the first updating message sent by the corresponding aggregation switch and detects that the wireless terminal roams.
CN202110127109.1A 2021-01-29 2021-01-29 Message processing method and device Active CN112867086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110127109.1A CN112867086B (en) 2021-01-29 2021-01-29 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110127109.1A CN112867086B (en) 2021-01-29 2021-01-29 Message processing method and device

Publications (2)

Publication Number Publication Date
CN112867086A true CN112867086A (en) 2021-05-28
CN112867086B CN112867086B (en) 2022-02-22

Family

ID=75986935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110127109.1A Active CN112867086B (en) 2021-01-29 2021-01-29 Message processing method and device

Country Status (1)

Country Link
CN (1) CN112867086B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363879A (en) * 2022-01-24 2022-04-15 杭州迪普科技股份有限公司 Roaming processing method and system for wireless terminal
CN115412528A (en) * 2022-08-08 2022-11-29 北京达佳互联信息技术有限公司 Host routing address storage method and device, electronic equipment and storage medium
WO2023070475A1 (en) * 2021-10-28 2023-05-04 新华三技术有限公司 Method and apparatus for information synchronization between switches

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148756A (en) * 2011-01-26 2011-08-10 武汉邮电科学研究院 IPv6 over low power wireless personal area network (6LoWPAN) neighbor discovery-based tree routing method
US20130077505A1 (en) * 2011-09-28 2013-03-28 Avaya Inc. Method And Apparatus For Using Received Signal Strength Indicator (RSSI) Filtering To Provide Air-Time Optimization In Wireless Networks
CN104394082A (en) * 2014-11-20 2015-03-04 重庆金美通信有限责任公司 Neighbor discovery and link status detecting method applicable to broadcast link
CN105792174A (en) * 2014-12-26 2016-07-20 华为技术有限公司 Wireless local area network roaming method, access point and wireless controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148756A (en) * 2011-01-26 2011-08-10 武汉邮电科学研究院 IPv6 over low power wireless personal area network (6LoWPAN) neighbor discovery-based tree routing method
US20130077505A1 (en) * 2011-09-28 2013-03-28 Avaya Inc. Method And Apparatus For Using Received Signal Strength Indicator (RSSI) Filtering To Provide Air-Time Optimization In Wireless Networks
CN104394082A (en) * 2014-11-20 2015-03-04 重庆金美通信有限责任公司 Neighbor discovery and link status detecting method applicable to broadcast link
CN105792174A (en) * 2014-12-26 2016-07-20 华为技术有限公司 Wireless local area network roaming method, access point and wireless controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023070475A1 (en) * 2021-10-28 2023-05-04 新华三技术有限公司 Method and apparatus for information synchronization between switches
CN114363879A (en) * 2022-01-24 2022-04-15 杭州迪普科技股份有限公司 Roaming processing method and system for wireless terminal
CN114363879B (en) * 2022-01-24 2023-06-27 杭州迪普科技股份有限公司 Roaming processing method and system for wireless terminal
CN115412528A (en) * 2022-08-08 2022-11-29 北京达佳互联信息技术有限公司 Host routing address storage method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112867086B (en) 2022-02-22

Similar Documents

Publication Publication Date Title
CN112867086B (en) Message processing method and device
US20200169872A1 (en) System and method of fast roaming in enterprise fabric networks
US8488557B2 (en) Method for detecting a duplicate address, mobile station, network element and communication system
EP2041944B1 (en) Wireless switch network architecture implementing layer 3 mobility domains
US8724583B2 (en) Neighbor discovery message handling to support roaming of wireless mobile client devices
US7606201B2 (en) Handover enabler
KR100800810B1 (en) Bridge-based wireless internet system and signalling method thereof
JP4968328B2 (en) Mobile IP communication system, mobile IP communication apparatus, and mobile IP communication method
WO2006058206A2 (en) A method of subnet roaming within a network
KR20070048110A (en) Method and apparatus for neighbor discovery in ipv6-based mobile system
KR101589461B1 (en) System and method for mobile ip
US20090248841A1 (en) Unique prefix assignment with automatic address configuration
WO2012097663A1 (en) Method and system for pmipv6 protocol to support ipv6 prefix distribution
CN104717640A (en) Realization method for wireless network communication based on positioning
EP2482585B1 (en) Method and system for realizing terminal handover
US9439127B2 (en) Method for data transmission and local network entity
JP2003318943A (en) Ip address generating method and wireless base station apparatus
EP2044734A2 (en) Techniques for use in networks of wireless switches
JP3928443B2 (en) Mobile communication system
US8040851B2 (en) Method and system of reducing handover time in mobile IP network
JP3861885B2 (en) Mobile terminal and packet transmission method
JP3861903B2 (en) Mobile terminal and packet transmission method
JP4169037B2 (en) Transfer registration method
Jia et al. A novel host mobility support method in IPv4/IPv6 network of RANGI architecture
JP2006229352A (en) Communications equipment for executing handover and network

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