Message transmission method and frame type communication equipment

文档序号:1819792 发布日期:2021-11-09 浏览:14次 中文

阅读说明:本技术 报文传输的方法和框式通信设备 (Message transmission method and frame type communication equipment ) 是由 王建兵 秦晓鹏 丁俊 于 2020-05-06 设计创作,主要内容包括:本申请公开了报文传输的方法和框式通信设备,属于通信技术领域。报文传输的方法应用在框式通信设备中,框式通信设备包括第一MPU、第二MPU和LPU,第一MPU与LPU通过第一传输通道连接,第二MPU与LPU通过第二传输通道连接。在传输报文时,业务流报文通过第一传输通道传输,非业务流报文通过第二传输通道传输。从而,业务流报文和非业务流报文通过不同的传输通道传输,并由不同的MPU处理,业务流报文和非业务流报文之间不会互相竞争。这样,非业务流报文的传输效率提高,并且,在第一MPU受到异常的业务流报文攻击时,第二MPU不受影响,可以正常进行设备的运维管理。(The application discloses a message transmission method and frame type communication equipment, and belongs to the technical field of communication. The message transmission method is applied to a frame type communication device, the frame type communication device comprises a first MPU, a second MPU and an LPU, the first MPU is connected with the LPU through a first transmission channel, and the second MPU is connected with the LPU through a second transmission channel. When the message is transmitted, the service flow message is transmitted through the first transmission channel, and the non-service flow message is transmitted through the second transmission channel. Therefore, the service flow message and the non-service flow message are transmitted through different transmission channels and processed by different MPUs, and the service flow message and the non-service flow message cannot compete with each other. Therefore, the transmission efficiency of the non-service flow message is improved, and when the first MPU is attacked by the abnormal service flow message, the second MPU is not affected, and the operation and maintenance management of the equipment can be normally carried out.)

1. A method for message transmission, where the method is applied to a frame-type communication device, where the frame-type communication device includes a first main processing unit MPU, a second MPU, and a line interface processing unit LPU, the first MPU is connected to the LPU through a first transmission channel, and the second MPU is connected to the LPU through a second transmission channel, and the method includes:

the LPU determines the type of a first message to be transmitted;

if the first message belongs to a service flow message, the LPU sends the first message to the first MPU through the first transmission channel;

and if the first message belongs to a non-service flow message, the LPU sends the first message to the second MPU through the second transmission channel.

2. The method according to claim 1, wherein the non-traffic flow message comprises one or more of an operation and maintenance task class message, a configuration management class message, and an unknown class message; wherein the content of the first and second substances,

the operation and maintenance task type message comprises a gPRC message called by a google process, a safety shell ssh message and a simple network management protocol (snmp) message;

the configuration management message comprises messages carried by a table entry issuing task, a table entry configuration task, a table entry deleting task and a table entry reconciliation task.

3. The method of claim 2, wherein after the LPU sends the first packet to the second MPU via the second transmission channel, the method further comprises:

and the second MPU determines that the first message belongs to the unknown type message and discards or limits the speed of the first message.

4. The method according to claim 2, wherein the first packet belongs to the operation and maintenance task class packet, and before the LPU sends the first packet to the second MPU via the second transmission channel, the method further comprises:

the LPU receives a second message from the second MPU through the second transmission channel, wherein the second message belongs to the operation and maintenance task class message and comprises an equipment information acquisition instruction;

the LPU acquires the equipment information of the frame type communication equipment based on the equipment information acquisition instruction;

the LPU sends the first packet to the second MPU through the second transmission channel, including:

the LPU transmits the device information to the second MPU through the second transmission channel, the device information being included in the first message.

5. The method of any of claims 1-4, wherein the first MPU is a master MPU and the second MPU is a standby MPU.

6. The method according to any one of claims 1-5, further comprising:

and when the first MPU is in a failure state, the LPU sends the message belonging to the service flow message and the message belonging to the non-service flow message to the second MPU through the second transmission channel.

7. The method according to any one of claims 1-6, further comprising:

and when the second MPU is in a failure state, the LPU sends the message belonging to the service flow message and the message belonging to the non-service flow message to the first MPU through the first transmission channel.

8. The method of any of claims 1-7, wherein the traffic flow packets comprise Border Gateway Protocol (BGP) packets, Open Shortest Path First (OSPF) packets, intermediate system-intermediate system (IS-IS) packets, and Routing Information Protocol (RIP) packets.

9. A method for message transmission, where the method is applied to a frame-type communication device, where the frame-type communication device includes a first main processing unit MPU, a second MPU, and a line interface processing unit LPU, where the first MPU is connected to the LPU through a first transmission channel, the second MPU is connected to the LPU through a second transmission channel, and the first transmission channel is used to transmit a traffic flow message between the LPU and the first MPU, and the method includes:

and the second MPU sends a second message to the LPU through the second transmission channel, wherein the second message belongs to a non-service flow message.

10. The method of claim 9, wherein the non-traffic flow messages include one or more of operation and maintenance task class messages, configuration management class messages, and unknown type messages; wherein the content of the first and second substances,

the operation and maintenance task type message comprises a gPRC message called by a google process, a safety shell ssh message and a simple network management protocol (snmp) message;

the configuration management message comprises messages carried by a table entry issuing task, a table entry configuration task, a table entry deleting task and a table entry reconciliation task.

11. The method of claim 10, further comprising:

and the second MPU discards or limits the speed of a first message from the LPU received through the second transmission channel, wherein the first message belongs to the unknown type message.

12. The method according to claim 10, wherein the second packet belongs to the operation and maintenance task class packet, and the sending of the second packet to the LPU by the second MPU through the second transmission channel includes:

the second MPU sends a device information acquisition instruction to the LPU through the second transmission channel, where the device information acquisition instruction is included in the second message, and the device information acquisition instruction is used for instructing the LPU to acquire device information of the frame communication device;

after the second MPU sends a non-traffic flow packet to the LPU through the second transmission channel, the method further includes:

and the second MPU receives a first message sent by the LPU through the second transmission channel, wherein the first message belongs to the operation and maintenance task class message, and the equipment information is included in the first message.

13. The method according to claim 10, wherein the first MPU and the second MPU are connected via a third transmission channel, the second packet belongs to a configuration management class packet, and before the second MPU sends the second packet to the LPU via the second transmission channel, the method further comprises:

