CN110190995B - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN110190995B
CN110190995B CN201910452793.3A CN201910452793A CN110190995B CN 110190995 B CN110190995 B CN 110190995B CN 201910452793 A CN201910452793 A CN 201910452793A CN 110190995 B CN110190995 B CN 110190995B
Authority
CN
China
Prior art keywords
irf
serial number
equipment
connection information
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910452793.3A
Other languages
Chinese (zh)
Other versions
CN110190995A (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
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201910452793.3A priority Critical patent/CN110190995B/en
Publication of CN110190995A publication Critical patent/CN110190995A/en
Application granted granted Critical
Publication of CN110190995B publication Critical patent/CN110190995B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • 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/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a message processing method and device, which are applied to an equipment management module of a cloud platform. The method comprises the steps that a device management module receives a connection request sent by first IRF equipment, wherein the connection request comprises a first member equipment serial number of main equipment in the first IRF equipment; according to the first member equipment serial number, searching the first IRF equipment serial number from the mapping relation between the member equipment serial number and the IRF equipment serial number; recording a first IRF device serial number in first connection information of a connection; and if the first message is received through connection, replacing the first member device serial number included in the first message by using the first IRF device serial number recorded by the first connection information, and forwarding the first member device serial number to the service processing module, so that the service processing module identifies the first message as the message of the first IRF device based on the first IRF device serial number. The invention can simplify the message processing flow and improve the processing performance of the cloud platform.

Description

Message processing method and device
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for processing a packet.
Background
An Intelligent Resilient Framework (IRF) is a technology for virtualizing a plurality of devices into one device. That is, one IRF device is composed of a plurality of member devices. Each member device determines a device role (master or slave) through role election.
And the IRF equipment reports data to the cloud platform by using the equipment serial number of the main equipment. And if the main equipment fails, reselecting new main equipment, and reporting data by using the equipment serial number of the new main equipment. That is, the same IRF device may report data using different device sequence numbers.
The cloud platform identifies the data reported by different equipment serial numbers to determine whether the data is the data of the IRF equipment, and integrates the data reported by the IRF equipment by using different equipment serial numbers to externally present the data as the data of one IRF equipment. The processing process is too complex, and the processing performance of the cloud platform supporting mass equipment is seriously influenced.
Disclosure of Invention
In view of this, the present invention provides a message processing method and device for simplifying a message processing process and improving processing performance of a cloud platform, in order to solve the problem that the processing of the existing message is too complex and affects the processing performance of the cloud platform.
In order to achieve the purpose, the invention provides the following technical scheme:
in a first aspect, the present invention provides a packet processing method, which is applied to a device management module included in a cloud platform, where the cloud platform further includes a service processing module, the cloud platform interacts with a plurality of IRF devices, each IRF device includes a plurality of member devices, and the plurality of member devices determine a master device through role election, where the method includes:
receiving a connection request sent by a first IRF device, wherein the connection request comprises a first member device serial number of a main device in the first IRF device;
according to the first member equipment serial number, searching a first IRF equipment serial number from a mapping relation between the locally recorded member equipment serial number and the IRF equipment serial number;
recording the first IRF device sequence number in first connection information of a connection established with the first IRF device;
if a first message sent by the first IRF device is received through the connection, the first IRF device serial number recorded in the first connection information is used to replace the first member device serial number included in the first message, and the first member device serial number is forwarded to the service processing module, so that the service processing module identifies that the first message is the message of the first IRF device based on the first IRF device serial number.
Optionally, before searching for the first IRF device serial number, the method further includes:
the following processing is performed for each IRF device:
receiving an IRF configuration command, wherein the IRF configuration command comprises member device serial numbers of all member devices in the IRF devices;
generating an IRF device serial number of the IRF device based on the member device serial numbers of the member devices;
and establishing a mapping relation between the member equipment serial number of each member equipment and the IRF equipment serial number of the IRF equipment.
Optionally, the generating the IRF device serial number of the IRF device based on the member device serial numbers of the member devices includes:
acquiring the device type of the member device from the serial number of the member device;
determining a device type of the member device as a device type of the IRF device;
generating an IRF device sequence number of the IRF device, the IRF device sequence number including a device type of the IRF device.
Optionally, the recording, by the first connection information, the first member device serial number, and after the recording, by the first IRF device serial number, the recording, by the first connection information, further includes:
establishing a corresponding relation between the first IRF equipment serial number and the first connection information;
the method further comprises the following steps:
receiving a second message sent by the service processing module to the first IRF device, wherein the second message comprises a serial number of the first IRF device;
searching the first connection information from the corresponding relation between the locally recorded IRF equipment serial number and the connection information according to the first IRF equipment serial number;
and replacing the first IRF equipment serial number included in the second message by using the first member equipment serial number recorded by the first connection information, and forwarding the first IRF equipment serial number to the first IRF equipment through the connection.
In a second aspect, the present invention provides a packet processing apparatus, which is applied to a device management module included in a cloud platform, where the cloud platform further includes a service processing module, the cloud platform interacts with a plurality of IRF devices, each IRF device includes a plurality of member devices, and the plurality of member devices determine a master device through role election, where the apparatus includes:
a request receiving unit, configured to receive a connection request sent by a first IRF device, where the connection request includes a first member device serial number of a master device in the first IRF device;
the serial number searching unit is used for searching a first IRF equipment serial number from the locally recorded mapping relation between the member equipment serial number and the IRF equipment serial number according to the first member equipment serial number;
a serial number recording unit, configured to record the first IRF device serial number in first connection information of a connection established with the first IRF device;
a serial number replacing unit, configured to replace, if a first packet sent by the first IRF device is received through the connection, the first member device serial number included in the first packet with the first IRF device serial number recorded in the first connection information, and forward the first packet to the service processing module, so that the service processing module identifies, based on the first IRF device serial number, that the first packet is a packet of the first IRF device.
Optionally, the apparatus further comprises:
a command receiving unit, configured to receive an IRF configuration command, where the IRF configuration command includes a member device serial number of each member device in the IRF device;
a serial number generation unit, configured to generate an IRF device serial number of the IRF device based on the member device serial numbers of the member devices;
and the relationship establishing unit is used for establishing the mapping relationship between the member equipment serial number of each member equipment and the IRF equipment serial number of the IRF equipment.
Optionally, the member device serial number includes a device type of the member device, and the device types of the member devices are the same;
the serial number generation unit is specifically configured to obtain a device type of the member device from the member device serial number; determining a device type of the member device as a device type of the IRF device; generating an IRF device sequence number of the IRF device, the IRF device sequence number including a device type of the IRF device.
Optionally, the first connection information further records a serial number of the first member device, and the apparatus further includes:
a relationship establishing unit, configured to establish a corresponding relationship between the first IRF device serial number and the first connection information;
a message receiving unit, configured to receive a second message sent by the service processing module to the first IRF device, where the second message includes a serial number of the first IRF device;
a connection information searching unit, configured to search, according to the first IRF device serial number, the first connection information from a correspondence between a locally recorded IRF device serial number and connection information;
the serial number replacement unit is further configured to replace the first IRF device serial number included in the second packet with the first member device serial number recorded in the first connection information, and forward the first IRF device serial number to the first IRF device through the connection.
As can be seen from the above description, in the present invention, the device management module of the cloud platform replaces the member device serial number in the message sent by the IRF device with the IRF device serial number based on the mapping relationship between the member device serial number and the IRF device serial number. The service processing module of the cloud platform directly identifies the message of the IRF device based on the IRF device serial number, so that the message processing flow can be simplified, and the processing performance of the cloud platform is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a message processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating an implementation of generating a mapping relationship according to an embodiment of the present invention;
fig. 3 is an implementation flow of generating an IRF device serial number according to an embodiment of the present invention;
fig. 4 is a message sending processing flow according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a networking system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the negotiation information may also be referred to as second information, and similarly, the second information may also be referred to as negotiation information without departing from the scope of the present invention. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the method, a device management module of a cloud platform replaces a member device serial number in a message sent by an IRF device with an IRF device serial number according to a mapping relation between the member device serial number and the IRF device serial number. The service processing module of the cloud platform directly identifies the message of the IRF device based on the IRF device serial number, so that the message processing flow can be simplified, and the processing performance of the cloud platform is improved.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following detailed description of the embodiments of the present invention is performed with reference to the accompanying drawings and specific embodiments:
referring to fig. 1, a flowchart of a message processing method according to an embodiment of the present invention is shown. The process is applied to a device management module included in the cloud platform. The device management module is mainly used for performing device management on network devices (including IRF devices) connected with the cloud platform.
In the embodiment of the invention, the cloud platform further comprises a service processing module. The service processing module is mainly used for carrying out service processing on the received messages of different network devices.
The IRF device is composed of a plurality of member devices. And each member device determines a master device in the IRF devices through role election, and determines other member devices except the master device as slave devices.
As shown in fig. 1, the process may include the following steps:
step 101, a device management module receives a connection request sent by a first IRF device.
Here, the first IRF device is named only for convenience of distinction and is not intended to be limiting.
The connection request sent by the first IRF device includes a device sequence number of a master device in the first IRF device.
Here, each member device has a unique device serial number when shipped from the factory.
In the embodiment of the present invention, the device serial number of the member device is referred to as a member device serial number. And the member device serial number of the main device in the first IRF device is called as a first member device serial number. It is to be understood that the first member device serial number is named for convenience of distinguishing and is not intended to be limiting.
Step 102, the device management module searches the first IRF device serial number from the locally recorded mapping relationship between the member device serial number and the IRF device serial number according to the first member device serial number.
In the embodiment of the present invention, the device serial number of the IRF device is referred to as an IRF device serial number. The IRF device is a virtual device, and a generation process of the sequence number thereof is described below, which is not described herein for the moment.
The device management module records the mapping relation between the member device serial number of each member device and the IRF device serial number of each IRF device.
When the first member device serial number is obtained through step 101, the mapping relationship of the local record is queried, and the first IRF device serial number corresponding to the first member device serial number is found. Here, the first IRF device sequence number is named for convenience of distinction and is not intended to be limiting.
Step 103, the device management module records the first IRF device serial number in the first connection information of the connection established with the first IRF device.
In the embodiment of the present invention, the device management module establishes a connection with the first IRF device based on the connection request sent by the first IRF device, and records the serial number of the first IRF device in the first connection information of the connection.
Here, the first connection information is only named for convenience of distinction and is not intended to be limiting.
Step 104, if a first message sent by the first IRF device is received through the connection with the first IRF device, the device management module replaces the first member device serial number included in the first message with the first IRF device serial number recorded by the connected first connection information, and forwards the first member device serial number to the service processing module.
Here, the first message is only named for convenience of distinction and is not intended to be limiting. The first message includes a first member device serial number.
Through the steps, the first member equipment serial number included in the first message can be replaced by the first IRF equipment serial number.
And the equipment management module sends the replaced first message to the service processing module.
And the service processing module identifies the first message as the message of the first IRF device based on the serial number of the first IRF device.
Thus, the flow shown in fig. 1 is completed.
As can be seen from the process shown in fig. 1, in the present invention, the device management module of the cloud platform replaces the member device serial number in the message sent by the IRF device with the IRF device serial number according to the mapping relationship between the member device serial number and the IRF device serial number. The service processing module of the cloud platform can directly identify the message of the IRF device based on the IRF device serial number, so that the message processing flow can be simplified, and the processing performance of the cloud platform is improved.
Optionally, as an embodiment, before performing step 102, the device management module may generate a mapping relationship between the member device serial number and the IRF device serial number. Referring to fig. 2, an implementation flow for generating a mapping relationship according to an embodiment of the present invention is shown.
As shown in fig. 2, the process may include the following steps:
in step 201, the device management module receives an IRF configuration command.
The network administrator can issue the member device serial numbers of the member devices belonging to the same IRF device to the device management module of the cloud platform through the IRF configuration command.
And after receiving the IRF configuration command, the device management module acquires the member device serial number of each member device included in the IRF configuration command.
Step 202, the device management module generates an IRF device serial number of the IRF device to which the device management module belongs according to the member device serial number of each member device.
The process of generating the IRF device serial number by the device management module is described below, and is not described herein for the moment.
Step 203, the device management module establishes a mapping relationship between the member device serial number of each member device and the IRF device serial number of the IRF device.
The configuration of each IRF device is completed through step 201 to step 203.
Thus, the flow shown in fig. 2 is completed.
Through the process shown in fig. 2, the device management module locally generates a mapping relationship between the member device serial number and the IRF device serial number.
The following describes a process of generating an IRF device serial number by the device management module in step 202. Referring to fig. 3, an implementation flow for generating an IRF device serial number according to an embodiment of the present invention is shown.
As shown in fig. 3, the process may include the following steps:
step 301, the device management module obtains the device type of the member device from the serial number of the member device.
The member device serial number is typically comprised of a device type and a device code. For example, the string used to represent the member device serial number is 21980100000001, where "219801" is the device type; "00000001" is the device code.
In step 302, the device management module determines the device type of the member device as the device type of the IRF device to which the member device belongs.
Here, it should be noted that the member devices belonging to the same IRF device have the same device type. The device management module may directly determine the device type of the member device as the device type of the IRF device.
Step 303, the device management module generates an IRF device serial number of the IRF device.
The IRF device sequence number includes a device type of the IRF device. That is, the device management module may manage the IRF device based on the device type to be compatible with existing device management approaches.
The IRF device serial number may also include a device code. For example, the device code in the first IRF device serial number generated by the device management module is 00001, and so on.
In addition, to distinguish from the common network device, the IRF device serial number may further include an IRF flag for indicating that the current network device is an IRF device.
That is, as an embodiment, the IRF device serial number may include a device type, an IRF flag, and a device code. For example, the character string used to represent the IRF device serial number is 219801IRFIRF00001, where "219801" is the device type; "IRFIRF" is an IRF marker; "00001" is the device code.
The flow shown in fig. 3 is completed.
Through the flow shown in fig. 3, the device management module may generate an IRF device serial number.
Optionally, as an embodiment, after performing step 103, the device management module may further establish a corresponding relationship between the first IRF device serial number and the first connection information.
The device management module may also perform the following messaging process flow. Referring to fig. 4, a message sending processing flow according to an embodiment of the present invention is shown.
As shown in fig. 4, the process may include the following steps:
step 401, the device management module receives a second message sent by the service processing module to the first IRF device.
The second message includes a first IRF device serial number. Here, the second message is named only for convenience of distinction and is not intended to be limiting.
Step 402, the device management module searches the first connection information from the correspondence between the locally recorded IRF device serial number and the connection information according to the first IRF device serial number.
As described above, after the device management module records the first IRF device serial number in the first connection information, the device management module records the corresponding relationship between the first IRF device serial number and the first connection information.
When the device management module receives the second packet including the first IRF device serial number through step 401, the device management module may find the first connection information corresponding to the first IRF device serial number according to the recorded correspondence.
Step 403, the device management module replaces the first IRF device serial number included in the second packet with the first member device serial number recorded in the first connection information, and forwards the first IRF device serial number to the first IRF device through the connection with the first IRF device.
After establishing connection with the first IRF device, the device management module records a first IRF device serial number in the connected first connection information, and also records a first member device serial number of the main device of the first IRF device.
After the device management module finds the first connection information through step 402, the device management module may obtain a first member device serial number corresponding to the first IRF device serial number.
And the equipment management module replaces the first IRF equipment serial number included in the second message with the first member equipment serial number and then sends the first IRF equipment with the first member equipment serial number.
The flow shown in fig. 4 is completed.
As can be seen from the flow shown in fig. 4, in the present invention, the device management module performs sequence number replacement on the packet sent by the service processing module, that is, replaces the IRF device sequence number in the packet with the member device sequence number of the main device in the IRF device, so that both the service processing module and the IRF device are compatible with the existing processing method without modification.
The method provided by the embodiment of the invention is described by the following specific embodiment:
referring to fig. 5, a schematic diagram of a networking according to an embodiment of the present invention is shown. The networking includes a cloud platform 50, an IRF device 51, and an IRF device 52. The cloud platform 50 includes a business processing module 501 and a device management module 502. The IRF device 51 includes member devices 511 to 513. The IRF device 52 includes member devices 521 through 523.
Currently, the member device 511 is the master of the IRF device 51. The member device 521 is the master of the IRF device 52.
The network administrator issues a configuration command 1 to the device management module 502. The configuration command 1 includes member device serial numbers of the member devices 511 to 513, which are respectively recorded as 21980100000001, 21980100000002, and 21980100000003.
The device management module 502 obtains the device type "219801" in the member device serial number, and generates the IRF device serial number 219801IRFIRF00001 of the IRF device 51 according to the device type. And a mapping relationship between each member device serial number and the IRF device serial number is established, as shown in table 1.
Member device serial number IRF device serial number
21980100000001 219801IRFIRF00001
21980100000002 219801IRFIRF00001
21980100000003 219801IRFIRF00001
TABLE 1
Similarly, the network administrator issues configuration command 2 to the device management module 502. The configuration command 2 includes member device serial numbers of the member devices 521 to 523, which are respectively recorded as 31980100000001, 31980100000002, and 31980100000003.
The device management module 502 obtains the device type "319801" in the member device serial number, and generates the IRF device serial number 319801IRFIRF00002 of the IRF device 52 according to the device type. And establishes a mapping relationship between each member device serial number and the IRF device serial number, and adds the mapping relationship to table 1. After addition, as shown in table 2.
Figure BDA0002075673150000111
Figure BDA0002075673150000121
TABLE 2
The IRF device 51 sends a connection request, denoted as connection request 51, to the cloud platform 50. The member device serial number of the master device (member device 511) is included in the connection request 51 (21980100000001).
After receiving the connection request 51, the device management module 502 of the cloud platform 50 establishes a connection with the IRF device 51, which is denoted as a connection 51. The device management module 502 obtains the member device serial number 21980100000001 in the connection request 51. The device management module 502 finds the IRF device serial number 219801 irfirrf 00001 corresponding to the member device serial number from "21980100000001" look up table 2. And records the member device serial number 21980100000001 and the IRF device serial number 219801IRFIRF00001 in the connection information (denoted as connection information 51) of the connection 51. Meanwhile, the correspondence relationship between the IRF device serial number 219801IRFIRF00001 and the connection information 51 is recorded as shown in table 3.
IRF device serial number Connection information
219801IRFIRF00001 Connection information 51
TABLE 3
Similarly, if the IRF device 52 sends a connection request to the cloud platform 50, it is denoted as a connection request 52. The member device serial number (31980100000001) of the master device (member device 521) is included in the connection request 52.
After receiving the connection request 52, the device management module 502 of the cloud platform 50 establishes a connection with the IRF device 52, which is denoted as a connection 52. The device management module 502 obtains the member device serial number 31980100000001 in the connection request 52. The device management module 502 finds the IRF device serial number 319801 irfirrf 00002 corresponding to the member device serial number from "31980100000001" look up table 2. And records the member device serial number 31980100000001 and the IRF device serial number 319801IRFIRF00003 in the connection information (denoted as connection information 53) of the connection 53. Meanwhile, the correspondence between the IRF device serial number 319801IRFIRF00001 and the connection information 53 is recorded and added to table 3. After addition, as shown in table 4.
IRF device serial number Connection information
219801IRFIRF00001 Connection information 51
319801IRFIRF00002 Connection information 52
TABLE 4
If the device management module 502 receives a Packet sent by the IRF device 51 through the connection 51, the Packet is recorded as Packet51, and the Packet51 includes a member device serial number 21980100000001. The device management module 502 obtains the IRF device serial number 219801IRFIRF00001 recorded in the connection information 51 of the connection 51, replaces 21980100000001 in the Packet51 with the serial number, and records the replaced Packet as Packet 511. The device management module 502 forwards the Packet511 to the service processing module 501.
The service processing module 501 obtains the serial number 219801IRFIRF00001 carried in the Packet511, and determines that the currently received Packet is an IRF device Packet according to the IRF flag "IRFIRF" in the serial number, where the device number of the IRF device is 00001.
If the device management module 502 receives a Packet sent by the service processing module 501 to the IRF device 52, the Packet is recorded as Packet52, and the Packet52 includes an IRF device serial number 319801IRFIRF 00002. The device management module 502 finds the connection information 52 corresponding to "319801 irfirrf 00002" from the "319801 irfirrf 00002" lookup table 4. The device management module 502 obtains the member device serial number 31980100000001 recorded in the connection information 52, replaces "319801 IRFIRF 00002" in the Packet52 with "31980100000001", and records the replaced Packet as Packet 521. Device management module 502 sends Packet521 to IRF device 52.
If the master (member device 511) in the IRF device 51 fails, the master is reselected, for example, the member device 512 is elected as a new master. The IRF device 51 resends the connection request to the cloud platform 50, including the member device serial number 21980100000002 of the new master device (member device 512). After the device management module 502 reestablishes the connection with the IRF device 51, the member device serial number 21980100000002 and the corresponding IRF device serial number 219801IRFIRF00001 are recorded in the connection information of the new connection. Normal packet forwarding can be performed, which is not described herein again.
This completes the description of the present embodiment.
The method provided by the embodiment of the invention is described above, and the device provided by the embodiment of the invention is described below:
fig. 6 is a schematic structural diagram of an apparatus according to an embodiment of the present invention. The message processing device comprises: a request receiving unit 601, a sequence number searching unit 602, a sequence number recording unit 603, and a sequence number replacing unit 604, wherein:
a request receiving unit 601, configured to receive a connection request sent by a first IRF device, where the connection request includes a first member device serial number of a master device in the first IRF device;
a serial number searching unit 602, configured to search, according to the first member device serial number, a first IRF device serial number from a mapping relationship between a locally recorded member device serial number and an IRF device serial number;
a sequence number recording unit 603, configured to record the first IRF device sequence number in first connection information of a connection established with the first IRF device;
a serial number replacing unit 604, configured to replace, if a first packet sent by the first IRF device is received through the connection, the first member device serial number included in the first packet with the first IRF device serial number recorded in the first connection information, and forward the first packet to the service processing module, so that the service processing module identifies that the first packet is a packet of the first IRF device based on the first IRF device serial number.
As an embodiment, the apparatus further comprises:
a command receiving unit, configured to receive an IRF configuration command, where the IRF configuration command includes a member device serial number of each member device in the IRF device;
a serial number generation unit, configured to generate an IRF device serial number of the IRF device based on the member device serial numbers of the member devices;
and the relationship establishing unit is used for establishing the mapping relationship between the member equipment serial number of each member equipment and the IRF equipment serial number of the IRF equipment.
As an embodiment, the member device serial number includes a device type of the member device, and the device types of the member devices are the same;
the serial number generation unit is specifically configured to obtain a device type of the member device from the member device serial number; determining a device type of the member device as a device type of the IRF device; generating an IRF device sequence number of the IRF device, the IRF device sequence number including a device type of the IRF device.
As an embodiment, the first connection information further records a serial number of the first member device, and the apparatus further includes:
a relationship establishing unit, configured to establish a corresponding relationship between the first IRF device serial number and the first connection information;
a message receiving unit, configured to receive a second message sent by the service processing module to the first IRF device, where the second message includes a serial number of the first IRF device;
a connection information searching unit, configured to search, according to the first IRF device serial number, the first connection information from a correspondence between a locally recorded IRF device serial number and connection information;
the serial number replacing unit 604 is further configured to replace the first IRF device serial number included in the second packet with the first member device serial number recorded in the first connection information, and forward the first IRF device serial number to the first IRF device through the connection.
The description of the apparatus shown in fig. 6 is thus completed.
In the invention, the device management module of the cloud platform replaces the member device serial number in the message sent by the IRF device with the IRF device serial number based on the mapping relation between the member device serial number and the IRF device serial number. The service processing module of the cloud platform directly identifies the message of the IRF device based on the IRF device serial number, so that the message processing flow can be simplified, and the processing performance of the cloud platform is improved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the present invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the embodiments of the present invention should be included in the scope of the present invention.

Claims (8)

1. A message processing method is applied to a device management module included in a cloud platform, and is characterized in that the cloud platform further includes a service processing module, the cloud platform interacts with a plurality of Intelligent Resilient Framework (IRF) devices, each IRF device includes a plurality of member devices, the plurality of member devices determine a master device through role election, and the method includes:
receiving a connection request sent by a first IRF device, wherein the connection request comprises a first member device serial number of a main device in the first IRF device;
according to the first member equipment serial number, searching a first IRF equipment serial number from a mapping relation between the locally recorded member equipment serial number and the IRF equipment serial number;
recording the first IRF device sequence number in first connection information of a connection established with the first IRF device;
if a first message sent by the first IRF device is received through the connection, the first IRF device serial number recorded in the first connection information is used to replace the first member device serial number included in the first message, and the first member device serial number is forwarded to the service processing module, so that the service processing module identifies that the first message is the message of the first IRF device based on the first IRF device serial number.
2. The method of claim 1, wherein prior to said looking up the first IRF device sequence number, further comprising:
the following processing is performed for each IRF device:
receiving an IRF configuration command, wherein the IRF configuration command comprises member device serial numbers of all member devices in the IRF devices;
generating an IRF device serial number of the IRF device based on the member device serial numbers of the member devices;
and establishing a mapping relation between the member equipment serial number of each member equipment and the IRF equipment serial number of the IRF equipment.
3. The method of claim 2, wherein the member device serial number comprises a device type of a member device, the device type of each member device being the same, and wherein generating the IRF device serial number for the IRF device based on the member device serial number of each member device comprises:
acquiring the device type of the member device from the serial number of the member device;
determining a device type of the member device as a device type of the IRF device;
generating an IRF device sequence number of the IRF device, the IRF device sequence number including a device type of the IRF device.
4. The method of claim 1, wherein the first connection information further records the first member device sequence number, the recording of the first IRF device sequence number in the first connection information further comprising, after:
establishing a corresponding relation between the first IRF equipment serial number and the first connection information;
the method further comprises the following steps:
receiving a second message sent by the service processing module to the first IRF device, wherein the second message comprises a serial number of the first IRF device;
searching the first connection information from the corresponding relation between the locally recorded IRF equipment serial number and the connection information according to the first IRF equipment serial number;
and replacing the first IRF equipment serial number included in the second message by using the first member equipment serial number recorded by the first connection information, and forwarding the first IRF equipment serial number to the first IRF equipment through the connection.
5. The utility model provides a message processing apparatus, is applied to the equipment management module that cloud platform includes, and its characterized in that, cloud platform still includes the business processing module, cloud platform and a plurality of IRF equipment are mutual, and each IRF equipment includes a plurality of member's equipment, a plurality of member's equipment confirm the main equipment through the role election, the device includes:
a request receiving unit, configured to receive a connection request sent by a first IRF device, where the connection request includes a first member device serial number of a master device in the first IRF device;
the serial number searching unit is used for searching a first IRF equipment serial number from the locally recorded mapping relation between the member equipment serial number and the IRF equipment serial number according to the first member equipment serial number;
a serial number recording unit, configured to record the first IRF device serial number in first connection information of a connection established with the first IRF device;
a serial number replacing unit, configured to replace, if a first packet sent by the first IRF device is received through the connection, the first member device serial number included in the first packet with the first IRF device serial number recorded in the first connection information, and forward the first packet to the service processing module, so that the service processing module identifies, based on the first IRF device serial number, that the first packet is a packet of the first IRF device.
6. The apparatus of claim 5, wherein the apparatus further comprises:
a command receiving unit, configured to receive an IRF configuration command before the serial number searching unit searches for the first IRF device serial number, where the IRF configuration command includes member device serial numbers of member devices in the IRF device;
a serial number generation unit, configured to generate an IRF device serial number of the IRF device based on the member device serial numbers of the member devices;
and the relationship establishing unit is used for establishing the mapping relationship between the member equipment serial number of each member equipment and the IRF equipment serial number of the IRF equipment.
7. The apparatus of claim 6, wherein the member device serial number comprises a device type of the member device, the device type of each member device being the same;
the serial number generation unit is specifically configured to obtain a device type of the member device from the member device serial number; determining a device type of the member device as a device type of the IRF device; generating an IRF device sequence number of the IRF device, the IRF device sequence number including a device type of the IRF device.
8. The apparatus of claim 5, wherein the first connection information further records the first member device serial number, the apparatus further comprising:
a relationship establishing unit, configured to establish a corresponding relationship between the first IRF device serial number and the first connection information after the serial number recording unit records the first IRF device serial number in the first connection information;
a message receiving unit, configured to receive a second message sent by the service processing module to the first IRF device, where the second message includes a serial number of the first IRF device;
a connection information searching unit, configured to search, according to the first IRF device serial number, the first connection information from a correspondence between a locally recorded IRF device serial number and connection information;
the serial number replacement unit is further configured to replace the first IRF device serial number included in the second packet with the first member device serial number recorded in the first connection information, and forward the first IRF device serial number to the first IRF device through the connection.
CN201910452793.3A 2019-05-28 2019-05-28 Message processing method and device Active CN110190995B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910452793.3A CN110190995B (en) 2019-05-28 2019-05-28 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910452793.3A CN110190995B (en) 2019-05-28 2019-05-28 Message processing method and device

Publications (2)

Publication Number Publication Date
CN110190995A CN110190995A (en) 2019-08-30
CN110190995B true CN110190995B (en) 2022-04-26

Family

ID=67718294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910452793.3A Active CN110190995B (en) 2019-05-28 2019-05-28 Message processing method and device

Country Status (1)

Country Link
CN (1) CN110190995B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7336622B1 (en) * 2003-09-08 2008-02-26 Cisco Technology, Inc. Method and system for resolving switch number conflicts in a stackable switch system
CN103581274B (en) * 2012-08-09 2017-04-12 杭州华三通信技术有限公司 Message forwarding method and device in stacking system
CN103701622B (en) * 2013-12-12 2017-03-15 杭州华三通信技术有限公司 Multicast processing method and device based on IRF systems

Also Published As

Publication number Publication date
CN110190995A (en) 2019-08-30

Similar Documents

Publication Publication Date Title
CN105721315B (en) A kind of control method of centralization mac address learning
CN110752943B (en) Distributed fault diagnosis system and method for power transmission line
CN101764751A (en) Method, system and equipment for forwarding roaming messages for wireless user terminal travelling across VLAN
CN101577722A (en) Method for realizing MAC forced forwarding function and device
CN104144098A (en) Information pushing method and system and pushing server equipment
CN102209023A (en) Fiber channel over Ethernet (FCoE) communication connection establishment method, device, name server and system
US20080049607A1 (en) Method and apparatus for checking maintenance association integrity and method and apparatus for adding maintenance end point
CN103490983B (en) Corporate mail system and its method carrying out mail migration
US7369513B1 (en) Method and apparatus for determining a network topology based on Spanning-tree-Algorithm-designated ports
CN1329422A (en) Local network path control system capable of changing active terminal
CN110190995B (en) Message processing method and device
CN114222284A (en) Terminal equipment identification method and device and readable storage medium
CN105761003A (en) CMDB-based automatic registration asset system and implementation method thereof
CN107070797B (en) Method and system for forwarding message
WO2019076131A1 (en) Flexible ethernet message forwarding method and apparatus
CN103249010B (en) Communication equipment and communication means
CN106202084A (en) Date storage method and data storage device
CN115865844B (en) Virtual-real combined dynamic flow scheduling method and device based on SDN (software defined network) and NDN (non-dynamic network)
CN115102993B (en) Active access method, device and equipment for plug and play of terminal and readable medium
CN105052207B (en) Information query method, equipment and system
CN113791733B (en) Information storage method, device, equipment and storage medium
CN106357532B (en) Message response method and device
CN107493181B (en) Indication method and device of virtual expansion port
CA2623054A1 (en) Endpoint transparent independent messaging scheme system and method
CN105991450A (en) MAC address table updating 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