CN109327360B - Port multiplexing method and device - Google Patents

Port multiplexing method and device Download PDF

Info

Publication number
CN109327360B
CN109327360B CN201710648497.1A CN201710648497A CN109327360B CN 109327360 B CN109327360 B CN 109327360B CN 201710648497 A CN201710648497 A CN 201710648497A CN 109327360 B CN109327360 B CN 109327360B
Authority
CN
China
Prior art keywords
port
service
information
physical port
physical
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
CN201710648497.1A
Other languages
Chinese (zh)
Other versions
CN109327360A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710648497.1A priority Critical patent/CN109327360B/en
Publication of CN109327360A publication Critical patent/CN109327360A/en
Application granted granted Critical
Publication of CN109327360B publication Critical patent/CN109327360B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments
    • H04L12/2878Access multiplexer, e.g. DSLAM
    • H04L12/2887Access multiplexer, e.g. DSLAM characterised by the offered subscriber services
    • H04L12/2889Multiservice, e.g. MSAN

Landscapes

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

Abstract

The document discloses a method and a device for multiplexing ports, wherein the method comprises the following steps: configuring port type information and associated service information of a physical port to enable the physical port to support a specified service; the configured port type information and the associated service information of the physical port are sent to a logic chip; and when the message of the specified service is accessed through the physical port, the logic chip executes the forwarding processing of the message. The method and the device realize the forwarding of the physical coding sublayer level, so that different services can be accessed on the same physical port.

Description