the second MPU acquires the synchronous table entry of the first MPU through the third transmission channel;

the second MPU sends the second packet to the LPU through the second transmission channel, including:

and the second MPU sends the entry to the LPU through the second transmission channel, where the entry is included in the second message, and the entry is a routing entry or a forwarding entry.

14. The method of any of claims 9-13, wherein the first MPU is a master MPU and the second MPU is a standby MPU.

15. The method according to any one of claims 9-14, further comprising:

and when the first MPU is in a failure state, the second MPU sends the message belonging to the service flow message and the message belonging to the non-service flow message to the LPU through the second transmission channel.

16. The method according to any one of claims 9-15, further comprising:

and when the second MPU is in a failure state, the first MPU sends the message belonging to the service flow message and the message belonging to the non-service flow message to the LPU through the first transmission channel.

17. The method of any of claims 9-16, wherein the traffic flow packets comprise Border Gateway Protocol (BGP) packets, Open Shortest Path First (OSPF) packets, intermediate system-intermediate system (IS-IS) packets, and Routing Information Protocol (RIP) packets.

18. A frame communication apparatus, characterized in that the frame communication apparatus comprises a first main processing unit MPU, a second MPU, and a line interface processing unit LPU, the first MPU being connected to the LPU through a first transmission channel, the second MPU being connected to the LPU through a second transmission channel;

the LPU is used for:

determining the type of a first message to be transmitted;

if the first message belongs to a service flow message, the first message is sent to the first MPU through the first transmission channel;

and if the first message belongs to a non-service flow message, sending the first message to the second MPU through the second transmission channel.

19. A frame communication device according to claim 18, wherein the second MPU is configured to:

and determining that the received first message belongs to the unknown type message, and discarding or limiting the speed of the first message.

20. The frame communication device according to claim 18, wherein the first packet belongs to the operation and maintenance task class packet, and the LPU is further configured to:

receiving a second message from the second MPU through the second transmission channel, wherein the second message belongs to the operation and maintenance task class message and comprises an equipment information acquisition instruction;

acquiring the equipment information of the frame type communication equipment based on the equipment information acquisition instruction;

and sending the device information to the second MPU through the second transmission channel, wherein the device information is included in the first message.

21. A frame communication device according to any one of claims 18 to 20, wherein the LPU is further adapted to

And when the first MPU is in a failure state, sending the message belonging to the service flow message and the message belonging to the non-service flow message to the second MPU through the second transmission channel.

22. A frame communication device according to any one of claims 18-20, wherein the LPU is further configured to:

and when the second MPU is in a failure state, sending the message belonging to the service flow message and the message belonging to the non-service flow message to the first MPU through the first transmission channel.

23. A frame communication device, where the frame communication device includes a first main processing unit MPU, a second MPU, and a line interface processing unit LPU, where the first MPU is connected to the LPU through a first transmission channel, the second MPU is connected to the LPU through a second transmission channel, and the first transmission channel is used to transmit a traffic flow packet between the LPU and the first MPU;

the second MPU is to:

and sending a second message to the LPU through the second transmission channel, wherein the second message belongs to a non-service flow message.

24. A frame communication device according to claim 23, wherein the second MPU is further configured to:

and discarding or limiting the speed of a first message from the LPU received through the second transmission channel, wherein the first message belongs to the unknown type message.

25. The frame communication device according to claim 23, wherein the second packet belongs to the operation and maintenance task class packet, and the second MPU is configured to:

sending a device information acquisition instruction to the LPU through the second transmission channel, where the device information acquisition instruction is included in the second message, and the device information acquisition instruction is used to instruct the LPU to acquire device information of the frame communication device;

and receiving a first message sent by the LPU through the second transmission channel, wherein the first message belongs to the operation and maintenance task class message, and the equipment information is included in the first message.

26. The frame communication device according to claim 23, wherein the first MPU and the second MPU are connected via a third transmission channel, the second packet belongs to a configuration management class packet, and the second MPU is configured to:

acquiring the synchronous table entry of the first MPU through the third transmission channel;

and sending the table entry to the LPU through the second transmission channel, where the table entry is included in the second message, and the table entry is a routing table entry or a forwarding table entry.

27. A frame communication device according to any one of claims 23 to 26, wherein the second MPU is further configured to:

and when the first MPU is in a failure state, sending the message belonging to the service flow message and the message belonging to the non-service flow message to the LPU through the second transmission channel.

28. A frame communication device according to any one of claims 23 to 26, wherein the first MPU is configured to:

and when the second MPU is in a failure state, sending the message belonging to the service flow message and the message belonging to the non-service flow message to the LPU through the first transmission channel.

Technical Field

The present application relates to the field of communications technologies, and in particular, to a method for packet transmission and a frame-type communications device.

Background

A frame communication device, such as a frame switch, generally includes a Main Processing Unit (MPU) and a Line interface Processing Unit (LPU), and the MPU and the LPU are connected by a transmission channel. In addition, in order to improve the reliability of the service, the switch is generally provided with a main MPU and a standby MPU, under normal conditions, all services of the equipment are operated on the main MPU, once the main MPU fails, the main and standby switching is carried out, and the standby MPU is upgraded to be the main MPU to continue operating the services, so that the services are not interrupted, and the reliability of the services is improved.

In carrying out the present application, the applicant has found that the related art has at least the following problems: when the frame-type communication device transmits the messages, the messages include service flow messages and non-service flow messages, the non-service flow messages include operation and maintenance task class messages, configuration management class messages and unknown type messages, and the number of the service flow messages in all the messages is the largest.

The service flow message and the non-service flow message compete with each other, and in order to ensure the reliability of the service, the transmission space of the non-service flow message is compressed, which results in that the transmission efficiency of the non-service flow message is too low. Moreover, when the main MPU is attacked by an abnormal traffic packet, a Central Processing Unit (CPU) in the main MPU may be overloaded, which may result in failure to perform operation and maintenance management of the device.

Disclosure of Invention

The embodiment of the application provides a message transmission method and frame type communication equipment, and the message transmission method is applied to the frame type communication equipment. By adopting the technical scheme provided by the embodiment of the application, the transmission efficiency of the non-service flow message can be improved, and the influence of the attack of the service flow message on the operation and maintenance task and the management task is reduced. The technical scheme of the message transmission method and the frame type communication equipment is as follows:

