CN109412850A - Message subscribing control method and device - Google Patents

Message subscribing control method and device Download PDF

Info

Publication number
CN109412850A
CN109412850A CN201811250590.8A CN201811250590A CN109412850A CN 109412850 A CN109412850 A CN 109412850A CN 201811250590 A CN201811250590 A CN 201811250590A CN 109412850 A CN109412850 A CN 109412850A
Authority
CN
China
Prior art keywords
network equipment
message
network
subscribing
strategy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811250590.8A
Other languages
Chinese (zh)
Other versions
CN109412850B (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

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

It includes controller and multiple network equipments that the application, which provides a kind of news subscribing method and device, network system,;The message subscribing strategy for the first network device configuration that controller is used to be retrieved as in multiple network equipments is simultaneously sent to first network equipment;First network equipment is used to send message subscribing notice to second network equipment according to message subscribing strategy, and message subscribing notice includes the message for needing to obtain from second network equipment;Second network equipment is used to send corresponding message to first network equipment according to the message subscribing notice received.Strategy is subscribed to first network equipment issuing message by controller, first network equipment subscribes to the information needed according to message subscribing strategy to second network equipment, so that controller can also interfere the message transmission of LA Management Room under weak domination mode, the control ability to network system is improved.

Description

Message subscribing control method and device
Technical field
This application involves network communication technology fields, in particular to a kind of message subscribing control method and device.
Background technique
In SDN (Software Defined Network, software defined network) framework, by that will control plane and turn Planar separation is sent out, realizes the flexible control to network flow.Under this framework, often through controller to be responsible in network to Head-end site issues configuration to control these network equipments.
In the prior art, the control model of controller can be divided into strong control model and weak domination mode, wherein in weak control Under molding formula, controller is merely responsible for configuration distributing, realizes the automatic deployment of network, but is not involved in the forwarding control of the network equipment, But by voluntarily carrying out study routing between the network equipment.In this case, a network equipment can only be passively from other nets Network equipment, which receives, communicates relevant message, then filters unwanted message, and controller by the filtering rule of itself configuration Network equipment forwarding control can not be interfered, cause the ability to supervise to network insufficient.
Summary of the invention
In a first aspect, the application provides a kind of message subscribing control method, set applied to the first network in network system It is standby, which comprises
The message subscribing strategy of the first network device configuration is received as from controller, the message subscribing strategy includes The message that the first network equipment needs second network equipment from the network system to obtain;
Message subscribing notice is sent to second network equipment according to the message subscribing strategy, the message subscribing is logical The message including needing to obtain from second network equipment is known, so that second network equipment is logical according to the message subscribing Know to the first network equipment and sends corresponding message.
Optionally, the message subscribing notice includes needing the class of the routing iinformation obtained from second network equipment Type.
Optionally, the message subscribing notice includes that thing needs are set from second network that second network equipment obtains The type of standby communications status event.
Optionally, the method also includes:
Notice is unsubscribed to second network equipment transmission, the notice that unsubscribes includes no longer needing from described The message that second network equipment obtains, so that second network equipment unsubscribes notice according to and cancels to described first The network equipment sends corresponding message.
Second aspect, the application provide a kind of message subscribing control method, be applied to include controller the described method includes:
The controller determines the role of the network equipment;
According to the Role Information of the network equipment determine the network equipment corresponding to message subscribing strategy;
Corresponding message subscribing strategy is issued to the network equipment of different role, makes to receive the message subscribing plan The network equipment slightly subscribes to message to other network equipments according to the message subscribing strategy.The third aspect, the application provide one Kind message subscribing control device, applied to the first network equipment in network system, described device includes:
Strategy obtains module, for being received as the message subscribing strategy of the first network device configuration, institute from controller Stating message subscribing strategy includes disappearing for second network equipment acquisition of the first network equipment needs from the network system Breath;
Subscribing notification module, it is logical for sending message subscribing to second network equipment according to the message subscribing strategy Know, the message subscribing notice includes the message for needing to obtain from second network equipment, so that second network equipment It is notified to send corresponding message to the first network equipment according to the message subscribing.
Optionally, the message subscribing notice includes needing the class of the routing iinformation obtained from second network equipment Type.
Optionally, the message subscribing notice includes second network equipment for needing to obtain from second network equipment Communications status event type.
Optionally, the subscribing notification module, which is also used to send to second network equipment, unsubscribes notice, described Unsubscribe notice include no longer need from second network equipment obtain message so that second network equipment according to The notice that unsubscribes is cancelled to the corresponding message of first network equipment transmission.
Fourth aspect, the application also provide a kind of message subscribing control device, are applied to controller;Described device includes:
Role determination module determines the role of the network equipment for the controller;
Subscribe to tactful determining module, for according to the Role Information of the network equipment determine the network equipment corresponding to disappear Breath subscribes to strategy;
Policy issue module is subscribed to, for issuing corresponding message subscribing strategy to the network equipment of different role, The network equipment for receiving the message subscribing strategy is set to subscribe to message to other network equipments according to the message subscribing strategy.
In terms of existing technologies, the application has the advantages that
A kind of news subscribing method and device provided by the embodiments of the present application are issued by controller to first network equipment Message subscribing strategy, first network equipment subscribes to the information needed according to message subscribing strategy to second network equipment, to make The message transmission of LA Management Room can also be interfered under weak domination mode by obtaining controller, improve the control energy to network system Power.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is one of the schematic diagram of network system provided by the embodiments of the present application;
Fig. 2 is the flow diagram of message subscribing control method provided by the embodiments of the present application;
Fig. 3 is message subscribing message provided by the embodiments of the present application or the form schematic diagram for unsubscribing message;
Fig. 4 is the two of the schematic diagram of network system provided by the embodiments of the present application;
Fig. 5 is the hardware structural diagram of the network equipment provided by the embodiments of the present application;
Fig. 6 is the functional block diagram of the message subscribing device provided by the embodiments of the present application applied to the network equipment;
Fig. 7 is the hardware structural diagram of controller provided by the embodiments of the present application;
Fig. 8 is the functional block diagram of the message subscribing device provided by the embodiments of the present application applied to controller.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is implemented The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiments herein provided in the accompanying drawings is not intended to limit below claimed Scope of the present application, but be merely representative of the selected embodiment of the application.Based on the embodiment in the application, this field is common Technical staff's every other embodiment obtained without creative efforts belongs to the model of the application protection It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
In the description of the present application, term " first ", " second ", " third " etc. are only used for distinguishing description, and cannot understand For indication or suggestion relative importance.
In the description of the present application, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ", " installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one Connect to body;It can be mechanical connection, be also possible to be electrically connected;It can be directly connected, it can also be indirect by intermediary It is connected, can be the connection inside two elements.For the ordinary skill in the art, on being understood with concrete condition State the concrete meaning of term in this application.
Fig. 1 is please referred to, Fig. 1 is a kind of schematic diagram of network system 10 provided in this embodiment, wherein the network system can Think SDN (softwaredefinednetwork, software defined network) framework, the underlay network of the network system can be with Using VXLAN (Virtual Extensible LAN, virtual extended local area network) or EVPN (Ethernet Virtual Private Network, Ethernet Virtual Private Network) etc. technologies carry out data encapsulation and forwarding.Network system is at least wrapped Include controller 300 and multiple network equipments 100.
Wherein, the network equipment 100 can be the equipment in SDN for executing data forwarding work, such as can be in SDN VTEP (Virtual Tunnel End Point, virtual channel endpoint).It functionally divides, these VTEP equipment are according to it Position or function in network system 10 may be configured to different roles, such as can be access device, gateway Or service node.It is divided from run entity, when VTEP is access device, can be hardware switch or OVS (Open VirtualSwitch, open virtual switch), when VTEP is gateway, it can be hardware switch or VNF (Virtualized Network Function, virtual network function) router.
In the present embodiment, network system 10 can work under weak domination mode.In this mode, controller 300 is only It is responsible for issuing automatic deployment of the configuration to realize network to the network equipment, but does not participate in the forwarding control of the network equipment 100 deeply.
The present embodiment also provides a kind of message subscribing control method applied to network system 10 shown in Fig. 1, in this implementation In example, it regard one of network equipment 100 shown in FIG. 1 as first network equipment, and will communicate with the first network equipment And other network equipments 100 that message can be sent to first network equipment are used as second network equipment, referring to figure 2., below Each step of method provided in this embodiment is explained in detail.
Step S110, controller are retrieved as the message subscribing strategy of first network device configuration and are sent to first network setting Standby, which includes the message that first network equipment needs to obtain from second network equipment.
Step S120, first network equipment receive message subscribing strategy from controller, and tactful to the second net according to subscribing to Network equipment sends message subscribing notice, and message subscribing notice includes that the first network equipment needs to obtain from second network equipment Message.
In the present embodiment, message subscribing strategy can be packaged in BGP (Border Gateway by controller Protocol, Border Gateway Protocol) message or ISIS (Intermediate System to Intermediate System, Intermediate System-to-Intermediate System) protocol message specific fields in be sent to first network equipment.
Step S130, second network equipment notify to send corresponding message to first network equipment according to message subscribing.
In the present embodiment, administrator can carry out configuration operation according to the planning of network system on the controller, in advance Corresponding role or function are specified for each network equipment.
Then, optionally, controller can receive administrator according to practical network environment or business need in step s 110 The subscribed content specified for first network equipment is sought, and concurrent according to the subscribed content generation message subscribing strategy that administrator specifies Give first network equipment.Or controller can also be in step s 110 the specified angle of first network equipment according to administrator Color combination preset rules automatically generate corresponding subscription strategy and are sent to first network equipment.
Wherein, in the message subscribing strategy that can be generated in step s 110 for the different network equipment controller of role The content of given subscription is different, thus in the step s 120, role or the different first network equipment of function can be according to receptions To subscription strategy different subscribing notifications is sent to second network equipment.
Optionally, in the present embodiment, first network equipment needs in the message subscribed to may include address message.With net For network system uses EVPN technology, address message can refer to conventional EVPN route messages, such as may include Ethernet Auto-discovery Route (Ethernet finds to route automatically), MAC/IP Advertisement Route (MAC/IP hair Cloth routing), Inclusive Multicast Ethernet Tag Route (inclusive multicast Ethernet label routing), Ethernet Segment Route (ethernet segment routing), IP Prefix advertisement route (IP prefix publication Routing) in any one or it is multiple.
Correspondingly, in order to subscribe to some specific routing iinformations, first network equipment is sent in message subscribing notice can be with Including address subscribed content field, address subscribed content field is used to record the routing for needing to obtain from second network equipment The type of information.
Based on above-mentioned design, controller can subscribe to the address that the policy control network equipment needs to subscribe to by issuing message Message, so that controller can also intervene the building of network equipment forwarding table to a certain extent under weak domination mode Journey participates in forwarding control, enhances controller under weak domination mode to the ability to supervise of whole network, can advanced optimize Internet resources optimize the mode of data forwarding.
Optionally, in the present embodiment, first network equipment needs in the message subscribed to include communications status thing Part.Communications status event refers to the event relevant to communication occurred on some network equipment, which may be right The data forwarding of other related network devices impacts.
For example, it may include on second network equipment before some IP that first network equipment, which needs the communications status event subscribed to, Whether effectively to sew route next jump state (IP Prefix NextHop Status).If first network equipment is set from the second network The standby communications status subscribed to knows in the routing that second network equipment saves that the next-hop of some routing is at second equipment Can not participate in forwarding (such as the next-hop the corresponding ARP entry in address be deleted or next-hop exit port caching gather around Plug), then first network equipment does not allow message relevant to the next-hop being forwarded to second network equipment.
For another example first network equipment can subscribe to the state of some three layer interface of network of second network equipment (such as Whether whether available or VXLAN interface can be used vsi-interface), to know respective subnet on second network equipment Gateway status, to judge whether the message for destination host under the subnet needs to be implemented IP forwarding, if subnet gateway state is Unavailable (it is down that such as vsi-interface state, which is down or VXLAN Interface status), then will not needle in first network equipment Carrying out IP forwarding to the host IP address in the subnet also can not be normal because even message is forwarded to second network equipment Forwarding results even in the CPU that message impacts second network equipment, causes unnecessary resource cost.
Correspondingly, in order to subscribe to some specific communications status events, first network equipment is sent in message subscribing notice It may include event subscription content field, event subscription content field is used to record the communication for needing to obtain from second network equipment The type of state event.
Based on above-mentioned design, the network equipment can be with the address information of other network equipments in real-time perception network system and logical Believe state event, it is possible to reduce useless address information is transmitted between the network equipment, to reduce bandwidth occupancy, and can be fast Speed responds the anomalous event on other network equipments.
Optionally, in the present embodiment, instruction that first network equipment can also be issued according to controller unsubscribe or Difference between person's automatic comparison controller message subscribing strategy newly issued and the message subscribing strategy issued before, Xiang Suoshu The transmission of second network equipment unsubscribes notice, wherein unsubscribing notice includes no longer needing to obtain from second network equipment Message so that second network equipment sends corresponding message according to unsubscribing notice and cancel to first network equipment.
Based on above-mentioned design, also a kind of possible message subscribing notice of the present embodiment or the format for unsubscribing notice are asked Referring to Fig. 3, in the present embodiment, subscription operation field can be used for distinguishing message subscribing notice and unsubscribe notice.Address It subscribes to quantity or event subscription amount field is used to identify the quantity for needing the content item subscribed to or unsubscribed.It subscribes to address Content field and event subscription content field are used to record the content that actual requirement is subscribed to or to be unsubscribed.For example, address is ordered Readding content 1 can be that MAC/IP Advertisement Route message is specified to require received AS (Autonomous System, autonomous system) number, address style etc., it can also only include MAC Address or host IP address.For another example event Subscribed content 1, which can be in certain communications status, such as event on second network equipment, can recorde certain in subscribed content 1 A VNI, to indicate to need to pay close attention to the subnet state of the VNI on second network equipment;Again for example in event in subscribed content 1 It can recorde some RD (Route Distinguisher, Route Distinguisher), need to pay close attention on second network equipment with instruction Some EVPN or some subnet.
In the present embodiment, first network equipment can by BGP Notification (BGP notice) message or Link State Packet (link state packet) message of ISIS agreement is issued above-mentioned message subscribing notice or is unsubscribed logical Know.
In step S140, second network equipment receives the message subscribing notice of first network equipment transmission or cancels and orders After readding notice, it can recorde first network equipment and need to subscribe to or unsubscribe rear remaining subscribed content.For example, if first In the message subscribing notice that the network equipment is sent, simply requests and subscribe to host ip routing, the then BGP that second network equipment is sent It only can include host in NLRI (Network Layer Reachability Information, Network Layer Reachable Information) message IP routing, and MAC Address will not be then included in MAC/IP Advertisement Route message.
Wherein, in the present embodiment, for address message, the effect of all message is not subscribed to and subscribed to first network equipment It is identical.For example, if first network equipment is not supported to subscribe to function message subscribing notice will not be sent to second network equipment, then The subscribed content of the first network device requirement will not be recorded in second network equipment, and second network equipment can be according to existing procedure All NLRI information is sent to the first network equipment.If second network equipment is not supported to subscribe to function, it will not handle and come from The message subscribing message of first network equipment, second network equipment still can be sent out according to existing procedure to first network equipment All NLRI message are sent, but not send any communications status event.
And for communications status event, it is necessary to it is that first network equipment has advertised and needs to subscribe to, the just meeting of second network equipment Corresponding communications status event is sent, otherwise second network equipment will not send any communications status event.
For convenience of those skilled in the art understand that scheme provided in this embodiment, explains this implementation below by an example The scheme that example provides.
Referring to figure 4., in network system, underlay network is EVPN network, and network system includes in two data The heart DC1 and DC2 are in communication with each other connection by the VXLAN of core network between data center DC1 and DC2.Controller CONTROLLER1 is the controller of data center DC1, and controller CONTROLLER2 is the controller of data center DC2.
The network equipment VTEP10, VTEP11, GATEWAY1 are in data center DC1, wherein network equipment GATEWAY1 can Using as the bgp router reflector in data center DC1, and connect public network.Host VM1 is connected to the network equipment VTEP10。
The network equipment VTEP20, VTEP21 and GATEWAY2 are in data center DC2, wherein network equipment GATEWAY2 It can be used as the BGP reflector in data center DC2.Host VM2 is connected to network equipment VTEP20.
Network equipment VTEP10 is the access device in data center DC1, it is only necessary to the host in the DC1 of focused data center MAC Address and IP are routed, and do not save the host MAC address in data center DC2 and IP routing on network equipment VTEP10, also not Save the agreement routing that public network introduces.Network equipment VTEP11 needs to save data center DC1, DC2 as edge device Host address information and public network IP prefix route address information, and by common network protocol routing be published to data Center DC2, and need to pay close attention to next-hop event and public affairs that Intranet on network equipment GATEWAY1 is sent to the routing of public network Common network network is sent to the next-hop state of the routing of Intranet.Gateway of the network equipment GATEWAY1 as data center DC1, needs Pay close attention to all routings.
Network equipment VTEP20 is the access device in data center DC2, it is only necessary to the host in the DC2 of focused data center MAC Address and IP are routed, and do not save the host MAC address in data center DC1 and IP routing on network equipment VTEP20, also not Save the agreement routing that public network introduces.Network equipment VTEP21 needs focused data center DC1, DC2 as edge device Host address information and public network IP prefix route address information.Network equipment GATEWAY2 is as data center The gateway of DC2 needs to pay close attention to all routings.
Under primary condition, need to establish the BGP connection between the network equipment of bgp neighbor it has been established that controller also under Virtual network configuration relevant to business is sent out.And controller has issued corresponding subscription strategy, network to each network equipment Equipment subscribes to strategy according to it and sends message subscribing notice to other network equipments.
Network equipment VTEP10 sends BGP Notification message to network equipment GATEWAY1, and request NLRI disappears Breath, wherein only subscribing to host MAC address and IP in data center DC1 for MAC/IP Advertisement Route message Routing, for example, being numbered during the message subscribing of network equipment VTEP10 transmission is logical comprising AS corresponding with data center DC1's, net Network equipment GATEWAY1 is only set to network after receiving message subscribing notice according to the AS of data center DC1 number selection Host MAC address and IP routing in standby VTEP10 notification data center DC1.But network equipment VTEP10 does not subscribe to IP Prefix advertisement route。
Network equipment VTEP11 does not do address message subscription processing as edge device, does not do address message subscription processing, I.e. default subscribes to all address messages, but needs to subscribe to the IP prefix next-hop shape of public network on network equipment GATEWAY1 State.
Network equipment GATEWAY1 does not do address message subscription as the gateway between data center DC1 and public network Processing, default subscribe to all address messages.
Network equipment VTEP20 sends BGP Notification message subscribing NLRI message to network equipment GATEWAY2, Wherein for MAC/IP Advertisement Route message, host MAC and IP routing in data center DC2 are subscribed to, but not Subscribe to IP Prefix advertisement route message.
For network equipment VTEP21 as edge device, address message does not make subscription processing, and default subscribes to all address messages.
For network equipment GATEWAY2 as data center's DC2 gateway, address message does not make subscription processing, and default is subscribed to all Address message.
After above-mentioned each network equipment subscribes to policy issue message subscribing notice according to it, each network equipment is mutually according to each From after the message subscribing notice progress message transmission received, the information that each network equipment receives is as follows.
Network equipment VTEP10 can only be received in data center DC1 from the network equipment GATEWAY1 as Router Reflector MAC Address and IP route messages, other access public networks and the flow of data center DC2 can be sent to by default route Network equipment GATEWAY1.
The host MAC address and host ip of the network equipment VTEP11 Shang You data center DC1, DC2 route and public network IP prefix route, and the next-hop state event that the IP prefix of public network is connected on network equipment GATEWAY1 can be received.
The host MAC address and IP of the network equipment GATEWAY1 Shang You data center DC1, DC2 route, and also issue institute outward There is address message.
On network equipment VTEP20 only data center DC2 can be received from the network equipment GATEWAY2 as Router Reflector The flow of interior MAC Address and IP route messages, other access public networks and data center DC2 can be sent by default route To GATEWAY2.
The host MAC address and IP of the network equipment VTEP21 Shang You data center DC1, DC2 route, and there are also public network IP Prefix route.
The host MAC address and IP of the network equipment GATEWAY2 Shang You data center DC1, DC2 route, and publication is all outward Address message.
According to the routing iinformation that each network equipment receives, when host VM1 accesses host VM2, the report of host VM1 sending Text matches default route on network equipment VTEP10, and next-hop is network equipment GATEWAY1, then network equipment VTEP10 is Message addition encapsulates and is sent to GATEWAY1 by the tunnel VXLAN.Network equipment GATEWAY1 receives message and removes tunnel Road encapsulation continues IP forwarding, and next-hop is network equipment VTEP11, then network equipment GATEWAY1 is message addition encapsulation And network equipment VTEP11 is sent to from the tunnel VXLAN.Network equipment VTEP11 receives message and to remove tunnel encapsulation subsequent Continuous to carry out IP forwarding, next-hop is network equipment VTEP21, then network equipment VTEP11 is that message addition encapsulates and passes through core The tunnel VXLAN of network is sent to network equipment VTEP21.
Network equipment VTEP21 receives message from core network, continues IP forwarding, next-hop after removing tunnel encapsulation It is network equipment GATEWAY2, then network equipment VTEP21 is encapsulated for message addition and is sent to network by the tunnel VXLAN and sets Standby VTEP20.Network equipment VTEP20 receives message and continues IP forwarding after removing tunnel encapsulation, and message is finally turned Issue VM2.
When host VM2 accesses public network, message is sent to network equipment VTEP20, matches default route, next-hop It is network equipment GATEWAY2, then network equipment VTEP20 is encapsulated for message addition and is sent to network by the tunnel VXLAN and sets Standby GATEWAY2.Network equipment GATEWAY2 inquires public network IP address, and next-hop is network equipment VTEP21, then network Equipment GATEWAY2 is that message addition encapsulates and is sent to network equipment VTEP21 by the tunnel VXLAN.Network equipment VTEP21 It receives message and continues IP forwarding after removing tunnel encapsulation, next-hop is network equipment VTEP11, then the network equipment VTEP21 is that message addition encapsulates and is sent to network equipment VTEP11 by the tunnel VXLAN of core network.
Network equipment VTEP11 receives message from core network, continues IP forwarding after removing tunnel encapsulation, message is worked as Preceding next-hop is network equipment GATEWAY1, if network equipment VTEP11 is according to the communication shape subscribed to from network equipment GATEWAY1 State event knows that the IP prefix next-hop state instruction of network equipment GATWAY1 is available (since message is that VM2 is sent to public network The message of network, therefore the next-hop of message GATWAY1 is the prefix of public network), then network equipment VTEP11 adds for message It seals up and fills and network equipment GATEWAY1 is sent to by the tunnel VXLAN.Network equipment GATEWAY1 removes after receiving message Tunnel packet is simultaneously sent to public network.If network equipment VTEP11 is according to the communications status subscribed to from network equipment GATEWAY1 Event knows the next-hop of the IP prefix of network equipment GATEWAY1, and there are anomalous events, then directly abandon the message, will not will Message is sent to network equipment GAEWAY1, and generates anomalous event and be reported to controller, and controller decides whether according to these exceptions Forced-triggered deletes the operation of public network IP prefix route in data center DC1.
In this way, the message issued between the underlay network equipment in network system can be in strict accordance with control Device processed is arranged to formulate, and the network equipment is available with self-role and the more matched address message of type, and perceives in time The event of some keys on other network equipments, adjustment are sent to the data flow of other network equipments, reduce unnecessary in network Protocol interaction and data transmission.
Referring to figure 5., Fig. 5 is the block diagram of the network equipment 100 shown in FIG. 1.The network equipment 100 includes machine can Read storage medium 120 and processor 130.
Machine readable storage medium 120 and processor 130 are directly or indirectly electrically connected between each other, to realize data Transmission or interaction.Electrically connect for example, these elements can be realized between each other by one or more communication bus or signal wire It connects.Machine readable storage medium 120 can store the executable instruction of machine, such as machine readable storage medium 120 stores There is instruction relevant to route filtering strategy processing logic to promote when the executable instruction of the machine is executed by processor 130 again The network equipment 100 realizes corresponding step in news subscribing method provided in this embodiment.
Wherein, machine readable storage medium 120 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Fig. 6 is please referred to, the present embodiment also provides a kind of message subscribing device 110 applied to above-mentioned first network equipment, The device includes that strategy obtains module 111 and subscribing notification module 112.
Strategy obtains the message that module 111 is received as first network device configuration for the controller from network system and orders Strategy is read, message subscribing strategy includes the message that first network equipment needs second network equipment from network system to obtain.
Subscribing notification module 112 is used to send message subscribing notice to second network equipment according to message subscribing strategy, disappears Breath subscribing notification include need from second network equipment obtain message so that second network equipment according to message subscribing notify to First network equipment sends corresponding message.
Optionally, message subscribing notice includes address subscribed content, and address subscribed content is needed for recording from the second net The type for the routing iinformation that network equipment obtains.
Optionally, message subscribing notice includes event subscription content, and event subscription content is needed for recording from the second net The type of the communications status event for second network equipment that network equipment obtains.
Optionally, subscribing notification module 112, which is also used to send to second network equipment, unsubscribes notice, unsubscribes logical Know including no longer need from second network equipment obtain message so that second network equipment according to unsubscribe notice cancellation to First network equipment sends corresponding message.
Fig. 7 is please referred to, Fig. 7 is the block diagram of controller 300 shown in FIG. 1.Controller 300 includes machine readable deposits Storage media 320 and processor 330.
Machine readable storage medium 320 and processor 330 are directly or indirectly electrically connected between each other, to realize data Transmission or interaction.Electrically connect for example, these elements can be realized between each other by one or more communication bus or signal wire It connects.Machine readable storage medium 320 can store the executable instruction of machine, such as machine readable storage medium 320 stores There is instruction relevant to route filtering strategy processing logic to promote when the executable instruction of the machine is executed by processor 330 again Controller 300 realizes corresponding step in news subscribing method provided in this embodiment.
Wherein, machine readable storage medium 320 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Fig. 8 is please referred to, the present embodiment also provides a kind of message subscribing device 310 applied to above controller 300, the dress It sets and obtains module 311 and policy issue module 312 including strategy.
Strategy obtains the message subscribing strategy that module 311 is used to be retrieved as network equipments configuration.
Policy issue module 312 is used to the message subscribing strategy being sent to the network equipment, makes the network equipment root Message is subscribed to other network equipments according to the message subscribing strategy.
In conclusion a kind of message subscribing control method and device provided by the embodiments of the present application, by controller to One network equipment issuing message subscribes to strategy, and first network equipment subscribes to needs to second network equipment according to message subscribing strategy Information improve so that controller can also interfere the message transmission of LA Management Room under weak domination mode to net The control ability of network system.
In embodiment provided herein, it should be understood that disclosed device and method, it can also be by other Mode realize.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are shown According to device, the architectural framework in the cards of method and computer program product, function of multiple embodiments of the application And operation.In this regard, each box in flowchart or block diagram can represent one of a module, section or code Point, a part of the module, section or code includes one or more for implementing the specified logical function executable Instruction.It should also be noted that function marked in the box can also be attached to be different from some implementations as replacement The sequence marked in figure occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes may be used To execute in the opposite order, this depends on the function involved.It is also noted that each of block diagram and or flow chart The combination of box in box and block diagram and or flow chart can be based on the defined function of execution or the dedicated of movement The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.

Claims (10)

1. a kind of message subscribing control method, which is characterized in that applied to the first network equipment in network system, the method Include:
The message subscribing strategy of the first network device configuration is received as from controller, the message subscribing strategy includes described The message that first network equipment needs second network equipment from the network system to obtain;
Message subscribing notice, the message subscribing notice packet are sent to second network equipment according to the message subscribing strategy Include and need the message that obtains from second network equipment so that second network equipment according to the message subscribing notify to The first network equipment sends corresponding message.
2. the method according to claim 1, wherein message subscribing notice includes needing from second net The type for the routing iinformation that network equipment obtains.
3. the method according to claim 1, wherein message subscribing notice includes needing from second net The type of the communications status event for second network equipment that network equipment obtains.
4. the method according to claim 1, wherein the method also includes:
Notice is unsubscribed to second network equipment transmission, the notice that unsubscribes includes no longer needing from described second The message that the network equipment obtains, so that second network equipment unsubscribes notice according to and cancels to the first network Equipment sends corresponding message.
5. a kind of message subscribing control method, which is characterized in that be applied to include controller the described method includes:
The controller is retrieved as the message subscribing strategy of network equipments configuration;
The message subscribing strategy is sent to the network equipment, make the network equipment according to the message subscribing strategy to other The network equipment subscribes to message.
6. a kind of message subscribing control device, which is characterized in that applied to the first network equipment in network system, described device Include:
Strategy obtains module, described to disappear for being received as the message subscribing strategy of the first network device configuration from controller It includes the message that the first network equipment needs second network equipment from the network system to obtain that breath, which subscribes to strategy,;
Subscribing notification module, for sending message subscribing notice to second network equipment according to the message subscribing strategy, Message subscribing notice includes the message for needing to obtain from second network equipment so that second network equipment according to The message subscribing notifies to send corresponding message to the first network equipment.
7. device according to claim 6, which is characterized in that the message subscribing notice includes needing from second net The type for the routing iinformation that network equipment obtains.
8. device according to claim 6, which is characterized in that the message subscribing notice includes needing from second net The type of the communications status event for second network equipment that network equipment obtains.
9. device according to claim 6, which is characterized in that the subscribing notification module is also used to second network Equipment transmission unsubscribes notice, and the notice that unsubscribes includes no longer needing to disappear from what second network equipment obtained Breath, so that second network equipment unsubscribes notice cancellation according to and disappears accordingly to first network equipment transmission Breath.
10. a kind of message subscribing control device, which is characterized in that be applied to controller;Described device includes:
Strategy obtains module, for being retrieved as the message subscribing strategy of network equipments configuration;
Policy issue module makes the network equipment according to for the message subscribing strategy to be sent to the network equipment Message subscribing strategy subscribes to message to other network equipments.
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 true CN109412850A (en) 2019-03-01
CN109412850B 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)

