CN113794639A - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN113794639A
CN113794639A CN202110984699.XA CN202110984699A CN113794639A CN 113794639 A CN113794639 A CN 113794639A CN 202110984699 A CN202110984699 A CN 202110984699A CN 113794639 A CN113794639 A CN 113794639A
Authority
CN
China
Prior art keywords
service
board
capacity
opposite
boards
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110984699.XA
Other languages
Chinese (zh)
Other versions
CN113794639B (en
Inventor
赵莉敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202110984699.XA priority Critical patent/CN113794639B/en
Publication of CN113794639A publication Critical patent/CN113794639A/en
Application granted granted Critical
Publication of CN113794639B publication Critical patent/CN113794639B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/14Routing performance; Theoretical aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Landscapes

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

Abstract

The application provides a communication method and a device, the method is applied to any service board in routing equipment and comprises the following steps: when any first LLDP message carrying the single board type of the opposite-end service board, which is sent by the opposite-end service board directly connected with the service board, is received, the service capacity corresponding to the single board type is determined according to the corresponding relation between the locally stored single board type and the service capacity; determining the service capacity corresponding to the single board type of the service board and the minimum service capacity in the determined service capacities corresponding to the single board types of all the opposite-end service boards as the service capacity finally used by the service board, and sending a second LLDP message carrying the service capacity finally used by the service board to all the opposite-end service boards so that all the opposite-end service boards carry out service communication with the service board based on the service capacity finally used by the service board. The method and the device can improve the communication quality between the directly connected service boards in different routing devices.

Description

Communication method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method and apparatus.
Background
The service boards in the routing devices produced by the same routing device manufacturer or different routing device manufacturers may have different board types, and the service capacities (e.g., table entry capacities, etc.) corresponding to these board types may also be different, so that when service communication is performed between directly connected service boards in different routing devices, the problem that part of services cannot be processed due to inconsistency of the service capacities of related services is likely to occur, thereby resulting in poor communication quality.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a communication method and a communication device.
According to a first aspect of the embodiments of the present application, there is provided a communication method, which is applied to any service board in a routing device, and the method includes:
when receiving a first Link Layer Discovery Protocol (LLDP) message carrying a single board type of an opposite end service board sent by any one opposite end service board directly connected to the service board, determining a service capacity corresponding to the single board type according to a correspondence between the locally stored single board type and the service capacity, wherein the service board and the opposite end service board belong to different routing devices;
determining the service capacity corresponding to the single board type of the service board and the minimum service capacity in the determined service capacities corresponding to the single board types of all the opposite-end service boards as the service capacity finally used by the service board, and sending a second LLDP message carrying the service capacity finally used by the service board to all the opposite-end service boards so that all the opposite-end service boards carry out service communication with the service board based on the service capacity finally used by the service board.
According to a second aspect of the embodiments of the present application, there is provided a communication apparatus, which is applied to any service board in a routing device, the apparatus including:
a first determining module, configured to determine, when receiving a first LLDP packet carrying a single-board type of an opposite-end service board that is directly connected to the service board, a service capacity corresponding to the single-board type according to a correspondence between the locally stored single-board type and the service capacity, where routing devices to which the service board and the opposite-end service board belong are different;
and a second determining module, configured to determine, as a service capacity finally used by the service board, a minimum service capacity of the service capacity corresponding to the board type of the service board and the determined service capacities corresponding to the board types of all the opposite-end service boards, and send a second LLDP packet carrying the service capacity finally used by the service board to all the opposite-end service boards, so that all the opposite-end service boards perform service communication with the service board based on the service capacity finally used by the service board.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the embodiment of the present application, for any service board in a routing device, before performing service communication with an opposite service board (different from the routing device to which the service board belongs) directly connected to the service board, a service capacity finally used by the service board is determined through an LLDP packet carrying a single board type from the opposite service board, where the service capacity is supported by the opposite service board; and then, sending an LLDP message carrying the service capacity finally used by the service board to the opposite end service board, so that the opposite end service board can know the service capacity finally used by the service board and can communicate with the service board based on the service capacity.
Therefore, under the condition that the service capacity between the service board and the opposite end service board directly connected with the service board is inconsistent, the service board can make the opposite end service board know the service capacity used by the opposite end service board when the opposite end service board carries out service communication by itself by executing the communication flow, so that the opposite end service board can carry out service communication with the service board based on the service capacity, the problem that part of services cannot be processed is avoided, and the communication quality is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart of a communication method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a communication network according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. 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 application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Next, examples of the present application will be described in detail.
An embodiment of the present application provides a communication method, which is applied to any service board in a routing device, and as shown in fig. 1, the method may include the following steps:
s11, when receiving a first LLDP message carrying a single board type of an opposite end service board sent by any one opposite end service board directly connected with the service board, determining the service capacity corresponding to the single board type according to the corresponding relationship between the locally stored single board type and the service capacity.
In this step, the service board and the opposite end service board belong to different routing devices.
In addition, the first LLDP packet in this step is mainly used to notify the service board of the board type.
S12, determining the minimum service capacity of the service capacity corresponding to the single-board type of the service board and the determined service capacities corresponding to the single-board types of all the opposite-end service boards as the service capacity finally used by the service board, and sending the second LLDP packet carrying the service capacity finally used by the service board to all the opposite-end service boards, so that all the opposite-end service boards perform service communication with the service board based on the service capacity finally used by the service board.
In this step, the second LLDP packet is mainly used to notify the service board of the finally used service capacity.
It should be noted that, in this embodiment of the present application, after a routing device to which the service board belongs is powered on, the service board sends a first LLDP packet carrying a single board type of the service board to a corresponding opposite-end service board through each interface directly connected to the opposite-end service board on the service board.
Correspondingly, the service board will also receive the first LLDP packet of the single board type carrying the corresponding opposite end service board, sent by the corresponding opposite end service board through the interfaces. Then, for the first LLDP packet carrying the single-board type of the opposite-end service board, which is received through any one of the interfaces and sent by the opposite-end service board corresponding to the interface, the service board entity may search the service capacity corresponding to the single-board type from the correspondence stored on the service board side first, so that the service board collects the service capacities corresponding to the single-board types of all the opposite-end service boards directly connected to itself, and in combination with the service capacity corresponding to the single-board type of itself, decides the service capacity used by the service board during service communication (i.e., the service capacity finally used by the service board), and notifies all the opposite-end service boards of the service capacity, so that the opposite-end service boards may communicate with the service board based on the service capacity finally used by the service board, thereby avoiding the problem that part of services cannot be processed, the communication quality is improved.
In an example, in order to conveniently summarize service capacities corresponding to all the board types of the opposite-end service board, the service board may maintain an opposite-end service board information table, where the opposite-end service board information table may include information such as an interface identifier of an interface directly connected to the opposite-end service board on the service board, a board type of the opposite-end service board, and a service capacity corresponding to a board type of the opposite-end service board.
For example, initially, the content of the opposite-end service board information table may be null, and once the service board receives, through an interface, a first LLDP packet carrying a single-board type of the opposite-end service board, which is sent by the opposite-end service board corresponding to the interface, the service board may search, from the correspondence, a service capacity corresponding to the single-board type, and add an interface identifier of the interface, the single-board type of the opposite-end service board, and the searched service capacity corresponding to the single-board type to the opposite-end service board information table.
It should be further noted that, in this embodiment of the present application, for the service board, a service capacity table of the service board may also be maintained according to a board number of the service board, initially, the service capacity table is empty, once the service capacity finally used by the service board is determined, the service capacity finally used by the service board is added to the service capacity table, and subsequently, the service board performs service communication with corresponding opposite-end service boards (i.e., all opposite-end service boards directly connected to the service board) based on the service capacity finally used by the service board.
In addition, in order to improve the communication quality, after determining the service capacity finally used by the service board, the service board also sends a second LLDP packet carrying the service capacity finally used by the service board to the corresponding opposite end service board, and the corresponding opposite end service board records the service capacity finally used by the service board and performs service communication with the service board based on the service capacity finally used by the service board.
In one example, in order to ensure the security of the service capacity finally used by the service board, before the service board sends the second LLDP packet carrying the service capacity finally used by the service board to the corresponding opposite service board, the service capacity finally used by the service board may be encrypted according to a preset encryption algorithm; and then sending a second LLDP message carrying the service capacity finally used by the service board to the corresponding opposite-end service board. In this connection, it is possible to use,
here, the preset encryption Algorithm may be various encryption algorithms commonly used in the art, for example, an MD5 Message Digest (Message-Digest-Algorithm) Algorithm, etc.
Further, in the embodiment of the present application, as the deployment requirement of the network where the routing device to which the service board belongs is located changes, the opposite-end service board directly connected to the service board may also change, the opposite-end service board may be newly added, and the opposite-end service boards may also be reduced.
Then, for the case that the opposite end service board is reduced, the service board may further perform the following operations:
when the connection relation between the service board and any opposite terminal service board is monitored to be disconnected, if the minimum service capacity in the service capacities corresponding to the single board types of the remaining opposite terminal service boards is not smaller than the service capacity finally used by the service board, the service capacity finally used by the service board is maintained unchanged;
if the minimum service capacity in the service capacities corresponding to the board types of the remaining opposite-end service boards is smaller than the service capacity finally used by the service board, the service capacity finally used by the service board is changed into the service capacity corresponding to the board type of the service board and the minimum service capacity in the service capacities corresponding to the board types of the remaining opposite-end service boards, and a second LLDP message carrying the changed service capacity is sent to the remaining opposite-end service boards, so that all the opposite-end service boards perform service communication with the service board on the basis of the changed service capacity.
It should be noted that, for the service board, when it is monitored that the service board is disconnected from any opposite service board, the related data related to the opposite service board in the opposite service board information table is also deleted.
For the situation that an opposite end service board is newly added, the service board can also execute the following operations:
when a first LLDP message which is sent by a new opposite-end service board directly connected with the service board and carries the veneer type of the new opposite-end service board is received, determining the service capacity corresponding to the veneer type of the new opposite-end service board according to the corresponding relation;
if the minimum service capacity in the service capacities corresponding to the single board types of all the current opposite end service boards is not less than the service capacity finally used by the service board, maintaining the service capacity finally used by the service board unchanged;
if the minimum service capacity in the service capacities corresponding to the single board types of all the current opposite-end service boards is smaller than the service capacity finally used by the service board, the service capacity finally used by the service board is changed into the service capacity corresponding to the single board type of the service board and the minimum service capacity in the service capacities corresponding to the single board types of all the current opposite-end service boards, and a second LLDP message carrying the changed service capacity is sent to all the current opposite-end service boards, so that all the current opposite-end service boards perform service communication with the service board on the basis of the changed service capacity.
It should be noted that, for the service board, when receiving a first LLDP packet carrying a new veneer type of the opposite-end service board sent by a new opposite-end service board directly connected to the service board, the service board may specifically search for a service capacity corresponding to the veneer type of the new opposite-end service board from the correspondence, and add an interface identifier of a corresponding interface, the veneer type of the new opposite-end service board, and the service capacity corresponding to the searched veneer type of the new opposite-end service board to the opposite-end service board information table.
The above communication method is described in detail with reference to specific embodiments.
As shown in fig. 2, it is assumed that a service board a1, a service board a2, and a service board A3 are provided in the routing device 1 in the communication network; the routing device 2 is provided with a service board B1, a service board B2 and a service board B3; the routing device 3 is provided with a service board C1, a service board C2, and a service board C3. The service board B1 is directly connected with the service board A1 through an interface 21 and directly connected with the service board C1 through an interface 22; the service board B2 is directly connected with the service board A2 through an interface 23 and is directly connected with the service board C2 through an interface 24; the service board B3 is directly connected to the service board A3 via the interface 25 and to the service board C3 via the interface 26. Of course, other routing devices and other network devices not shown in fig. 2 are also included in the communication network, and are not described one by one here.
After the routing device 1, the routing device 2, and the routing device 3 are powered on, each service board in the three routing devices sends an LLDP packet carrying a respective single board type to an opposite service board directly connected to the service board.
Taking the service board B1 as an example, the service board B1 sends a first LLDP packet of a single board type carrying the service board B1 to the service board a1 through the interface 21, and sends a first LLDP packet of a single board type carrying the service board B1 to the service board C1 through the interface 22.
Correspondingly, the service board B1 also receives the first LLDP packet of the single board type carrying the service board a1 sent by the service board a1 through the interface 21, and receives the LLDP packet of the single board type carrying the service board C1 sent by the service board C1 through the interface 22.
Then, for the first LLDP packet carrying the service board a1, the service board B1 searches for the service capacity corresponding to the service board a's single board type from the locally stored corresponding relationship between the single board type and the service capacity; then, the service board may add the interface identifier (e.g., Port _ ba1) of the interface 21, the board type (e.g., a11) of the service board A1, and the service capacity (e.g., a111) corresponding to the board type of the service board A1 to the initially empty peer service board information table, where the added peer service board information table is shown in the following table one.
Interface identification Of the single-plate type Traffic capacity
Port_ba1 A11 A111
Watch 1
For the first LLDP packet of the single board type carrying the service board C1, the service board B1 searches for the service capacity corresponding to the single board type of the service board C1 from the correspondence between the locally stored single board type and the service capacity; then, the service board may add the interface identifier (e.g., Port _ bc1) of the interface 22, the board type (e.g., C11) of the service board C1, and the service capacity (e.g., C111) corresponding to the board type of the service board C1 to the peer service board information table, where the added peer service board information table is shown in table two below.
Interface identification Of the single-plate type Traffic capacity
Port_ba1 A11 A111
Port_bc1 C11 C111
Watch two
Then, the service board B1 determines the minimum service capacity among the service capacity (e.g., B111) corresponding to its own board type, the service capacity (e.g., a111) corresponding to the board type of the service board a, and the service capacity (e.g., C111) corresponding to the board type of the service board C, as the service capacity ultimately used by the service board B1. For example, assuming that the minimum service capacity among the three is a111, the service board B1 will determine a111 as the service capacity finally used by the service board B1, and add the board number (e.g., 101) and a111 of the service board B1 to the initially empty service capacity table, where the added service capacity table is shown in table three below, and the subsequent service board B1 will perform service communication with the service board A1 and the service board C1 respectively based on a 111.
Plate number of service plate Service capacity ultimately used by service boards
101 A111
Watch III
Meanwhile, the service board B1 also sends a second LLDP packet carrying the service capacity finally used by the service board B1 to the service board a1 through the interface 21, so that the service board a1 records the service capacity finally used by the service board B1 and performs service communication with the service board B1 based on the service capacity finally used by the service board B1, thereby ensuring the communication quality.
The service board B1 also sends a second LLDP packet carrying the service capacity finally used by the service board B to the service board C1 through the interface 22, so that the service board C1 records the service capacity finally used by the service board B and performs service communication with the service board B based on the service capacity finally used by the service board B1, thereby ensuring the communication quality.
Next, assuming that the service board B1 detects that the connection relationship between itself and the service board C1 is disconnected at a certain time, in this case, the service board B1 deletes the relevant data about the service board C1 from the opposite-end service board information table two, as shown in the above table one; then, the service board B1 finds that the service capacity (i.e., a111) corresponding to the board type of the remaining opposite service board is not less than the service capacity finally used by the service board B1, maintains the service capacity finally used by the service board unchanged, and continues service communication with the service board A1 based on the service capacity finally used by the service board.
Subsequently, it is assumed that at another time, the service board B1 receives a first LLDP packet of the single-board type carrying the service board D1 sent by the service board D1 (belonging to the service board in the routing device 4, not shown in fig. 2) directly connected to the service board B1 through the interface 27 (not shown in fig. 2), and at this time, the service board B1 searches for a service capacity corresponding to the single-board type of the service board D1 from the correspondence; then, the service board B1 may add the interface identifier (e.g., Port _ bd1) of the interface 27, the service capacity (e.g., D111, which is smaller than a111) corresponding to the board type of the service board D1, the board type (e.g., D11) of the service board D1, and the added service board information table is shown in the following table four.
Interface identification Of the single-plate type Traffic capacity
Port_ba1 A11 A111
Port_bd1 D11 D111
Watch four
Then, the service board B1 finds that the minimum service capacity (i.e., D111) of the service capacities corresponding to the single-board types of all the current opposite-end service boards (i.e., the service board A1 and the service board D1) is smaller than the service capacity (i.e., a111) finally used by the service board, in this case, the service board B1 changes the service capacity finally used by the service board to D111, i.e., changes a111 in the above table three to D111, and the subsequent service board B1 performs service communication with the service board A1 and the service board D1 respectively based on D111.
Meanwhile, the service board B1 also sends a second LLDP packet carrying the service capacity finally used by the service board B1 to the service board a1 through the interface 21, so that the service board a1 records the service capacity newly used by the service board B1 and performs service communication with the service board B1 based on the service capacity newly used by the service board B1, thereby ensuring the communication quality.
The service board B1 also sends a second LLDP packet carrying the service capacity finally used by the service board B to the service board D1 through the interface 27, so that the service board D1 records the latest used service capacity of the service board B and performs service communication with the service board B1 based on the latest used service capacity, thereby ensuring the communication quality.
It should be noted that, for the communication flows of other service boards in the routing device 1, the routing device 2, and the routing device 3 and the opposite service board directly connected thereto, the communication flows are similar to the communication flows of the service board 1 and the opposite service board directly connected thereto, and are not described herein again.
As can be seen from the above technical solutions, in the embodiment of the present application, for any service board in a routing device, before performing service communication with an opposite service board (different from the routing device to which the service board belongs) directly connected to the service board, a service capacity finally used by the service board is determined through an LLDP packet carrying a single board type from the opposite service board, where the service capacity is supported by the opposite service board; and then, sending an LLDP message carrying the service capacity finally used by the service board to the opposite end service board, so that the opposite end service board can know the service capacity finally used by the service board and can communicate with the service board based on the service capacity.
Therefore, under the condition that the service capacity between the service board and the opposite end service board directly connected with the service board is inconsistent, the service board can make the opposite end service board know the service capacity used by the opposite end service board when the opposite end service board carries out service communication by itself by executing the communication flow, so that the opposite end service board can carry out service communication with the service board based on the service capacity, the problem that part of services cannot be processed is avoided, and the communication quality is improved.
Based on the same inventive concept, the present application further provides a communication device, where the device is applied to any service board in a route, and a schematic structural diagram of the device is shown in fig. 3, and the communication device specifically includes:
a first determining module 31, configured to determine, when receiving a first link layer discovery protocol LLDP packet carrying a single-board type of an opposite-end service board sent by any one of the opposite-end service boards directly connected to the service board, a service capacity corresponding to the single-board type according to a correspondence between the locally stored single-board type and the service capacity, where routing devices to which the service board and the opposite-end service board belong are different;
a second determining module 32, configured to determine, as a service capacity finally used by the service board, a minimum service capacity of the service capacity corresponding to the board type of the service board and the determined service capacities corresponding to the board types of all the opposite-end service boards, and send a second LLDP packet carrying the service capacity finally used by the service board to all the opposite-end service boards, so that all the opposite-end service boards perform service communication with the service board based on the service capacity finally used by the service board.
Preferably, the apparatus further comprises:
a first maintenance module (not shown in fig. 3), configured to, when it is monitored that the connection relationship between the service board and any one of the opposite-end service boards is disconnected, if a minimum service capacity of service capacities corresponding to the types of the remaining opposite-end service boards is not less than a service capacity that is finally used by the service board, maintain the service capacity that is finally used by the service board unchanged;
if the minimum service capacity in the service capacities corresponding to the board types of the remaining opposite-end service boards is smaller than the service capacity finally used by the service board, the service capacity finally used by the service board is changed into the service capacity corresponding to the board type of the service board and the minimum service capacity in the service capacities corresponding to the board types of the remaining opposite-end service boards, and a second LLDP message carrying the changed service capacity is sent to the remaining opposite-end service boards, so that all the opposite-end service boards perform service communication with the service board on the basis of the changed service capacity.
Preferably, the apparatus further comprises:
a second maintenance module (not shown in fig. 3), configured to determine, according to the correspondence, a service capacity corresponding to the single-board type of the new peer service board when receiving a first LLDP packet that is sent by the new peer service board directly connected to the service board and carries the single-board type of the new peer service board;
if the minimum service capacity in the service capacities corresponding to the single board types of all the current opposite end service boards is not less than the service capacity finally used by the service board, maintaining the service capacity finally used by the service board unchanged;
if the minimum service capacity in the service capacities corresponding to the single board types of all the current opposite-end service boards is smaller than the service capacity finally used by the service board, the service capacity finally used by the service board is changed into the service capacity corresponding to the single board type of the service board and the minimum service capacity in the service capacities corresponding to the single board types of all the current opposite-end service boards, and a second LLDP message carrying the changed service capacity is sent to all the current opposite-end service boards, so that all the current opposite-end service boards perform service communication with the service board on the basis of the changed service capacity.
Preferably, the apparatus further comprises:
an encryption module (not shown in fig. 3) configured to encrypt the service capacity finally used by the service board according to a preset encryption algorithm before sending the second LLDP packet carrying the service capacity finally used by the service board to all the opposite-end service boards;
the second determining module 32 is specifically configured to send a second LLDP packet carrying the service capacity obtained by the encrypting module to all the opposite end service boards.
Preferably, the preset encryption algorithm is an MD5 message digest algorithm. As can be seen from the above technical solutions, in the embodiment of the present application, for any service board in a routing device, before performing service communication with an opposite service board (different from the routing device to which the service board belongs) directly connected to the service board, a service capacity finally used by the service board is determined through an LLDP packet carrying a single board type from the opposite service board, where the service capacity is supported by the opposite service board; and then, sending an LLDP message carrying the service capacity finally used by the service board to the opposite end service board, so that the opposite end service board can know the service capacity finally used by the service board and can communicate with the service board based on the service capacity.
Therefore, under the condition that the service capacity between the service board and the opposite end service board directly connected with the service board is inconsistent, the service board can make the opposite end service board know the service capacity used by the opposite end service board when the opposite end service board carries out service communication by itself by executing the communication flow, so that the opposite end service board can carry out service communication with the service board based on the service capacity, the problem that part of services cannot be processed is avoided, and the communication quality is improved.
The embodiment of the present application further provides an electronic device, as shown in fig. 4, including a processor 1 and a machine-readable storage medium 42, where the machine-readable storage medium 42 stores machine-executable instructions capable of being executed by the processor 1401, and the processor 41 is caused by the machine-executable instructions to: and implementing the steps of the communication method.
The machine-readable storage medium may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the machine-readable storage medium may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), or peer Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided by the present application, a computer-readable storage medium is also provided, in which a computer program is stored, which, when being executed by a processor, realizes the steps of the above-mentioned communication method.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A communication method, applied to any service board in a routing device, the method comprising:
when a first Link Layer Discovery Protocol (LLDP) message carrying a single board type of an opposite end service board, which is sent by any one opposite end service board directly connected with the service board, is received, determining the service capacity corresponding to the single board type according to a corresponding relation between the locally stored single board type and the service capacity, wherein the service board and the opposite end service board belong to different routing devices;
determining the service capacity corresponding to the single board type of the service board and the minimum service capacity in the determined service capacities corresponding to the single board types of all the opposite-end service boards as the service capacity finally used by the service board, and sending a second LLDP message carrying the service capacity finally used by the service board to all the opposite-end service boards so that all the opposite-end service boards carry out service communication with the service board based on the service capacity finally used by the service board.
2. The method of claim 1, further comprising:
when the connection relation between the service board and any opposite terminal service board is monitored to be disconnected, if the minimum service capacity in the service capacities corresponding to the single board types of the remaining opposite terminal service boards is not smaller than the service capacity finally used by the service board, the service capacity finally used by the service board is maintained unchanged;
if the minimum service capacity in the service capacities corresponding to the board types of the remaining opposite-end service boards is smaller than the service capacity finally used by the service board, the service capacity finally used by the service board is changed into the service capacity corresponding to the board type of the service board and the minimum service capacity in the service capacities corresponding to the board types of the remaining opposite-end service boards, and a second LLDP message carrying the changed service capacity is sent to the remaining opposite-end service boards, so that all the opposite-end service boards perform service communication with the service board on the basis of the changed service capacity.
3. The method of claim 1, further comprising:
when a first LLDP message which is sent by a new opposite-end service board directly connected with the service board and carries the veneer type of the new opposite-end service board is received, determining the service capacity corresponding to the veneer type of the new opposite-end service board according to the corresponding relation;
if the minimum service capacity in the service capacities corresponding to the single board types of all the current opposite end service boards is not less than the service capacity finally used by the service board, maintaining the service capacity finally used by the service board unchanged;
if the minimum service capacity in the service capacities corresponding to the single board types of all the current opposite-end service boards is smaller than the service capacity finally used by the service board, the service capacity finally used by the service board is changed into the service capacity corresponding to the single board type of the service board and the minimum service capacity in the service capacities corresponding to the single board types of all the current opposite-end service boards, and a second LLDP message carrying the changed service capacity is sent to all the current opposite-end service boards, so that all the current opposite-end service boards perform service communication with the service board on the basis of the changed service capacity.
4. The method according to claim 1, wherein before sending the second LLDP packet carrying the service capacity ultimately used by the service board to all the opposite service boards, the method further comprises:
encrypting the service capacity finally used by the service board according to a preset encryption algorithm;
sending a second LLDP packet carrying the service capacity finally used by the service board to all the opposite-end service boards, specifically including:
and sending a second LLDP message carrying the encrypted service capacity to all the opposite end service boards.
5. The method according to claim 4, wherein the predetermined encryption algorithm is the MD5 message digest algorithm.
6. A communication apparatus, wherein the apparatus is applied to any service board in a routing device, the apparatus comprising:
a first determining module, configured to determine, when receiving a first link layer discovery protocol LLDP packet carrying a single-board type of an opposite-end service board sent by any one of the opposite-end service boards directly connected to the service board, a service capacity corresponding to the single-board type according to a correspondence between the locally stored single-board type and the service capacity, where routing devices to which the service board and the opposite-end service board belong are different;
and a second determining module, configured to determine, as a service capacity finally used by the service board, a minimum service capacity of the service capacity corresponding to the board type of the service board and the determined service capacities corresponding to the board types of all the opposite-end service boards, and send a second LLDP packet carrying the service capacity finally used by the service board to all the opposite-end service boards, so that all the opposite-end service boards perform service communication with the service board based on the service capacity finally used by the service board.
7. The apparatus of claim 6, further comprising:
the first maintenance module is used for maintaining the finally used service capacity of the service board unchanged if the minimum service capacity in the service capacities corresponding to the single board types of the remaining opposite-end service boards is not less than the finally used service capacity of the service board when the connection relation between the service board and any opposite-end service board is monitored to be disconnected;
if the minimum service capacity in the service capacities corresponding to the board types of the remaining opposite-end service boards is smaller than the service capacity finally used by the service board, the service capacity finally used by the service board is changed into the service capacity corresponding to the board type of the service board and the minimum service capacity in the service capacities corresponding to the board types of the remaining opposite-end service boards, and a second LLDP message carrying the changed service capacity is sent to the remaining opposite-end service boards, so that all the opposite-end service boards perform service communication with the service board on the basis of the changed service capacity.
8. The apparatus of claim 6, further comprising:
a second maintenance module, configured to determine, according to the correspondence, a service capacity corresponding to a single-board type of a new peer service board when receiving a first LLDP packet that is sent by the new peer service board directly connected to the service board and carries the single-board type of the new peer service board;
if the minimum service capacity in the service capacities corresponding to the single board types of all the current opposite end service boards is not less than the service capacity finally used by the service board, maintaining the service capacity finally used by the service board unchanged;
if the minimum service capacity in the service capacities corresponding to the single board types of all the current opposite-end service boards is smaller than the service capacity finally used by the service board, the service capacity finally used by the service board is changed into the service capacity corresponding to the single board type of the service board and the minimum service capacity in the service capacities corresponding to the single board types of all the current opposite-end service boards, and a second LLDP message carrying the changed service capacity is sent to all the current opposite-end service boards, so that all the current opposite-end service boards perform service communication with the service board on the basis of the changed service capacity.
9. The apparatus of claim 6, further comprising:
the encryption module is used for encrypting the service capacity finally used by the service board according to a preset encryption algorithm before sending a second LLDP message carrying the service capacity finally used by the service board to all the opposite-end service boards;
the second determining module is specifically configured to send a second LLDP packet carrying the service capacity obtained by the encrypting module to all the opposite-end service boards.
10. The apparatus according to claim 9, wherein the predetermined encryption algorithm is MD5 message digest algorithm.
CN202110984699.XA 2021-08-25 2021-08-25 Communication method and device Active CN113794639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110984699.XA CN113794639B (en) 2021-08-25 2021-08-25 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110984699.XA CN113794639B (en) 2021-08-25 2021-08-25 Communication method and device