in a first aspect, a method for packet transmission is provided, where the method is applied to a frame communication device, where the frame communication device includes a first Main Processing Unit (MPU), a second MPU, and a Line interface Processing Unit (LPU), where the first MPU is connected to the LPU through a first transmission channel, and the second MPU is connected to the LPU through a second transmission channel, and the method includes: the LPU determines the type of a first message to be transmitted; if the first message belongs to a service flow message, the LPU sends the first message to the first MPU through the first transmission channel; and if the first message belongs to a non-service flow message, the LPU sends the first message to the second MPU through the second transmission channel.

Among them, the frame communication apparatus may be any communication apparatus having an LPU and at least two MPUs. For example, it may be a box switch, a box router, etc.

The MPU (the first MPU or the second MPU), which may also be referred to as a main processing unit, integrates the main control unit and the system maintenance unit, and is responsible for centralized control and management of the frame-type communication device and data exchange. The MPU comprises a Central Processing Unit (CPU) and a local area network Switch (Lan Switch, LSW) chip, wherein the CPU is responsible for centralized control and management, the LSW chip is responsible for forwarding messages, and the messages are forwarded through the LSW chip and then uploaded to the CPU for Processing after entering an MPU network port. The LSW chip may also be referred to as a forwarding engine, which may be referred to as an LSW for short.

The LPU, which may also be referred to as a line interface processing unit, is also referred to as a service board. Ip (internet protocol) packets outside the frame communication device are input into the frame communication device from the physical interface of the LPU. A plurality of LPUs may be included in a block communication device.

The first transmission channel may be a transmission channel of 100M, 1G or 10G, and the second transmission channel may also be a transmission channel of 100M, 1G or 10G. The bandwidths of the first transmission channel and the second transmission channel may be the same or different, and this is not limited in this application.

According to the scheme shown in the embodiment of the application, when the LPU sends the message to the MPU, the type of the message to be transmitted is determined, and the target MPU is determined according to the type of the message to be transmitted. Specifically, when a first message to be transmitted belongs to a service flow message, the first message is sent to a first MPU through a first transmission channel; and when the second message to be transmitted belongs to the non-service flow message, transmitting the second message to a second MPU through a second transmission channel.

Therefore, the service flow message and the non-service flow message are transmitted through different transmission channels, the service flow message and the non-service flow message cannot compete with each other, and the transmission efficiency of the service flow message and the non-service flow message is high. And when the first MPU is attacked by the abnormal service flow message, the second MPU is not affected, and the second MPU can also normally perform operation and maintenance management on the equipment.

In a possible implementation manner, the non-service flow packet includes one or more of an operation and maintenance task packet, a configuration management packet, and an unknown packet; the operation and maintenance task class message includes a google process Call (gRPC) message, a secure shell (ssh) message, and a simple network management protocol (snmp) message; the configuration management message comprises messages carried by a table entry issuing task, a table entry configuration task, a table entry deleting task and a table entry reconciliation task.

In a possible implementation manner, after the LPU sends the first packet to the second MPU through the second transmission channel, the method further includes: and the second MPU determines that the first message belongs to the unknown type message and discards or limits the speed of the first message.

In the solution shown in the embodiment of the present application, in order to reduce the impact on the normal operation and maintenance task and the configuration management task, the second MPU may perform filtering processing on the non-service flow packet received through the second transmission channel.

Specifically, the second MPU determines the message type of the received non-service flow message, and discards or limits the speed of the unknown message when determining that the message type is the unknown message. And normally releasing the operation and maintenance task message and the configuration management message.

In a possible implementation manner, the first packet belongs to the operation and maintenance task class packet, and before the LPU sends the first packet to the second MPU through the second transmission channel, the method further includes: the LPU receives a second message from the second MPU through the second transmission channel, wherein the second message belongs to the operation and maintenance task class message and comprises an equipment information acquisition instruction; and the LPU acquires the equipment information of the frame type communication equipment based on the equipment information acquisition instruction.

The LPU sends the first packet to the second MPU through the second transmission channel, including: the LPU transmits the device information to the second MPU through the second transmission channel, the device information being included in the first message.

The equipment information is included in the first message, and the equipment information acquisition indication is included in the second message and belongs to the operation and maintenance task class message.

According to the scheme shown in the embodiment of the application, when the operation and maintenance task is processed, the second MPU needs to acquire the device information of the frame type communication device.

Specifically, the second MPU issues an equipment information acquisition instruction to the LPU through the second transmission channel, and the LPU receives the equipment acquisition instruction. Then, the LPU collects device information of the frame communication device based on the device collection instruction. Then, the LPU transmits the collected device information to the second MPU through the second transmission channel. The second MPU receives the device information and performs corresponding processing.

In one possible implementation, the first MPU is a master MPU, and the second MPU is a standby MPU.

In the solution shown in the embodiment of the present application, since the data volume of the service flow packet is larger than that of the non-service flow packet, the main MPU may perform processing related to the service flow packet, and the standby MPU may perform processing related to the non-service flow packet. That is, the main MPU may be configured as the first MPU, and the standby MPU may be configured as the second MPU.

Moreover, the first MPU and the second MPU are in a master-slave relationship with each other, so that when one MPU fails, the other MPU can also carry out processing on all messages, and all types of messages are transmitted through a transmission channel corresponding to the MPU. Thus, the reliability of the operation of the frame communication apparatus is improved.

In a possible implementation manner, when the first MPU is in a failure state, the LPU sends both the packet belonging to the traffic flow packet and the packet belonging to the non-traffic flow packet to the second MPU through the second transmission channel.

The first MPU fails, which means that the first MPU cannot perform corresponding processing on the service flow packet any more. Specifically, it may be that the first MPU malfunctions.

In the embodiment of the present application, when the first MPU is in a failure state, the second MPU can perform the original processing of the first MPU. Specifically, the LPU determines that the first MPU is out of order, and transmits both the messages belonging to the service flow message and the messages belonging to the non-service flow message to the second MPU via the second transmission channel. The second MPU performs corresponding processing on the received service flow message and non-service flow message.

