CN111163379B - Communication method and multi-user residential unit MDU - Google Patents

Communication method and multi-user residential unit MDU Download PDF

Info

Publication number
CN111163379B
CN111163379B CN201911403787.5A CN201911403787A CN111163379B CN 111163379 B CN111163379 B CN 111163379B CN 201911403787 A CN201911403787 A CN 201911403787A CN 111163379 B CN111163379 B CN 111163379B
Authority
CN
China
Prior art keywords
message
control chip
port
exchange
main control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911403787.5A
Other languages
Chinese (zh)
Other versions
CN111163379A (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.)
Bowei Technology Co ltd
Original Assignee
Bowei Technology 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 Bowei Technology Co ltd filed Critical Bowei Technology Co ltd
Priority to CN201911403787.5A priority Critical patent/CN111163379B/en
Publication of CN111163379A publication Critical patent/CN111163379A/en
Application granted granted Critical
Publication of CN111163379B publication Critical patent/CN111163379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0086Network resource allocation, dimensioning or optimisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a communication method and an MDU, wherein the MDU comprises the following steps: the system comprises a main control chip, an exchange control chip and an exchange chip; the method comprises the following steps: after the initialization of the exchange control chip is completed, a first message which is successfully started is sent to the main control chip according to a preset message packaging format by utilizing an information transmission channel between the exchange control chip and the main control chip; the information transmission channel is established in advance based on a preset communication protocol; when the main control chip receives the first message, a second message is sent to the exchange control chip according to different communication service requirements, and the exchange control chip forwards the second message to the exchange chip; the exchange chip executes corresponding communication service operation based on the second message; therefore, an information transmission channel is established between the main control chip and the exchange control chip, and when the main control chip needs to issue the service configuration information to the exchange chip, the exchange control chip can be utilized to forward the service configuration information to the exchange chip, so as to realize the configuration and processing of the communication service.

Description