Publications (2)

Publication Number Publication Date
CN113794639A true CN113794639A (en) 2021-12-14
CN113794639B CN113794639B (en) 2023-04-25

Family

ID=78876547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110984699.XA Active CN113794639B (en) 2021-08-25 2021-08-25 Communication method and device

Country Status (1)

Country Link
CN (1) CN113794639B (en)

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1568589A (en) * 2000-10-26 2005-01-19 Wave7光学公司 Method and system for processing downstream packets of an optical network
US20050049937A1 (en) * 2000-08-16 2005-03-03 Aaron Sanders Business method and processing system
WO2008083541A1 (en) * 2007-01-09 2008-07-17 Huawei Technologies Co., Ltd. Apparatus and method for realizing the communication between service board and main control board
WO2010020151A1 (en) * 2008-08-18 2010-02-25 成都市华为赛门铁克科技有限公司 A method, apparatus and system for packet processing
CN101695029A (en) * 2009-10-22 2010-04-14 成都市华为赛门铁克科技有限公司 Data backup method, active-standby switching method and communication system as well as related equipment
CN102916909A (en) * 2012-10-11 2013-02-06 福建星网锐捷网络有限公司 Collocation method and device of AC card bandwidth and core device
CN103838298A (en) * 2012-11-21 2014-06-04 京信通信系统(中国)有限公司 Back plate, equipment and corresponding manufacturing methods
CN104104592A (en) * 2013-04-12 2014-10-15 华为技术有限公司 Message processing method, device and system
WO2015021595A1 (en) * 2013-08-13 2015-02-19 华为技术有限公司 Service channel configuration method, optical line terminal and passive optical network
CN105939279A (en) * 2015-08-19 2016-09-14 杭州迪普科技有限公司 Traffic processing method and device
WO2017000860A1 (en) * 2015-06-30 2017-01-05 中兴通讯股份有限公司 Port capacity distribution method and device and switch service board
CN106341338A (en) * 2016-09-09 2017-01-18 杭州迪普科技有限公司 Message forwarding method and apparatus thereof
CN106453092A (en) * 2016-11-07 2017-02-22 锐捷网络股份有限公司 Routing update method and device
CN106533882A (en) * 2016-11-18 2017-03-22 杭州迪普科技股份有限公司 Message processing method and device
CN106789652A (en) * 2016-12-29 2017-05-31 杭州迪普科技股份有限公司 Service shunting method and device
CN106875170A (en) * 2016-07-22 2017-06-20 阿里巴巴集团控股有限公司 A kind of method and device for business processing of intermediate business system
CN110430135A (en) * 2019-07-08 2019-11-08 新华三信息安全技术有限公司 A kind of message processing method and device
CN110784345A (en) * 2019-10-17 2020-02-11 杭州迪普科技股份有限公司 Network traffic processing method and device, electronic equipment and machine-readable storage medium
WO2020052410A1 (en) * 2018-09-15 2020-03-19 华为技术有限公司 Communication method, device, and system
WO2020135381A1 (en) * 2018-12-26 2020-07-02 华为技术有限公司 Packet processing method, device, and system
CN112135319A (en) * 2019-06-24 2020-12-25 中兴通讯股份有限公司 Bandwidth control method, device, equipment and computer readable storage medium

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050049937A1 (en) * 2000-08-16 2005-03-03 Aaron Sanders Business method and processing system
CN1568589A (en) * 2000-10-26 2005-01-19 Wave7光学公司 Method and system for processing downstream packets of an optical network
WO2008083541A1 (en) * 2007-01-09 2008-07-17 Huawei Technologies Co., Ltd. Apparatus and method for realizing the communication between service board and main control board
WO2010020151A1 (en) * 2008-08-18 2010-02-25 成都市华为赛门铁克科技有限公司 A method, apparatus and system for packet processing
CN101695029A (en) * 2009-10-22 2010-04-14 成都市华为赛门铁克科技有限公司 Data backup method, active-standby switching method and communication system as well as related equipment
CN102916909A (en) * 2012-10-11 2013-02-06 福建星网锐捷网络有限公司 Collocation method and device of AC card bandwidth and core device
CN103838298A (en) * 2012-11-21 2014-06-04 京信通信系统(中国)有限公司 Back plate, equipment and corresponding manufacturing methods
CN104104592A (en) * 2013-04-12 2014-10-15 华为技术有限公司 Message processing method, device and system
WO2015021595A1 (en) * 2013-08-13 2015-02-19 华为技术有限公司 Service channel configuration method, optical line terminal and passive optical network
WO2017000860A1 (en) * 2015-06-30 2017-01-05 中兴通讯股份有限公司 Port capacity distribution method and device and switch service board
CN106330782A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Port capacity distribution method and device, and switch service board
CN105939279A (en) * 2015-08-19 2016-09-14 杭州迪普科技有限公司 Traffic processing method and device
CN106875170A (en) * 2016-07-22 2017-06-20 阿里巴巴集团控股有限公司 A kind of method and device for business processing of intermediate business system
CN106341338A (en) * 2016-09-09 2017-01-18 杭州迪普科技有限公司 Message forwarding method and apparatus thereof
CN106453092A (en) * 2016-11-07 2017-02-22 锐捷网络股份有限公司 Routing update method and device
CN106533882A (en) * 2016-11-18 2017-03-22 杭州迪普科技股份有限公司 Message processing method and device
CN106789652A (en) * 2016-12-29 2017-05-31 杭州迪普科技股份有限公司 Service shunting method and device
WO2020052410A1 (en) * 2018-09-15 2020-03-19 华为技术有限公司 Communication method, device, and system
WO2020135381A1 (en) * 2018-12-26 2020-07-02 华为技术有限公司 Packet processing method, device, and system
CN112135319A (en) * 2019-06-24 2020-12-25 中兴通讯股份有限公司 Bandwidth control method, device, equipment and computer readable storage medium
CN110430135A (en) * 2019-07-08 2019-11-08 新华三信息安全技术有限公司 A kind of message processing method and device
CN110784345A (en) * 2019-10-17 2020-02-11 杭州迪普科技股份有限公司 Network traffic processing method and device, electronic equipment and machine-readable storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
张雪等: "TD-SCDMA系统RNC模拟大话务量测试及分析", 《移动通信》 *
李剑宇等: "民航数据网非最优路由空耗带宽资源问题研究", 《空中交通管理》 *
毛建等: "城市轨道交通综合信息网业务接入的实现", 《都市快轨交通》 *
蒋少东等: "IP报文应用层分类及其QoS的研究", 《微计算机信息》 *