In a possible implementation manner, when the second MPU is in a failure state, the LPU sends both the packet belonging to the traffic flow packet and the packet belonging to the non-traffic flow packet to the first MPU through the first transmission channel.

And the second MPU is invalid, namely the second MPU can not perform corresponding processing on the non-service flow message any more. For example, it may be that the second MPU malfunctions.

In the embodiment of the present application, when the second MPU is in a failure state, the first MPU can perform the original processing of the second MPU. Specifically, the LPU determines that the second MPU is disabled, and transmits both the messages belonging to the service flow message and the messages belonging to the non-service flow message to the first MPU via the first transmission channel. The first MPU performs corresponding processing on the received service flow packet and non-service flow packet.

In a possible implementation manner, the service flow packet includes a Border Gateway Protocol (BGP) packet, an Open Shortest Path First (OSPF) packet, an Intermediate System to Intermediate System (IS-IS) packet, and a Routing Information Protocol (RIP) packet.

In a second aspect, a method for message transmission is provided, where the method is applied in a frame communication device, where the frame communication device includes a first main processing unit MPU, a second MPU, and a line interface processing unit LPU, where the first MPU is connected to the LPU through a first transmission channel, the second MPU is connected to the LPU through a second transmission channel, and the first transmission channel is used to transmit a traffic flow message between the LPU and the first MPU, where the method includes: and the second MPU sends a second message to the LPU through the second transmission channel, wherein the second message belongs to a non-service flow message.

Among them, the frame communication apparatus may be any communication apparatus having an LPU and at least two MPUs. For example, it may be a box switch, a box router, etc.

The MPU (the first MPU or the second MPU), which may also be referred to as a main processing unit, integrates the main control unit and the system maintenance unit, and is responsible for centralized control and management of the frame-type communication device and data exchange. The MPU comprises a Central Processing Unit (CPU) and an LSW chip, wherein the CPU is responsible for centralized control and management, the LSW chip is responsible for forwarding messages, and the messages are forwarded through the LSW chip and then uploaded to the CPU for processing after entering an MPU network port. The LSW chip may also be referred to as a forwarding engine, which may be referred to as an LSW for short.

The LPU, which may also be referred to as a line interface processing unit, is also referred to as a service board. Ip (internet protocol) packets outside the frame communication device are input into the frame communication device from the physical interface of the LPU. A plurality of LPUs may be included in a block communication device.

The first transmission channel may be a transmission channel of 100M, 1G or 10G, and the second transmission channel may also be a transmission channel of 100M, 1G or 10G. The bandwidths of the first transmission channel and the second transmission channel may be the same or different, and this is not limited in this application.

In the solution shown in the embodiment of the present application, the first MPU is connected to the LPU through a first transmission channel, and the first transmission channel is used for transmitting a service flow packet between the first MPU and the LPU. The second MPU is connected with the LPU through a second transmission channel, and the second transmission channel is used for transmitting the non-service flow message.

Therefore, the service flow message and the non-service flow message are transmitted through different transmission channels, the service flow message and the non-service flow message cannot compete with each other, and the transmission efficiency of the service flow message and the non-service flow message is high. And when the first MPU is attacked by the abnormal service flow message, the second MPU is not affected, and the second MPU can also normally perform operation and maintenance management on the equipment.

In a possible implementation manner, the non-service flow packet includes one or more of an operation and maintenance task packet, a configuration management packet, and an unknown packet; the operation and maintenance task message comprises a gPC message, an ssh message and a snmp message; the configuration management message comprises messages carried by a table entry issuing task, a table entry configuration task, a table entry deleting task and a table entry reconciliation task.

In one possible implementation, the method further includes: and the second MPU discards or limits the speed of a first message from the LPU received through the second transmission channel, wherein the first message belongs to an unknown type message.

In the solution shown in the embodiment of the present application, in order to reduce the impact on the normal operation and maintenance task and the configuration management task, the second MPU may perform filtering processing on the non-service flow packet received through the second transmission channel.

Specifically, the second MPU determines the message type of the received non-service flow message, and discards or limits the speed of the unknown message when determining that the message type is the unknown message. And normally releasing the operation and maintenance task message and the configuration management message.

In a possible implementation manner, the sending, by the second MPU, the second packet to the LPU through the second transmission channel includes: the second MPU sends a device information acquisition instruction to the LPU through the second transmission channel, where the device information acquisition instruction is included in the second message, and the device information acquisition instruction is used for instructing the LPU to acquire device information of the frame communication device;

after the second MPU sends a traffic flow packet to the LPU through the second transmission channel, the method further includes: and the second MPU receives a first message sent by the LPU through the second transmission channel, wherein the first message belongs to the operation and maintenance task class message, and the equipment information is included in the first message.

The equipment information is included in the first message, and the equipment information acquisition indication is included in the second message and belongs to the operation and maintenance task class message.

According to the scheme shown in the embodiment of the application, when the operation and maintenance task is processed, the second MPU needs to acquire the device information of the frame type communication device.

Specifically, the second MPU issues an equipment information acquisition instruction to the LPU through the second transmission channel, and the LPU receives the equipment acquisition instruction. Then, the LPU collects device information of the frame communication device based on the device collection instruction. Then, the LPU transmits the collected device information to the second MPU through the second transmission channel. The second MPU receives the device information and performs corresponding processing.

In a possible implementation manner, the first MPU is connected to the second MPU through a third transmission channel, the second packet belongs to a configuration management packet, and before the second MPU sends the second packet to the LPU through the second transmission channel, the method further includes: and the second MPU acquires the synchronous table entry of the first MPU through the third transmission channel.

And the second MPU sends the entry to the LPU through the second transmission channel, where the entry is included in the second message, and the entry is a routing entry or a forwarding entry.

Wherein, the third transmission channel can be a transmission channel of 1GE or 10 GE. The table entry is a routing table entry or a forwarding table entry, is included in the second message, and belongs to the configuration management type message.

In the solution shown in the embodiment of the present application, the configuration management task mainly relates to processing of issuing the table entry. When the table entry is issued, firstly, the second MPU performs table entry synchronization through the third transmission channel to acquire the table entry synchronized by the first MPU. Then, the second MPU sends the table entry to the LPU through the second transmission channel, thereby completing the processing of table entry issuing.