Port multiplexing method and device
Technical Field
The invention relates to the field of optical communication, in particular to a method and a device for multiplexing ports.
Background
The existing bearer network can access different types of services, which commonly include ethernet services, Time Division Multiplexing (TDM) services, ATM services. The 5G-oriented bearer device may access a plurality of service types, such as Common Public Radio Interface (CPRI), next generation Common Public Radio Interface (ECPRI), eth, and the like, and a flexE Interface or a conventional ethernet Interface is used on a network side.
CPRI is an interface between a radio equipment controller (BBU) and a radio equipment (RRU). CPRI may carry management data, synchronization data and user data, primarily involving the physical layer (L1) and the link layer (L2), supporting both optical and electrical interfaces.
Flexible ethernet (flexE) is an important technology for future network development, and flexible ethernet based on fragmentation technology will become a future trend. The application of the network fragmentation solution of the Ethernet interface in a large network realizes the flexible and flexible allocation (fragmentation and binding) of bandwidth and special hard pipelines, and ensures the quality of service and the safety; providing a low latency solution; and the method can be also fused with Software Defined Network (SDN) technology. In an operator network, the flexible ethernet based on the interface channelization technology can provide functions such as network fragmentation and sub-interface isolation, and support a future network architecture based on service experience.
If different types of services are accessed on the same physical port, greater flexibility is brought to an operator, so that the operator can select the type of the port to be accessed according to actual requirements, and can switch to another type of service on the unified physical port when switching is needed. In the related art, under the condition that different types of services need to be accessed, different types of physical access board cards are added on the equipment so as to access different types of services respectively by using the different types of physical access board cards. However, the resource of the device is limited, and if different types of access boards are added to the device, the size and cost of the device are inevitably increased.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide a method and an apparatus for port multiplexing.
In order to achieve the object of the present invention, the present invention provides a method for multiplexing ports, comprising:
configuring port type information and associated service information of a physical port to enable the physical port to support a specified service;
the configured port type information and the associated service information of the physical port are sent to a logic chip;
and when the message of the specified service is accessed through the physical port, the logic chip executes the forwarding processing of the message.
The configuring port type information and associated service information of the physical port includes:
acquiring configuration information of the specified service, wherein the configuration information indicates a port type corresponding to the specified service;
and configuring the port type information and the associated service information of the physical port according to the configuration information of the specified service.
The configuring port type information and associated service information of the physical port includes:
judging whether preset configuration conditions are met or not;
and when the configuration condition is met, configuring the port type information and the associated service information of the physical port.
Wherein, the judging whether the preset configuration condition is met at least comprises one or more of the following items:
judging whether the physical port is bound with a service;
judging whether the physical port supports the port type corresponding to the specified service or not;
and judging whether a forced switching command is received.
Wherein the determining whether the physical port has bound the service includes:
and judging whether the port identification of the physical port is associated with the configuration information of the service.
Before configuring the port type information and the associated service information of the physical port, the method further includes:
and when the physical port bears the service, unbinding the service borne on the physical port.
Wherein the unbinding the service carried on the physical port includes:
and deleting or migrating the configuration information of the associated service of the port identifier of the physical port.
Before configuring the port type information and the associated service information of the physical port, the method further includes:
and when a forced switching command is received, deleting the configuration information of the service associated with the port number of the physical port.
Wherein the port type information includes: the port identification, the port type identification and the port attribute parameter of the physical port;
the associated service information includes: traffic configuration information associated with a port identification of the physical port.
Wherein the configuring of the port type information and the associated service information of the physical port includes:
setting the physical port as a port type corresponding to the specified service, and configuring port attribute parameters for the physical port according to the port type;
and associating the physical port with the configuration information of the specified service through the port identification of the physical port.
When the physical port is a user-side port, the port type of the physical port is one of the following:
an Ethernet;
common public radio interface CPRI;
ECPRI;
a newly expanded port type;
when the physical port is a network-side port, the port type of the physical port is one of the following:
an Ethernet;
FlexE。
wherein the acquiring the configuration information of the specified service includes:
and extracting the specified configuration information by analyzing the message issued by the external control equipment.
The present invention also provides a port multiplexing device, including:
the port resource configuration module is used for configuring port type information and associated service information of a physical port so that the physical port supports a specified service;
and the port switching module is used for sending the configured port type information and the associated service information of the physical port to a logic chip so that the logic chip executes the forwarding processing of the message when the message of the specified service is accessed through the physical port.
Wherein, still include:
the command processing module is used for acquiring configuration information of the specified service, wherein the configuration information indicates a port type corresponding to the specified service;
and the port resource configuration module is used for configuring the port type information and the associated service information of the physical port according to the configuration information of the specified service.
Wherein, still include: the switching control module is used for judging whether preset configuration conditions are met or not; and the port resource configuration module is used for controlling the port resource configuration module to configure the port type information and the associated service information of the physical port when the configuration condition is met.
The switching control module is specifically configured to determine whether a preset configuration condition is met by at least one or more of the following:
judging whether the physical port is bound with a service;
judging whether the physical port supports the port type corresponding to the specified service or not;
and judging whether a forced switching command is received.
The switching control module is further configured to unbind the service that has been carried on the physical port when the service has been carried on the physical port.
The port resource configuration module is specifically configured to:
setting the physical port as a port type corresponding to the specified service, and configuring port attribute parameters for the physical port according to the port type;
and associating the physical port with the configuration information of the specified service through the port identification of the physical port.
The present invention also provides a transmission device, comprising:
a physical port;
a logic chip configured to execute the message forwarding processing when a message of a specified service is accessed through the physical port;
a memory storing a port multiplexing program;
a processor configured to execute the port multiplexing program to perform the following operations: configuring port type information and associated service information of the physical port so that the physical port supports the specified service; and issuing the configured port type information and the associated service information of the physical port to a logic chip.
Wherein the processor is configured to execute the port multiplexing program to perform the following operations:
judging whether preset configuration conditions are met or not; and when the configuration condition is met, configuring the port type information and the associated service information of the physical port.
Wherein, the processor is configured to execute the judgment whether the preset configuration condition is met, and at least includes one or more of the following items:
judging whether the physical port is bound with a service;
judging whether the physical port supports the port type corresponding to the specified service or not;
and judging whether a forced switching command is received.
Wherein the processor configured to execute the port multiplexing program further performs the following operations:
before configuring the port type information and the associated service information of the physical port, unbinding the service carried on the physical port.
When the physical port is a user-side port, the port type of the physical port is one of the following:
an Ethernet;
common public radio interface CPRI;
ECPRI;
a newly expanded port type;
when the physical port is a network-side port, the port type of the physical port is one of the following:
an Ethernet;
FlexE。
the present invention also provides a computer-readable storage medium, having stored thereon a port multiplexing program, which when executed by a processor implements the steps of any of the above-described port multiplexing methods.
The embodiment of the invention can adjust the port type and the associated service of the physical port according to the requirement, so that the same physical port can support the bearing of different types of services, and the forwarding of a physical coding sublayer (pcs) layer is realized by using the logic chip, so that different services can be accessed on the same physical port, thereby not only saving the equipment cost, but also miniaturizing hardware equipment and further ensuring that the equipment is more convenient to apply.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flow chart illustrating a port multiplexing method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an exemplary structure of a two-port multiplexing device according to an embodiment of the present invention;
FIG. 3 is a diagram showing an exemplary configuration of a third transmission apparatus according to the embodiment;
fig. 4 is a schematic diagram of an exemplary structure of a logic chip in the third embodiment.
FIG. 5 is a schematic diagram of a scenario of example 1;
fig. 6 is a schematic diagram of an exemplary structure of a transmission device in example 1;
FIG. 7 is a schematic diagram of initialization configuration and switching procedure of a user-side port in example 1;
fig. 8 is a schematic diagram of initialization configuration and switching flow of the network-side port in example 1.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Example one
As shown in fig. 1, the present embodiment provides a method for port multiplexing, which is applied to a transmission device in the field of optical communication, and includes:
step 101, configuring port type information and associated service information of a physical port, so that the physical port supports a specified service;
102, issuing the configured port type information and the associated service information of the physical port to a logic chip;
step 103, when the message of the designated service is accessed through the physical port, the logic chip executes the forwarding processing of the message.
The method of the embodiment can adjust the port type and the associated service of the physical port according to the requirement, so that the same physical port can support the bearing of different types of services, and the forwarding of a pcs layer is realized by using the logic chip, so that different services can be accessed on the same physical port. For example, with the method of this embodiment, when the port carries a change of traffic, the port type can be switched from one type to another type on the same physical port without switching the physical port.
In this embodiment, the configuring port type information and associated service information of the physical port may include: acquiring configuration information of the specified service, wherein the configuration information indicates a port type corresponding to the specified service; and configuring the port type information and the associated service information of the physical port according to the configuration information of the specified service. In practical applications, there are various ways to obtain the specified service configuration information. Preferably, the obtaining mode may be: and extracting the specified configuration information by analyzing the message issued by the external control equipment. Here, the external control device may be a device responsible for management of a transmission device in an optical communication network, and for example, the external control device may be a controller in a network management system. In addition, the manner of acquiring the specified service configuration information may also be: and (4) inputting by a user. The specific manner of obtaining the service configuration information is not limited in the present application.
In this embodiment, the configuring port type information and associated service information of the physical port may include: judging whether preset configuration conditions are met or not; and when the configuration condition is met, configuring the port type information and the associated service information of the physical port. And when the configuration condition is not met, not executing the configuration of the physical port. In addition, when the configuration condition is not met, error information can be returned to the external control equipment, so that a user can acquire the configuration condition of the physical port in time.
In this embodiment, different determination methods may be adopted for different actual situations or actual scenes. For example, the determining whether the preset configuration condition is satisfied may include at least one or more of the following: 1) judging whether the physical port is bound with a service; the method comprises the steps that when a physical port is bound with a service, the configuration condition is considered not to be met, and when the physical port is not bound with the service or is unbound with the service, the configuration condition is considered to be met; 2) judging whether the physical port supports the port type corresponding to the specified service or not; wherein, when the physical interface supports the port type corresponding to the specified service, the configuration condition is considered to be satisfied, and when the physical interface does not support the port type corresponding to the specified service, the configuration condition is considered not to be satisfied, 3) whether a forced switching command is received is judged; and when the forced switching command is not received and the physical port is bound with the service or the physical port does not support the port type corresponding to the specified service, the configuration condition is considered to be not met.
The manner of determining whether the physical port has bound the service may be: and judging whether the port identification of the physical port is associated with the configuration information of the service. Specifically, if the port identifier of the physical port is associated with configuration information of a service, the physical port is considered as a bound service, and if the port identifier of the physical port is not associated with configuration information of any service, the physical port is considered as an unbound service or an unbound service. Here, the port identifier of the physical port is information capable of uniquely identifying the physical port, and may be, for example, a name of the physical port, a port number of the physical port, or the like.
Before configuring the port type information and the associated service information of the physical port, the method may further include: and when the physical port bears the service, unbinding the service borne on the physical port. In practical applications, it may be determined in advance whether a physical port already carries a service (the determination method is the same as the above "determining whether the physical port already carries a service"), if the physical port already carries a service, the service on the physical port may be unbundled, and if the physical port does not carry any service, the operation of unbundling may not be performed. In practical applications, there are various ways to unbundle the traffic already carried on the physical port. For example, the configuration information of the service associated with the port identifier of the physical port may be migrated (that is, the configuration information of the service may be associated with the port identifiers of other physical ports); for another example, the configuration information of the port identifier of the physical port that has been associated with the service may be directly deleted. In addition, there may be other ways, which do not limit the present application.
In this embodiment, before configuring the port type information and the associated service information of the physical port, the method may further include: when a forced switching command is received, the configuration information of the traffic associated with the port number of the physical port may be deleted. Therefore, the carried service on the physical port can be bound forcedly, and the physical port and the designated service can be bound forcedly.
In this embodiment, the port type information may include: the port identification, the port type identification and the port attribute parameter of the physical port; the associated service information may include: traffic configuration information associated with a port identification of the physical port. For example, when the port type is CPRI, the port type information may include: port name, port number, CPRI port type identification, port rate (common CPRI port rates include Option 1-Option 10 constant rate classes, actual rate from 614.4 Mbit/s-24330.24 Mbit/s). For another example, when the port type is an ethernet port, the port type information may include a port name, a port number, a port rate, an optoelectronic property, an access mode, a jumbo frame support, and the like.
In this embodiment, the configuring the port type information and the associated service information of the physical port may include: setting the physical port as a port type corresponding to the specified service, and configuring port attribute parameters for the physical port according to the port type; and associating the physical port with the configuration information of the specified service through the port identification of the physical port. In one case, the physical port may be configured in this manner when the physical port is initially configured. In another case, when the port bearer service changes, the physical port and the bearer service may be unbound (i.e., the configuration information of the bearer service is disassociated from the physical port), and then the physical port may be reconfigured in the above manner, so that the port type is switched from one type to another port type on the same physical port without switching the physical port.
In this embodiment, the process of the logic chip executing the forwarding processing of the packet may be: and the logic chip receives the port type information and the associated service information of the physical port and writes the port type information and the associated service information into a logic register. After the initialization of the port type and the actual service configuration are completed, when a message is accessed through the physical port, the logic chip transfers the message to the corresponding service processing logic to perform the forwarding processing of the message according to the service type of the message.
In this embodiment, before configuring port type information and associated service information of a physical port, it is further required to register a port type supported by the physical port in a port resource configuration table, so as to implement initialization of the physical port. In practical applications, port types that all physical ports can support may be stored in the port resource configuration table. For the case that the port types supported by the physical ports need to be expanded, the corresponding port types need to be added in the port resource configuration table first. In this way, the configuration of the port type information and the associated service information of the physical port may be executed by querying the port resource configuration table, whether the physical port supports the port type corresponding to the specified service may be determined by querying the port resource configuration table, a port identifier (for example, a port number) of the physical port may be queried by querying the port resource configuration table, and whether the port number is associated with the service configuration information may be determined to determine whether the physical port has bound the service.
In practical applications, a user-side port and a network-side port can be distinguished in a port resource configuration table. In practical applications, there may be unsupported scenarios for the port types supported by the user side and the port types supported by the network side. For example, user side port types a and b and network side port types c and d. If the port type a accessed by the user side does not support the load bearing on the port type d of the network side. The port resource configuration module can also be provided with a port mapping table, the port mapping table records the port type mapping combination of the user-side port and the network-side port, and whether the physical port supports the port type of the specified service can be judged by inquiring the port mapping table, namely whether the physical port can be changed into the corresponding port type is confirmed.
In practical application, when the configuration condition is not satisfied, error information can be returned. When the port bears the service, the port type switching can not be directly carried out, and the error information is returned. For combinations of unsupported user-side port types and network-side port types, the switching control module will return an error message.
In this embodiment, the process of issuing the configured port type information and the associated service information of the physical port to the logic chip may be: and calling an interface provided by the logic chip to send the port type information and the associated service information of the physical port.
In this embodiment, the port type information and the associated service information configuring the physical port may be divided into two cases: one is the case of first configuration and the other is the case where the traffic type accessed by the physical port needs to be switched.
In the case of initial configuration, during the initialization process, according to the port type supported by the physical port in the port resource configuration table, the physical port may be initialized by default to the first type port specified in the port resource configuration table, and may be used to continue to create a service on the port, so as to complete the actual bearer service configuration.
When the service type accessed by the physical port needs to be switched, the actual physical port is not changed, the service carried on the physical port can be deleted or migrated firstly, or the port type switching is forced, after the service configuration information associated with the physical port is removed, the port type information of the physical port is changed, the configuration information of the newly accessed service is associated with the physical port, and then the port type information of the physical port and the associated service information are sent to the logic chip, so that the port type switching of the physical port is completed.
In this embodiment, when the physical port is a user-side port, the port type of the physical port is one of the following: an Ethernet; CPRI; ECPRI; the newly expanded port type. When the physical port is a network-side port, the port type of the physical port is one of the following: ethernet, FlexE. Of course, the port type of the present application is not limited thereto. When a new extended port type appears in the related art, the physical port may also be the new extended port type.
Example two
A port multiplexing device, as shown in fig. 2, may include:
a port resource configuration module 21, configured to configure port type information and associated service information of a physical port, so that the physical port supports a specified service;
the port switching module 22 is configured to issue the configured port type information and associated service information of the physical port to a logic chip, so that when the packet of the specified service is accessed through the physical port, the logic chip executes forwarding processing of the packet.
In an implementation manner, as shown in fig. 2, the port multiplexing apparatus in this embodiment may further include: the command processing module 23 is configured to obtain configuration information of the specified service, where the configuration information indicates a port type corresponding to the specified service; the port resource configuration module 21 is specifically configured to configure the port type information and the associated service information of the physical port according to the configuration information of the specified service.
In an implementation manner, as shown in fig. 2, the port multiplexing apparatus in this embodiment may further include: a switching control module 24, configured to determine whether a preset configuration condition is met; and is configured to control the port resource configuration module 21 to configure the port type information and the associated service information of the physical port when the configuration condition is satisfied.
In one implementation, the switching control module 24 may be specifically configured to determine whether a preset configuration condition is met by at least one or more of the following: 1) judging whether the physical port is bound with a service; 2) judging whether the physical port supports the port type corresponding to the specified service or not; 3) and judging whether a forced switching command is received.
In one implementation, the switching control module 24 may be further configured to unbind the service that is already carried on the physical port when the service is already carried on the physical port.
In this embodiment, the port resource configuration module 21 may be specifically configured to: setting the physical port as a port type corresponding to the specified service, and configuring port attribute parameters for the physical port according to the port type; and associating the physical port with the configuration information of the specified service through the port identification of the physical port.
The port multiplexing apparatus of this embodiment can be implemented as a transmission device applied to the field of optical communication, and in particular, can be implemented as an optical transmission device. The port resource configuration module 21, the port switching module 22, the command processing module 23, and the switching control module 24 in the port multiplexing apparatus may be software, hardware, or a combination of the two, respectively. For example, the port resource configuration module 21, the port switching module 22, the command processing module 23, and the switching control module 24 may be respectively implemented as software functional modules when the processor in the optical transmission device executes a corresponding port multiplexing program.
Other implementation details of the present embodiment can refer to embodiment one.
The port multiplexing device of this embodiment can carry different types of services on the same physical interface, and this device includes, but is not limited to, the above modules.
In practical applications, the port multiplexing apparatus may further include a logic chip (the implementation details of the logic chip may refer to the third embodiment below) and a peripheral circuit, in addition to the port resource configuration module, the command processing module, the switching control module and the port switching module. By means of the above arrangement, different types of traffic can be carried over the same physical interface. The device can switch the port type from one type to another type on the same physical port without switching the physical port when the port carries the change of the service.
EXAMPLE III
A transmission apparatus 30, as shown in fig. 3, may include:
a physical port 31;
a logic chip 32 configured to execute the message forwarding processing when a message of a specified service is accessed through the physical port;
a memory 33 storing a port multiplexing program;
a processor 34 configured to execute the port multiplexing program to perform the following operations: configuring port type information and associated service information of the physical port so that the physical port supports the specified service; and issuing the configured port type information and the associated service information of the physical port to a logic chip.
In this embodiment, the processor 34 is configured to execute the port multiplexing program to perform the following operations: judging whether preset configuration conditions are met or not; and when the configuration condition is met, configuring the port type information and the associated service information of the physical port. Specifically, the processor 34 is configured to execute the determination whether the preset configuration condition is met, and at least one or more of the following items are included: 1) judging whether the physical port is bound with a service; 2) judging whether the physical port supports the port type corresponding to the specified service or not; 3) and judging whether a forced switching command is received.
In this embodiment, the processor 34 may be configured to execute the port multiplexing program to further perform the following operations: before configuring the port type information and the associated service information of the physical port, unbinding the service carried on the physical port.
In this embodiment, when the physical port 31 is a user-side port, the port type of the physical port 31 may be one of the following: an Ethernet; CPRI; ECPRI; the newly expanded port type. When the physical port 31 is a network-side port, the port type of the physical port 31 may be one of the following: an Ethernet; flexe.
The above-described transmission device 30 of the present embodiment may be implemented as a transmission device applied to the field of optical communications, and in particular, may be implemented as an optical transmission device.
Other implementation details of the present embodiment can refer to embodiment one.
In practical applications, there may be more than one physical port 31 in the transmission device 30. The physical port 31 is provided on the board of the transmission device 30.
In practical applications, the logic chip 32 may be a Field Programmable Gate Array (FPGA). Fig. 4 shows an exemplary structure of the logic chip 32. In one implementation, the logic chip 32 may include: a service receiving module 321, a service type scheduling processing module 322, a CPRI service processing module 323, and an ethernet service processing module 324. The service receiving module 321 is configured to receive a service packet, the service type scheduling processing module 322 is configured to determine a service type of the packet, the CPRI service processing module 323 is configured to process a packet of a CPRI service, and the ethernet service processing module 324 is configured to process a packet of an ethernet service. If the packet is an ethernet service packet, the service type scheduling processing module 322 determines that the packet is an ethernet packet, and further performs service packet processing through the ethernet service processing module 324; if the packet is a CPRI service packet, the service type scheduling processing module 322 determines that the packet is a CPRI packet, and the CPRI service processing module 323 performs service processing. Thus, the message processing of multiple service types can be realized in the logic chip 32, so that access to different service types can be realized on the same physical port. In addition, if a new service type needs to be added, a corresponding service processing module may be added to the logic chip 32 to further implement the expansion of the port type. In this way, the programmable logic chip 32 is used to extend the processing functionality of multiple business types by updating the logic version without having to change the hardware.
In one implementation manner, the processor 34 in the transmission device 30 may implement the port resource configuration module 21, the command processing module 23, the switching control module 24, and the port switching module 22 in the port multiplexing apparatus according to the second embodiment by executing the port multiplexing program. In addition, in addition to the logic chip 32, peripheral circuits of the logic chip 32 may be included to realize connections between the logic chip 32 and other components (e.g., the physical port 31, the processor 34, etc.).
Different types of traffic can be carried over the same physical interface by the transport apparatus 30 described above. The above-described transport apparatus 30 can switch the port type from one type to another type on the same physical port without switching the physical port when the port carries a change in traffic.
Example four
A computer readable storage medium having stored thereon a port multiplexing program which, when executed by a processor, performs the steps of the port multiplexing method of an embodiment.
Specifically, when executed by the processor, the port multiplexing program implements the following steps: configuring port type information and associated service information of a physical port to enable the physical port to support a specified service; and issuing the configured port type information and the associated service information of the physical port to a logic chip so as to execute the forwarding processing of the message by the logic chip when the message of the specified service is accessed through the physical port.
In this embodiment, the processor executes the steps of the method according to the first embodiment according to the program code stored in the computer readable storage medium.
Other implementation details of the present embodiment can refer to embodiment one.
Through the embodiments, the method and the device can support different service types on the same physical port, and can perform flexible port type switching. In practical application, the method and the device can be applied to optical transmission bearing equipment and relevant scenes thereof.
Exemplary implementations of the above embodiments are described in detail below. It should be noted that, in practical applications, the above embodiments may have other implementation manners, and the implementation manners of the flows and the execution steps in the following examples may also be adjusted according to the needs of practical applications.
Example 1
As shown in fig. 5, a service is accessed from a point a (which may be a normal ethernet service or a CPRI service), and the service is forwarded and mapped to a Client M in a Group (Flex Group) l, and in the outgoing direction of the PE1 node, the service is mapped to a specific timeslot of the Flex Group l according to the Flex standard. At the P node the traffic is directly forwarded from the flexE Group l to the flexE Group k, at which node the traffic is extracted from the flexE Group and then the valid 66b blocks are forwarded to the flexE Group k specific client N and then remapped to the flexE Group k specific slots. And at the PE2 node, extracting the time slot corresponding to the service from the Flex-e Group k, recovering the service into the corresponding service type, and sending the service from the node B.
For 5G bearer applications, the user-side port of the bearer device may be an ethernet port, a CPRI port, an ECPRI port, and the network-side port may be an ethernet port, a flexE port. Embodiments will describe implementations where port types switch over the same physical port for user-side and network-side ports, respectively.
Fig. 6 is a diagram showing an exemplary structure of the port multiplexing apparatus and its connection to an external device in this example. The controller may be a device or a component in a network management system responsible for managing network transmission. Other implementation details in fig. 6 may refer to the above embodiments.
As shown in fig. 7, the initialization configuration and switching process of the user-side port is performed. It should be noted that the same physical port is multiplexed as an access-side port, and a plurality of common ports of ethernet, CPRI, and ECPRI are included on a user side. The network side comprises a plurality of Ethernet and flexE shared ports.
As shown in fig. 7, the initialization configuration and switching process of the user-side port may include the following steps:
step 601: initializing port configuration: when no configuration is performed, the default initialization of the port is performed after the device is powered on and started, the initialization is performed according to the first port type supported in the port resource configuration table, and the information of the port resource configuration table is shown in table 1. The port resource configuration module sends the related port attribute to the port switching module by default, and the port switching module completes the initialization configuration of the logic chip. The port resource allocation module acquires actual plug board information and stores the actual plug board information in a storage, and reports the actual plug board information to the controller through rack information.
Here, the socket information may include a board type of the board, a board address, i.e., a slot address, physical port information (the number of physical ports and port number), and the like.
Figure DEST_PATH_IMAGE002
TABLE 1
Step 602: configuring the logic plugboard information: the controller generates the plug board port configuration information according to the actual plug board information reported by the port resource configuration module and sends the plug board port configuration information to the command processing module, and the command processing module analyzes the corresponding plug board port configuration information and generates logic plug board information to be stored in a warehouse. In this step, the port resource configuration module further compares the actual board plugging information with the put-in logical board plugging information, and reports a board type inconsistency alarm when the port number and the type are inconsistent, so that further configuration operation is not allowed. Further configuration operations on the port may also return an error prompt.
Step 603: port attribute configuration: after the logical plug board is configured, the configuration of the corresponding specific port attribute can be carried out. The port resource configuration module sends the port configuration information to the port switching module, and the port switching module further configures the logic chip to complete the configuration of the port information.
For example, according to the port resource configuration table, port No. 1 is initialized to be an ethernet port, and the attribute of the ethernet port may be further configured, where the basic parameters include a port name, a port number, a port rate, an optical-electrical attribute, an access mode, a jumbo frame support, and the like.
For example, according to the port resource configuration table, port No. 2 is initialized to the CPRI port, and the CPRI port attribute may be further configured. Including port name, port type, port rate (common CPRI port rates include Option 1-Option 10 equal rate classes, actual rates from 614.4-24330.24 Mbit/s).
Step 604: the service configures the associated port.
And after the configuration of the Ethernet port attribute is completed, an Ethernet service is established on the Ethernet port. After the CPRI port attribute configuration is completed, a CPRI service can be created on the CPRI port. The configuration information of the service may be stored in the configuration information table, and the service configuration information in the configuration information table is associated with the physical port through the port number.
Step 605: and switching the port types.
For the port which already carries the service, the service needs to be migrated or deleted first, and the port which releases the service can be switched in the port type. The switching control module checks the switching condition, if the switching condition is met, the switching control module notifies the port switching module, and the port switching module notifies the logic chip to perform actual switching processing. If the service is not migrated or deleted, the switching controller module returns an error message to the command processing module, and the switching is terminated.
For the physical port associated with the service, port switching can be performed through a forced port switching command, the command processing module issues the forced switching command to the switching control module, the switching control module deletes the service configuration corresponding to the port according to port number association, then notifies the port resource configuration module to reconfigure the physical port, and the port switching module issues the reconfigured related information to the logic information, thereby completing port type switching of the physical port.
So far, the initialization configuration and the switching scene of the physical port of the user side are completed.
Fig. 8 shows the initialization configuration and switching procedure of the network-side port in this example. As a network side port multiplexes the same physical port, the device comprises a plurality of Ethernet and flexE shared ports on the network side.
As shown in fig. 8, the initialization configuration and switching process of the network-side port may include:
step 701: the port configuration is initialized. When no configuration is performed, after the device is powered on and started, default initialization of the port is performed, and the network-side port initializes the resource configuration table information, which is performed in step 601. According to the port resource configuration table, port 4 is initialized to an ethernet type port, and port 5 is initialized to a flex port type. The port resource allocation module sends initialization configuration information to the port switching module, and the port switching module informs the logic chip to complete the initialization configuration of the network side port.
Step 702: configuring network-side port attributes.
The port 4 is initialized to be a flexE port, and the port can be further added to a flexE group, and then has the attribute related to the flexE port. And the switching control module creates a service model related to the flexE port according to the configuration information sent by the command processing module, sends the port switching module and further configures the logic chip. The port 5 is initialized to be an ethernet port, and attributes of the ethernet port, including a port name, a port number, a port rate, an optoelectronic attribute, an access mode, a jumbo frame support, and the like, may be further configured.
Step 703: traffic is bound to network side ports. The ethernet service or CPRI service on the access side may be carried on flexE shim. A flexE service configuration may be further created on the flex port on the network side. When creating service configuration, the port resource configuration module stores a port mapping table, which is shown in table 2 below, wherein an unsupported mapping combination is configured. Whether the corresponding port type is supported by the network side port can be judged by inquiring the port mapping table, and an error is returned when the corresponding port type is not supported. For example, the user side CPRI port type cannot be carried on the ethernet port on the network side. When expanding supported port typesA corresponding entry in the port mapping table needs to be added.
User side port types Network side port types
Ethernet network Ethernet network
Cpri FlexE
Ethernet network FlexE
Extended new port types FlexE
Table 2 port mapping table
After passing through the port at the access side, the CPRI service message enters the corresponding service processing module of the logic chip for processing, and after the flexE service processing of the chip, the flexE message is transmitted at the network side. After the Ethernet service message passes through the port of the access side, the Ethernet service message enters the corresponding service processing module of the logic chip for processing, and after the Flexe service of the chip is processed, the Flexe message is transmitted on the network side.
Step 704: and switching the port types.
If the network side port needs to be switched to the Ethernet port, the service needs to be migrated, when the port switching of the network side is executed, the switching control module judges whether the service configuration is related according to the port number, the network side port configured by the related service does not allow the port switching, and the switching controller module returns error information to the command processing module. For switching a network-side port from a flexE port to an ethernet port, traffic needs to be migrated to other flexE ports, or the flexE traffic needs to be deleted, and the flexE port needs to be further removed from the flexE group. For switching the network-side port from the ethernet port to the flexE port, the ethernet traffic needs to be migrated to another port, or the traffic needs to be directly deleted. And returning error information when the network side port bound with the service is switched. After the service migration or deletion is completed, the command processing module notifies the switching control module after receiving the port switching command, the switching control module judges that the switching condition is met and further notifies the port switching module, and the port switching module notifies the logic chip to complete the switching of the port types.
For the case where a network-side port is associated with traffic, port switching may be performed by a forced switch command. When the forced switching is executed, the port switching module configures the service associated with the port binding deletion, issues a command for deleting the service to the switching execution module, and further completes the unbinding of the service and the port. And then, carrying out switching processing operation of the port type to finish the forced switching of the port type. Thus, the switching scene of the network port type is completed.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by a program instructing associated hardware (e.g., a processor) to perform the steps, and the program may be stored in a computer readable storage medium, such as a read only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, the modules/units in the above embodiments may be implemented in hardware, for example, by an integrated circuit, or may be implemented in software, for example, by a processor executing programs/instructions stored in a memory to implement the corresponding functions. The present application is not limited to any specific form of hardware or software combination.
The foregoing shows and describes the general principles and features of the present application, together with the advantages thereof. The present application is not limited to the above-described embodiments, which are described in the specification and drawings only to illustrate the principles of the application, but also to provide various changes and modifications within the spirit and scope of the application, which are within the scope of the claimed application.