Communication method and multi-user residential unit MDU
Technical Field
The invention belongs to the technical field of optical network communication, and particularly relates to a communication method and a multi-user residential unit (MDU).
Background
A Passive Optical Network (PON) refers to a Network in which an Optical Distribution Network (ODN) does not include any electronic device or electronic power supply, and the ODN is a Network formed by Passive devices such as Optical splitters. A passive Optical Network includes an Optical Line Terminal (OLT) installed at a central control station and an Optical Network Unit (ONUs) installed at a subscriber site.
A multi-user Dwelling Unit (MDU) is a deployment scheme of an ONU, and refers to an ONU with Multiple ports (8 ports and above). However, in the prior art, the main control chip in the MDU cannot manage the switching control chip, so that the communication service cannot be configured.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a communication method and a multi-user residential unit (MDU), which are used for solving the technical problem that a main control chip in the MDU in the prior art cannot manage a switching chip, and further cannot configure communication services for the switching chip, so that the communication services cannot be processed.
The invention provides a communication method, which is applied to a multi-user living unit MDU, wherein the MDU comprises the following steps: the system comprises a main control chip, an exchange control chip and an exchange chip; the method comprises the following steps:
after the initialization of the exchange control chip is completed, a first message which is successfully started is sent to the main control chip according to a preset message packaging format by utilizing an information transmission channel between the exchange control chip and the main control chip; the information transmission channel is established in advance based on a preset communication protocol;
when the main control chip receives the first message, a second message is sent to the exchange control chip according to different communication service requirements, and the exchange control chip forwards the second message to the exchange chip;
the exchange chip executes corresponding communication service operation based on the second message; wherein the content of the first and second substances,
the second message includes: any one of a port configuration message, a port LED state control message, an acquisition port state report message, a data stream creation message, a working mode setting message of an MDU, a heartbeat message, an MDU upgrade message, an active partition setting message, an acquisition current active partition message, a Differentiated Services Code Point (DSCP) priority mapping configuration message, a port return state configuration message, an 802.1X message control message, an uplink speed limit acquisition message, an uplink speed limit configuration message, a downlink speed limit acquisition message and a downlink speed limit configuration message.
Optionally, the first message and the second message have a same message encapsulation format, and the message encapsulation format includes: magic number, message type, process identification ID, message length, message content and crc check value of the message.
Optionally, the first message, the port configuration message, the port LED status control message, the data stream creation message, the MDU upgrade message, the active partition setting message, the DSCP priority mapping configuration message, the port return status configuration message, the uplink speed limit configuration message, and the downlink speed limit configuration message are asynchronous messages;
the acquisition port state report message, the heartbeat message, the acquisition current active zone message, the 802.1X message control message, the uplink speed limit acquisition message and the downlink speed limit acquisition message are synchronous messages.
Optionally, the method further comprises: when the main control chip sends a synchronous message to the exchange control chip, the exchange control chip establishes a first server, and the first server simultaneously supports at least 32 communication connections;
when the exchange control chip sends an asynchronous message to the main control chip, the main control chip establishes a second server, and the second server simultaneously supports at least 32 communication connections.
The present invention also provides a multi-user dwelling unit, MDU, comprising:
the exchange control chip is used for sending a first message which is successfully started to the main control chip by utilizing the information transmission channel according to a preset message packaging format after the initialization is finished; the information transmission channel is established in advance based on a preset communication protocol;
the main control chip is used for sending a second message to the exchange control chip according to different communication service requirements when receiving the first message;
the switching control chip is further configured to forward the second message to the switching chip;
the switching chip is used for executing corresponding communication service operation based on the second message; wherein the content of the first and second substances,
the second message includes: any one of port configuration message, port LED state control message, port state report obtaining message, data flow establishing message, MDU working mode setting message, heartbeat message, MDU upgrading message, active zone setting message, current active zone obtaining message, DSCP priority mapping configuration message, port return state configuration message, 802.1X message control message, uplink speed limit obtaining message, uplink speed limit configuration message, downlink speed limit obtaining message and downlink speed limit configuration message.
Optionally, the first message and the second message have a same message encapsulation format, and the message encapsulation format includes: magic number, message type, process identification ID, message length, message content and crc check value of the message.
Optionally, the first message, the port configuration message, the port LED status control message, the data stream creation message, the MDU upgrade message, the active partition setting message, the DSCP priority mapping configuration message, the port return status configuration message, the uplink speed limit configuration message, and the downlink speed limit configuration message are asynchronous messages;
the acquisition port state report message, the heartbeat message, the acquisition current active zone message, the 802.1X message control message, the uplink speed limit acquisition message and the downlink speed limit acquisition message are synchronous messages.
Optionally, when the main control chip sends a synchronization message to the switching control chip, the switching control chip is further configured to: establishing a first server which simultaneously supports at least 32 communication connections;
when the exchange control chip sends the asynchronous message to the main control chip, the main control chip is further configured to: and establishing a second server which simultaneously supports at least 32 communication connections.
The invention provides a communication method and an MDU (minimization drive unit), which are applied to an MDU (Multi-user residential Unit), wherein the MDU comprises the following components: the system comprises a main control chip, an exchange control chip and an exchange chip; the method comprises the following steps: after the initialization of the exchange control chip is completed, a first message which is successfully started is sent to the main control chip according to a preset message packaging format by utilizing an information transmission channel between the exchange control chip and the main control chip; the information transmission channel is established in advance based on a preset communication protocol; when the main control chip receives the first message, a second message is sent to the exchange control chip according to different communication service requirements, and the exchange control chip forwards the second message to the exchange chip; the exchange chip executes corresponding communication service operation based on the second message; wherein the second message comprises: any one of port configuration information, port LED state control information, port state report acquiring information, data flow establishing information, MDU working mode setting information, heartbeat information, MDU upgrading information, active zone setting information, current active zone acquiring information, DSCP priority mapping configuration information, port return state configuration information, 802.1X message control information, uplink speed limit acquiring information, uplink speed limit configuration information, downlink speed limit acquiring information and downlink speed limit configuration information; therefore, an information transmission channel is established between the main control chip and the exchange control chip, and when the main control chip needs to issue the service configuration information to the exchange chip, the exchange control chip can be utilized to forward the service configuration information to the exchange chip, so as to realize the configuration and processing of the communication service.
Drawings
Fig. 1 is a schematic flow chart of a communication method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an MDU according to an embodiment of the present invention.
Detailed Description
The invention provides a communication method and an MDU (management data unit) in order to solve the technical problem that a master control chip in the MDU in the prior art cannot manage a switching chip and further cannot configure communication services for the switching chip, so that the communication services cannot be processed.
The technical solution of the present invention is further described in detail by the accompanying drawings and the specific embodiments.
Example one
The embodiment provides a communication method, which is applied to an MDU, where the MDU includes: the system comprises a main control chip, an exchange control chip and an exchange chip; as shown in fig. 1, the method comprises:
s110, after the initialization of the exchange control chip is completed, a first message which is successfully started is sent to the main control chip according to a preset message packaging format by using an information transmission channel between the exchange control chip and the main control chip; the information transmission channel is established in advance based on a preset communication protocol;
in this embodiment, in order to enable the main control chip to communicate with the switching control chip, an information transmission channel is first pre-established based on a preset communication protocol, where the communication protocol is a TCP/IP protocol.
Specifically, an information transmission channel is established between a main control chip and an exchange control chip by using a socket sleeving technology, and the following steps are realized:
the switching control chip establishes a first server, and creates a first listening port (for example, the first listening port is 10001) for receiving a message sent by the main control chip. The main control chip establishes a second server, and creates a second listening port (for example, the second listening port may be 10002) for receiving the message sent by the switching control chip.
After the information transmission channel is established, the exchange control chip can be powered on and initialized, and after the initialization is completed, the exchange control chip sends a first message of successful start to the main control chip according to a preset message packaging format so as to inform the main control chip that the start is completed and the work can be started. The first message is a first message which is sent to the main control chip after the switching control chip is started, and if the first message is failed to be sent, the first message needs to be sent again until the first message is sent successfully. The main control chip only receives the first message once in the one-time starting process of the exchange control chip.
S111, when the main control chip receives the first message, sending a second message to the exchange control chip according to different communication service requirements, and forwarding the second message to the exchange chip by the exchange control chip;
and when the main control chip receives the first message, sending a second message to the exchange control chip according to different communication service requirements, and forwarding the second message to the exchange chip by the exchange control chip.
Here, the communication service requirement may include: configuring ports, controlling port LED status, obtaining port status, data stream creation, etc.
The second message may then include: any one of port configuration message, port LED state control message, port state report obtaining message, data flow establishing message, MDU working mode setting message, heartbeat message, MDU upgrading message, active zone setting message, current active zone obtaining message, DSCP priority mapping configuration message, port return state configuration message, 802.1X message control message, uplink speed limit obtaining message, uplink speed limit configuration message, downlink speed limit obtaining message and downlink speed limit configuration message.
The port configuration message is used for configuring a target port, and comprises the following fields: port number, attribute mask, port state, port mode, return state, pause time, and maximum packet length; the method specifically comprises the following steps:
port number: indicating ports to be configured
Attribute masking: indicating the attribute to be operated on (e.g. down the port)
Port state: opening and closing a port
Port mode: indicating port rates and duplex modes
Returning to the state: setting Port Return State
Pause time: for port flow control
Maximum packet length: setting maximum Ethernet frame length
The port LED state control message is used for controlling the LED state of the target port and controlling the LED to be turned on or off; the fields of the port LED status control message include:
port LED status: on or off.
The acquiring of the port status report message is used for acquiring the current status of the port, and the acquiring of the field of the port status report message includes:
port number: indicating the corresponding port
Port state: enabled or not enabled
Port mode: port rate and duplex mode
The data flow creating message is used for creating the data flow, and the fields of the data flow message comprise:
optical network port GEM port number: indicating the corresponding GEM port number
Lan port No. UNI: indicating the corresponding UNI port number
Multicast attributes: indicating whether it is a multicast stream
VLAN value: indicating the corresponding VLAN configuration
The operation mode setting message of the MDU is used to set a mode of the MDU, and fields of the mode setting message of the MDU include:
the working mode is as follows: factory mode or factory mode
The heartbeat message is used for maintaining the connection between the main control chip and the exchange control chip, and the heartbeat message has no corresponding data.
The MDU upgrade message is used to notify the switching control chip to start preparing an upgrade IMAGE, and the fields of the MDU upgrade message include:
IMAGE version: version information
The IMAGE download complete message is used to inform the switching control chip that the new IMAGE has been delivered.
The active partition setting message is used for setting which partition the switching control chip should be started from when restarting next time, and the fields of the active partition setting message include:
and (4) partition ID: for indicating active partitions
Here, in order to avoid a breakdown caused by an emergency, the MDU is generally provided with two active partitions, and if a problem occurs in the main active partition, the standby active partition is started.
It should be noted that when the MDU is upgraded, the IMAGE of the standby active partition is upgraded, and when the switching control chip is started next time, the switching control chip should be started from the upgraded standby partition.
Acquiring a current active partition message to acquire a current acquisition partition and software IMAGE version information of a main active partition and a standby active partition, wherein the acquiring of a field of the current active partition message comprises:
and (4) partition ID: indicating the corresponding partition
And (3) active partition identification: indicating whether it is an active partition
IMAGE version: the partition software IMAGE version information
The differentiated services code point, DSCP, priority mapping configuration message is used to set mapping configuration of DSCP to priority, and the DSCP priority mapping configuration message includes:
UNI port number: indicating the corresponding UNI port
Array of DSCP to priority mappings: indicating mapping relationships
For example, the main control chip sends various types of service configuration information (internet access, video watching, video downloading) to the switching control chip at the same time, and then the switching control chip sends the service configuration information to the switching chip, and the switching chip can process the service configuration information according to the corresponding priority. If the priority is from high to low: the exchange chip configures the internet access service, the video watching service and the video downloading service at first.
The port return state configuration message is only used in a factory mode, all UNI ports are set to be return states by default, and therefore all Ethernet ETH ports can be set conveniently in a factory.
The 802.1X message control message is used for configuring the 802.1X port state of the side port of the exchange control chip, if the 802.1X port state is Disabled or Unauthenticated, the exchange control chip must discard the message with the Mac address of 01:80: c2:00:00:03, and when the port state is Authenticated, the message with the Mac address of 01:80: c2:00:00:03 must be transmitted; wherein the Mac address of 802.1x is 01:80: c2:00:00: 03. The fields of the 802.1X message control message include:
UNI port number: indicating the corresponding UNI port
An authentication mode: value is forbidden, non-authentication, authentication
The uplink speed limit obtaining message is used for obtaining the uplink maximum transmission rate of the target port, and the fields of the message comprise:
UNI port number: indicating the corresponding port
Uplink rate: indicating the corresponding rate
The uplink speed limit configuration message is used for configuring the uplink maximum transmission rate of a target port, and the fields of the message comprise:
UNI port number: indicating the corresponding port
Uplink rate: indicating the corresponding rate
The downlink speed limit obtaining message is used for obtaining the downlink maximum transmission rate of the target port, and the fields of the message comprise:
UNI port number: indicating the corresponding port
Downlink rate: indicating the corresponding rate
The downlink speed limit configuration message is used for configuring the downlink maximum transmission rate of a target port, and the fields of the message comprise:
UNI port number: indicating the corresponding port
Downlink rate: indicating the corresponding rate
It should be noted that all the ports mentioned above are, by default, UNI ports unless a specific port type is defined.
Here, the first message and the second message have the same message encapsulation format, and the message encapsulation format includes: magic number, message type, process identification ID, message length, message content and crc check value of the message. The magic number identifies the beginning of a message, the message type is used for identifying the specific type of the message, and the message type comprises the port configuration message, the port LED state control message and the like; the process ID is used to indicate which process the message originated from, and is 0 by default.
Here, two types of communication modes exist between the main control chip and the control chip, one is synchronous message, and the other is asynchronous message, and the asynchronous message can improve the parallel capability of the MDU and improve the processing efficiency.
Here, in order to enable the switching control chip to perform information transmission with the master control information, the method further includes: when the main control chip sends a synchronous message to the exchange control chip, the exchange control chip establishes a first server, and the first server simultaneously supports at least 32 communication connections; when the exchange control chip sends an asynchronous message to the main control chip, the main control chip establishes a second server, and the second server simultaneously supports at least 32 communication connections.
Specifically, for example, when the current process of the main control chip sends a synchronization message to the switching control chip, the process waits for a response returned by the switching control chip within a set time. Therefore, the switching control chip needs to establish a first server and create a first listening port (for example, the listening port may be defined as 10001), and the switching control chip listens to the message sent by the main control chip through the first listening port. When the current process of the main control chip sends a certain synchronous message to the exchange control chip, the main control chip establishes a TCP connection to the first server, and after the message interaction is completed, the TCP connection of the first server is ended.
Here, since the main control chip is a chip including multiple processes/threads, multiple connections to the switching control chip may be established at the same time, and therefore, the first server of the switching control chip needs to support at least 32 communication connections at the same time.
For example, asynchronous messages can be divided into two types, the first type is that asynchronous messages are sent by a main control chip, and the second type is that asynchronous messages are sent by a switching control chip.
When the current process of the main control chip sends an asynchronous message to the exchange control chip, the current process does not wait for the response of the exchange control chip. When the switching control chip sends out an asynchronous message, the main control chip needs to establish a second server and create a second listening port (for example, the port may be defined as 10002), and likewise, the second server supports at least 32 communication connections at the same time.
Further, in this embodiment, the first message, the port configuration message, the port LED status control message, the data stream creation message, the MDU upgrade message, the active partition setting message, the DSCP priority mapping configuration message, the port return status configuration message, the uplink speed limit configuration message, and the downlink speed limit configuration message are asynchronous messages;
the acquisition port state report message, the heartbeat message, the acquisition current active zone message, the 802.1X message control message, the uplink speed limit acquisition message and the downlink speed limit acquisition message are synchronous messages.
S112, the exchange chip executes corresponding communication service operation based on the second message;
and when the switching chip receives the second message forwarded by the control chip, executing corresponding communication service operation based on the second message.
For example, when the second message is a port configuration message, the switch chip configures corresponding port information according to the port configuration message.
Thus, the master control chip realizes the management of the exchange chip, thereby realizing the configuration of the communication service.
Based on the same inventive concept, the invention also provides an MDU, which is detailed in the second embodiment.
Example two
This embodiment provides an MDU, as shown in fig. 2, the MDU includes: a main control chip 21, an exchange control chip 22 and an exchange chip 23; because the main control chip 21 does not support the service configuration for the switching chip 23, the service configuration message needs to be sent to the switching control chip 22, and the switching control chip 22 performs the service configuration for the switching chip 23; then, the main control chip 21 is connected to the switching control chip 22, and the switching control chip 22 is connected to the switching chip 23. One switching control chip 22 may be connected to n switching chips 23, and in this embodiment, one switching control chip 22 is connected to 4 switching chips 23.
In order to enable the main control chip 21 to communicate with the switching control chip 22, an information transmission channel is first established in advance based on a preset communication protocol, which is a TCP/IP protocol.
Specifically, an information transmission channel is established between a main control chip and an exchange control chip by using a socket sleeving technology, and the method is specifically realized as follows: the switching control chip establishes a first server, and creates a first listening port (for example, the first listening port is 10001) for receiving a message sent by the main control chip. The main control chip establishes a second server, and creates a second listening port (for example, the second listening port may be 10002) for receiving the message sent by the switching control chip.
After the information transmission channel is established, the switching control chip 22 may be powered on and initialized, and after the initialization is completed, a first message that the startup is successful is sent to the main control chip 21 by using the information transmission channel according to a preset message encapsulation format; to inform the main control chip 21 that the start-up has been completed, and the operation can be started. The first message is a first message sent to the main control chip 21 after the switching control chip 22 is started, and if the first message fails to be sent, the first message needs to be sent again until the first message is sent successfully. The main control chip 21 receives the first message only once during one start-up process of the switching control chip 22.
The main control chip 21 is configured to send a second message to the switching control chip 22 according to different communication service requirements when receiving the first message; the switch control chip 22 is further configured to forward the second message to the switch chip 23.
Here, the communication service requirement may include: configuring ports, controlling port LED status, obtaining port status, data stream creation, etc.
The second message may then include: any one of port configuration message, port LED state control message, port state report obtaining message, data flow establishing message, MDU working mode setting message, heartbeat message, MDU upgrading message, active zone setting message, current active zone obtaining message, DSCP priority mapping configuration message, port return state configuration message, 802.1X message control message, uplink speed limit obtaining message, uplink speed limit configuration message, downlink speed limit obtaining message and downlink speed limit configuration message.
The port configuration message is used for configuring a target port, and comprises the following fields: port number, attribute mask, port state, port mode, return state, pause time, and maximum packet length; the method specifically comprises the following steps:
port number: indicating ports to be configured
Attribute masking: indicating the attribute to be operated on (e.g. down the port)
Port state: opening and closing a port
Port mode: indicating port rates and duplex modes
Returning to the state: setting Port Return State
Pause time: for port flow control
Maximum packet length: setting maximum Ethernet frame length
The port LED state control message is used for controlling the LED state of the target port and controlling the LED to be turned on or off; the fields of the port LED status control message include:
port LED status: on or off.
The acquiring of the port status report message is used for acquiring the current status of the port, and the acquiring of the field of the port status report message includes:
port number: indicating the corresponding port
Port state: enabled or not enabled
Port mode: port rate and duplex mode
The data flow creating message is used for creating the data flow, and the fields of the data flow message comprise:
virtual port GEM port number: indicating the corresponding GEM port number
Network port UNI port number: indicating the corresponding UNI port number
Multicast attributes: indicating whether it is a multicast stream
VLAN value: indicating the corresponding VLAN configuration
The operation mode setting message of the MDU is used to set a mode of the MDU, and fields of the mode setting message of the MDU include:
the working mode is as follows: factory mode or factory mode
The heartbeat message is used for maintaining the connection between the main control chip and the exchange control chip, and the heartbeat message has no corresponding data.
The MDU upgrade message is used to notify the switching control chip to start preparing an upgrade IMAGE, and the fields of the MDU upgrade message include:
IMAGE version: version information
The IMAGE download complete message is used to inform the switching control chip that the new IMAGE has been delivered.
The active partition setting message is used for setting which partition the switching control chip should be started from when restarting next time, and the fields of the active partition setting message include:
and (4) partition ID: for indicating active partitions
Here, in order to avoid a breakdown caused by an emergency, the MDU is generally provided with two active partitions, and if a problem occurs in the main active partition, the standby active partition is started.
It should be noted that when the MDU is upgraded, the IMAGE of the standby active partition is upgraded, and when the switching control chip is started next time, the switching control chip should be started from the upgraded standby partition.
Acquiring a current active partition message to acquire a current acquisition partition and software IMAGE version information of a main active partition and a standby active partition, wherein the acquiring of a field of the current active partition message comprises:
and (4) partition ID: indicating the corresponding partition
And (3) active partition identification: indicating whether it is an active partition
IMAGE version: the partition software IMAGE version information
The differentiated services code point, DSCP, priority mapping configuration message is used to set mapping configuration of DSCP to priority, and the DSCP priority mapping configuration message includes:
UNI port number: indicating the corresponding UNI port
Array of DSCP to priority mappings: indicating mapping relationships
For example, the main control chip 21 sends various types of service configuration information (internet access, video watching, video downloading) to the switching control chip 22 at the same time, then the switching control chip 22 sends the service configuration information to the switching chip, and the switching chip 23 may process the service configuration information according to the corresponding priority. If the priority is from high to low: the exchange chip configures the internet access service, the video watching service and the video downloading service at first.
The port return state configuration message is only used in a factory mode, all UNI ports are set to be return states by default, and therefore all Ethernet ETH ports can be set conveniently in a factory.
The 802.1X message control message is used for configuring the 802.1X port state of the side port of the switching control chip 22, if the 802.1X port state is Disabled or Unauthenticated, the switching control chip must discard the message with the Mac address of 01:80: c2:00:00:03, and when the port state is Authenticated, the message with the Mac address of 01:80: c2:00:00:03 must be transmitted; wherein the Mac address of 802.1x is 01:80: c2:00:00: 03. The fields of the 802.1X message control message include:
UNI port number: indicating the corresponding UNI port
An authentication mode: value is forbidden, non-authentication, authentication
The uplink speed limit obtaining message is used for obtaining the uplink maximum transmission rate of the target port, and the fields of the message comprise:
UNI port number: indicating the corresponding port
Uplink rate: indicating the corresponding rate
The uplink speed limit configuration message is used for configuring the uplink maximum transmission rate of a target port, and the fields of the message comprise:
UNI port number: indicating the corresponding port
Uplink rate: indicating the corresponding rate
The downlink speed limit obtaining message is used for obtaining the downlink maximum transmission rate of the target port, and the fields of the message comprise:
UNI port number: indicating the corresponding port
Downlink rate: indicating the corresponding rate
The downlink speed limit configuration message is used for configuring the downlink maximum transmission rate of a target port, and the fields of the message comprise:
UNI port number: indicating the corresponding port
Downlink rate: indicating the corresponding rate
It should be noted that all the ports mentioned above are, by default, UNI ports unless a specific port type is defined.
Here, the first message and the second message have the same message encapsulation format, and the message encapsulation format includes: magic number, message type, process identification ID, message length, message content and crc check value of the message. The magic number identifies the beginning of a message, the message type is used for identifying the specific type of the message, and the message type comprises the port configuration message, the port LED state control message and the like; the process ID is used to indicate which process the message originated from, and is 0 by default.
Here, there are two types of communication modes between the main control chip 21 and the control chip 22, one is synchronous message, and the other is asynchronous message.
When the main control chip 21 sends a synchronization message to the switching control chip 22, the switching control chip 22 establishes a first server, and the first server supports at least 32 communication connections simultaneously; when the switching control chip sends an asynchronous message to the main control chip, the main control chip 21 establishes a second server, and the second server supports at least 32 communication connections at the same time.
Specifically, for example, when a current process of the main control chip 21 sends a synchronization message to the switching control chip 22, the process waits for a response returned by the switching control chip 22 within a set time. Therefore, the switching control chip 22 needs to establish a first server and create a first listening port (for example, the listening port may be defined as 10001), and the switching control chip 22 listens to the message sent by the main control chip 21 through the first listening port. When the current process of the main control chip 21 sends a synchronization message to the switching control chip 22, the main control chip 21 establishes a TCP connection to the first server, and after the message interaction is completed, the TCP connection of the first server is terminated.
Here, since the main control chip 21 is a chip including multiple processes/threads, multiple connections to the switching control chip 22 may be established at the same time, and thus the first server of the switching control chip needs to support at least 32 communication connections at the same time.
For example, the asynchronous messages can be divided into two types, the first type is asynchronous messages sent by the main control chip 21, and the second type is asynchronous messages sent by the switching control chip 22.
After the current process of the main control chip 21 sends an asynchronous message to the switching control chip 22, the current process does not wait for the response of the switching control chip 22. When the switching control chip 22 sends out an asynchronous message, the main control chip 21 needs to establish a second server and create a second listening port (for example, the port may be defined as 10002), and likewise, the second server supports at least 32 communication connections at the same time.
Further, in this embodiment, the first message, the port configuration message, the port LED status control message, the data stream creation message, the MDU upgrade message, the active partition setting message, the DSCP priority mapping configuration message, the port return status configuration message, the uplink speed limit configuration message, and the downlink speed limit configuration message are asynchronous messages;
the acquisition port state report message, the heartbeat message, the acquisition current active zone message, the 802.1X message control message, the uplink speed limit acquisition message and the downlink speed limit acquisition message are synchronous messages.
When the switching chip 23 receives the second message forwarded by the switching control chip 22, the corresponding communication service operation is executed based on the second message.
For example, when the second message is a port configuration message, the switch chip 23 configures the corresponding port information according to the port configuration message.
The main control chip 21 thus implements management of the switch chip 23, thereby implementing configuration of communication services.
The communication method and the MDU provided by the embodiment of the invention have the following beneficial effects that:
the invention provides a communication method and an MDU (minimization drive unit), wherein the method comprises the following steps: in a multi-user dwelling unit, MDU, said MDU comprising: the system comprises a main control chip, an exchange control chip and an exchange chip; the method comprises the following steps: after the initialization of the exchange control chip is completed, a first message which is successfully started is sent to the main control chip according to a preset message packaging format by utilizing an information transmission channel between the exchange control chip and the main control chip; the information transmission channel is established in advance based on a preset communication protocol; when the main control chip receives the first message, a second message is sent to the exchange control chip according to different communication service requirements, and the exchange control chip forwards the second message to the exchange chip; the exchange chip executes corresponding communication service operation based on the second message; wherein the second message comprises: any one of port configuration information, port LED state control information, port state report acquiring information, data flow establishing information, MDU working mode setting information, heartbeat information, MDU upgrading information, active zone setting information, current active zone acquiring information, DSCP priority mapping configuration information, port return state configuration information, 802.1X message control information, uplink speed limit acquiring information, uplink speed limit configuration information, downlink speed limit acquiring information and downlink speed limit configuration information; thus, an information transmission channel is established between the main control chip and the exchange control chip, when the main control chip needs to issue service configuration information to the exchange chip, the exchange control chip can be utilized to forward the service configuration information to the exchange chip, and then configuration and processing of communication services are realized; multiple connections can be simultaneously initiated between the main control chip and the exchange control chip, multiple messages can be processed simultaneously, and the parallel capability is increased; the communication method supports synchronous messages and asynchronous messages, and can improve the processing efficiency of the system; the information transmission channel utilizes a TCP/IP protocol, is stable in connection and can ensure stable transmission of messages.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (8)