In one possible implementation, the first MPU is a master MPU, and the second MPU is a standby MPU.

In the solution shown in the embodiment of the present application, since the data volume of the service flow packet is larger than that of the non-service flow packet, the main MPU may perform processing related to the service flow packet, and the standby MPU may perform processing related to the non-service flow packet. That is, the main MPU may be configured as the first MPU, and the standby MPU may be configured as the second MPU.

Moreover, the first MPU and the second MPU are in a master-slave relationship with each other, so that when one MPU fails, the other MPU can also carry out processing on all messages, and all types of messages are transmitted through a transmission channel corresponding to the MPU. Thus, the reliability of the operation of the frame communication apparatus is improved.

In one possible implementation, the method further includes: and when the first MPU is in a failure state, the second MPU sends the message belonging to the service flow message and the message belonging to the non-service flow message to the LPU through the second transmission channel.

The first MPU fails, which means that the first MPU cannot perform corresponding processing on the service flow packet any more. Specifically, it may be that the first MPU malfunctions.

In the embodiment of the present application, when the first MPU is in a failure state, the second MPU can perform the original processing of the first MPU. The second MPU forwards messages belonging to the traffic flow messages and the non-traffic flow messages to the LPU through the second transmission channel.

In one possible implementation, the method further includes: and when the second MPU is in a failure state, the first MPU sends the message belonging to the service flow message and the message belonging to the non-service flow message to the LPU through the first transmission channel.

And the second MPU is invalid, namely the second MPU can not perform corresponding processing on the non-service flow message any more. For example, it may be that the second MPU malfunctions.

In the embodiment of the present application, when the second MPU is in a failure state, the first MPU can perform the original processing of the second MPU. The first MPU forwards messages belonging to the traffic flow messages and the non-traffic flow messages to the LPU through the first transmission channel.

In a possible implementation manner, the service flow packet includes a BGP packet, an OSPF packet, an IS-IS packet, and a RIP packet.

In a third aspect, there is provided a frame communication apparatus, comprising a first main processing unit MPU, a second MPU, and a line interface processing unit LPU, the first MPU being connected to the LPU via a first transmission channel, the second MPU being connected to the LPU via a second transmission channel;

the LPU is used for:

determining the type of a first message to be transmitted;

if the first message belongs to a service flow message, the first message is sent to the first MPU through the first transmission channel;

and if the first message belongs to a non-service flow message, sending the first message to the second MPU through the second transmission channel.

In one possible implementation, the second MPU is configured to:

and determining that the received first message belongs to the unknown type message, and discarding or limiting the speed of the first message.

In a possible implementation manner, the first packet belongs to the operation and maintenance task class packet, and the LPU is further configured to:

receiving a second message from the second MPU through the second transmission channel, wherein the second message belongs to the operation and maintenance task class message and comprises an equipment information acquisition instruction;

acquiring the equipment information of the frame type communication equipment based on the equipment information acquisition instruction;

and sending the device information to the second MPU through the second transmission channel, wherein the device information is included in the first message.

In one possible implementation, the LPU is further configured to

And when the first MPU is in a failure state, sending the message belonging to the service flow message and the message belonging to the non-service flow message to the second MPU through the second transmission channel.

In one possible implementation, the LPU is further configured to:

and when the second MPU is in a failure state, sending the message belonging to the service flow message and the message belonging to the non-service flow message to the first MPU through the first transmission channel.

In a possible implementation manner, the non-service flow packet includes one or more of an operation and maintenance task packet, a configuration management packet, and an unknown packet; wherein the content of the first and second substances,

the operation and maintenance task message comprises a gPC message, an ssh message and a snmp message;

the configuration management message comprises messages carried by a table entry issuing task, a table entry configuration task, a table entry deleting task and a table entry reconciliation task.

In one possible implementation, the first MPU is a master MPU, and the second MPU is a standby MPU.

In a possible implementation manner, the service flow packet includes a BGP packet, an OSPF packet, an IS-IS packet, and a RIP packet.

In a fourth aspect, a frame communication device is provided, where the frame communication device includes a first main processing unit MPU, a second MPU, and a line interface processing unit LPU, where the first MPU is connected to the LPU through a first transmission channel, the second MPU is connected to the LPU through a second transmission channel, and the first transmission channel is used to transmit a traffic flow packet between the LPU and the first MPU;

the second MPU is to:

and sending a second message to the LPU through the second transmission channel, wherein the second message belongs to a non-service flow message.

In one possible implementation, the second MPU is further configured to:

and discarding or limiting the speed of a first message from the LPU received through the second transmission channel, wherein the first message belongs to the unknown type message.

In a possible implementation manner, the second packet belongs to the operation and maintenance task packet, and the second MPU is further configured to:

sending a device information acquisition instruction to the LPU through the second transmission channel, where the device information acquisition instruction is included in the second message, and the device information acquisition instruction is used to instruct the LPU to acquire device information of the frame communication device;

and receiving a first message sent by the LPU through the second transmission channel, wherein the first message belongs to the operation and maintenance task class message, and the equipment information is included in the first message.

In a possible implementation manner, the first MPU is connected to the second MPU through a third transmission channel, the second packet belongs to a configuration management packet, and the second MPU is configured to:

acquiring the synchronous table entry of the first MPU through the third transmission channel;

and sending the table entry to the LPU through the second transmission channel, where the table entry is included in the second message, and the table entry is a routing table entry or a forwarding table entry.

In one possible implementation, the second MPU is further configured to:

and when the first MPU is in a failure state, sending the message belonging to the service flow message and the message belonging to the non-service flow message to the LPU through the second transmission channel.

In one possible implementation, the first MPU is configured to:

and when the second MPU is in a failure state, sending the message belonging to the service flow message and the message belonging to the non-service flow message to the LPU through the first transmission channel.

In a possible implementation manner, the non-service flow packet includes one or more of an operation and maintenance task packet, a configuration management packet, and an unknown packet; wherein the content of the first and second substances,

the operation and maintenance task message comprises a gPC message, an ssh message and a snmp message;

the configuration management message comprises messages carried by a table entry issuing task, a table entry configuration task, a table entry deleting task and a table entry reconciliation task.

In one possible implementation, the first MPU is a master MPU, and the second MPU is a standby MPU.