Claims (22)

1. A method of port multiplexing, comprising:
configuring port type information and associated service information of a physical port to enable the physical port to support a specified service;
the configured port type information and the associated service information of the physical port are sent to a logic chip;
when the message of the designated service is accessed through the physical port, the logic chip executes the forwarding processing of the message;
the port type information and associated service information of the configured physical port include:
acquiring configuration information of the specified service, wherein the configuration information indicates a port type corresponding to the specified service;
and configuring the port type information and the associated service information of the physical port according to the configuration information of the specified service.
2. The method of claim 1, wherein the configuring port type information and associated traffic information of the physical port comprises:
judging whether preset configuration conditions are met or not;
and when the configuration condition is met, configuring the port type information and the associated service information of the physical port.
3. The method according to claim 2, wherein the determining whether the preset configuration condition is satisfied includes at least one or more of the following:
judging whether the physical port is bound with a service;
judging whether the physical port supports the port type corresponding to the specified service or not;
and judging whether a forced switching command is received.
4. The method of claim 3, wherein the determining whether the physical port has bound traffic comprises:
and judging whether the port identification of the physical port is associated with the configuration information of the service.
5. The method according to claim 1, 3 or 4, wherein before configuring the port type information and the associated traffic information of the physical port, further comprising:
and when the physical port bears the service, unbinding the service borne on the physical port.
6. The method of claim 5, wherein the unbinding the traffic carried on the physical port comprises:
and deleting or migrating the configuration information of the associated service of the port identifier of the physical port.
7. The method according to claim 1 or 3, wherein before configuring the port type information and the associated traffic information of the physical port, further comprising:
and when a forced switching command is received, deleting the configuration information of the service associated with the port number of the physical port.
8. The method according to any one of claims 1 to 3,
the port type information includes: the port identification, the port type identification and the port attribute parameter of the physical port;
the associated service information includes: traffic configuration information associated with a port identification of the physical port.
9. The method according to any of claims 1 to 3, wherein the configuring port type information and associated traffic information of the physical port comprises:
setting the physical port as a port type corresponding to the specified service, and configuring port attribute parameters for the physical port according to the port type;
and associating the physical port with the configuration information of the specified service through the port identification of the physical port.
10. The method of claim 1,
when the physical port is a user-side port, the port type of the physical port is one of the following:
an Ethernet;
common public radio interface CPRI;
ECPRI;
a newly expanded port type;
when the physical port is a network-side port, the port type of the physical port is one of the following:
an Ethernet;
FlexE。
11. the method of claim 1, wherein the obtaining the configuration information of the specific service comprises:
and extracting the configuration information of the specified service by analyzing the message issued by the external control equipment.
12. A port multiplexing device, comprising:
the port resource configuration module is used for configuring port type information and associated service information of a physical port so that the physical port supports a specified service;
the port switching module is used for issuing the configured port type information and the associated service information of the physical port to a logic chip so that the logic chip executes the forwarding processing of the message when the message of the specified service is accessed through the physical port;
the command processing module is used for acquiring configuration information of the specified service, wherein the configuration information indicates a port type corresponding to the specified service;
and the port resource configuration module is used for configuring the port type information and the associated service information of the physical port according to the configuration information of the specified service.
13. The port multiplexing device of claim 12,
further comprising: the switching control module is used for judging whether preset configuration conditions are met or not; and the port resource configuration module is used for controlling the port resource configuration module to configure the port type information and the associated service information of the physical port when the configuration condition is met.
14. The port multiplexing device of claim 13,
the switching control module is specifically configured to determine whether a preset configuration condition is met through at least one or more of the following:
judging whether the physical port is bound with a service;
judging whether the physical port supports the port type corresponding to the specified service or not;
and judging whether a forced switching command is received.
15. The port multiplexing device of claim 13,
the switching control module is further configured to unbind the service that has been carried on the physical port when the service has been carried on the physical port.
16. The port multiplexing device of claim 12, wherein the port resource configuration module is specifically configured to:
setting the physical port as a port type corresponding to the specified service, and configuring port attribute parameters for the physical port according to the port type;
and associating the physical port with the configuration information of the specified service through the port identification of the physical port.
17. A transmission apparatus, comprising:
a physical port;
a logic chip configured to execute message forwarding processing when a message of a specified service is accessed through the physical port;
a memory storing a port multiplexing program;
a processor configured to execute the port multiplexing program to perform the following operations: configuring port type information and associated service information of the physical port so that the physical port supports the specified service; the configured port type information and the associated service information of the physical port are sent to a logic chip;
the configuring the port type information and the associated service information of the physical port includes:
acquiring configuration information of the specified service, wherein the configuration information indicates a port type corresponding to the specified service;
and configuring the port type information and the associated service information of the physical port according to the configuration information of the specified service.
18. The transmission apparatus of claim 17, wherein the processor is configured to execute the port multiplexing program to:
judging whether preset configuration conditions are met or not; and when the configuration condition is met, configuring the port type information and the associated service information of the physical port.
19. The transmission apparatus according to claim 18, wherein the processor, when configured to perform the determining whether the preset configuration condition is met, at least includes one or more of the following:
judging whether the physical port is bound with a service;
judging whether the physical port supports the port type corresponding to the specified service or not;
and judging whether a forced switching command is received.
20. The transmission apparatus according to claim 17, 18 or 19, wherein the processor is configured to execute the port multiplexing program to further perform the following operations:
before configuring the port type information and the associated service information of the physical port, unbinding the service carried on the physical port.
21. The transmission apparatus according to claim 17,
when the physical port is a user-side port, the port type of the physical port is one of the following:
an Ethernet;
common public radio interface CPRI;
ECPRI;
a newly expanded port type;
when the physical port is a network-side port, the port type of the physical port is one of the following:
an Ethernet;
FlexE。
22. a computer-readable storage medium, having stored thereon a port multiplexing program which, when executed by a processor, implements the steps of the port multiplexing method of any one of claims 1 to 11.
CN201710648497.1A 2017-08-01 2017-08-01 Port multiplexing method and device Active CN109327360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710648497.1A CN109327360B (en) 2017-08-01 2017-08-01 Port multiplexing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710648497.1A CN109327360B (en) 2017-08-01 2017-08-01 Port multiplexing method and device