Also Published As

Publication number Publication date
CN113794639B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
CN108243106B (en) Method for controlling network slicing, forwarding device, control device and communication system
CN108337111B (en) Method and device for acquiring network node topology
US8838703B2 (en) Method and system for message processing
US7639605B2 (en) System and method for detecting and recovering from virtual switch link failures
TWI669620B (en) Database switching method, server, storage medium, electronic device and product
US7518983B2 (en) Proxy response apparatus
CA2384261A1 (en) Redundancy systems and methods in communications systems
CN111901705B (en) OMCI function virtualization system of OLT equipment
FI125109B (en) Method for administering network device data and a network management system
CN111327650A (en) Data transmission method, device, equipment and storage medium
CN103200100A (en) Method and device for packet transmitting
CN113507431B (en) Message management method, device, equipment and machine-readable storage medium
CN113194494B (en) Air interface resource control method, device, network side equipment and terminal
CN108900441B (en) Network switching method, first electronic device and readable storage medium
WO2012103730A1 (en) Data configuration method and telecommunication system device
US20230106077A1 (en) Distributed Storage System, Exception Handling Method Thereof, and Related Apparatus
CN111010362B (en) Monitoring method and device for abnormal host
CN113794639A (en) Communication method and device
CN114189471B (en) Cross-equipment link aggregation group active-standby configuration method, system, terminal and storage medium
JP2004336658A (en) Network monitoring method and network monitoring apparatus
CN110912837A (en) VSM system-based main/standby switching method and device
US20200341968A1 (en) Differential Update of Local Cache from Central Database
US11606274B1 (en) Method for operations of virtual machines in monitoring cloud activities, system, and device applying the method
CN109756383B (en) Election method and device of conflict stacking system
CN110958182B (en) Communication method and related equipment

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