In a possible implementation manner, the service flow packet includes a BGP packet, an OSPF packet, an IS-IS packet, and a RIP packet.

The technical scheme provided by the embodiment of the application has the following beneficial effects:

the embodiment of the application provides a message transmission method, which is applied to a frame type communication device, where the frame type communication device includes a first MPU, a second MPU, and an LPU. The first MPU and the LPU are connected through a first transmission channel, and the second MPU and the LPU are connected through a second transmission channel. When the message is transmitted, the service flow message is transmitted through the first transmission channel, and the non-service flow message is transmitted through the second transmission channel. Therefore, in the message transmission process, the service flow message and the non-service flow message cannot compete with each other, and the transmission efficiency of the service flow message and the non-service flow message is high. And when the first MPU is attacked by the abnormal service flow message, the second MPU is not affected, and the operation and maintenance management of the equipment can be normally carried out.

Drawings

Fig. 1 is a schematic structural diagram of a frame communication device according to an embodiment of the present application;

fig. 2 is a schematic structural diagram of a frame communication device according to an embodiment of the present application;

fig. 3 is a schematic structural diagram of a frame communication device according to an embodiment of the present application;

fig. 4 is a flowchart of a method for message transmission according to an embodiment of the present application;

fig. 5 is a flowchart of a method for message transmission according to an embodiment of the present application;

fig. 6 is a schematic transmission diagram of an operation and maintenance task class packet according to an embodiment of the present application;

fig. 7 is a schematic transmission diagram of a configuration management type packet according to an embodiment of the present application;

fig. 8 is a timing diagram illustrating transmission of a configuration management type packet according to an embodiment of the present application.

Detailed Description

The embodiment of the application provides a message transmission method and frame type communication equipment, wherein the message transmission method can be applied to the frame type communication equipment, and the frame type communication equipment can be a frame type switch or a frame type router and the like. As shown in fig. 1 to 3, the frame communication apparatus includes a first Main Processing Unit (MPU), a second MPU, and a Line Processing Unit (LPU).

The MPU (the first MPU or the second MPU), which may also be referred to as a main processing unit, integrates the main control unit and the system maintenance unit, and is responsible for centralized control and management of the frame-type communication device and data exchange. As shown in fig. 2 and fig. 3, the MPU includes a Central Processing Unit (CPU) and a Lan Switch (LSW) chip, where the CPU is responsible for centralized control and management, the LSW chip is responsible for forwarding a message, and the message enters an MPU network port, is forwarded by the LSW chip, and is then sent to the CPU for Processing. The LSW chip may also be referred to as a forwarding engine, which may be referred to as an LSW for short. In order to improve the reliability of the frame communication device, the MPU in the frame communication device provided in the embodiment of the present application may adopt a 1:1 redundancy backup design, that is, the first MPU and the second MPU may be mutually active and standby. Most of the messages processed by the frame-type communication equipment belong to service flow messages, so the related processing of the service flow messages can be performed by the main MPU, and the non-service flow messages can be performed by the standby MPU. That is, the first MPU in the box communication apparatus may be a main MPU, and the second MPU in the box communication apparatus may be a standby MPU.

The LPU, which may also be referred to as a line interface processing unit, is also referred to as a service board. Ip (internet protocol) packets outside the frame communication device are input into the frame communication device from the physical interface of the LPU. A plurality of LPUs may be included in a block communication device.

The first MPU is connected with the LPU through a first transmission channel, and the second MPU is connected with the LPU through a second transmission channel. The first transmission channel is used for transmitting service flow messages, and the second transmission channel is used for transmitting non-service flow messages. Therefore, the service flow message and the non-service flow message are transmitted through different transmission channels, the service flow message and the non-service flow message cannot compete with each other, and the transmission efficiency of the service flow message and the non-service flow message is high. Moreover, because the first MPU is responsible for processing the service flow message and the second MPU is responsible for processing the non-service flow message, when the first MPU is attacked by the abnormal service flow message, the second MPU is not affected, and the second MPU can also normally carry out operation and maintenance management on the equipment. The first transmission channel may be a transmission channel of 100M, 1G or 10G, and the second transmission channel may also be a transmission channel of 100M, 1G or 10G. The bandwidths of the first transmission channel and the second transmission channel may be the same or different, and this is not limited in this application. In addition, the first MPU and the second MPU may be connected via a third transmission channel, so that data synchronization may be performed between the first MPU and the second MPU, for example, table entry synchronization, such as synchronization of a routing table entry or a forwarding table entry, may be performed. Wherein, the third transmission channel can be a transmission channel of 1GE or 10 GE.

It should be added that, as shown in fig. 3, since the configuration management task and the operation and maintenance management task are processed by the second MPU, the second MPU may also be connected to a Network Cloud Engine (NCE). Thus, the NCE can directly control the second MPU without having to forward through the first MPU.

In the following, in order to facilitate understanding of the service flow packet and the non-service flow packet, the service flow packet and the non-service flow packet are introduced:

traffic flow messages may also be referred to as protocol messages. The service flow packet includes a Border Gateway Protocol (BGP) packet, an Open Shortest Path First (OSPF) packet, an Intermediate System to Intermediate System (IS-IS) packet, and a Routing Information Protocol (RIP) packet, but IS not limited thereto.

The non-service flow message may include one or more of an operation and maintenance task class message, a configuration management class message, and an unknown class message. The operation and maintenance task class message includes a google Procedure Call (gRPC) message, a secure shell (ssh) message, and a simple network management protocol (snmp) message, but is not limited thereto. The configuration management type message includes, but is not limited to, a message carried by an entry issuing task, an entry configuration task, an entry deleting task, and an entry reconciliation task. The unknown type of message may also be referred to as an UnKown message.

An embodiment of the present application provides a method for packet transmission, as shown in fig. 4, where the method for packet transmission may be implemented by an LPU in a frame-type communication device, and a processing flow of the method will be described in detail below with reference to a specific implementation, and the content may be as follows:

step 401, the LPU determines the type of the first packet to be transmitted.

According to the scheme shown in the embodiment of the application, when the LPU sends the message to the MPU, the type of the first message to be transmitted needs to be determined first, then, the target MPU is determined according to the specific type, and then, the first message is sent to the target MPU through the corresponding transmission channel. Specifically, if the first packet belongs to a service flow packet, go to step 402a to execute; if the first message belongs to the non-traffic flow message, go to step 402b to process.