Publications (2)

Publication Number Publication Date
CN109327360A CN109327360A (en) 2019-02-12
CN109327360B true CN109327360B (en) 2021-11-12

Family

ID=65245811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710648497.1A Active CN109327360B (en) 2017-08-01 2017-08-01 Port multiplexing method and device

Country Status (1)

Country Link
CN (1) CN109327360B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698708B (en) * 2019-03-16 2023-07-18 华为技术有限公司 Method and device for adapting service type in transmission system
CN112995801A (en) * 2019-12-12 2021-06-18 中兴通讯股份有限公司 Configuration method, cross configuration method, device and equipment of wavelength division access equipment
CN114125881B (en) * 2020-08-28 2024-09-03 深圳市中兴微电子技术有限公司 Interface data processing method, transmitting terminal equipment and receiving terminal equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7292589B2 (en) * 2002-08-13 2007-11-06 Narendra Kumar Dhara Flow based dynamic load balancing for cost effective switching systems
CN101299698B (en) * 2007-04-30 2012-05-23 华为技术有限公司 Communication agent method and apparatus as well as system
CN101388816A (en) * 2008-11-05 2009-03-18 深圳华为通信技术有限公司 Network interface mode switching method and device
CN101841419B (en) * 2010-05-14 2014-04-09 中兴通讯股份有限公司 Method and device for multiplexing communication port