Cited By (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
CN115580546A (en) * 2022-11-15 2023-01-06 科来网络技术股份有限公司 Data subscription method and device, electronic equipment and readable storage medium
WO2023116747A1 (en) * 2021-12-22 2023-06-29 华为技术有限公司 Message notification method and related apparatus

Citations (10)

* 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
CN107547293A (en) * 2016-06-29 2018-01-05 新华三技术有限公司 A kind of flow path detection method and device
US10063415B1 (en) * 2016-06-29 2018-08-28 Juniper Networks, Inc. Network services using pools of pre-configured virtualized network functions and service chains
CN108476215A (en) * 2016-02-04 2018-08-31 华为技术有限公司 Services migrating method, apparatus and system

Patent Citations (10)

* 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)
CN108476215A (en) * 2016-02-04 2018-08-31 华为技术有限公司 Services migrating method, apparatus and system
CN107104811A (en) * 2016-02-22 2017-08-29 中兴通讯股份有限公司 A kind of network function implementation method and control device and network element
CN107547293A (en) * 2016-06-29 2018-01-05 新华三技术有限公司 A kind of flow path detection method and device
US10063415B1 (en) * 2016-06-29 2018-08-28 Juniper Networks, Inc. Network services using pools of pre-configured virtualized network functions and service chains

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
叶卫明等: "电信云NFV部署及其与SDN协同演进", 《电信科学》 *