Step 402a, if the first packet belongs to a service flow packet, the LPU sends the first packet to the first MPU through the first transmission channel.

According to the scheme shown in the embodiment of the application, when the first message is determined to belong to the service flow message, the LPU sends the first message to the first MPU through the first transmission channel, and the first MPU performs corresponding processing on the service flow message.

And 402b, if the second message belongs to a non-service flow message, the LPU sends the first message to the second MPU through the second transmission channel.

According to the scheme shown in the embodiment of the application, when the first message is determined to belong to the non-service flow message, the LPU sends the first message to the second MPU through the second transmission channel, and the second MPU performs corresponding processing on the non-service flow message.

In addition, in order to reduce the impact on normal operation and maintenance tasks and configuration management tasks, after receiving the first message, the second MPU may perform filtering processing on the received first message. First, the second MPU determines the type of the received first packet. And if the first message is determined to belong to the unknown type message, discarding or limiting the speed of the first message.

In the embodiment of the present application, the filtering process may be performed by the LSW in the second MPU. Specifically, the LSW determines the type of the received first packet, and if the received first packet is determined to be an unknown packet, discards the unknown packet or performs rate-limiting processing on the unknown packet, and sends the rate-limited first packet to the CPU in the second MPU for processing. And if the LSW determines that the received first message belongs to the operation and maintenance task message or the configuration management message, the LSW directly uploads the first message to a CPU in a second MPU for processing. The processing of the data is uploaded to the CPU, which may be processing of the data uploaded to a protocol stack in the CPU.

As shown in fig. 5, the present application provides a specific processing flow for sending a message from an LPU to a CPU in a second MPU, and the contents may be as follows:

in step 501, the LPU starts to send a message to the MPU.

In step 502, the LPU determines whether the bulk communication device has dual MPUs, i.e., whether the bulk communication device has a first MPU and a second MPU.

After the LPU determines that the frame communication device has dual MPUs (i.e., has a first MPU and a second MPU), the LPU determines the type of the first packet to be transmitted, step 503.

In step 504a, the LPU sends the first message to the LSW in the second MPU if it determines that the first message does not belong to the traffic flow message.

Step 504b, the LPU determines that the first message belongs to the traffic flow message, and sends the first message to the first MPU. Or, the LPU determines that the frame communication device only has the first MPU, and directly uploads the first message to the first MPU.

And 505, the LSW in the second MPU determines the message type of the received first message, and determines whether the message belongs to an unknown type message.

Step 506, if the LSW determines that the received first message belongs to the unknown type message, the LSW discards or limits the speed of the first message.

Step 507, if the LSW determines that the received first message does not belong to the unknown type message, the LSW sends the first message to a CPU in a second MPU for processing; or, the first message after the speed limiting processing is sent to the CPU in the second MPU for processing.

The embodiment of the present application further provides a method for message transmission, where the method for message transmission may be implemented by the second MPU in the frame communication device. In the frame communication device, the first MPU and the LPU are connected via a first transmission channel, and the second MPU and the LPU are connected via a second transmission channel, where the first transmission channel is used to transmit a traffic flow packet between the LPU and the first MPU. The method comprises the following steps:

and the second MPU sends a second message to the LPU through a second transmission channel, wherein the second message belongs to a non-service flow message.

In the solution shown in the embodiment of the present application, the first MPU is connected to the LPU through a first transmission channel, and the first transmission channel is used for transmitting a service flow packet between the first MPU and the LPU. The second MPU is connected with the LPU through a second transmission channel, and the second transmission channel is used for transmitting the non-service flow message.

Therefore, the service flow message and the non-service flow message are transmitted through different transmission channels, the service flow message and the non-service flow message cannot compete with each other, and the transmission efficiency of the service flow message and the non-service flow message is high. And when the first MPU is attacked by the abnormal service flow message, the second MPU is not affected, and the second MPU can also normally perform operation and maintenance management on the equipment.

In the following, the present application will be described in more detail by combining the above two message transmission methods and combining specific examples:

(1) and (5) processing the operation and maintenance task. The operation and maintenance task mainly relates to the acquisition of device information of the frame communication device, and the specific processing flow can be as follows:

first, the second MPU issues an apparatus information acquisition instruction to the LPU through the second transmission channel. Then, the LPU receives the device information acquisition instruction through the second transmission channel, and acquires the device information of the frame communication device based on the device information acquisition instruction. Then, the LPU transmits the collected device information to the second MPU through the second transmission channel. Finally, the second MPU receives the device information through a second transmission channel.

The messages carried by the equipment information and the equipment information acquisition indication are all operation and maintenance task messages.

As shown in fig. 6, taking telemeasurement data acquisition as an example, a transmission process of an operation and maintenance task class packet is described:

step 601, an ESPM (telemetering task decomposition center) module in the second MPU issues the subscription collection task to a telemetering Agent in the LPU.

And step 602, the telemetering Agent acquires various data according to the issued acquisition task and sends the acquired data to the gPC module on the second MPU.

In step 603, the gRPC module performs model conversion on the collected data, and reports the converted collected data to the collector.

(2) And processing a configuration management type task. The configuration management task mainly relates to table entry issuing, table entry configuration, table entry deletion, table entry reconciliation and the like, and the specific processing flow can be as follows:

first, the second MPU acquires the synchronous table entry of the first MPU through a third transmission channel. Then, the second MPU sends the table entry to the LPU through a second transmission channel. Wherein, the table entry is a routing table entry or a forwarding table entry.

In the solution shown in the embodiment of the present application, the second MPU obtains the synchronized entry of the first MPU through the third transmission channel, and a specific synchronization mechanism may adopt an existing synchronization mechanism, which is not described herein again. And after the second MPU acquires the table entry, the second MPU sends the table entry to the LPU through a second transmission channel.

As shown in fig. 7 and fig. 8, a transmission process of a configuration management type message is described by taking table entry issuing as an example, where fig. 7 is a schematic transmission diagram of the configuration management type message, and fig. 8 is a timing chart of transmission of the configuration management type message.