Also Published As

Publication number Publication date
CN109327360A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
WO2023098645A1 (en) Container network configuration method and apparatus, computing node, master node, and storage medium
US10063470B2 (en) Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof
CN111796905B (en) Method and system for realizing Kubernetes container cloud platform VLAN network
WO2017036288A1 (en) Network element upgrading method and device
CN108616402B (en) Management method and system of remote equipment
CN102843286B (en) Implementation method, and system of virtual routers
CN109327360B (en) Port multiplexing method and device
CN113132828B (en) Configuration method, device, equipment, system and storage medium
CN105228182A (en) The double card collocation method of multimode double-card mobile terminal and device
CN101257406A (en) Method and system for discovering net elements
CN110366056B (en) Method, device, equipment and storage medium for realizing ASON business model
US20220350637A1 (en) Virtual machine deployment method and related apparatus
CN108574583A (en) A kind of device updating method and access device
CN112887117B (en) Method, equipment and medium for accessing and configuring network slice
CN105812221A (en) Data transmission device and method in virtual extensible local area network
US7664051B2 (en) Method for implementing virtual network element and system thereof
EP3240251A1 (en) Line card determination, determination processing method and device, and line card determination system
US7801023B2 (en) Mechanism for efficient endpoint discriminator allocation for APS protected MLPPP bundles on distributed routing systems
WO2017167076A1 (en) Device management method and apparatus
CN109889421B (en) Router management method, device, terminal, system and storage medium
CN108259345B (en) Port generation method and device
WO2016074478A1 (en) Method and device for identifying service chain path, and service chain
CN111464889B (en) Channel bandwidth adjusting method and system
CN112104509A (en) Configuration device and method of server
CN106027423A (en) Shared network of PCIe (Peripheral Component Interconnect-Express) device and data transmission method thereof

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