CN114500165B - Communication method, local side equipment and storage medium - Google Patents
Communication method, local side equipment and storage medium Download PDFInfo
- Publication number
- CN114500165B CN114500165B CN202011262586.0A CN202011262586A CN114500165B CN 114500165 B CN114500165 B CN 114500165B CN 202011262586 A CN202011262586 A CN 202011262586A CN 114500165 B CN114500165 B CN 114500165B
- Authority
- CN
- China
- Prior art keywords
- message
- transmission module
- management
- module
- processing module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
- H04L12/4645—Details on frame tagging
- H04L12/465—Details on frame tagging wherein a single frame includes a plurality of VLAN tags
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Communication Control (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a communication method, local side equipment and a storage medium, and relates to the technical field of communication. The method is used for solving the problem that the local side equipment cannot process the management message sent by the remote side equipment, and comprises the following steps: first, the message forwarding module receives a message sent by a remote device. And then, the first management message processing module extracts the first message from the message forwarding module, generates a second message according to the first message, and sends the second message to the second management message processing module. And then, the second management message processing module generates a third message according to the second message sent by the first management message processing module, and sends the third message to the transmission module. And then, the transmission module sends a third message sent by the second management message processing module to the main control card. And finally, the master control card generates a fourth message according to the third message sent by the transmission module.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communications method, a local side device, and a storage medium.
Background
As the complexity of network traffic demands increases, the demand for devices by network traffic increases. Currently, the access requirements for ethernet services are increasing in synchronous digital hierarchy (Synchronous Digital Hierarchy, SDH) transport networks and optical transport network (Optical Transport Network, OTN) transport networks. Because the service chips used for Ethernet service access of the SDH local side equipment and the OTN local side equipment have no switching function, and the local side equipment has no independent configuration service switching chip or independent Ethernet service network management channel. Therefore, the office device cannot process the management message sent by the remote device.
Disclosure of Invention
The invention provides a communication method, local side equipment and a storage medium, which are used for solving the problem that the local side equipment cannot process a management message sent by remote equipment.
In order to achieve the above purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a method of communication, the method comprising: first, the message forwarding module receives a message sent by a remote device. And then, the first management message processing module extracts the first message from the message forwarding module, generates a second message according to the first message, and sends the second message to the second management message processing module. And then, the second management message processing module generates a third message according to the second message sent by the first management message processing module, and sends the third message to the transmission module. And then, the transmission module sends a third message sent by the second management message processing module to the main control card. And finally, the master control card generates a fourth message according to the third message sent by the transmission module. The first message is a management message having a single-layer virtual local area network (virtual local area network, VLAN) tag (tag) and an outer-layer VLAN tag being a first value. The second message is a management message with a double-layer VLAN tag, and the outer layer VLAN tag and the inner layer VLAN tag are both of a first value. The third message is a management message with a double-layer VLAN tag, wherein the outer-layer VLAN tag is a second numerical value, and the inner-layer VLAN tag is a first numerical value. The fourth message is a third message added with remote management information.
As can be seen, the VLAN value of the management message sent by the remote device is set to the first value, so that the first management message processing module in the local device can extract the management message sent by the remote device from the local device. The first management message processing module and the second management message processing module in the local side equipment can encapsulate the management message sent by the remote end equipment into the management message (namely the third message) identifiable by the master control card in the local side equipment by introducing the double-layer VLAN tag technology and the VLAN tag replacement technology, so that the master control card in the local side equipment has the capability of processing the management message sent by the remote end equipment. Therefore, the problem that the local side equipment cannot process the management message sent by the remote side equipment is solved.
In a second aspect, the present invention provides a local side device, including: the system comprises a message forwarding module, a first management message processing module, a second management message processing module, a transmission module and a main control card. And the message forwarding module is used for receiving the message sent by the remote equipment. The first management message processing module is used for extracting a first message from the message forwarding module, generating a second message according to the first message, and sending the second message to the second management message processing module, wherein the first message is a management message with a single-layer virtual local area network tag VLAN tag and an outer-layer VLAN tag as a first value, and the second message is a management message with a double-layer VLAN tag and both the outer-layer VLAN tag and the inner-layer VLAN tag as the first value. The second management message processing module is used for generating a third message according to the second message sent by the first management message processing module, and sending the third message to the transmission module, wherein the third message is a management message with a double-layer VLAN tag, an outer-layer VLAN tag is a second numerical value, and an inner-layer VLAN tag is a first numerical value. The transmission module is used for sending a third message sent by the second management message processing module to the main control card, and the main control card is used for generating a fourth message according to the third message sent by the transmission module, wherein the fourth message is the third message added with the remote management information.
In a third aspect, the present invention provides a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a local side device, cause the local side device to perform the communication method as described in the first aspect.
In a fourth aspect, the present invention provides a computer program product comprising instructions which, when run on a local side device, cause the local side device to perform the communication method according to the first aspect.
In a fifth aspect, the present invention provides a local side device, including: a processor and a memory for storing a program, the processor invoking the program stored in the memory to perform the communication method as described in the first aspect.
For a detailed description of the second to fifth aspects of the present invention and various implementations thereof, reference may be made to the detailed description of the first aspect and various implementations thereof; moreover, the advantages of the second aspect and the various implementations thereof may be referred to as analyzing the advantages of the first aspect and the various implementations thereof, and will not be described herein.
These and other aspects of the invention will be more readily apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a local side device according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a communication method according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of a communication method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating uplink management message processing according to an embodiment of the present invention;
fig. 6 is a schematic diagram of processing a management message in a downlink direction according to an embodiment of the present invention;
fig. 7 is a schematic diagram of uplink management message processing with a protection mechanism according to an embodiment of the present invention;
fig. 8 is a schematic diagram of processing a management message in a downlink direction with a protection mechanism according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a local side device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms "first" and "second" and the like in the description and in the drawings are used for distinguishing between different objects or between different processes of the same object and not for describing a particular order of objects.
Furthermore, references to the terms "comprising" and "having" and any variations thereof in the description of the present invention are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or apparatus.
It should be noted that in the description of embodiments of the present invention, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment of the present invention is not to be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the present invention, unless otherwise indicated, the meaning of "a plurality" means two or more.
In order to solve the problem that the local side equipment cannot process the management message sent by the remote side equipment, the embodiment of the invention provides a communication method which is suitable for a communication system. Fig. 1 shows an architecture of a communication system. As shown in fig. 1, the communication system includes: a local device 100 and a remote device 200.
The office device 100 may include a packet forwarding module, a first management packet processing module, a second management packet processing module, a transmission module, and a main control card.
The office device 100 may be an SDH office device, an OTN office device, or other types of office devices, which is not limited in the embodiment of the present invention.
The remote device 200 may be an SDH remote device, an OTN remote device, or other types of remote devices, which are not limited by the embodiments of the present invention.
The communication method provided by the embodiment of the invention can be executed by the local side equipment 100. Fig. 2 shows a hardware structure of the office device 100. As shown in fig. 2, the office device 100 may include a processor 101, a communication line 102, a memory 103, and a communication interface 104.
The structure illustrated in the embodiment of the present invention does not limit the local side device 100. More or fewer components than shown may be included, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 101 may include one or more processing units, such as: the processor 101 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a Neural network processor (Neural-network Processing Unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a decision maker that directs the various components of the head-end apparatus 100 to work in concert as instructed. Is the neural and command center of the office-side device 100. The controller generates an operation control signal according to the instruction operation code and the time sequence signal to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 101 for storing instructions and data. In some embodiments, the memory in the processor is a cache memory that holds instructions or data that the processor has just used or recycled. If the processor needs to reuse the instruction or data, it can be called directly from memory. Repeated access is avoided, and the waiting time of the processor is reduced, so that the efficiency of the system is improved.
In some embodiments, the processor 101 may include an interface. The interfaces may include an integrated circuit (I nter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integ rated circuit sound, I2S) interface, a pulse code modulation (pulse code modulati on, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receive r/transmitter, UART) interface, a mobile industry processor interface (mobile industry pr ocessor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
A communication line 102 for transmitting information between the processor 101 and the memory 103.
The memory 103 is used for storing and executing computer execution instructions, and is controlled to be executed by the processor 101.
The memory 103 may be stand alone and be coupled to the processor via communication line 102. The memory 103 may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM). It should be noted that the memory of the systems and apparatus described herein is intended to comprise, without being limited to, these and any other suitable traffic type memories.
The following describes a communication method provided by the embodiment of the present invention with reference to the communication system shown in fig. 1 and the office device 100 shown in fig. 2.
As shown in fig. 3, the communication method provided by the embodiment of the invention includes:
s301, a message forwarding module in the local side equipment 100 receives a message sent by the remote side equipment.
The message forwarding module may be represented by a message forwarding (packet transmission, PT) module. The PT module is used for carrying out data interaction between the Ethernet service side and the management end and between the management end and the remote equipment, and consists of a plurality of message forwarding channels.
S302, a first management message processing module in the local side equipment 100 extracts a first message from a message forwarding module in the local side equipment 100.
The first message is a management message with a single layer VLAN tag and an outer layer VLAN tag as a first value.
The first management message processing module may be represented by management message processing (management packet pro cess, MPP) 1. The MPP1 module is used for extracting management messages and packaging the management messages, and in practical application, the MPP1 module sets VLAN values of the management messages to be extracted aiming at forwarding channels of the PT module and is used for distinguishing interaction between the management messages on different message forwarding channels and the MPP1 module. Here, it is explained that the management VLAN tag corresponding to each packet forwarding channel may not be the same by the MPP1 module, so as to distinguish the channel corresponding to the packet forwarding, and is different from the service VLAN tag.
The MPP1 module can be realized by a field programmable gate array (field-programmable gate arra y, FPGA), and the message packaged by the MPP1 module is secondarily packaged according to a remote management design rule.
S303, a first management message processing module in the local side equipment 100 generates a second message according to the first message.
The second message is a management message having a double-layer VLAN tag, and both the outer-layer VLAN tag and the inner-layer VLAN tag are the first numerical value.
Specifically, the MPP1 module extracts the first message to a corresponding message encapsulation processing unit queue in the MPP1 module. The message packaging processing unit of the MPP1 module extracts VLAN tag in the first message by identifying VLAN tag field in the first message, copies the field and inserts the field into the original first message, and packages the original single-layer VLAN tag management message into double-layer V LAN tag management messages with the same VLAN tag of the inner layer and the outer layer.
S304, the first management message processing module in the local side device 100 sends a second message to the second management message processing module in the local side device 100.
Correspondingly, a second management message processing module in the office device 100 receives the second message.
S305, a second management message processing module in the local side equipment 100 generates a third message according to the second message sent by the first management message processing module in the local side equipment 100.
The third message is a management message with a double-layer VLAN tag, wherein the outer-layer VLAN tag is a second numerical value, and the inner-layer VLAN tag is a first numerical value. The second management message processing module may be represented by MPP 3.
Specifically, after receiving the second message sent by the MPP1 module, the MPP2 module identifies an outer layer VLAN tag in the management message, and replaces the outer layer VLAN tag with a VLAN tag1 identifiable by the main control card.
S306, the second management message processing module in the local side device 100 sends a third message to the transmission module in the local side device 100.
Correspondingly, the transmission module in the office device 100 receives the third message.
S307, the transmission module in the local side device 100 sends a third message sent by the second management message processing module in the local side device 100 to the master control card in the local side device 100.
Correspondingly, the master control card in the local side device 100 receives the third message.
Alternatively, the transmission modules in the office device 100 may include a first transmission module (transmission module 1) and a second transmission module (transmission module 2).
In the prior art, the transmission module 1 and the transmission module 2 correspond to different VLAN forwarding domains respectively. For example, transport module 1 corresponds to VLAN forwarding domain 1 and transport module 2 corresponds to VLAN forwarding domain 2. In the embodiment of the present invention, VLAN forwarding domains of the transmission module 1 and the transmission module 2 may overlap. For example, transport module 1 corresponds to VLAN forwarding domain 1, transport module 2 corresponds to VLAN forwarding domain 1 and VLAN forwarding domain 2.
In order to increase the reliability of remote management, the embodiment of the invention adds a protection mechanism on the basis of the method. In the embodiment of the invention, in the prior art, specific type message timing interaction is added between the transmission module 1 and the transmission module 2, the setting of the main and standby roles positioning and the management message forwarding domain is carried out, and the transmission module 2 is multiplexed and used as a standby channel of the transmission module 1. After the management message enters the transmission module, the main transmission module notifies the standby transmission module of own state information, and the format of the interactive message is shown in table 1.
TABLE 1
Message type | Operating state | Character status | Managing message VLAN forwarding domain |
In the initial state, the transmission module 1 is used for forwarding the remote management message in the embodiment of the present invention, and the preset role is mainly in a working state, and supports the VLAN forwarding domain 1. The transmission module 2 is used for forwarding other management messages, and is preset to be in a non-working state, and the VLA N forwarding domain 2 available for transmission is not overlapped with the VLAN forwarding domain 1 supported by the far end in the embodiment of the present invention.
During normal transmission, the transmission module 1 is in a working state and takes the role as the main part. Normal remote management message transmission is performed, and status information is sent to the transmission module 2 at regular time. When the transmission module 2 receives the message of the message type, the message interpretation is carried out, the management message VLAN carried in the message is extracted, and if the transmission module 1 is in a working state and the role state is the main state, the response processing is not carried out, and the transmission of the management message is carried out according to the initial state.
At a certain moment, when the transmission module 1 detects that the current state is in the non-operating state, the transmission module 1 modifies the state information to be in the non-operating state, takes the role as a backup, transmits the information to the transmission module 2 no matter whether the timing time is reached or not, and stops transmitting the exchange message during the state.
After receiving the state change information of the transmission module 1, the transmission module 2 modifies the role information of itself to be the main role information and updates the role information to be the working state. Meanwhile, the received VLAN forwarding domain 1 is added into the forwarding domain of the VLAN forwarding domain, and the processing of the remote management message in the embodiment of the invention is increased. And sends a timing interaction message to the transmission module 1 for state information notification.
According to the method, the transmission module 2 can be reused only by adding small message interaction, so that the utilization rate of the transmission module 2 is increased, and the stability of the management capability of the remote equipment is improved.
Specifically, the transmission module in the office device 100 includes a first transmission module and a second transmission module, where the first transmission module in the office device 100 is in an operating state, and where the second transmission module in the office device 100 is in a non-operating state, S307 may be:
the first transmission module in the local side device 100 sends a third message sent by the second management message processing module in the local side device 100 to the master control card in the local side device 100.
Specifically, the transmission module in the office device 100 includes a first transmission module and a second transmission module, where the first transmission module in the office device 100 is in a non-working state, and where the second transmission module in the office device 100 is in a working state, S307 may be:
The first transmission module in the office device 100 sends the third message sent by the second management message processing module in the office device 100 to the second transmission module in the office device 100.
The second transmission module in the local side device 100 sends the third message sent by the first transmission module in the local side device 100 to the master control card in the local side device 100.
S308, the master control card in the local side equipment 100 generates a fourth message according to the third message sent by the transmission module in the local side equipment 100.
The fourth message is a third message added with remote management information.
Referring to fig. 3, as shown in fig. 4, the communication method provided by the embodiment of the present invention may further include:
s309, the master control card in the local side device 100 sends a fourth message to the transmission module in the local side device 100.
Correspondingly, the transmission module in the office device 100 receives the fourth message.
S310, a transmission module in the local side equipment 100 sends a fourth message sent by a main control card in the local side equipment 100 to a second management message processing module in the local side equipment 100.
Correspondingly, the second management message processing module in the office device 100 receives the fourth message.
Specifically, the transmission module in the office device 100 includes a first transmission module and a second transmission module, where the first transmission module in the office device 100 is in an operating state, and where the second transmission module in the office device 100 is in a non-operating state, S310 may be:
The first transmission module in the office device 100 sends a fourth message sent by the main control card in the office device 100 to the second management message processing module in the office device 100.
Specifically, the transmission module in the office device 100 includes a first transmission module and a second transmission module, where the first transmission module in the office device 100 is in a non-working state, and where the second transmission module in the office device 100 is in a working state, S310 may be:
the second transmission module in the office device 100 sends a fourth message sent by the main control card in the office device 100 to the first transmission module in the office device 100.
The first transmission module in the office device 100 sends a fourth message sent by the second transmission module in the office device 100 to the second management message processing module in the office device 100.
S311, a second management message processing module in the local side device 100 generates a fifth message according to the fourth message sent by the transmission module in the local side device 100.
Specifically, after the MPP2 module receives the fourth message carrying the remote management information, the message encapsulation processing unit of the MPP2 module identifies the inner layer VLAN tag and the outer layer VLAN tag1 in the fourth message, and then replaces the outer layer VLAN tag1 with the inner layer VLAN tag.
S312, the second management message processing module in the local side device 100 sends a fifth message to the first management message processing module in the local side device 100.
Correspondingly, the first management message processing module in the office device 100 receives the fifth message.
The fifth message is a second message added with remote management information.
S313, the first management message processing module in the local side device 100 generates a sixth message according to the fifth message sent by the second management message processing module in the local side device 100.
The sixth message is a first message added with remote management information.
S314, the first management message processing module in the local side device 100 sends a sixth message to the remote side device.
Specifically, after receiving the management message forwarded by the MPP2 module, the MPP1 module inserts the management message into a queue corresponding to the forwarding channel according to the outer layer VLA N tag, strips the outer layer VLAN tag before sending, decapsulates the management message of the original double-layer VLAN tag into a management message of a single-layer VLAN tag, and sends the management message to the remote device.
In order to facilitate the reader to understand the communication method provided by the embodiment of the present invention, the communication method provided by the embodiment of the present invention is described below with reference to the uplink management message processing schematic diagram shown in fig. 5, the downlink management message processing schematic diagram shown in fig. 6, the uplink management message processing schematic diagram with the protection mechanism shown in fig. 7, and the downlink management message processing schematic diagram with the protection mechanism shown in fig. 8. The uplink refers to the management message from the remote device to the master control card in the local device. The downlink refers to the management message from the master control card in the local side equipment to the remote side equipment.
As shown in fig. 5, a management message (first message) sent by the remote device is received by the PT module. Then, the first management message processing module extracts the management message from the message forwarding module, encapsulates the management message into a second message, and sends the encapsulated management message (second message) to the second management message processing module. The second management message processing module replaces the outer VLAN ta g of the management message (second message) to obtain a third message, then the management message (third message) replaced by the outer VLAN ta g is sent to the transmission module, and the transmission module forwards the message to the main control card. And the master control card adds the remote management information into the message to obtain a fourth message.
As shown in fig. 6, the host card transmits a management message (fourth message) to which the remote management information is added to the transmission module. The transmission module forwards the message to the second management message processing module, the second management message processing module replaces the outer VLAN tag of the management message (fourth message) to obtain a fifth message, and then the management message (fifth message) replacing the outer VLAN tag is sent to the first management message processing module. The first management message processing module strips the outer VLAN tag of the fifth message to obtain a sixth message and sends the message (sixth message) with the outer VLAN tag stripped to the remote device.
As shown in fig. 7, the process from the remote device to the second management message processing module may refer to the description of fig. 5, and will not be repeated herein.
Before the protection mechanism is not triggered (i.e. the first transmission module is in an operating state and the second transmission module is in a non-operating state), the second management message processing module sends a management message (third message) replacing the outer layer VLAN tag to the first transmission module, and the first transmission module forwards the message to the main control card through the VLAN forwarding domain 1.
After the protection mechanism is not triggered (i.e. the first transmission module is in a non-working state and the second transmission module is in a working state), the second management message processing module sends a management message (a third message) replacing the outer layer VLAN tag to the first transmission module, the first transmission module forwards the message to the second transmission module, and the second transmission module forwards the message to the main control card through the VLAN forwarding domain 1.
As shown in fig. 8, the process from the second management message processing module to the remote device may refer to the description of fig. 6, and will not be repeated herein.
Before the protection mechanism is not triggered (i.e. the first transmission module is in an operating state and the second transmission module is in a non-operating state), the master control card sends a management message (fourth message) added with remote management information to the first transmission module. The first transmission module forwards the message to the second management message processing module through the VLAN forwarding domain 1.
After the protection mechanism is not triggered (i.e. the first transmission module is in a non-working state and the second transmission module is in a working state), the master control card sends a management message (fourth message) added with remote management information to the first transmission module, the first transmission module forwards the message to the second transmission module, and the second transmission module forwards the message to the second management message processing module through the VLAN forwarding domain 1.
The foregoing description of the solution provided by the embodiments of the present invention has been mainly presented in terms of a method. To achieve the above functions, it includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The embodiment of the present invention may divide the functional modules of the local side device 100 according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present invention, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
The embodiment of the present invention provides a local side device 100 for executing the above communication method, as shown in fig. 9, the local side device 100 includes: the system comprises a message forwarding module 901, a first management message processing module 902, a second management message processing module 903, a transmission module 904 and a main control card 905.
The message forwarding module 901 is configured to receive a message sent by a remote device. For example, in connection with fig. 3, the packet forwarding module 901 may be used to perform S301.
The first management message processing module 902 is configured to extract a first message from the message forwarding module, generate a second message according to the first message, and send the second message to the second management message processing module, where the first message is a management message having a single layer VLAN tag and an outer layer VLAN tag being a first value, and the second message is a management message having a double layer VLAN tag and both the outer layer VLAN tag and the inner layer VLAN tag being the first value. For example, in connection with fig. 3, the first management message processing module 902 may be configured to perform S302, S303, and S304.
The second management message processing module 903 is configured to generate a third message according to the second message sent by the first management message processing module, and send the third message to the transmission module, where the third message is a management message having a dual-layer VLA N tag, an outer-layer VLAN tag being a second numerical value, and an inner-layer VLAN tag being a first numerical value. For example, in connection with fig. 3, the second management message processing module 903 may be configured to execute S305 and S306.
And the transmission module 904 is configured to send the third message sent by the second management message processing module to the main control card. For example, in connection with fig. 3, the transmission module 904 may be used to perform S307.
The main control card 905 is configured to generate a fourth message according to the third message sent by the transmission module, where the fourth message is the third message added with the remote management information. For example, in connection with fig. 3, the master card 905 may be used to perform S308.
Optionally:
the master control card 905 is further configured to send a fourth message to the transmission module. For example, in connection with fig. 4, the master card 905 may be used to perform S309.
The transmission module 904 is further configured to send a fourth message sent by the main control card to the second management message processing module. For example, in connection with fig. 4, the transmission module 904 may be used to perform S310.
The second management message processing module 903 is further configured to generate a fifth message according to the fourth message sent by the transmission module, and send the fifth message to the first management message processing module, where the fifth message is the second message to which the remote management information is added. For example, in connection with fig. 4, the second management message processing module 903 may be configured to perform S311 and S312.
The first management message processing module 902 is further configured to generate a sixth message according to the fifth message sent by the second management message processing module, and send the sixth message to the remote device, where the sixth message is the first message to which the remote management information is added. For example, in connection with fig. 4, the first management message processing module 902 may be configured to perform S313 and S314.
The transmission module 904 may include: a first transmission module and a second transmission module.
And under the condition that the first transmission module is in an operating state and the second transmission module is in a non-operating state, the first transmission module is used for sending a third message sent by the second management message processing module to the main control card.
And under the condition that the first transmission module is in a non-working state and the second transmission module is in a working state, the first transmission module is used for sending a third message sent by the second management message processing module to the second transmission module, and the second transmission module is used for sending the third message sent by the first transmission module to the main control card.
And under the condition that the first transmission module is in an operating state and the second transmission module is in a non-operating state, the first transmission module is also used for sending a fourth message sent by the main control card to the second management message processing module.
And under the condition that the first transmission module is in a non-working state and the second transmission module is in a working state, the second transmission module is further used for sending a fourth message sent by the main control card to the first transmission module, and the first transmission module is further used for sending the fourth message sent by the second transmission module to the second management message processing module.
Optionally, as shown in fig. 9, the remote device 100 may further include: a traffic handling module 906.
A Service Packet (SP) module 906, configured to process the Service Packet received by the forwarding module.
In particular, as shown in fig. 2 and 9. The message forwarding module 901, the first management message processing module 902, the second management message processing module 903, the transmission module 904, and the host card 905 in fig. 9 call the program in the memory 103 via the communication line 102 by the processor 101 in fig. 2 to execute the above-described communication method.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer-executable instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present invention are fully or partially produced. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, a website, computer, server, or data center via a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. Computer readable storage media can be any available media that can be accessed by a computer or data storage devices including one or more servers, data centers, etc. that can be integrated with the media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not described in detail herein.
In the several embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, e.g., the partitioning of elements is merely a logical functional partitioning, and there may be additional partitioning in actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not implemented. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical, or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The present invention is not limited to the above embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present invention are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.
Claims (8)
1. A local side device, comprising: the system comprises a message forwarding module, a first management message processing module, a second management message processing module, a transmission module and a main control card; the transmission module includes: a first transmission module and a second transmission module;
The message forwarding module is used for receiving a message sent by the remote equipment;
the first management message processing module is configured to extract a first message from the message forwarding module, generate a second message according to the first message, and send the second message to the second management message processing module, where the first message is a management message having a single-layer virtual local area network tag VLAN tag and AN outer layer VL AN tag being a first value, and the second message is a management message having a double-layer VLAN tag and both the outer layer VLAN tag and the inner layer VLAN tag being the first value;
the second management message processing module is configured to generate a third message according to the second message sent by the first management message processing module, and send the third message to the transmission module, where the third message is a management message having a dual-layer VLAN tag, an outer-layer VLAN tag being a second numerical value, and an inner-layer VLAN tag being the first numerical value;
when the first transmission module is in a working state and the second transmission module is in a non-working state, the first transmission module is used for sending the third message sent by the second management message processing module to the main control card;
When the first transmission module is in a non-working state and the second transmission module is in a working state, the first transmission module is used for sending the third message sent by the second management message processing module to the second transmission module, and the second transmission module is used for sending the third message sent by the first transmission module to the main control card;
the master control card is configured to generate a fourth message according to the third message sent by the transmission module, where the fourth message is the third message added with the remote management information.
2. The office device of claim 1, wherein the main control card is further configured to send the fourth message to the transmission module;
the transmission module is further configured to send the fourth message sent by the main control card to the second management message processing module;
the second management message processing module is further configured to generate a fifth message according to the fourth message sent by the transmission module, and send the fifth message to the first management message processing module, where the fifth message is a second message added with remote management information;
the first management message processing module is further configured to generate a sixth message according to the fifth message sent by the second management message processing module, and send the sixth message to the remote device, where the sixth message is a first message to which remote management information is added.
3. The office device of claim 1, wherein, when the first transmission module is in an active state and the second transmission module is in an inactive state, the first transmission module is further configured to send the fourth message sent by the main control card to the second management message processing module;
and when the first transmission module is in a non-working state and the second transmission module is in a working state, the second transmission module is further configured to send the fourth message sent by the main control card to the first transmission module, and the first transmission module is further configured to send the fourth message sent by the second transmission module to the second management message processing module.
4. A communication method applied to the local side equipment as claimed in any one of claims 1 to 3, comprising
The message forwarding module receives a message sent by a remote device;
the first management message processing module extracts a first message from the message forwarding module, generates a second message according to the first message, and sends the second message to the second management message processing module, wherein the first message is a management message with a single-layer VLAN tag and an outer-layer VLAN tag as a first value, and the second message is a management message with a double-layer VLAN tag and both the outer-layer VLAN tag and the inner-layer VLAN tag as the first value;
The second management message processing module generates a third message according to the second message sent by the first management message processing module, and sends the third message to the transmission module, wherein the third message is a management message with a double-layer VLAN tag, an outer-layer VLAN tag is a second numerical value, and an inner-layer VLAN tag is the first numerical value; the transmission module includes: a first transmission module and a second transmission module;
when the first transmission module is in a working state and the second transmission module is in a non-working state, the first transmission module sends the third message sent by the second management message processing module to the main control card;
when the first transmission module is in a non-working state and the second transmission module is in a working state, the first transmission module sends the third message sent by the second management message processing module to the second transmission module, and the second transmission module sends the third message sent by the first transmission module to the main control card;
and the master control card generates a fourth message according to the third message sent by the transmission module, wherein the fourth message is the third message added with the remote management information.
5. The communication method according to claim 4, characterized in that the method further comprises:
the master control card sends the fourth message to the transmission module;
the transmission module sends the fourth message sent by the main control card to the second management message processing module;
the second management message processing module generates a fifth message according to the fourth message sent by the transmission module, and sends the fifth message to the first management message processing module, wherein the fifth message is a second message added with remote management information;
the first management message processing module generates a sixth message according to the fifth message sent by the second management message processing module, and sends the sixth message to the remote equipment, wherein the sixth message is a first message added with remote management information.
6. The communication method according to claim 4, wherein, when the first transmission module is in an active state and the second transmission module is in an inactive state, the transmission module sends the fourth message sent by the main control card to the second management message processing module, including:
the first transmission module sends the fourth message sent by the main control card to the second management message processing module;
When the first transmission module is in a non-working state and the second transmission module is in a working state, the transmission module sends the fourth message sent by the main control card to the second management message processing module, which comprises:
the second transmission module sends the fourth message sent by the main control card to the first transmission module;
the first transmission module sends the fourth message sent by the second transmission module to the second management message processing module.
7. The local side equipment is characterized by comprising: one or more processors, and memory;
the memory is coupled with the one or more processors; the memory is configured to store computer program code comprising instructions that, when executed by the one or more processors, cause the local side device to perform the communication method of any of claims 4-6.
8. A computer readable storage medium comprising instructions which, when run on a local side device, cause the local side device to perform the communication method of any of claims 4-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011262586.0A CN114500165B (en) | 2020-11-12 | 2020-11-12 | Communication method, local side equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011262586.0A CN114500165B (en) | 2020-11-12 | 2020-11-12 | Communication method, local side equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114500165A CN114500165A (en) | 2022-05-13 |
CN114500165B true CN114500165B (en) | 2023-05-12 |
Family
ID=81490416
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011262586.0A Active CN114500165B (en) | 2020-11-12 | 2020-11-12 | Communication method, local side equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114500165B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009155830A1 (en) * | 2008-06-25 | 2009-12-30 | 华为技术有限公司 | Exchanging method, equipment and system for the optical access system |
CN102299811A (en) * | 2010-06-24 | 2011-12-28 | 创锐讯通讯技术(上海)有限公司 | Method for remotely managing user side equipment by using local side equipment |
CN102857382A (en) * | 2012-09-28 | 2013-01-02 | 瑞斯康达科技发展股份有限公司 | Network management equipment, access convergent equipment, access terminal equipment, and management method and system for access terminal equipment |
CN105245388A (en) * | 2015-10-28 | 2016-01-13 | 北京众合德信技术有限公司 | Miniature access PTN device and configuration method and system thereof |
CN109495370A (en) * | 2018-12-29 | 2019-03-19 | 瑞斯康达科技发展股份有限公司 | A kind of message transmitting method and device based on VPLS |
CN109768929A (en) * | 2018-12-29 | 2019-05-17 | 瑞斯康达科技发展股份有限公司 | A kind of message transmitting method and device based on VPWS |
-
2020
- 2020-11-12 CN CN202011262586.0A patent/CN114500165B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009155830A1 (en) * | 2008-06-25 | 2009-12-30 | 华为技术有限公司 | Exchanging method, equipment and system for the optical access system |
CN102299811A (en) * | 2010-06-24 | 2011-12-28 | 创锐讯通讯技术(上海)有限公司 | Method for remotely managing user side equipment by using local side equipment |
CN102857382A (en) * | 2012-09-28 | 2013-01-02 | 瑞斯康达科技发展股份有限公司 | Network management equipment, access convergent equipment, access terminal equipment, and management method and system for access terminal equipment |
CN105245388A (en) * | 2015-10-28 | 2016-01-13 | 北京众合德信技术有限公司 | Miniature access PTN device and configuration method and system thereof |
CN109495370A (en) * | 2018-12-29 | 2019-03-19 | 瑞斯康达科技发展股份有限公司 | A kind of message transmitting method and device based on VPLS |
CN109768929A (en) * | 2018-12-29 | 2019-05-17 | 瑞斯康达科技发展股份有限公司 | A kind of message transmitting method and device based on VPWS |
Non-Patent Citations (1)
Title |
---|
郭茂文.ADSL终端远程管理技术的研究及实现.电信科学.2005,(第03期),32-35. * |
Also Published As
Publication number | Publication date |
---|---|
CN114500165A (en) | 2022-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112753204B (en) | Method, apparatus and computer readable medium for delivering data plane packets | |
CN111800326B (en) | Message transmission method and device, processing node and storage medium | |
CN102185718B (en) | System upgrading method and device | |
CN107645433B (en) | Message forwarding method and device | |
CN112351437B (en) | Data processing method and device of forwarding network | |
CN103228058A (en) | Method of managing connectivity status within a mobile radio communications device | |
EP4167529A1 (en) | Slice data transmission method and apparatus, electronic device, and computer readable storage medium | |
CN112491978B (en) | Scheduling method and device | |
US11140735B2 (en) | Data replication controlling method and related device | |
CN107995315B (en) | Method and device for synchronizing information between service boards, storage medium and computer equipment | |
CN114500165B (en) | Communication method, local side equipment and storage medium | |
CN104770031A (en) | Method, apparatus and host for configuring secondary cell | |
EP3422799B1 (en) | Lte-nr interworking procedure for scg split bearer configurations | |
CN109803272B (en) | Communication method, device and system | |
US11265730B2 (en) | Data processing method adapted to access network architecture, access network architecture system and storage medium | |
CN114222369B (en) | Networking communication method, device and system | |
CN102123513A (en) | Allocation method and system for transmission bearing mode of enhanced dedicated channel | |
US10004038B2 (en) | Method of bypassing data and mobile device using the same | |
CN112462647B (en) | Radio station network control system and method | |
CN114828024A (en) | Distributed networking method, device, distributed base station and storage medium | |
EP4044515A1 (en) | Method, device and system for realizing business function deployment | |
US20200285781A1 (en) | Terminal and communication method | |
US20240205794A1 (en) | Data routing method and apparatus, node, and storage medium | |
CN109691007A (en) | A kind of mark distributing method of Deta bearer, terminal device and the network equipment | |
CN112653633B (en) | Method and device for realizing load sharing |
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 |