In the first step, a routing protocol module (including a BGP module and an OSPF module) on the first MPU synchronizes table entries to a routing protocol module of the second MPU.

And secondly, the routing protocol module on the second MPU issues the table entry to a forwarding engine of the second MPU.

And thirdly, the forwarding engine of the second MPU issues the table entry to the forwarding engine of the LPU.

Fourthly, the forwarding engine of the LPU sends the table entry to the forwarding chip of the LPU for processing.

And fifthly, after the LPU finishes processing the table entry, performing the following table response and sending the following table response to a forwarding engine of the second MPU.

It should be added that the first MPU and the second MPU may be in a master-slave relationship with each other, so that when one MPU fails, the other MPU may also carry out processing on all messages, and transmit all types of messages through a transmission channel corresponding to the MPU. Thus, the reliability of the operation of the frame communication apparatus is improved. The specific processing procedure may be as follows:

in a possible implementation manner, when the first MPU is in a failure state, the LPU sends both a message belonging to a traffic flow message and a message belonging to a non-traffic flow message to the second MPU through the second transmission channel. Correspondingly, the second MPU sends both the message belonging to the traffic flow message and the message belonging to the non-traffic flow message to the LPU through the second transmission channel.

In another possible implementation manner, when the second MPU is in a failure state, the LPU sends both a message belonging to a traffic flow message and a message belonging to a non-traffic flow message to the first MPU through the first transmission channel. Correspondingly, the first MPU sends both the messages belonging to the traffic flow messages and the messages belonging to the non-traffic flow messages to the LPU through the first transmission channel.

The embodiment of the present application further provides a frame communication apparatus, as shown in fig. 1 to 3, the frame communication apparatus includes a first main processing unit MPU, a second MPU, and a line interface processing unit LPU, the first MPU being connected to the LPU through a first transmission channel, the second MPU being connected to the LPU through a second transmission channel;

the LPU is used for:

determining the type of a first message to be transmitted;

if the first message belongs to the service flow message, the first message is sent to the first MPU through the first transmission channel;

and if the first message belongs to the non-service flow message, sending the first message to the second MPU through the second transmission channel.

In one possible implementation, the second MPU is configured to:

and determining that the received first message belongs to the unknown type message, and discarding or limiting the speed of the first message.

In a possible implementation manner, the first packet belongs to an operation and maintenance task class packet, and the LPU is further configured to:

receiving a second message from the second MPU through a second transmission channel, wherein the second message belongs to an operation and maintenance task class message and comprises an equipment information acquisition instruction;

acquiring equipment information of the frame type communication equipment based on the equipment information acquisition instruction;

and transmitting device information to the second MPU through the second transmission channel, wherein the device information is included in the first message.

In one possible implementation, the LPU is also used for

And when the first MPU is in a failure state, sending the message belonging to the service flow message and the message belonging to the non-service flow message to the second MPU through the second transmission channel.

In one possible implementation, the LPU is further configured to:

and when the second MPU is in a failure state, sending the message belonging to the service flow message and the message belonging to the non-service flow message to the first MPU through the first transmission channel.

In a possible implementation manner, the non-service flow message includes one or more of an operation and maintenance task class message, a configuration management class message, and an unknown class message; wherein the content of the first and second substances,

the operation and maintenance task message comprises a gPC message, an ssh message and a snmp message;

the configuration management message comprises messages carried by a table item issuing task, a table item configuration task, a table item deleting task and a table item reconciliation task.

In one possible implementation, the first MPU is a master MPU and the second MPU is a standby MPU.

In one possible implementation, the traffic flow packet includes a BGP packet, an OSPF packet, an IS-IS packet, and a RIP packet.

In one possible implementation, the second MPU is also connected to the NCE.

The embodiment of the present application further provides another frame communication device, as shown in fig. 1 to 3, the frame communication device includes a first main processing unit MPU, a second MPU, and a line interface processing unit LPU, where the first MPU is connected to the LPU through a first transmission channel, the second MPU is connected to the LPU through a second transmission channel, and the first transmission channel is used to transmit a traffic flow packet between the LPU and the first MPU;

the second MPU is used for:

and sending a second message to the LPU through a second transmission channel, wherein the second message belongs to a non-service flow message.

In one possible implementation, the second MPU is further configured to:

and discarding or limiting the speed of a first message from the LPU received through the second transmission channel, wherein the first message belongs to an unknown type message.

In a possible implementation manner, the second packet belongs to an operation and maintenance task class packet, and the second MPU is further configured to:

sending an equipment information acquisition instruction to the LPU through a second transmission channel, wherein the equipment information acquisition instruction is included in a second message and is used for instructing the LPU to acquire equipment information of the frame-type communication equipment;

and receiving a first message sent by the LPU through a second transmission channel, wherein the first message belongs to an operation and maintenance task class message, and the equipment information is included in the first message.

In a possible implementation manner, the first MPU is connected to the second MPU through a third transmission channel, the second packet belongs to a configuration management type packet, and the second MPU is configured to:

acquiring a synchronous table entry of the first MPU through a third transmission channel;

and sending an entry to the LPU through a second transmission channel, wherein the entry is included in the second message and is a routing entry or a forwarding entry.

In one possible implementation, the second MPU is further configured to:

and when the first MPU is in a failure state, sending the message belonging to the service flow message and the message belonging to the non-service flow message to the LPU through the second transmission channel.

In one possible implementation, the first MPU is further configured to:

and when the second MPU is in a failure state, sending the message belonging to the service flow message and the message belonging to the non-service flow message to the LPU through the first transmission channel.

In a possible implementation manner, the non-service flow message includes one or more of an operation and maintenance task class message, a configuration management class message, and an unknown class message; wherein the content of the first and second substances,

the operation and maintenance task message comprises a gPC message, an ssh message and a snmp message;

the configuration management message comprises messages carried by a table item issuing task, a table item configuration task, a table item deleting task and a table item reconciliation task.

In one possible implementation, the first MPU is a master MPU and the second MPU is a standby MPU.

In one possible implementation, the traffic flow packet includes a BGP packet, an OSPF packet, an IS-IS packet, and a RIP packet.

In one possible implementation, the second MPU is also connected to the NCE.

The above description is only an example of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the principles of the present application should be included in the scope of the present application.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种数据分流方法、装置及相关设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!