CN113992557B - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN113992557B
CN113992557B CN202111060026.1A CN202111060026A CN113992557B CN 113992557 B CN113992557 B CN 113992557B CN 202111060026 A CN202111060026 A CN 202111060026A CN 113992557 B CN113992557 B CN 113992557B
Authority
CN
China
Prior art keywords
address
virtual
main
interface
user terminal
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
CN202111060026.1A
Other languages
Chinese (zh)
Other versions
CN113992557A (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 CN202111060026.1A priority Critical patent/CN113992557B/en
Publication of CN113992557A publication Critical patent/CN113992557A/en
Application granted granted Critical
Publication of CN113992557B publication Critical patent/CN113992557B/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/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Abstract

The application provides a message processing method and a device, the method is applied to a first UP, the first UP is positioned in an N:1 backup network group, the N:1 backup network group also comprises a second UP, the first UP is a main UP and comprises a first interface, and the second UP is a standby UP, the method comprises the following steps: when the first user terminal is on-line through the first UP and acquires the IPv6 address, sending a first RA message to the first user terminal, wherein the first RA message comprises a first virtual IP address of a first interface, so that the first user terminal determines the first UP as an access gateway; receiving a first NS message sent by a first user terminal, wherein the first NS message comprises a first virtual IP address; and sending a first NA message to the first user terminal, wherein the first NA message comprises a first virtual MAC address of the first interface acquired according to the first virtual IP address.

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
A Broadband Remote Access Server (BRAS) is a product of metropolitan area network service evolution, and a user terminal has no authentication and authorization management under the condition that only an Access device and a backbone router are in the metropolitan area network, which is not beneficial to the operation management and long-term development of the network. After the BRAS is introduced between the access device and the backbone router, the BRAS serves as an access gateway of network services, provides broadband access, authentication, authorization and charging, manages user bandwidth, converges user service traffic, terminates user PPPOE connection and the like for the user terminal, and provides various service services.
With the development of virtualization, a vbars after the control transfer separation of the BRAS gradually becomes the mainstream of operator deployment. The vbars system mainly includes two parts, namely a Control Plane (CP) and a forwarding Plane (UP). The CP is positioned as a user control management component, and mainly includes: user control management, user access control, user authentication authorization charging, address management and other functional modules; UP is positioned as a three-layer network edge and user policy execution component, mainly comprising: forwarding plane functions such as traffic forwarding, qoS, traffic statistics, etc., and pipe-like control plane functions such as unicast routing protocol, multicast routing protocol, MPLS (LDP/TE), etc.
The CP is deployed inside a Core Telecom Integrated Cloud (CTIC) by adopting an NFV technology, and the UP is deployed inside an Edge Telecom Integrated Cloud (ETIC) by adopting a physical device form. The CP interacts with the service systems such as a Radius server, a DHCP server and the like, receives PPPoE or IPoE dialing messages sent by UP, and after the online processing of the user terminal is completed, the service flow is forwarded through the UP, so that the user terminal is accessed to the network.
In the traditional BRAS networking, the requirement of a user on the network reliability is higher, and the requirement also needs to be solved in a transfer control separation networking. In order to solve the reliability problem, the reliability problem can be solved in an N:1 backup networking mode in the transfer control separation networking, namely, N main UPs realize load sharing and backup to the same standby UP, and once a link and equipment failure occurs, user traffic can be timely switched to the standby equipment and transmitted through the standby equipment.
However, in the N:1 backup networking, how to enable the user terminal to select the main UP as the gateway UP and learn the IP address of the gateway UP is a problem to be solved urgently.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for processing a packet, so as to solve the problem of how to enable a user terminal to select a main UP as a gateway UP and learn an IP address of the gateway UP in an N:1 backup network in the prior art.
In a first aspect, the present application provides a method for processing a packet, where the method is applied to a first UP, the first UP is in an N:1 backup networking, the N:1 backup networking further includes a second UP, the first UP is a primary UP and includes a first interface, and the second UP is a backup UP, and the method includes:
when a first user terminal is on-line through a first UP and acquires an IPv6 address, sending a first RA message to the first user terminal, wherein the first RA message comprises a first virtual IP address of a first interface, so that the first user terminal determines the first UP as an access gateway;
receiving a first NS message sent by the first user terminal, wherein the first NS message comprises the first virtual IP address;
and sending a first NA message to the first user terminal, wherein the first NA message comprises a first virtual MAC address of the first interface acquired according to the first virtual IP address.
In a second aspect, the present application provides a method for processing a packet, where the method is applied to a primary UP, the primary UP is in an N:1 backup networking, the N:1 backup networking further includes backup UPs, the number of the primary UPs is multiple, and the number of the backup UPs is one, and the method includes:
after a first user terminal is configured with an IPv6 address, receiving a first RS message sent by the first user terminal;
if the first user terminal is determined not to be on-line, sending the first RS message to a CP (content provider) so that the CP can select one main UP from a plurality of main UPs as an access gateway of the first user terminal;
when determining that a first master UP is used as an access gateway of the first user terminal, sending a first RA message to the first user terminal, wherein the first RA message comprises a first virtual IP address and a first virtual MAC address of a first interface, so that the first user terminal determines that the first master UP is used as the access gateway.
In a third aspect, the present application provides a method for processing a packet, where the method is applied to a CP, the CP is located in an N:1 backup network, the N:1 backup network further includes a plurality of main UPs and a backup UP, and the method includes:
configuring different virtual IP addresses and virtual MAC addresses at interfaces accessed to each main UP respectively;
and respectively sending a first configuration message to each main UP, wherein each first configuration message comprises a virtual IP address and a virtual MAC address which are configured for the main UP by the CP, so that each main UP configures the virtual IP address and the virtual MAC address at an interface of the main UP accessing the CP.
In a fourth aspect, the present application provides a packet processing device, where the device is applied to a first UP, the first UP is in an N:1 backup networking, the N:1 backup networking further includes a second UP, the first UP is a main UP and includes a first interface, and the second UP is a backup UP, where the device includes:
a sending unit, configured to send a first RA packet to a first user terminal after the first user terminal has been on-line through a first UP and has acquired an IPv6 address, where the first RA packet includes a first virtual IP address of the first interface, so that the first user terminal determines that the first UP serves as an access gateway;
a receiving unit, configured to receive a first NS packet sent by the first user terminal, where the first NS packet includes the first virtual IP address;
the sending unit is further configured to send a first NA packet to the first user terminal, where the first NA packet includes the first virtual MAC address of the first interface acquired according to the first virtual IP address.
In a fifth aspect, the present application provides a packet processing apparatus, where the apparatus is applied to a master UP, the master UP is in an N:1 backup networking, the N:1 backup networking further includes backup UPs, the number of the master UPs is multiple, and the number of the backup UPs is one, and the apparatus includes:
the receiving unit is used for receiving a first RS message sent by a first user terminal after the first user terminal is configured with an IPv6 address;
a sending unit, configured to send the first RS packet to a CP if it is determined that the first user terminal is not on-line, so that the CP selects one master UP from multiple master UPs as an access gateway of the first user terminal;
the sending unit is further configured to send, when it is determined that the first master UP serves as the access gateway of the first user terminal, a first RA packet to the first user terminal, where the first RA packet includes a first virtual IP address and a first virtual MAC address of a first interface, so that the first user terminal determines that the first master UP serves as the access gateway.
In a sixth aspect, the present application provides a packet processing apparatus, where the apparatus is applied to a CP, the CP is located in an N:1 backup network, the N:1 backup network further includes a plurality of main UPs and a backup UP, and the apparatus includes:
a configuration unit, configured to configure different virtual IP addresses and virtual MAC addresses at an interface accessed to each main UP;
a sending unit, configured to send a first configuration packet to each main UP, where each first configuration packet includes a virtual IP address and a virtual MAC address configured by the CP for the main UP, so that each main UP configures the virtual IP address and the virtual MAC address at an interface where the main UP accesses the CP.
In a seventh aspect, the present application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions capable of being executed by the processor, the processor being caused by the machine-executable instructions to perform the method provided by the first aspect of the present application.
In an eighth aspect, the present application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to perform the method provided by the second aspect of the present application.
In a ninth aspect, the present application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to perform the method provided in the third aspect of the present application.
Therefore, by applying the message processing method and device provided by the present application, after the first user terminal has been on-line through the first UP and has acquired the IPv6 address, the first UP sends a first RA message to the first user terminal, where the first RA message includes a first virtual IP address of the first interface, so that the first user terminal determines that the first UP is used as an access gateway; a first UP receives a first NS message sent by a first user terminal, wherein the first NS message comprises a first virtual IP address; and the first UP sends a first NA message to the first user terminal, wherein the first NA message comprises a first virtual MAC address of the first interface, which is acquired by the first UP according to the first virtual IP address.
Therefore, the first UP informs the first user terminal which is on-line and acquires the IPv6 address of the first virtual IP address and the first virtual MAC address of the first interface of the first UP, so that the first user terminal determines the first UP as an access gateway and then generates a default gateway route, and the problem of how to enable the user terminal to select the main UP as the gateway UP and learn the IP address of the gateway UP in the N:1 backup group network is solved.
Drawings
Fig. 1 is a flowchart of a message processing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of an N:1 backup networking provided in an embodiment of the present application;
fig. 3 is a flowchart of another message processing method according to an embodiment of the present application;
fig. 4 is a flowchart of another message processing method according to an embodiment of the present application;
fig. 5 is a structural diagram of a message processing apparatus according to an embodiment of the present application;
fig. 6 is a structural diagram of another message processing apparatus according to an embodiment of the present application;
fig. 7 is a structural diagram of another message processing apparatus according to an embodiment of the present application;
fig. 8 is a hardware structure of a network device 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. The following description refers to the accompanying drawings in which the same 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 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 corresponding 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. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at" \8230; "or" when 8230; \8230; "or" in response to a determination ", depending on the context.
The following describes the message processing method provided in the embodiment of the present application in detail. Referring to fig. 1, fig. 1 is a flowchart of a message processing method according to an embodiment of the present disclosure. The method is applied to the first UP. The message processing method provided by the embodiment of the application can comprise the following steps.
Step 110, after the first user terminal has been on-line through the first UP and has acquired the IPv6 address, sending a first RA packet to the first user terminal, where the first RA packet includes a first virtual IP address of the first interface, so that the first user terminal determines that the first UP is used as an access gateway.
Specifically, in the N:1 backup networking, a CP, a first UP, and a second UP are included. Wherein, the first UP is a main UP and the number is N, and the second UP is a standby UP and the number is one. Therefore, load sharing is realized among the N main UPs, backup is carried out on the same standby UP, and once a link and equipment failure occurs, user flow can be timely switched to the standby equipment and transmitted through the standby equipment.
The first UP is described as an example, and the first UP is a main UP.
According to the DHCPv6 Protocol, after a first user terminal is on-line through a first UP and the first user terminal acquires an IPv6 Address, the first UP generates a first Router Advertisement (RA) message, the first RA message comprises a source Internet Protocol Address (IP Address) field, and the source IP Address field fills a first virtual IP Address of a first interface.
Wherein, the first interface is an interface for the first UP to access the CP.
The first UP sends a first RA message to a first user terminal. And after receiving the first RA message, the first user terminal acquires a first virtual IP address from the first RA message.
In the embodiment of the application, after the first user terminal acquires the first virtual IP address, it is determined that the first UP is an access gateway of the first user terminal.
As shown in fig. 2, fig. 2 is a schematic diagram of an N:1 backup networking provided in the embodiment of the present application. In fig. 2, the N:1 backup mesh includes CP, UP1, UP2, and UP3. Wherein, UP1 and UP2 are main UP, and UP3 is standby UP. The CP comprises an interface (port) 1, a port2 and a port3; UP1 includes port4, UP2 includes port5, and UP3 includes port6.
Wherein, UP1 accesses port1 through port 4; UP2 accesses port2 through port 5; UP3 accesses port3 through port6.
The user terminal 1 accesses UP1, and after the UP1 is online and the IPv6 address is acquired, the UP1 generates a first RA message, where the first RA message includes a first virtual IP address (for example, the virtual IP address of port4 is FE80:: 1). UP1 sends a first RA message to user terminal 1. The user terminal 1 obtains the first virtual IP address from the first RA packet.
The user terminal 2 accesses the UP2, and after the UP2 is on-line and the IPv6 address is acquired, the UP2 generates a second RA message, where the second RA message includes a second virtual IP address (for example, the virtual IP address of the port5 is FE80:: 2). UP2 sends a second RA message to user terminal 2. The user terminal 2 obtains the second virtual IP address from the second RA packet.
Step 120, receiving a first NS packet sent by the first user terminal, where the first NS packet includes the first virtual IP address.
Specifically, according to the description in step 110, after the first user terminal obtains the first virtual IP Address from the first RA message and determines that the first UP is the Access gateway of the first user terminal, the first user terminal learns in advance a Media Access Control Address (MAC Address, for short) corresponding to the IP Address of the Access gateway. The first user terminal generates a first Neighbor Solicitation (NS) message, wherein the first NS message comprises a first virtual IP address.
The first user terminal sends a first NS message to the first UP, and the first UP acquires a first virtual IP address from the first NS message after receiving the first NS message.
It should be noted that the first NS packet sent by the user terminal is sent in a multicast manner, and therefore, each UP in the N:1 backup network will receive the first NS packet. And the second UP is used as a standby UP, and after receiving the first NS message, the second UP does not process the first NS message and discards the first NS message.
The first UP is used as a main UP, and after receiving the first NS message, the first UP acquires a first virtual IP address from the first NS message. After each main UP acquires the first virtual IP address, it searches whether a virtual IP address identical to the first virtual IP address exists in the local interface. If yes, go to step 130; otherwise, the main UP discards the first NS message.
According to the foregoing example, the user terminal 1 generates and multicast-sends a first NS message, which includes a first virtual IP address (e.g., the virtual IP address of port4 is FE80:: 1). UP1 and UP2 receive the first NS message and acquire a first virtual IP address from the first NS message. UP3 receives and discards the first NS message.
After the UP1 and the UP2 acquire the first virtual IP address, whether a virtual IP address identical to the first virtual IP address exists is searched for on the local interface. If the UP1 exists, the step 130 is executed; if not, the first NS message is discarded.
And the user terminal 2 generates and multicasts a second NS message, wherein the second NS message comprises a second virtual IP address (for example, the virtual IP address of the port5 is FE80:: 2). UP1 and UP2 receive the second NS message and acquire the second virtual IP address from the second NS message. And the UP3 receives and discards the second NS message.
After the UP1 and the UP2 acquire the second virtual IP address, whether a virtual IP address identical to the second virtual IP address exists is searched for in the local interface. If the UP1 does not exist, the second NS message is discarded; if it is present in UP2, step 130 is executed.
Step 130, sending a first NA packet to the first user terminal, where the first NA packet includes the first virtual MAC address of the first interface obtained according to the first virtual IP address.
Specifically, according to the description in step 120, after the first UP acquires the first virtual IP address from the first NS packet, the first UP acquires the first virtual MAC address of the first interface where the first virtual IP address is located from the local address table according to the first virtual IP address.
According to the foregoing example, the UP1 obtains the first virtual MAC address of the port4 where the first virtual IP address is located (e.g., the virtual MAC address of the port4 is 1-1-1-1) from the local address table according to the first virtual IP address (e.g., the virtual IP address of the port4 is FE80:: 1).
The UP2 acquires a second virtual MAC address of port5 (e.g., the virtual MAC address of port5 is 2-2-2-2) of the port5 where the second virtual IP address is located from the local address table according to the second virtual IP address (e.g., the virtual IP address of port5 is FE80:: 2).
After acquiring the first virtual MAC address, the first UP generates a first Neighbor Advertisement (NA) packet, where the first NA packet includes the first virtual MAC address.
The first UP sends a first NA message to the first user terminal, and the first user terminal acquires a first virtual MAC address from the first NA message after receiving the first NA message.
And generating a default gateway route by the first user terminal according to the first virtual IP address and the first virtual MAC address.
According to the foregoing example, UP1 generates a first NA packet that includes the first virtual MAC address of port4 (e.g., the virtual MAC address of port4 is 1-1-1-1). UP1 sends a first NA message to the user terminal 1.
UP2 generates a second NA message that includes a second virtual MAC address of port5 (e.g., the virtual MAC address of port5 is 2-2-2-2). UP2 sends the second NA message to the user terminal 2.
At this time, the user terminal 1 and the user terminal 2 respectively obtain the virtual IP address and the virtual MAC address of the access gateway, and each user terminal generates a default gateway route.
Therefore, by applying the message processing method and apparatus provided in the embodiment of the present application, after the first user terminal has gone online through the first UP and has acquired the IPv6 address, the first UP sends a first RA message to the first user terminal, where the first RA message includes a first virtual IP address of the first interface, so that the first user terminal determines that the first UP serves as an access gateway; a first UP receives a first NS message sent by a first user terminal, wherein the first NS message comprises a first virtual IP address; and the first UP sends a first NA message to the first user terminal, wherein the first NA message comprises a first virtual MAC address of the first interface, which is acquired by the first UP according to the first virtual IP address.
Therefore, the first UP informs the first user terminal which is on-line and acquires the IPv6 address of the first virtual IP address and the first virtual MAC address of the first interface of the first UP, so that the first user terminal determines the first UP as an access gateway and then generates a default gateway route, and the problem of how to enable the user terminal to select the main UP as the gateway UP and learn the IP address of the gateway UP in the N:1 backup group is solved.
Optionally, before step 110, a process of the first UP receiving the CP and issuing the configuration packet is further included.
Specifically, the CP configures different virtual IP addresses and virtual MAC addresses at the interface where each main UP accesses the CP, respectively.
The CP sends a first configuration message to each main UP respectively, and each first configuration message comprises a configuration virtual address indication, an interface identifier, a virtual IP address and a virtual MAC address which are configured for the main UP by the CP. After each main UP receives the first configuration message, the configuration virtual address indication, the interface identification, the virtual IP address and the virtual MAC address are obtained from the first configuration message. According to the interface identifier, each main UP configures the virtual IP address and the virtual MAC address at the interface indicated by the interface identifier, that is, configures the virtual address at the interface where the main UP accesses the CP.
Further, according to the specification of the existing IPv6 protocol, the main UP includes an interface for accessing the CP, the interface having a link layer address; meanwhile, before using the interface, the main UP performs DAD detection on the link layer address of the interface. After the DAD detection is passed, the main UP may use the interface to perform communication interaction with the CP.
In the embodiment of the present application, after a link layer address of an interface where the main UP accesses the CP passes the DAD detection, the main UP takes effect of a virtual IP address and a virtual MAC address configured at the interface.
According to the above example, the CP configures different virtual IP addresses and virtual MAC addresses in port1 and port2, respectively. For example, the CP configures a virtual IP address of FE80::1 at port1 and a virtual MAC address of 1-1-1-1; the virtual IP address configured by the CP at port2 is FE80::2, and the virtual MAC address is 2-2-2-2.
The CP generates two first configuration messages, and each configuration message comprises a virtual address configuration indication, an interface identifier, a virtual IP address and a virtual MAC address, wherein the CP is respectively configured for port1 and port 2.
And the CP sends first configuration messages to the UP1 and the UP2 through the port1 and the port2 respectively.
After receiving the first configuration message, the UP1 acquires a configuration virtual address indication, an interface identifier, a virtual IP address and a virtual MAC address from the first configuration message, and configures the virtual IP address and the virtual MAC address at the port 4; similarly, UP2 configures the virtual IP address and the virtual MAC address at port 5.
Meanwhile, UP1 performs DAD detection on the link layer address of port4, and UP1 takes effect on the virtual IP address and the virtual MAC address configured at port4 after the DAD detection is passed; similarly, UP2 validates the virtual IP address configured at port5 as well as the virtual MAC address.
Optionally, in this embodiment of the present application, a process of switching between active and standby UP roles is further included.
Specifically, when the first UP fails, the CP downgrades the first UP to a standby UP, and at the same time, upgrades the second UP to a primary UP. It can be understood that a user terminal accessing the first UP needs to switch to the second UP. At this time, the CP generates a first notification packet and sends the first notification packet to the first UP. The first notification message includes a delete virtual address indication and an interface identifier of the first interface. And after receiving the first notification message, the first UP deletes the first virtual IP address and the first virtual MAC address configured at the first interface according to the virtual address deletion indication and the interface identifier of the first interface.
Meanwhile, the CP also configures a first virtual IP address and a first virtual MAC address at the interface where the second UP is accessed into the CP. And the CP generates a second notification message and sends the second notification message to the second UP. The second notification message includes a configuration virtual address indication, an interface identifier (e.g., of the second interface), the first virtual IP address, and the first virtual MAC address. And after receiving the second notification message, the second UP configures the first virtual IP address and the first virtual MAC address at the interface accessed to the CP according to the virtual address configuration indication and the interface identifier.
According to the foregoing example, when UP1 fails, CP downgrades UP1 to standby UP and upgrades UP3 to primary UP.
The CP generates a first notification message and sends the first notification message to the UP 1. The first notification message includes an indication to delete the virtual address (virtual IP address: FE80::1, virtual MAC address 1-1-1-1) and an interface identification. After receiving the first notification message, the UP1 deletes the virtual IP address and the virtual MAC address configured at the port4 according to the virtual address deletion instruction.
Meanwhile, the CP also configures a virtual IP address (e.g., FE80:: 1) and a virtual MAC address (e.g., 1-1-1-1) at port3. And the CP generates a second notification message and sends the second notification message to the UP3. The second notification message includes a configuration virtual address indication, an interface identification (e.g., port 6), a virtual IP address (e.g., FE80:: 1), and a virtual MAC address (e.g., 1-1-1-1). Upon receiving the second notification message, the UP3 configures a virtual IP address (e.g., FE80:: 1) and a virtual MAC address (e.g., 1-1-1-1) at port6 according to the configured virtual address indication.
The following describes the message processing method provided in the embodiment of the present application in detail. Referring to fig. 3, fig. 3 is a flowchart of another message processing method according to an embodiment of the present disclosure. The method is applied to the main UP. The message processing method provided by the embodiment of the application can comprise the following steps.
Step 310, after the first user terminal has configured the IPv6 address, receiving a first RS packet sent by the first user terminal.
Specifically, in the N:1 backup networking, a CP, a primary UP, and a backup UP are included. The number of the main UP is multiple, and the number of the standby UP is one, so that load sharing is realized among the N main UP, the N main UP is backed UP to the same standby UP, and once a link and equipment fault occurs, the user flow can be timely switched to the standby equipment and transmitted through the standby equipment.
The first user terminal is configured with an IPv6 address, and at this time, if the first user terminal is in advance of communicating with the external network device, it needs to acquire a gateway IP. And the first user terminal generates a first RS message and multicasts and sends the first RS message.
All UP in the N:1 backup networking receive the first RS message. It can be understood that, after receiving the first RS packet, the main UP processes a first Router Solicitation (RS) packet; and after the standby UP receives the first RS message, the standby UP does not process the first RS message and discards the first RS message.
In fig. 2, the N:1 backup mesh network includes CP, UP1, UP2, and UP3. Wherein UP1 and UP2 are main UP, and UP3 is standby UP. The CP comprises port1, port2 and port3; UP1 includes port4, UP2 includes port5, and UP3 includes port6.
The user terminal 1 is pre-communicating with the external network device, which virtually obtains the gateway IP. The user terminal 1 generates a first RS message and multicasts and sends the first RS message. UP1, UP2 and UP3 all receive the first RS message. UP1 and UP2 execute the subsequent steps, and UP3 discards the first RS message.
Step 320, if it is determined that the first user equipment is not on-line, sending the first RS packet to a CP, so that the CP selects one master UP from a plurality of master UPs as an access gateway of the first user equipment.
Specifically, according to the description of step 310, after each main UP receives the first RS packet, it identifies whether the first user terminal is an online terminal. And if the first user terminal is determined not to be on-line, each main UP sends a first RS message to the CP.
After receiving the multiple first RS messages, the CP selects one main UP from the multiple main UPs as an access gateway of the first user terminal according to a load sharing algorithm of the user, for example, according to the size of the MAC address of each main UP or the number of main UP access user terminals. For example, the CP selects the first UP as the access gateway for the first user terminal.
According to the foregoing example, after receiving the first RS packet, the UP1 and UP2 search whether the user information data of the user terminal 1 has been stored locally, where the user information data includes an IP address, an MAC address, a VLAN, and the like. If the user information data of the user terminal 1 is not stored locally, the UP1 and the UP2 determine that the user terminal 1 is not on-line, and the UP1 and the UP2 respectively forward the first RS message to the CP.
After receiving the multiple first RS messages, the CP selects UP1 as an access gateway of the user terminal 1 according to a load sharing algorithm of the user.
Step 330, when the first master UP determines to be the access gateway of the first user equipment, sending a first RA packet to the first user equipment, where the first RA packet includes a first virtual IP address and a first virtual MAC address of a first interface, so that the first user equipment determines that the first master UP is the access gateway.
Specifically, according to the description of step 320, after the CP determines that the first UP is used as the access gateway of the first user terminal, the first UP may send the first RA packet to the first user terminal in the following two ways, where the first RA packet includes the first virtual IP address and the first virtual MAC address of the first interface. The first interface is an interface for the first UP to access the CP.
And after receiving the first RA message, the first user terminal acquires a first virtual IP address and a first virtual MAC address from the first RA message. And the first user terminal determines the first UP as the own access gateway and generates a default gateway route according to the first virtual IP address and the first virtual MAC address.
In an implementation manner, after determining that the first UP is used as an access gateway of a first user terminal, the CP generates a first RA packet, where the first RA packet includes a first virtual IP address and a first virtual MAC address of a first interface.
And the CP sends a first RA message to the first UP, and the first UP sends the first RA message to the first user terminal after receiving the first RA message through the first interface.
According to the foregoing example, after the CP determines that the UP1 is an access gateway of the user terminal 1, a first RA message is generated, where the first RA message includes a virtual IP address (e.g., FE80:: 1) and a virtual MAC address (e.g., 1-1-1-1) of port 4.
Through port1, the CP sends a first RA packet to UP 1. Through port4, UP1 receives a first RA message. UP1 sends a first RA message to user terminal 1.
In another implementation manner, after determining that the first UP is used as an access gateway of the first user terminal, the CP generates a notification message, where the notification message is used to enable the first UP to generate and send a first RA message to the first user terminal. And according to the notification message, the first UP generates and sends a first RA message to the first user terminal, wherein the first RA message comprises a first virtual IP address and a first virtual MAC address of the first interface.
According to the foregoing example, after the CP determines that the UP1 is the access gateway of the user terminal 1, a notification message is generated. Upon receiving the notification message, the UP1 generates a first RA message, where the first RA includes a virtual IP address (e.g., FE80:: 1) including port4 and a virtual MAC address (e.g., 1-1-1-1).
UP1 sends a first RA message to user terminal 1.
Therefore, by applying the message processing method provided by the embodiment of the present application, after the first user terminal has configured the IPv6 address, the main UP receives the first RS message sent by the first user terminal; if the first user terminal is determined not to be on-line, the main UP sends a first RS message to the CP, so that the CP selects one main UP from the plurality of main UPs as an access gateway of the first user terminal; when the first master UP determines to be the access gateway of the first user terminal, the first master UP sends a first RA message to the first user terminal, where the first RA message includes a first virtual IP address and a first virtual MAC address of the first interface, so that the first user terminal determines that the first master UP serves as the access gateway.
Therefore, the first main UP informs the first user terminal configured with the IPv6 address of the first virtual IP address and the first virtual MAC address of the first interface of the first main UP, so that the first user terminal determines the first UP to be used as an access gateway and then generates a default gateway route, and the problem of how to enable the user terminal to select the main UP to be used as the gateway UP and learn the IP address of the gateway UP in the N:1 backup group network is solved.
Optionally, in this embodiment of the present application, a process of triggering an online through an IP flow after the user terminal obtains the gateway address is further included.
Specifically, after acquiring the address of the access gateway, the first user terminal generates and sends a service packet to the first master UP to trigger an online process.
After receiving the service message, the first main UP identifies whether the first user terminal is an online terminal. And if the first user terminal is determined not to be on line, the first main UP sends a service message to the CP. It is understood that the process of the first master UP identifying whether the first user terminal is an online terminal has been described in the foregoing embodiments, and will not be repeated herein.
And after receiving the service message, the CP starts the online process of the first user terminal.
Optionally, in this embodiment of the present application, the method further includes a process in which each main UP receives the CP and issues the configuration packet, and the main UP role is switched. It can be understood that, the processes of sending the configuration message by each main UP receiving the CP and switching the roles of the main UP and the standby UP have been described in the foregoing embodiments, and are not repeated here.
The following describes the message processing method provided in the embodiment of the present application in detail. Referring to fig. 4, fig. 4 is a flowchart of another message processing method provided in the embodiment of the present application. The method is applied to the CP. The message processing method provided by the embodiment of the application can comprise the following steps.
Step 410, different virtual IP addresses and virtual MAC addresses are configured at the interface accessing each main UP, respectively.
Specifically, in the N:1 backup networking, a CP, a first UP, and a second UP are included. The first UP is a main UP and N in number, and the second UP is a standby UP and one in number. Therefore, load sharing is realized among the N main UPs, backup is carried out on the same standby UP, and once a link and equipment failure occurs, user flow can be timely switched to the standby equipment and transmitted through the standby equipment.
Each main UP is accessed to different interfaces of the CP, and the CP is respectively configured with different virtual IP addresses and virtual MAC addresses at the interfaces accessed to each main UP.
In fig. 2, the N:1 backup mesh network includes CP, UP1, UP2, and UP3. Wherein, UP1 and UP2 are main UP, and UP3 is standby UP. The CP comprises port1, port2 and port3; UP1 includes port4, UP2 includes port5, and UP3 includes port6.
UP1 accesses port1 through port 4; UP2 accesses port2 through port 5; UP3 accesses port3 through port6.
The CP configures different virtual IP addresses and virtual MAC addresses for port1 and port2, respectively. For example, the virtual IP address of port1 is FE80::1, and the virtual MAC address is 1-1-1-1; the virtual IP address of port2 is FE80::2, and the virtual MAC address is 2-2-2-2.
CP temporarily does not configure port3 with virtual IP addresses and virtual MAC addresses.
Step 420, respectively sending a first configuration packet to each main UP, where each first configuration packet includes a virtual IP address and a virtual MAC address configured by the CP for the main UP, so that each main UP configures the virtual IP address and the virtual MAC address at an interface where the main UP accesses the CP.
Specifically, according to the description of step 410, after the CP configures different virtual IP addresses and virtual MAC addresses for the interfaces accessing each main UP, the CP generates a plurality of first configuration packets, where each first configuration packet includes the virtual IP address and the virtual MAC address configured by the CP for each main UP.
It can be understood that each first configuration packet configuration further includes a virtual address indication and an interface identifier, where the interface identifier is an identifier corresponding to an interface through which the main UP accesses the CP.
CP sends the first configuration message to each main UP separately, after each main UP receives the first configuration message, acquires the virtual address indication, interface identification, virtual IP address and virtual MAC address from the first configuration message. According to the interface identification, each main UP configures the virtual IP address and the virtual MAC address at the interface indicated by the interface identification, namely configures the virtual address at the interface accessed to the CP by itself.
Further, according to the specification of the existing IPv6 protocol, the main UP includes an interface for accessing the CP, the interface having a link layer address; meanwhile, before using the interface, the main UP performs DAD detection on the link layer address of the interface. After the DAD detection is passed, the main UP may use the interface to perform communication interaction with the CP.
In the embodiment of the present application, after a link layer address of an interface where the main UP accesses the CP passes the DAD detection, the main UP takes effect of a virtual IP address and a virtual MAC address configured at the interface.
According to the foregoing example, the CP generates two first configuration messages, where each configuration message includes a virtual address configuration indication, an interface identifier, a virtual IP address and a virtual MAC address, where the CP is configured for port1 and port2 respectively.
And the CP sends first configuration messages to the UP1 and the UP2 through the port1 and the port2 respectively.
After receiving the first configuration packet, the UP1 acquires a configuration virtual address indication, an interface identifier (e.g., port4, port 5), a virtual IP address, and a virtual MAC address from the first configuration packet, and configures the virtual IP address and the virtual MAC address at port 4; similarly, UP2 configures a virtual IP address and a virtual MAC address at port 5.
Meanwhile, UP1 performs DAD detection on the link layer address of port4, and UP1 takes effect on the virtual IP address and the virtual MAC address configured at port4 after the DAD detection is passed; similarly, UP2 validates the virtual IP address configured at port5 as well as the virtual MAC address.
Therefore, by applying the message processing method provided by the embodiment of the application, the CP configures different virtual IP addresses and virtual MAC addresses at the interface accessing each main UP; the CP respectively sends a first configuration message to each main UP, and each first configuration message comprises a virtual IP address and a virtual MAC address which are configured by the CP for the main UP, so that each main UP configures the virtual IP address and the virtual MAC address at an interface of the main UP accessed to the CP.
Thus, the CP allocates different virtual addresses for each main UP, the main UP configures the virtual address for the interface of the main UP accessing the CP, and informs the virtual address to the user terminal in the subsequent process, so that the user terminal determines a certain UP as an access gateway and then generates a default gateway route, thereby solving the problem of how to enable the user terminal to select the main UP as the gateway UP and learn the IP address of the gateway UP in the N:1 backup network.
Optionally, in this embodiment of the present application, the method further includes a process of switching between the main and standby UP roles, determining an access gateway of the user terminal according to the received RS packet, and triggering the user terminal to go online according to the received service packet. It can be understood that the process of switching between the main UP role and the standby UP role, determining the access gateway of the user terminal according to the received RS packet, and triggering the user terminal to go online according to the received service packet is described in the foregoing embodiments, and will not be repeated here.
Based on the same inventive concept, the embodiment of the application also provides a message processing device corresponding to the message processing method. Referring to fig. 5, fig. 5 is a structural diagram of a message processing apparatus according to an embodiment of the present disclosure. The device is applied to a first UP, the first UP is positioned in an N:1 backup networking, the N:1 backup networking also comprises a second UP, the first UP is a main UP and comprises a first interface, and the second UP is a backup UP, and the device comprises:
a sending unit 510, configured to send a first RA packet to a first user terminal after the first user terminal has been on-line through a first UP and has acquired an IPv6 address, where the first RA packet includes a first virtual IP address of the first interface, so that the first user terminal determines that the first UP serves as an access gateway;
a receiving unit 520, configured to receive a first NS packet sent by the first user terminal, where the first NS packet includes the first virtual IP address;
the sending unit 510 is further configured to send a first NA packet to the first user terminal, where the first NA packet includes the first virtual MAC address of the first interface, which is obtained according to the first virtual IP address.
Optionally, the receiving unit 520 is further configured to receive a first configuration packet sent by the CP, where the first configuration packet includes a configuration virtual address indication, an interface identifier of a first interface, the first virtual IP address, and a first virtual MAC address;
the device further comprises: a configuration unit (not shown in the figure), configured to configure the first virtual IP address and the first virtual MAC address at the first interface according to the indication of the configured virtual address and an interface identifier of the first interface, where the first interface is an interface through which the first UP accesses the CP;
an validating unit (not shown in the figure), configured to validate the first virtual IP address and the first virtual MAC address after the link layer address of the first interface passes the DAD detection.
Optionally, the receiving unit 520 is further configured to receive a first notification packet sent by a CP when the first UP is downgraded to a standby UP and the second UP is upgraded to a main UP, where the first notification packet includes a virtual address deletion indication and an interface identifier of a first interface;
the device further comprises: a deleting unit (not shown in the figure), configured to delete the first virtual IP address and the first virtual MAC address from the first interface according to the indication of the deleted virtual address and the interface identifier of the first interface.
Therefore, by applying the message processing apparatus provided in this embodiment of the present application, after the first user terminal has gone online via the first UP and has acquired the IPv6 address, the first UP sends a first RA message to the first user terminal, where the first RA message includes a first virtual IP address of the first interface, so that the first user terminal determines that the first UP serves as an access gateway; a first UP receives a first NS message sent by a first user terminal, wherein the first NS message comprises a first virtual IP address; and the first UP sends a first NA message to the first user terminal, wherein the first NA message comprises a first virtual MAC address of the first interface, which is acquired by the first UP according to the first virtual IP address.
Therefore, the first UP informs the first user terminal which is on-line and acquires the IPv6 address of the first virtual IP address and the first virtual MAC address of the first interface of the first UP, so that the first user terminal determines the first UP as an access gateway and then generates a default gateway route, and the problem of how to enable the user terminal to select the main UP as the gateway UP and learn the IP address of the gateway UP in the N:1 backup group network is solved.
Based on the same inventive concept, the embodiment of the application also provides a message processing device corresponding to the message processing method. Referring to fig. 6, fig. 6 is a structural diagram of another message processing apparatus according to an embodiment of the present application. The device is applied to a main UP, the main UP is positioned in an N:1 backup networking network, the N:1 backup networking network further comprises standby UPs, the number of the main UPs is multiple, the number of the standby UPs is one, and the device comprises:
a receiving unit 610, configured to receive a first RS packet sent by a first user terminal after the first user terminal has configured an IPv6 address;
a sending unit 620, configured to send the first RS packet to a CP if it is determined that the first user equipment is not online, so that the CP selects one main UP from multiple main UPs as an access gateway of the first user equipment;
the sending unit 620 is further configured to send, when determining that the first master UP serves as an access gateway of the first user terminal, a first RA packet to the first user terminal, where the first RA packet includes a first virtual IP address and a first virtual MAC address of a first interface, so that the first user terminal determines that the first master UP serves as the access gateway.
Optionally, the receiving unit 610 is further configured to receive a service packet sent by the first user terminal;
the sending unit 620 is further configured to send the service packet to the CP if it is determined that the first user terminal is not on-line, so that the CP performs on-line processing on the first user terminal through the service packet.
Optionally, the receiving unit 610 is further configured to receive a first configuration packet sent by a CP, where the first configuration packet includes a virtual address configuration indication, an interface identifier of an interface accessing the CP, a virtual IP address of the interface, and a virtual MAC address;
the device further comprises: a configuration unit (not shown in the figure) for configuring the virtual IP address and the virtual MAC address at the interface;
and an validating unit (not shown in the figure) configured to validate the virtual IP address and the virtual MAC address after the link layer address of the interface passes the DAD detection.
Optionally, the receiving unit 610 is further configured to receive a first notification packet sent by the CP when the main UP is downgraded to a standby UP and the standby UP is upgraded to a main UP, where the first notification packet includes a virtual address deletion indication and an interface identifier of an interface where the main UP accesses the CP;
the device further comprises: a deleting unit (not shown in the figure), configured to delete the virtual IP address and the virtual MAC address from the interface according to a virtual address deletion instruction and an interface identifier of an interface where the main UP accesses the CP.
Therefore, by applying the message processing apparatus provided in the embodiment of the present application, after the first user terminal has configured the IPv6 address, the main UP receives a first RS message sent by the first user terminal; if the first user terminal is determined not to be on-line, the main UP sends a first RS message to the CP, so that the CP selects one main UP from the plurality of main UPs as an access gateway of the first user terminal; when the first master UP determines to be the access gateway of the first user terminal, the first master UP sends a first RA message to the first user terminal, where the first RA message includes a first virtual IP address and a first virtual MAC address of the first interface, so that the first user terminal determines that the first master UP serves as the access gateway.
Therefore, the first main UP informs the first user terminal configured with the IPv6 address of the first virtual IP address and the first virtual MAC address of the first interface of the first main UP, so that the first user terminal determines the first UP to be used as an access gateway and then generates a default gateway route, and the problem of how to enable the user terminal to select the main UP to be used as the gateway UP and learn the IP address of the gateway UP in the N:1 backup group network is solved.
Based on the same inventive concept, the embodiment of the application also provides a message processing device corresponding to the message processing method. Referring to fig. 7, fig. 7 is a structural diagram of another message processing apparatus according to an embodiment of the present application. The device is applied to a CP, the CP is positioned in an N:1 backup networking, the N:1 backup networking also comprises a plurality of main UPs and a backup UP, and the device comprises:
a configuration unit 710, configured to configure different virtual IP addresses and virtual MAC addresses at interfaces accessing each main UP, respectively;
a sending unit 720, configured to send a first configuration packet to each main UP, where each first configuration packet includes a virtual IP address and a virtual MAC address configured by the CP for the main UP, so that each main UP configures the virtual IP address and the virtual MAC address at an interface where the main UP accesses the CP.
Optionally, the sending unit 720 is further configured to send, when the main UP is downgraded to the standby UP and the standby UP is upgraded to the main UP, a first notification packet to the new standby UP, where the first notification packet includes a virtual address deletion instruction and an interface identifier of the first interface, so that the new standby UP deletes the configured first virtual IP address and the first virtual MAC address from the interface according to the virtual address deletion instruction and the interface identifier of the first interface;
the configuring unit 710 is further configured to configure the first virtual IP address and the first virtual MAC address at an interface where a new main UP accesses the CP;
the sending unit 720 is further configured to send a second notification packet to the new main UP, where the second notification packet includes a virtual address configuration indication, an interface identifier of a second interface, the first virtual IP address, and a first virtual MAC address, so that the new main UP configures the first virtual IP address and the first virtual MAC address at a second interface where the new main UP accesses the CP.
Optionally, the apparatus further comprises: a receiving unit (not shown in the figure), configured to receive a first RS packet sent by each of the plurality of main UPs, where the first RS packet is multicast-sent to the plurality of main UPs by a first user equipment;
a selecting unit (not shown in the figure) configured to select, by using a load sharing algorithm, a first master UP from the plurality of master UPs as an access gateway of the first user equipment;
the sending unit 720 is further configured to, when determining that a first master UP is used as an access gateway of the first user terminal, send a first RA packet to the first master UP, where the first RA packet includes a second virtual IP address and a second virtual MAC address of a third interface, so that the first master UP sends the first RA packet to the first user terminal, and the first user terminal determines that the first master UP is used as an access gateway;
the third interface is an interface for the first main UP to access the CP.
Optionally, the receiving unit (not shown in the figure) is further configured to receive a service packet, which is forwarded by the first master UP and sent by the first user terminal;
the device further comprises: and a processing unit (not shown in the figure), configured to perform online processing on the first user terminal according to the service packet.
Therefore, by applying the message processing apparatus provided in the embodiment of the present application, the CP configures different virtual IP addresses and virtual MAC addresses at the interface accessing each main UP, respectively; the CP respectively sends a first configuration message to each main UP, and each first configuration message comprises a virtual IP address and a virtual MAC address which are configured by the CP for the main UP, so that each main UP configures the virtual IP address and the virtual MAC address at an interface of the main UP accessed to the CP.
In this way, the CP allocates different virtual addresses for each main UP, the main UP configures the virtual address for the interface of the main UP accessing the CP, and in the subsequent process, the virtual address is informed to the user terminal, so that the user terminal determines a certain UP as an access gateway and then generates a default gateway route, thereby solving the problem of how to enable the user terminal to select the main UP as the gateway UP and learn the IP address of the gateway UP in the N:1 backup network.
Based on the same inventive concept, the embodiment of the present application further provides a network device, as shown in fig. 8, including a processor 810, a transceiver 820 and a machine-readable storage medium 830, where the machine-readable storage medium 830 stores machine-executable instructions capable of being executed by the processor 810, and the processor 810 is caused by the machine-executable instructions to perform the message processing method provided by the embodiment of the present application. The message processing apparatus shown in fig. 5, 6, and 7 may be implemented by using a network device hardware structure shown in fig. 8.
The computer-readable storage medium 830 may include a Random Access Memory (RAM) and a Non-volatile Memory (NVM), such as at least one disk Memory. Alternatively, the computer-readable storage medium 830 may be at least one memory device located remotely from the processor 810.
The Processor 810 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; the Integrated Circuit can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the embodiment of the present application, the processor 810 is caused by machine executable instructions by reading the machine executable instructions stored in the machine readable storage medium 830, so that the processor 810 itself and the calling transceiver 820 can be implemented to execute the message processing method described in the embodiment of the present application.
In addition, the embodiment of the present application provides a machine-readable storage medium 830, where the machine-readable storage medium 830 stores machine-executable instructions, and when the machine-executable instructions are called and executed by the processor 810, the machine-executable instructions cause the processor 810 itself and the calling transceiver 820 to execute the message processing method described in the foregoing embodiment of the present application.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
As for the message processing apparatus and the machine-readable storage medium embodiment, the content of the related method is basically similar to that of the foregoing method embodiment, so that the description is relatively simple, and reference may be made to the partial description of the method embodiment for the related part.
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 (13)

1. A message processing method is applied to a first UP, the first UP is in an N:1 backup network group, the N:1 backup network group further comprises a second UP, the first UP is a main UP and comprises a first interface, and the second UP is a standby UP, and the method comprises the following steps:
when a first user terminal is on-line through a first UP and acquires an IPv6 address, sending a first RA message to the first user terminal, wherein the first RA message comprises a first virtual IP address of a first interface, so that the first user terminal determines the first UP as an access gateway;
receiving a first NS message sent by the first user terminal, wherein the first NS message comprises the first virtual IP address;
and sending a first NA message to the first user terminal, wherein the first NA message comprises a first virtual MAC address of the first interface acquired according to the first virtual IP address.
2. The method of claim 1, wherein before the first user equipment sends the first RA packet to the first user equipment after the first user equipment has come online via the first UP and acquired the IPv6 address, the method further comprises:
receiving a first configuration message sent by a CP, wherein the first configuration message comprises a configuration virtual address indication, an interface identifier of a first interface, the first virtual IP address and a first virtual MAC address;
configuring the first virtual IP address and the first virtual MAC address at a first interface according to the virtual address configuration indication and an interface identifier of the first interface, wherein the first interface is an interface for accessing the first UP to the CP;
and when the link layer address of the first interface passes the DAD detection, the first virtual IP address and the first virtual MAC address are validated.
3. The method of claim 1, further comprising:
when the first UP is degraded to be standby UP and the second UP is upgraded to be main UP, receiving a first notification message sent by a CP (provider control point), wherein the first notification message comprises a virtual address deletion indication and an interface identifier of a first interface;
and deleting the first virtual IP address and the first virtual MAC address from the first interface according to the virtual address deletion instruction and the interface identifier of the first interface.
4. A message processing method is characterized in that the method is applied to a main UP, the main UP is positioned in an N:1 backup network, the N:1 backup network further comprises standby UPs, the number of the main UPs is multiple, the number of the standby UPs is one, and the method comprises the following steps:
after a first user terminal is configured with an IPv6 address, receiving a first RS message sent by the first user terminal;
if the first user terminal is determined not to be on-line, sending the first RS message to a CP (content provider) so that the CP can select one main UP from a plurality of main UPs as an access gateway of the first user terminal;
when the first main UP is determined to be used as the access gateway of the first user terminal, a first RA message is sent to the first user terminal, wherein the first RA message comprises a first virtual IP address and a first virtual MAC address of a first interface, so that the first user terminal determines the first main UP to be used as the access gateway.
5. The method of claim 4, further comprising:
receiving a service message sent by the first user terminal;
and if the first user terminal is determined not to be on-line, sending the service message to the CP, so that the CP carries out on-line processing on the first user terminal through the service message.
6. The method according to claim 4, wherein before the first RS packet sent by the first user equipment is received after the first user equipment has configured the IPv6 address, the method further comprises:
receiving a first configuration message sent by a CP, wherein the first configuration message comprises a virtual address configuration indication, an interface identifier of an interface accessed to the CP, a virtual IP address of the interface and a virtual MAC address;
configuring the virtual IP address and the virtual MAC address at the interface;
and when the link layer address of the interface passes the DAD detection, the virtual IP address and the virtual MAC address are validated.
7. The method of claim 6, further comprising:
when the main UP is degraded to be standby UP and the standby UP is upgraded to be main UP, receiving a first notification message sent by the CP, wherein the first notification message comprises a virtual address deletion indication and an interface identifier of an interface of the CP accessed by the main UP;
and deleting the virtual IP address and the virtual MAC address from the interface according to the virtual address deletion indication and the interface identifier of the interface of the main UP accessing the CP.
8. A message processing method is characterized in that the method is applied to a CP, the CP is positioned in an N:1 backup network, the N:1 backup network also comprises a plurality of main UPs and a backup UP, and the method comprises the following steps:
configuring different virtual IP addresses and virtual MAC addresses at interfaces accessed to each main UP respectively;
respectively sending a first configuration message to each main UP, wherein each first configuration message comprises a virtual IP address and a virtual MAC address which are configured for the main UP by the CP, so that each main UP configures the virtual IP address and the virtual MAC address at an interface of the main UP accessing to the CP;
the method further comprises the following steps:
receiving a first RS message sent by each main UP in a plurality of main UPs, wherein the first RS message is multicast and sent to the plurality of main UPs by a first user terminal;
selecting a first main UP from a plurality of main UPs as an access gateway of the first user terminal through a load sharing algorithm;
when a first main UP is determined to be used as an access gateway of the first user terminal, sending a first RA message to the first main UP, wherein the first RA message comprises a second virtual IP address and a second virtual MAC address of a third interface, so that the first main UP sends the first RA message to the first user terminal, and the first user terminal determines the first main UP to be used as the access gateway;
the third interface is an interface through which the first main UP accesses the CP.
9. The method of claim 8, further comprising:
when the main UP is degraded to be the standby UP and the standby UP is upgraded to be the main UP, sending a first notification message to a new standby UP, wherein the first notification message comprises a virtual address deletion indication and an interface identifier of a first interface, so that the new standby UP deletes a configured first virtual IP address and a configured first virtual MAC address from the interface according to the virtual address deletion indication and the interface identifier of the first interface;
configuring the first virtual IP address and a first virtual MAC address at an interface where a new main UP accesses the CP;
and sending a second notification message to the new main UP, wherein the second notification message comprises a virtual address configuration indication, an interface identifier of a second interface, the first virtual IP address and the first virtual MAC address, so that the new main UP configures the first virtual IP address and the first virtual MAC address at a second interface of the new main UP accessing the CP.
10. The method of claim 8, further comprising:
receiving a service message which is forwarded by the first main UP and is sent by the first user terminal;
and performing online processing on the first user terminal according to the service message.
11. A message processing device is applied to a first UP, the first UP is in an N:1 backup networking, the N:1 backup networking further comprises a second UP, the first UP is a main UP and comprises a first interface, and the second UP is a standby UP, and the message processing device comprises:
a sending unit, configured to send a first RA packet to a first user terminal after the first user terminal has gone online via a first UP and has acquired an IPv6 address, where the first RA packet includes a first virtual IP address of the first interface, so that the first user terminal determines that the first UP serves as an access gateway;
a receiving unit, configured to receive a first NS packet sent by the first user terminal, where the first NS packet includes the first virtual IP address;
the sending unit is further configured to send a first NA packet to the first user terminal, where the first NA packet includes the first virtual MAC address of the first interface acquired according to the first virtual IP address.
12. A message processing device is characterized in that the device is applied to a main UP, the main UP is in an N:1 backup networking, the N:1 backup networking further comprises a plurality of standby UPs, the number of the main UPs is more than one, and the number of the standby UPs is one, the device comprises:
the receiving unit is used for receiving a first RS message sent by a first user terminal after the first user terminal is configured with an IPv6 address;
a sending unit, configured to send the first RS packet to a CP if it is determined that the first user terminal is not on-line, so that the CP selects one master UP from multiple master UPs as an access gateway of the first user terminal;
the sending unit is further configured to send, when it is determined that the first master UP serves as the access gateway of the first user terminal, a first RA packet to the first user terminal, where the first RA packet includes a first virtual IP address and a first virtual MAC address of a first interface, so that the first user terminal determines that the first master UP serves as the access gateway.
13. A message processing device is characterized in that the device is applied to a CP, the CP is positioned in an N:1 backup network, the N:1 backup network further comprises a plurality of main UPs and a backup UP, and the device comprises:
a configuration unit, configured to configure different virtual IP addresses and virtual MAC addresses at an interface accessed to each main UP;
a sending unit, configured to send a first configuration packet to each main UP, where each first configuration packet includes a virtual IP address and a virtual MAC address configured by the CP for the main UP, so that each main UP configures the virtual IP address and the virtual MAC address at an interface where the main UP accesses the CP;
the device further comprises: a receiving unit, configured to receive a first RS packet sent by each of multiple main UPs, where the first RS packet is multicast-sent to multiple main UPs by a first user equipment;
a selecting unit, configured to select, through a load sharing algorithm, a first master UP from multiple master UPs as an access gateway of the first user equipment;
the sending unit is further configured to send, when determining a first master UP as an access gateway of the first user terminal, a first RA packet to the first master UP, where the first RA packet includes a second virtual IP address and a second virtual MAC address of a third interface, so that the first master UP sends the first RA packet to the first user terminal, and the first user terminal determines the first master UP as the access gateway;
the third interface is an interface through which the first main UP accesses the CP.
CN202111060026.1A 2021-09-10 2021-09-10 Message processing method and device Active CN113992557B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111060026.1A CN113992557B (en) 2021-09-10 2021-09-10 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111060026.1A CN113992557B (en) 2021-09-10 2021-09-10 Message processing method and device

Publications (2)

Publication Number Publication Date
CN113992557A CN113992557A (en) 2022-01-28
CN113992557B true CN113992557B (en) 2023-03-31

Family

ID=79735551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111060026.1A Active CN113992557B (en) 2021-09-10 2021-09-10 Message processing method and device

Country Status (1)

Country Link
CN (1) CN113992557B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948150A (en) * 2017-11-22 2018-04-20 新华三技术有限公司 Message forwarding method and device
CN110417840A (en) * 2018-04-28 2019-11-05 华为技术有限公司 A kind of information processing method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011157145A2 (en) * 2011-05-31 2011-12-22 华为技术有限公司 Main/backup switching method between communication device, communication device, system and service request device
CN102752209B (en) * 2012-07-09 2015-09-02 杭州华三通信技术有限公司 Realize address fast switch over method and the routing forwarding equipment of backup services
CN105791072A (en) * 2014-12-22 2016-07-20 华为数字技术(苏州)有限公司 Access method and device of Ethernet virtual network
WO2018058618A1 (en) * 2016-09-30 2018-04-05 华为技术有限公司 Fault processing method and device
CN108667695B (en) * 2017-09-06 2020-12-29 新华三技术有限公司 Backup method and device for BRAS transfer control separation
US10728174B2 (en) * 2018-03-27 2020-07-28 Nicira, Inc. Incorporating layer 2 service between two interfaces of gateway device
CN111953607B (en) * 2020-07-17 2022-10-21 新华三技术有限公司 Method and device for updating route
CN113285874B (en) * 2021-05-20 2022-03-25 烽火通信科技股份有限公司 Gateway backup method and device based on VRRP single instance

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948150A (en) * 2017-11-22 2018-04-20 新华三技术有限公司 Message forwarding method and device
CN110417840A (en) * 2018-04-28 2019-11-05 华为技术有限公司 A kind of information processing method and device

Also Published As

Publication number Publication date
CN113992557A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
US11533249B2 (en) Route processing method and apparatus, and data transmission method and apparatus
US10771434B1 (en) Route signaling driven service management
US10686749B2 (en) Packet sending method and network device
CN109218178B (en) Message processing method and network equipment
US9380111B2 (en) Feature peer network with scalable state information
US10735309B2 (en) Traffic classifier, service routing trigger, and packet processing method and system
EP3588872A1 (en) Evpn packet processing method, device and system
US9985875B1 (en) Route signalling based resilient application overlay network
EP2947907B1 (en) Startup configuration method in base station, base station and server
EP3605968B1 (en) N:1 stateful application gateway redundancy model
US8699327B2 (en) Multipath virtual router redundancy
CN111510378A (en) EVPN message processing method, device and system
EP3223476B1 (en) Method, system, and apparatus for preventing tromboning in inter-subnet traffic within data center architectures
CN110945837A (en) Optimizing service node monitoring in SDN
WO2017186122A1 (en) Traffic scheduling
CN107566292B (en) Message forwarding method and device
WO2018068588A1 (en) Method and software-defined networking (sdn) controller for providing multicast service
CN111614505B (en) Message processing method and gateway equipment
EP3806404A1 (en) Communication method, device and system for avoiding loop
CN107896182B (en) Message forwarding method and device
WO2022143818A1 (en) Fault processing method, control plane network element, steering decision-making network element and related device
US11863394B2 (en) Connectivity detection session creation method, network device, and system
CN113992557B (en) Message processing method and device
CN113794641B (en) Message processing method and device
CN116137582A (en) CUPS BNG-based packet forwarding system, method and non-transitory computer readable storage medium

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