CN109412850B - Message subscription control method and device - Google Patents

Message subscription control method and device Download PDF

Info

Publication number
CN109412850B
CN109412850B CN201811250590.8A CN201811250590A CN109412850B CN 109412850 B CN109412850 B CN 109412850B CN 201811250590 A CN201811250590 A CN 201811250590A CN 109412850 B CN109412850 B CN 109412850B
Authority
CN
China
Prior art keywords
network device
message
network
message subscription
subscription
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
CN201811250590.8A
Other languages
Chinese (zh)
Other versions
CN109412850A (en
Inventor
宋小恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd Hefei Branch
Original Assignee
New H3C Technologies Co Ltd Hefei Branch
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd Hefei Branch filed Critical New H3C Technologies Co Ltd Hefei Branch
Priority to CN201811250590.8A priority Critical patent/CN109412850B/en
Publication of CN109412850A publication Critical patent/CN109412850A/en
Application granted granted Critical
Publication of CN109412850B publication Critical patent/CN109412850B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a message subscription method and a device, wherein a network system comprises a controller and a plurality of network devices; the controller is used for acquiring a message subscription policy configured for a first network device in the plurality of network devices and sending the message subscription policy to the first network device; the first network equipment is used for sending a message subscription notification to the second network equipment according to the message subscription policy, wherein the message subscription notification comprises a message which needs to be acquired from the second network equipment; the second network device is used for sending corresponding messages to the first network device according to the received message subscription notification. The controller issues the message subscription strategy to the first network equipment, and the first network equipment subscribes the required information to the second network equipment according to the message subscription strategy, so that the controller can interfere the message transmission among the network equipment in a weak control mode, and the control capability of the network system is improved.

Description

Message subscription control method and device
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a message subscription control method and apparatus.
Background
In an SDN (Software Defined Network) architecture, flexible control of Network traffic is achieved by separating a control plane and a forwarding plane. Under such an architecture, these network devices are often controlled by a controller responsible for issuing configurations to data forwarding nodes in the network.
In the prior art, the control mode of the controller may be divided into a strong control mode and a weak control mode, wherein in the weak control mode, the controller is only responsible for configuration and delivery, so as to implement automatic deployment of the network, but does not participate in forwarding control of the network devices, and instead, the network devices learn routing by themselves. In this case, one network device can only passively receive communication-related messages from other network devices, and then filter unwanted messages through the filtering rules configured by the network device, and the controller cannot interfere with the forwarding control of the network device, resulting in insufficient supervision capability on the network.
Disclosure of Invention
In a first aspect, the present application provides a message subscription control method, applied to a first network device in a network system, where the method includes:
receiving a message subscription policy configured for the first network device from a controller, wherein the message subscription policy comprises a message which the first network device needs to acquire from a second network device in the network system;
and sending a message subscription notification to the second network device according to the message subscription policy, wherein the message subscription notification includes a message which needs to be acquired from the second network device, so that the second network device sends a corresponding message to the first network device according to the message subscription notification.
Optionally, the message subscription notification includes a type of routing information that needs to be acquired from the second network device.
Optionally, the message subscription notification includes a type of communication status event of the second network device that needs to be acquired from the second network device.
Optionally, the method further comprises:
and sending a unsubscribe notification to the second network equipment, wherein the unsubscribe notification comprises a message which is no longer required to be acquired from the second network equipment, so that the second network equipment cancels the sending of the corresponding message to the first network equipment according to the unsubscribe notification.
In a second aspect, the present application provides a message subscription control method, which is applied to a controller, and includes:
the controller determining a role of a network device;
determining a message subscription strategy corresponding to the network equipment according to the role information of the network equipment;
and issuing corresponding message subscription strategies to the network equipment with different roles, so that the network equipment receiving the message subscription strategies subscribes messages to other network equipment according to the message subscription strategies. In a third aspect, the present application provides a message subscription control apparatus, applied to a first network device in a network system, where the apparatus includes:
a policy obtaining module, configured to receive, from a controller, a message subscription policy configured for the first network device, where the message subscription policy includes a message that the first network device needs to obtain from a second network device in the network system;
and the subscription notification module is used for sending a message subscription notification to the second network device according to the message subscription policy, wherein the message subscription notification comprises a message which needs to be acquired from the second network device, so that the second network device sends a corresponding message to the first network device according to the message subscription notification.
Optionally, the message subscription notification includes a type of routing information that needs to be acquired from the second network device.
Optionally, the message subscription notification includes a type of the communication status event of the second network device that needs to be acquired from the second network device.
Optionally, the subscription notification module is further configured to send a unsubscribe notification to the second network device, where the unsubscribe notification includes a message that is no longer required to be acquired from the second network device, so that the second network device cancels sending of a corresponding message to the first network device according to the unsubscribe notification.
In a fourth aspect, the present application further provides a message subscription control device, which is applied to a controller; the device comprises:
a role determination module for the controller to determine a role of the network device;
a subscription policy determining module, configured to determine, according to the role information of the network device, a message subscription policy corresponding to the network device;
and the subscription policy publishing module is used for issuing corresponding message subscription policies to the network devices with different roles, so that the network device receiving the message subscription policies subscribes messages to other network devices according to the message subscription policies.
Compared with the prior art, the method has the following beneficial effects:
according to the message subscription method and device provided by the embodiment of the application, the controller issues the message subscription strategy to the first network device, and the first network device subscribes the required information to the second network device according to the message subscription strategy, so that the controller can interfere with message transmission among the network devices in a weak control mode, and the control capability of a network system is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic diagram of a network system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a message subscription control method according to an embodiment of the present application;
fig. 3 is a schematic format diagram of a message subscription message or a message subscription cancellation message provided in an embodiment of the present application;
fig. 4 is a second schematic diagram of a network system according to an embodiment of the present application;
fig. 5 is a schematic hardware structure diagram of a network device according to an embodiment of the present application;
fig. 6 is a schematic functional module diagram of a message subscription apparatus applied to a network device according to an embodiment of the present application;
fig. 7 is a schematic hardware structure diagram of a controller according to an embodiment of the present disclosure;
fig. 8 is a schematic functional block diagram of a message subscription apparatus applied to a controller according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
In the description of the present application, it is further noted that, unless expressly stated or limited otherwise, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
Referring to fig. 1, fig. 1 is a schematic diagram of a Network system 10 provided in this embodiment, where the Network system may be an SDN (software defined Network) architecture, and an underlay Network of the Network system may use technologies such as VXLAN (Virtual Extensible LAN) or EVPN (Ethernet Virtual Private Network) to perform data encapsulation and forwarding. The network system includes at least a controller 300 and a plurality of network devices 100.
The network device 100 may be a device in the SDN for performing data forwarding work, and may be, for example, a VTEP (Virtual Tunnel End Point) in the SDN. Functionally, these VTEP devices may be configured in different roles depending on their location or functionality in network system 10, and may be, for example, access devices, gateway devices, or service nodes. The Virtual Network Function (VNF) router may be a Virtual Network Function (VNF) router, and may be a Virtual Network Function (VNF) router.
In this embodiment, the network system 10 may operate in a weak control mode. In this mode, the controller 300 is only responsible for issuing configurations to the network devices to enable automatic deployment of the network, but does not participate deeply in the forwarding control of the network device 100.
In this embodiment, one of the network devices 100 shown in fig. 1 is taken as a first network device, and the other network devices 100 which communicate with the first network device and can send messages to the first network device are taken as a second network device, please refer to fig. 2, which will be explained in detail below for each step of the method provided in this embodiment.
In step S110, the controller obtains a message subscription policy configured for the first network device and sends the message subscription policy to the first network device, where the message subscription policy includes a message that the first network device needs to obtain from the second network device.
Step S120, the first network device receives the message subscription policy from the controller, and sends a message subscription notification to the second network device according to the subscription policy, where the message subscription notification includes a message that the first network device needs to acquire from the second network device.
In this embodiment, the controller may encapsulate the message subscription policy in a specific field of a BGP (Border Gateway Protocol) message or an ISIS (Intermediate System to Intermediate System) Protocol message, and send the message subscription policy to the first network device.
Step S130, the second network device sends a corresponding message to the first network device according to the message subscription notification.
In this embodiment, the administrator may perform configuration operations on the controller according to the plan of the network system, and assign corresponding roles or functions to each network device in advance.
Then, optionally, the controller may receive subscription content specified by the administrator for the first network device according to the actual networking environment or the service requirement in step S110, and generate a message subscription policy according to the subscription content specified by the administrator and send the message subscription policy to the first network device. Or the controller may also automatically generate a corresponding subscription policy according to the role designated by the administrator for the first network device in combination with the preset rule and send the subscription policy to the first network device in step S110.
In step S120, the network device controllers with different roles may specify different contents of subscriptions in the message subscription policy generated in step S110, so that the first network device with different roles or functions may send different subscription notifications to the second network device according to the received subscription policy.
Optionally, in this embodiment, the message to which the first network device needs to subscribe may include an address message. Taking the EVPN technology adopted by the network system as an example, the address message may refer to a conventional EVPN routing message, and may include any one or more of Ethernet Auto-discovery Route (Ethernet Auto-discovery Route), MAC/IP Advertisement Route (MAC/IP distribution Route), Inclusive Multicast Ethernet Tag Route (Inclusive Multicast Ethernet label Route), Ethernet Segment Route (Ethernet Segment Route), and IP Prefix Advertisement Route (IP Prefix distribution Route), for example.
Accordingly, in order to subscribe to some specific routing information, the first network device may include an address subscription content field in the message subscription notification, and the address subscription content field is used for recording the type of the routing information required to be acquired from the second network device.
Based on the design, the controller can control the address message to be subscribed by the network equipment by issuing the message subscription strategy, so that the controller can intervene in the construction process of the network equipment forwarding table to a certain extent in the weak control mode to participate in forwarding control, the supervision capability of the controller on the whole network in the weak control mode is enhanced, network resources can be further optimized, and the data forwarding mode is optimized.
Optionally, in this embodiment, the message to which the first network device needs to subscribe may further include a communication state event. A communication status event refers to a communication-related event occurring on a network device, which may affect the data forwarding of other related network devices.
For example, a communication state event that the first network device needs to subscribe to may include whether a certain IP Prefix routing next hop state (IP Prefix NextHop Status) is valid on the second network device. If the first network device learns, from the communication state subscribed by the second network device, that a next hop of a certain route cannot participate in forwarding at the second network device in the routes stored by the second network device (for example, an ARP entry corresponding to an address of the next hop is deleted or an egress port cache of the next hop is congested), the first network device does not allow forwarding of a packet related to the next hop to the second network device.
For another example, the first network device may subscribe to the state of a network three-layer interface of the second network device (e.g., whether vsi-interface is available or whether VXLAN interface is available), so as to obtain the gateway state of the corresponding subnet on the second network device, to determine whether the packet of the host corresponding to the subnet needs to perform IP forwarding, and if the subnet gateway state is unavailable (e.g., vsi-interface state is down or VXLAN interface state is down), the first network device may not perform IP forwarding on the IP address of the host in the subnet, because even if the packet is forwarded to the second network device, the packet cannot be forwarded normally, and even the packet impacts the CPU of the second network device, thereby causing unnecessary resource consumption.
Accordingly, in order to subscribe to some specific communication state events, an event subscription content field for recording the type of the communication state event which needs to be acquired from the second network device may be included in the message subscription notification sent by the first network device.
Based on the design, the network equipment can sense the address information and the communication state event of other network equipment in the network system in real time, and can reduce useless address information transmitted among the network equipment, thereby reducing the bandwidth occupation and quickly responding to the abnormal event on other network equipment.
Optionally, in this embodiment, the first network device may also send a unsubscribe notification to the second network device according to a unsubscribe instruction issued by the controller or by automatically comparing a difference between a message subscription policy newly issued by the controller and a message subscription policy issued before, where the unsubscribe notification includes a message that does not need to be acquired from the second network device any more, so that the second network device cancels sending of a corresponding message to the first network device according to the unsubscribe notification.
Based on the above design, the present embodiment further provides a possible format of the message subscription notification or the unsubscribe notification, please refer to fig. 3, in the present embodiment, the subscription operation field may be used to distinguish the message subscription notification and the unsubscribe notification. The number of address subscriptions or number of event subscriptions field is used to identify the number of content items that need to be subscribed or unsubscribed. The address subscription content field and the event subscription content field are used to record the content that actually requires subscription or is to be unsubscribed. For example, the address subscription content 1 may be an AS (Autonomous System) number, an address type, and the like that the MAC/IP Advertisement Route message specifies to be received, or may only include a MAC address or a host IP address. For another example, the event subscription content 1 may be a certain communication state on the second network device, for example, a certain VNI may be recorded in the event subscription content 1 to indicate that attention needs to be paid to a subnet state of the VNI on the second network device; for another example, a certain RD (Route Distinguisher) may also be recorded in the intra-event subscription content 1 to indicate that a certain EVPN or a certain subnet on the second network device needs to be concerned.
In this embodiment, the first network device may publish the message subscription Notification or unsubscribe Notification through a BGP Notification message or a Link State Packet (Link State Packet) message of the ISIS protocol.
In step S140, after receiving the message subscription notification or the unsubscribe notification sent by the first network device, the second network device may record the subscription content remaining after the first network device needs to subscribe or unsubscribe. For example, if the message subscription notification sent by the first Network device only requests to subscribe the host IP Route, the BGP NLRI (Network Layer availability Information) message sent by the second Network device only contains the host IP Route, and the MAC address is not contained in the MAC/IP Advertisement Route message.
In this embodiment, for the address message, the effect of not subscribing and subscribing all messages by the first network device is the same. For example, if the first network device does not support the subscription function and does not send the message subscription notification to the second network device, the second network device will not record the subscription content required by the first network device, and the second network device will send all the NLRI information to the first network device according to the existing flow. If the second network device does not support the subscription function, the message subscription message from the first network device will not be processed, and the second network device may still send all NLRI messages to the first network device according to the existing procedure, but will not send any communication status event.
For the communication state event, it is necessary that the first network device notifies that subscription is needed, the second network device sends the corresponding communication state event, otherwise, the second network device does not send any communication state event.
In order to facilitate the understanding of the solutions provided by the present embodiment by those skilled in the art, the solutions provided by the present embodiment are explained below by an example.
Referring to fig. 4, in the network system, the underlay network is an EVPN network, and the network system includes two data centers DC1 and DC2, which are communicatively connected to each other through VXLAN of the core network between DC1 and DC 2. The CONTROLLER1 is a CONTROLLER of the data center DC1, and the CONTROLLER2 is a CONTROLLER of the data center DC 2.
Network devices VTEP10, VTEP11, GATEWAY1 are within data center DC1, wherein network device GATEWAY1 may act as a BGP route reflector within data center DC1 and connect to the public network. Host VM1 is connected to network device VTEP 10.
Network devices VTEP20, VTEP21, and GATEWAY2 are within data center DC2, where network device GATEWAY2 may act as a BGP reflector within data center DC 2. Host VM2 is connected to network device VTEP 20.
The network device VTEP10 is an access device in the data center DC1, and only needs to pay attention to the host MAC address and IP route in the data center DC1, and the network device VTEP10 does not store the host MAC address and IP route in the data center DC2, nor store the protocol route introduced by the public network. The network device VTEP11, serving as a boundary device, needs to store address information of hosts of the data centers DC1 and DC2 and address information of public network IP prefix routes, and issue a public network protocol route to the data center DC2, and needs to pay attention to next hop events of routes sent by the intranet to the public network and next hop states of routes sent by the public network to the intranet by the network device GATEWAY 1. The network device GATEWAY1 acts as a GATEWAY to the data center DC1 and needs to pay attention to all routes.
The network device VTEP20 is an access device in the data center DC2, and only needs to pay attention to the host MAC address and IP route in the data center DC2, and the network device VTEP20 does not store the host MAC address and IP route in the data center DC1, nor store the protocol route introduced by the public network. The network device VTEP21, as a boundary device, needs to pay attention to the address information of the hosts of the data centers DC1 and DC2 and the address information of the public network IP prefix route. The network device GATEWAY2 acts as a GATEWAY to the data center DC2 and needs to pay attention to all routes.
Under the initial condition, the BGP connection between the network devices needing to establish BGP neighbors is already established, and the controller issues the virtual network configuration related to the service. And the controller issues corresponding subscription strategies to each network device, and the network device sends message subscription notifications to other network devices according to the subscription strategies.
The network device VTEP10 sends a BGP Notification message to the network device GATEWAY1 to request an NLRI message, where for the MAC/IP Advertisement Route message, only the host MAC address and the IP Route in the data center DC1 are subscribed to, for example, the message subscription channel sent by the network device VTEP10 contains the AS number corresponding to the data center DC1, and after receiving the message subscription Notification, the network device GATEWAY1 selects to notify only the host MAC address and the IP Route in the data center DC1 to the network device VTEP10 according to the AS number of the data center DC 1. But the network device VTEP10 does not subscribe to the IP Prefix advertisement route.
The network device VTEP11 is used as a border device, and does not perform address message subscription processing, that is, all address messages are subscribed by default, but the IP prefix next-hop state of the public network on the network device GATEWAY1 needs to be subscribed.
The GATEWAY1 serves as a GATEWAY between the data center DC1 and the public network, does not subscribe to address messages, and subscribes to all address messages by default.
The network device VTEP20 sends a BGP Notification message subscribe NLRI message to the network device GATEWAY2, where for a MAC/IP Advertisement Route message, host MAC and IP routes within the data center DC2 are subscribed to, but not IP Prefix Advertisement Route messages.
The network device VTEP21 acts as a border device and the address messages are not subscribed to, and all address messages are subscribed to by default.
The network device GATEWAY2 acts as a data center DC2 GATEWAY, and the address messages are not subscribed to, and all address messages are subscribed to by default.
After the network devices issue the message subscription notification according to the subscription policy, and after the network devices send messages according to the received message subscription notification, the information received by the network devices is as follows.
The network device VTEP10 will only receive MAC addresses and IP routing messages within data center DC1 from the network device GATEWAY1 as a route reflector, and other traffic accessing the public network and data center DC2 will be sent to the network device GATEWAY1 via a default route.
The network device VTEP11 has host MAC addresses and host IP routes of the data centers DC1 and DC2 and public network IP prefix routes thereon, and can receive next hop status events of the public network connected IP prefixes on the network device GATEWAY 1.
The network device GATEWAY1 has host MAC addresses and IP routes for data centers DC1, DC2 on it, and also issues all address messages out.
The network device VTEP20 will only receive the MAC address and IP routing messages within data center DC2 from the network device GATEWAY2 as a route reflector, and other traffic accessing the public network and data center DC2 will be sent to GATEWAY2 via a default route.
Network device VTEP21 has host MAC addresses and IP routes for data centers DC1, DC2, and also public network IP prefix routes.
The GATEWAY2 has host MAC addresses and IP routes of data centers DC1 and DC2, and issues all address messages to the outside.
According to the routing information received by each network device, when the host VM1 accesses the host VM2, the packet sent by the host VM1 matches the default route on the network device VTEP10, and the next hop is the network device GATEWAY1, then the network device VTEP10 adds an encapsulation to the packet and sends the packet to the GATEWAY1 through the VXLAN tunnel. Network device GATEWAY1 receives the message and removes the tunnel encapsulation to continue IP forwarding, and the next hop is network device VTEP11, then network device GATEWAY1 adds encapsulation to the message and tunnels it from the VXLAN to network device VTEP 11. The network equipment VTEP11 receives the message and removes the tunnel encapsulation and then continues IP forwarding, and the next hop is the network equipment VTEP21, then the network equipment VTEP11 adds the encapsulation for the message and sends the message to the network equipment VTEP21 through the VXLAN tunnel of the core network.
The network equipment VTEP21 receives the message from the core network, removes the tunnel encapsulation and continues IP forwarding, and the next hop is network equipment GATEWAY2, then the network equipment VTEP21 adds the encapsulation to the message and sends it to network equipment VTEP20 through VXLAN tunnel. The network equipment VTEP20 receives the message, removes the tunnel encapsulation, continues to perform IP forwarding, and finally forwards the message to the VM 2.
When host VM2 accesses the public network, the message is sent to network device VTEP20, matching the default route, and the next hop is network device GATEWAY2, then network device VTEP20 adds encapsulation to the message and sends it to network device GATEWAY2 through the VXLAN tunnel. The network device GATEWAY2 queries the public network IP address and the next hop is network device VTEP21, then network device GATEWAY2 adds encapsulation to the packet and sends it to network device VTEP21 through VXLAN tunnel. The network equipment VTEP21 receives the message and removes the tunnel encapsulation and then continues IP forwarding, and the next hop is the network equipment VTEP11, then the network equipment VTEP21 adds the encapsulation for the message and sends the message to the network equipment VTEP11 through the VXLAN tunnel of the core network.
The network device VTEP11 receives the packet from the core network, removes the tunnel encapsulation, and then continues IP forwarding, where the current next hop of the packet is the network device GATEWAY1, and if the network device VTEP11 learns that the IP prefix next hop status indication of the network device GATEWAY1 is available according to the communication status event subscribed from the network device GATEWAY1 (since the packet is a packet sent by the VM2 to the public network, the next hop of the packet GATEWAY1 is a prefix of the public network), the network device VTEP11 adds encapsulation to the packet and sends the packet to the network device GATEWAY1 through the VXLAN tunnel. After receiving the message, the GATEWAY1 removes the tunnel message and sends it to the public network. If the network device VTEP11 knows that an abnormal event exists in the next hop of the IP prefix of the network device GATEWAY1 according to the communication state event subscribed from the network device GATEWAY1, the packet is directly discarded, the packet is not sent to the network device GAEWAY1, an abnormal event is generated and reported to the controller, and the controller determines whether to forcibly trigger the operation of deleting the public network IP prefix route in the data center DC1 according to the abnormal events.
Through the method, messages issued among underlay network devices in the network system can be formulated strictly according to the setting of the controller, the network devices can acquire address messages which are more matched with the roles and types of the network devices, can sense some key events on other network devices in time, can adjust data streams sent to other network devices, and reduce unnecessary protocol interaction and data transmission in the network.
Referring to fig. 5, fig. 5 is a block diagram of the network device 100 shown in fig. 1. Network device 100 includes a machine-readable storage medium 120 and a processor 130.
The machine-readable storage medium 120 and the processor 130 are electrically connected to each other, directly or indirectly, to enable transmission or interaction of data. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The machine-readable storage medium 120 may store machine-executable instructions, for example, the machine-readable storage medium 120 stores instructions related to the routing filtering policy processing logic, and when executed by the processor 130, the machine-executable instructions cause the network device 100 to implement the corresponding steps in the message subscription method provided in the embodiment.
The machine-readable storage medium 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
Referring to fig. 6, the present embodiment further provides a message subscribing apparatus 110 applied to the first network device, which includes a policy obtaining module 111 and a subscription notification module 112.
The policy obtaining module 111 is configured to receive, from a controller in the network system, a message subscription policy configured for the first network device, where the message subscription policy includes a message that the first network device needs to obtain from a second network device in the network system.
The subscription notification module 112 is configured to send a message subscription notification to the second network device according to the message subscription policy, where the message subscription notification includes a message that needs to be acquired from the second network device, so that the second network device sends a corresponding message to the first network device according to the message subscription notification.
Optionally, the message subscription notification includes address subscription content, and the address subscription content is used for recording the type of the routing information required to be acquired from the second network device.
Optionally, the message subscription notification includes event subscription content, and the event subscription content is used for recording the type of the communication state event of the second network device, which needs to be acquired from the second network device.
Optionally, the subscription notification module 112 is further configured to send a unsubscribe notification to the second network device, where the unsubscribe notification includes a message that is no longer required to be acquired from the second network device, so that the second network device cancels sending a corresponding message to the first network device according to the unsubscribe notification.
Referring to fig. 7, fig. 7 is a block diagram illustrating the controller 300 shown in fig. 1. The controller 300 includes a machine-readable storage medium 320 and a processor 330.
The machine-readable storage medium 320 and the processor 330 are electrically connected to each other, directly or indirectly, to enable transmission or interaction of data. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The machine-readable storage medium 320 may store machine-executable instructions, for example, the machine-readable storage medium 320 stores instructions associated with the routing filter policy processing logic, which when executed by the processor 330, cause the controller 300 to implement the corresponding steps in the message subscription method provided by the embodiment.
The machine-readable storage medium 320 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
Referring to fig. 8, the present embodiment further provides a message subscribing device 310 applied to the controller 300, which includes a policy obtaining module 311 and a policy publishing module 312.
The policy obtaining module 311 is configured to obtain a message subscription policy configured for a network device.
The policy publishing module 312 is configured to send the message subscription policy to the network device, so that the network device subscribes to messages from other network devices according to the message subscription policy.
In summary, according to the message subscription control method and device provided in the embodiments of the present application, a message subscription policy is issued to a first network device by a controller, and the first network device subscribes required information to a second network device according to the message subscription policy, so that the controller can interfere with message transmission between network devices in a weak control mode, and the control capability of a network system is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A message subscription control method applied to a first network device in a network system, wherein the network system is a Software Defined Network (SDN) architecture, and the method comprises the following steps:
receiving a message subscription policy configured for the first network device from a controller, where the message subscription policy includes a message that the first network device needs to acquire from a second network device in the network system, a control mode of the controller is a weak control mode, and the message subscription policy is encapsulated in a Border Gateway Protocol (BGP) or an intermediate system to intermediate system (ISIS) protocol message;
and sending a message subscription notification to the second network device according to the message subscription policy, where the message subscription notification includes a message that needs to be acquired from the second network device, so that the second network device sends a corresponding message to the first network device according to the message subscription notification, where the message subscription notification includes a type of routing information that needs to be acquired from the second network device.
2. The method of claim 1, wherein the message subscription notification comprises a type of communication status event of the second network device that needs to be obtained from the second network device.
3. The method of claim 1, further comprising:
and sending a unsubscribe notification to the second network equipment, wherein the unsubscribe notification comprises a message which is no longer required to be acquired from the second network equipment, so that the second network equipment cancels the sending of the corresponding message to the first network equipment according to the unsubscribe notification.
4. A message subscription control method is applied to a controller in a network system, wherein the network system is a Software Defined Network (SDN) architecture, and the method comprises the following steps:
the controller acquires a message subscription policy configured for a first network device, wherein the control mode of the controller is a weak control mode, and the message subscription policy is encapsulated in a BGP (border gateway protocol) or an ISIS (intermediate system to intermediate system) protocol message;
and sending the message subscription policy to the first network device, so that the first network device sends a message subscription notification to a second network device according to the message subscription policy to subscribe to the message, so that the second network device sends a corresponding message to the first network device according to the message subscription notification, wherein the message subscription notification includes the type of the routing information required to be acquired from the second network device.
5. A message subscription control apparatus applied to a first network device in a network system, the network system being a Software Defined Network (SDN) architecture, the apparatus comprising:
a policy obtaining module, configured to receive, from a controller, a message subscription policy configured for the first network device, where the message subscription policy includes a message that the first network device needs to obtain from a second network device in the network system, a control mode of the controller is a weak control mode, and the message subscription policy is encapsulated in a Border Gateway Protocol (BGP) or an intermediate system to intermediate system (ISIS) protocol message;
a subscription notification module, configured to send a message subscription notification to the second network device according to the message subscription policy, where the message subscription notification includes a message that needs to be acquired from the second network device, so that the second network device sends a corresponding message to the first network device according to the message subscription notification, where,
the message subscription notification includes a type of routing information that needs to be obtained from the second network device.
6. The apparatus of claim 5, wherein the message subscription notification comprises a type of communication status event of the second network device that needs to be obtained from the second network device.
7. The apparatus of claim 5, wherein the subscription notification module is further configured to send a unsubscribe notification to the second network device, and wherein the unsubscribe notification includes a message that is no longer required to be obtained from the second network device, so that the second network device sends a corresponding message to the first network device according to the unsubscribe notification.
8. A message subscription control device is characterized in that the device is applied to a controller in a network system; the network system is a Software Defined Network (SDN) architecture, and the device comprises:
the system comprises a strategy acquisition module, a message subscription strategy configuration module and a message subscription strategy configuration module, wherein the strategy acquisition module is used for acquiring a message subscription strategy configured for a first network device, the control mode of a controller is a weak control mode, and the message subscription strategy is encapsulated in a BGP (border gateway protocol) or an ISIS (intermediate system to intermediate system);
and the policy publishing module is configured to send the message subscription policy to the first network device, so that the first network device sends a message subscription notification to a second network device according to the message subscription policy to subscribe to a message, so that the second network device sends a corresponding message to the first network device according to the message subscription notification, where the message subscription notification includes a type of routing information that needs to be acquired from the second network device.
CN201811250590.8A 2018-10-25 2018-10-25 Message subscription control method and device Active CN109412850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811250590.8A CN109412850B (en) 2018-10-25 2018-10-25 Message subscription control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811250590.8A CN109412850B (en) 2018-10-25 2018-10-25 Message subscription control method and device

Publications (2)

Publication Number Publication Date
CN109412850A CN109412850A (en) 2019-03-01
CN109412850B true CN109412850B (en) 2022-02-11

Family

ID=65469236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811250590.8A Active CN109412850B (en) 2018-10-25 2018-10-25 Message subscription control method and device

Country Status (1)

Country Link
CN (1) CN109412850B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114173429A (en) * 2021-12-08 2022-03-11 中国联合网络通信集团有限公司 Communication method and system for wireless access network and edge computing platform under 5G private network
CN116346570A (en) * 2021-12-22 2023-06-27 华为技术有限公司 Message notification method and related device
CN115580546B (en) * 2022-11-15 2023-02-24 科来网络技术股份有限公司 Data subscription method and device, electronic equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101677302A (en) * 2008-09-17 2010-03-24 华为技术有限公司 Method and device for providing information for users in multi-equipment environment
CN102217261A (en) * 2011-05-12 2011-10-12 华为技术有限公司 Interaction method between equipments and machine to machine communication network syste
CN102594718A (en) * 2011-01-12 2012-07-18 阿尔卡特朗讯 Method and device for processing presentation information
CN102917016A (en) * 2012-09-12 2013-02-06 华中科技大学 Topological structure optimization method of publish-and-subscribe model based on contents
CN104734872A (en) * 2013-12-19 2015-06-24 中国科学院沈阳自动化研究所 Industrial backhaul network realizing method and system based on software-defined network
CN105915419A (en) * 2015-11-25 2016-08-31 北京邮电大学 Wireless access controller deployment method based on SDN (Software Defined Network)
CN107104811A (en) * 2016-02-22 2017-08-29 中兴通讯股份有限公司 A kind of network function implementation method and control device and network element
US10063415B1 (en) * 2016-06-29 2018-08-28 Juniper Networks, Inc. Network services using pools of pre-configured virtualized network functions and service chains

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3404885B1 (en) * 2016-02-04 2022-04-06 Huawei Technologies Co., Ltd. Service migration method, apparatus and system
CN107547293B (en) * 2016-06-29 2020-09-08 新华三技术有限公司 Flow path detection method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101677302A (en) * 2008-09-17 2010-03-24 华为技术有限公司 Method and device for providing information for users in multi-equipment environment
CN102594718A (en) * 2011-01-12 2012-07-18 阿尔卡特朗讯 Method and device for processing presentation information
CN102217261A (en) * 2011-05-12 2011-10-12 华为技术有限公司 Interaction method between equipments and machine to machine communication network syste
CN102917016A (en) * 2012-09-12 2013-02-06 华中科技大学 Topological structure optimization method of publish-and-subscribe model based on contents
CN104734872A (en) * 2013-12-19 2015-06-24 中国科学院沈阳自动化研究所 Industrial backhaul network realizing method and system based on software-defined network
CN105915419A (en) * 2015-11-25 2016-08-31 北京邮电大学 Wireless access controller deployment method based on SDN (Software Defined Network)
CN107104811A (en) * 2016-02-22 2017-08-29 中兴通讯股份有限公司 A kind of network function implementation method and control device and network element
US10063415B1 (en) * 2016-06-29 2018-08-28 Juniper Networks, Inc. Network services using pools of pre-configured virtualized network functions and service chains

Also Published As

Publication number Publication date
CN109412850A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
US10263808B2 (en) Deployment of virtual extensible local area network
US10191758B2 (en) Directing data traffic between intra-server virtual machines
US9419817B2 (en) Stitching multicast trees
US10567279B2 (en) Egress node protection for broadcast, unknown unicast, or multicast traffic in EVPN topologies
CN109412850B (en) Message subscription control method and device
CN109525601B (en) Method and device for isolating transverse flow between terminals in intranet
US10448246B2 (en) Network re-convergence point
EP2282453A1 (en) Routing frames in a shortest path computer network for a multi-homed legacy bridge node
EP3308507A1 (en) Multipath forwarding in an overlay network
US10367680B2 (en) Network relay apparatus, gateway redundancy system, program, and redundancy method
US11362954B2 (en) Tunneling inter-domain stateless internet protocol multicast packets
US20180076976A1 (en) G.8032 prioritized ring switching systems and methods
US9980303B2 (en) Establishing a private network using multi-uplink capable network devices
CN109691031B (en) Service message transmission method and node equipment
US8559431B2 (en) Multiple label based processing of frames
US20190215191A1 (en) Deployment Of Virtual Extensible Local Area Network
EP2218214B1 (en) Network location service
US8612626B2 (en) Group member detection among nodes of a network
CN112673602A (en) Method and device for avoiding broadcast storm
CN109495370B (en) Message transmission method and device based on VPLS
CN112491688B (en) Loop detection method and device and readable storage medium
CN107911495B (en) MAC address synchronization method and VTEP
WO2011150835A1 (en) Method for requesting to obtain route information and corresponding route device thereof
JP2006100906A (en) Method for managing operation of network system and storage device
CN106878173B (en) Route sending method and device

Legal Events

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