1. A method of communication in a multi-user living unit, MDU, comprising: the system comprises a main control chip, an exchange control chip and a plurality of exchange chips, wherein the exchange control chip is connected with the plurality of exchange chips; the method comprises the following steps:
after the initialization of the exchange control chip is completed, a first message which is successfully started is sent to the main control chip according to a preset message packaging format by utilizing an information transmission channel between the exchange control chip and the main control chip; the information transmission channel is established in advance based on a preset communication protocol;
when the main control chip receives the first message, a second message is sent to the exchange control chip according to different communication service requirements, and the exchange control chip forwards the second message to the exchange chip;
the exchange chip executes corresponding communication service operation based on the second message; wherein the first message and the second message have the same message encapsulation format;
the second message includes: any one of port configuration message, port LED state control message, port state report obtaining message, data flow establishing message, MDU working mode setting message, heartbeat message, MDU upgrading message, active zone setting message, current active zone obtaining message, DSCP priority mapping configuration message, port return state configuration message, 802.1X message control message, uplink speed limit obtaining message, uplink speed limit configuration message, downlink speed limit obtaining message and downlink speed limit configuration message.
2. The method of claim 1, wherein the message encapsulation format comprises: magic number, message type, process identification ID, message length, message content and crc check value of the message.
3. The method of claim 1, wherein the first message, the port configuration message, the port LED status control message, the data flow creation message, the MDU upgrade message, the active zone setup message, the DSCP priority mapping configuration message, the port return status configuration message, the upstream speed limit configuration message, and the downstream speed limit configuration message are asynchronous messages;
the acquisition port state report message, the heartbeat message, the acquisition current active zone message, the 802.1X message control message, the uplink speed limit acquisition message and the downlink speed limit acquisition message are synchronous messages.
4. The method of claim 1, wherein the method further comprises:
when the main control chip sends a synchronous message to the exchange control chip, the exchange control chip establishes a first server, and the first server simultaneously supports at least 32 communication connections;
when the exchange control chip sends an asynchronous message to the main control chip, the main control chip establishes a second server, and the second server simultaneously supports at least 32 communication connections.
5. A multiple user living unit, MDU, comprising:
the exchange control chip is used for sending a first message which is successfully started to the main control chip by utilizing the information transmission channel according to a preset message packaging format after the initialization is finished; the information transmission channel is established in advance based on a preset communication protocol; the switching control chip is connected with a plurality of switching chips;
the main control chip is used for sending a second message to the exchange control chip according to different communication service requirements when receiving the first message;
the switching control chip is further configured to forward the second message to the switching chip;
the plurality of switching chips are used for executing corresponding communication service operation based on the second message; wherein the first message and the second message have the same message encapsulation format;
the second message includes: any one of port configuration message, port LED state control message, port state report obtaining message, data flow establishing message, MDU working mode setting message, heartbeat message, MDU upgrading message, active zone setting message, current active zone obtaining message, DSCP priority mapping configuration message, port return state configuration message, 802.1X message control message, uplink speed limit obtaining message, uplink speed limit configuration message, downlink speed limit obtaining message and downlink speed limit configuration message.
6. The MDU of claim 5, wherein the message encapsulation format comprises: magic number, message type, process identification ID, message length, message content and crc check value of the message.
7. The MDU of claim 5, wherein the first message, the port configuration message, the port LED status control message, the data flow creation message, the MDU upgrade message, the active zone setup message, the DSCP priority mapping configuration message, the port return status configuration message, the upstream speed limit configuration message, and the downstream speed limit configuration message are asynchronous messages; the acquisition port state report message, the heartbeat message, the acquisition current active zone message, the 802.1X message control message, the uplink speed limit acquisition message and the downlink speed limit acquisition message are synchronous messages.
8. The MDU of claim 5, wherein when the master chip sends a synchronization message to the switch control chip, the switch control chip is further to: establishing a first server which simultaneously supports at least 32 communication connections;
when the exchange control chip sends the asynchronous message to the main control chip, the main control chip is further configured to: and establishing a second server which simultaneously supports at least 32 communication connections.
CN201911403787.5A 2019-12-31 2019-12-31 Communication method and multi-user residential unit MDU Active CN111163379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911403787.5A CN111163379B (en) 2019-12-31 2019-12-31 Communication method and multi-user residential unit MDU

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911403787.5A CN111163379B (en) 2019-12-31 2019-12-31 Communication method and multi-user residential unit MDU