Cited By (4)

* 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
WO2023116747A1 (en) * 2021-12-22 2023-06-29 华为技术有限公司 Message notification method and related apparatus
CN115580546A (en) * 2022-11-15 2023-01-06 科来网络技术股份有限公司 Data subscription method and device, electronic equipment and readable storage medium
CN115580546B (en) * 2022-11-15 2023-02-24 科来网络技术股份有限公司 Data subscription method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN109412850B (en) 2022-02-11

Similar Documents

Publication Publication Date Title
US11405427B2 (en) Multi-domain policy orchestration model
US10999189B2 (en) Route optimization using real time traffic feedback
JP7290732B2 (en) Data transfer method and related equipment
US10263808B2 (en) Deployment of virtual extensible local area network
US11290386B2 (en) FlowSpec message processing method and system, and apparatus
US11558247B2 (en) Method and apparatus for implementing composed virtual private network VPN
CN109525601B (en) Method and device for isolating transverse flow between terminals in intranet
CN109561033B (en) Method and device for multicast replication in Overlay network
CN104852840B (en) A kind of method and device exchanged visits between control virtual machine
CN102484604A (en) Techniques for routing data between network areas
CN109412850A (en) Message subscribing control method and device
US11296964B2 (en) Technologies for dynamically generating network topology-based and location-based insights
CN112272145B (en) Message processing method, device, equipment and machine readable storage medium
CN106302320A (en) For the method that the business of user is authorized, Apparatus and system
US20190215191A1 (en) Deployment Of Virtual Extensible Local Area Network
CN106357542B (en) The method and software defined network controller of multicast service are provided
US8559431B2 (en) Multiple label based processing of frames
US8612626B2 (en) Group member detection among nodes of a network
CN112956158A (en) Structured data plane monitoring
CN105637806A (en) Method and apparatus for determining network topology, and centralized network state information storage device
CN105939262B (en) Label distribution method and device
Hartpence Packet Guide to Routing and Switching: Exploring the Network Layer
CN107483340B (en) A kind of dynamic routing notifying method and SDN controller and network system
Makeri Design and Implementation of optimized features in a local area network for improvedenterprisenetwork
Liu et al. MPLS Working Group K. Raza Internet-Draft R. Asati Intended status: Standards Track Cisco Systems, Inc. Expires: January 9, 2017

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