Publications (2)

Publication Number Publication Date
CN111163379A CN111163379A (en) 2020-05-15
CN111163379B true CN111163379B (en) 2022-04-05

Family

ID=70559548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911403787.5A Active CN111163379B (en) 2019-12-31 2019-12-31 Communication method and multi-user residential unit MDU

Country Status (1)

Country Link
CN (1) CN111163379B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125104A (en) * 2014-08-13 2014-10-29 烽火通信科技股份有限公司 Configuration method of business data in optical network unit
CN110267130A (en) * 2019-07-01 2019-09-20 博为科技有限公司 A kind of remote configuring method and device of the optical network unit based on SDN

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220236B (en) * 2012-01-21 2017-04-12 华为技术有限公司 Management method for exchanging chip ports, main control panel, exchanging panel and system
CN202713340U (en) * 2012-06-01 2013-01-30 上海斐讯数据通信技术有限公司 Mdu
CN103179054B (en) * 2013-03-11 2016-01-20 鼎点视讯科技有限公司 For control panel and the control method of optical network unit
CN103369417B (en) * 2013-07-31 2016-05-18 太仓市同维电子有限公司 A kind of collocation method of gigabit passive optical network terminal device
CN105376664A (en) * 2015-10-28 2016-03-02 上海斐讯数据通信技术有限公司 MDU device and working method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125104A (en) * 2014-08-13 2014-10-29 烽火通信科技股份有限公司 Configuration method of business data in optical network unit
CN110267130A (en) * 2019-07-01 2019-09-20 博为科技有限公司 A kind of remote configuring method and device of the optical network unit based on SDN

Also Published As

Publication number Publication date
CN111163379A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
US10863256B2 (en) Plug-and-play PON systems with autonomous boot mode
US12021561B1 (en) Data provisioning
US9130769B2 (en) Upstream external PHY interface for data and control plane traffic
US10827239B2 (en) Message transmission method, relay device, and message processor
EP2966830B1 (en) Method, apparatus and system for interacting information in access network
CN107360105B (en) SDN management control method, device and system and OLT
EP3244571B1 (en) Configuration data distribution method and apparatus
WO2012136102A1 (en) Method and system for controlling coaxial broadband access terminal
EP3952324A1 (en) Interface upgrading method and apparatus, and optical network unit management method and apparatus
KR20040062336A (en) Method for controlling loopback procedure in ethernet passive optical network
WO2016101525A1 (en) Method, apparatus and system for managing optical network unit dpu device
US9615153B2 (en) System and method for applying an extended multipoint protocol to wireless access systems
EP4216567A1 (en) Networking method and apparatus for passive optical network
KR101990480B1 (en) Method, apparatus and system for managing terminal device in passive optical network
EP3908007A1 (en) Method, system, and related device for administering optical network unit
CN110049386A (en) Communication network and relevant device
CN111163379B (en) Communication method and multi-user residential unit MDU
CN115987774A (en) Communication management method, device and system of optical network equipment and readable storage medium
WO2015074275A1 (en) Optical line terminal, distribution point unit, system and data stream scheduling method
WO2014121600A1 (en) Downlink message transmitting method in photo-electric mixed system and optical coaxial unit
EP2922211A1 (en) Independent and entrusted channel management method and device for fully-outdoors digital microwave transmission device
WO2015100534A1 (en) Ethernet passive optical network communication method, device and system
CN108449204B (en) ROF equipment management system and method
EP2667632B1 (en) Method and apparatus for extending multipoint control protocols to mixed media access systems
CN116528084A (en) Centralized management method and system for Homeplug AV equipment penetrating PON link

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