WO2021233313A1 - 配置端口状态的方法、装置、系统及存储介质 - Google Patents

配置端口状态的方法、装置、系统及存储介质 Download PDF

Info

Publication number
WO2021233313A1
WO2021233313A1 PCT/CN2021/094458 CN2021094458W WO2021233313A1 WO 2021233313 A1 WO2021233313 A1 WO 2021233313A1 CN 2021094458 W CN2021094458 W CN 2021094458W WO 2021233313 A1 WO2021233313 A1 WO 2021233313A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
data set
ports
message
converter
Prior art date
Application number
PCT/CN2021/094458
Other languages
English (en)
French (fr)
Inventor
吕京飞
余芳
范博龄
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to JP2022570486A priority Critical patent/JP2023526843A/ja
Priority to MX2022014659A priority patent/MX2022014659A/es
Priority to BR112022023556A priority patent/BR112022023556A2/pt
Priority to AU2021277366A priority patent/AU2021277366A1/en
Priority to KR1020227044137A priority patent/KR20230012565A/ko
Priority to EP21808782.3A priority patent/EP4145729A4/en
Publication of WO2021233313A1 publication Critical patent/WO2021233313A1/zh
Priority to US17/990,089 priority patent/US20230091501A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/12Arrangements providing for calling or supervisory signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0641Change of the master or reference, e.g. take-over or failure of the master
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays

Definitions

  • This application relates to the field of communications, and in particular to a method, device, system, and storage medium for configuring port status.
  • 5G networks can carry time-sensitive network (TSN) services.
  • TSN time-sensitive network
  • the 5G network is connected to multiple TSN devices, and the 5G network is required to support the transmission of 1588 packets of TSN devices.
  • the first TSN device is connected to the first converter of the 5G network
  • the second TSN device is connected to the second converter of the 5G network.
  • the 5G network needs to pass the time carried in the 1588 packet sent by the first TSN device to the first converter.
  • Two TSN equipment Two TSN equipment.
  • the first TSN device is connected to a port in the first converter
  • the second TSN device is connected to a port in the second converter.
  • the technician needs to manually set the port status of the first converter connected to the first TSN device to the slave state, and manually Groundly set the state of the port connected to the second TSN device in the second converter to the master state.
  • the first converter can receive the 1588 packet from the first TSN device through the port in the Slave state, and the second converter sends the 1588 packet to the second TSN device through the port in the Master state.
  • the current technicians manually set the port status of the converter in the 5G network not only the efficiency of the setting is low, but the port status may also be inaccurate. And if a port status needs to change, the method of manually setting the port status cannot automatically modify the port status.
  • the present application provides a method, device, system, and storage medium for configuring port status, so as to realize automatic configuration of port status and improve configuration accuracy.
  • the technical solution is as follows:
  • an embodiment of the present application provides a method for configuring port status.
  • a configuration device obtains port data sets of M ports in N converters, where N is an integer greater than 1, and M is An integer greater than 1, N converters are integrated in at least two independent devices, M ports are M precision time protocol ports, and the port data set is a precision time protocol port data set.
  • the configuration device configures the port states of the M ports according to the port data sets of the M ports, and the port states are the precise time protocol port states.
  • N converters are integrated in at least two independent devices
  • the configuration device obtains the port data sets of the M ports of the N converter, and configures the port states of the M ports according to the port data sets of the M ports, thereby Realize automatic configuration of port status and improve configuration accuracy. Since the port status can be automatically configured, the port status can be modified in time when the port status of the converter changes.
  • the configuration device configures the port states of M ports according to the port data sets and preset data sets of M ports.
  • the preset data set is the preset precise time protocol data set, and the implementation is based on the M
  • Each port data set configures the port status of M ports.
  • the configuration device selects the optimal data set in the port data set of M ports; when the optimal data set is better than the preset data set, the configuration device generates the target data according to the optimal data set Set, the value of the hop count parameter in the target data set is 1 greater than the value of the hop count parameter in the optimal data set, the preset data set is the preset precise time protocol data set, and the target data set is the precise time protocol data set.
  • the device is configured to use the preset data set as the target data set. In this way, the configuration device can find the optimal data set from the M port data sets and the preset data set, obtain the target data set based on the optimal data set, and improve the accuracy of the target data set.
  • the configuration device determines the port status of each of the M ports.
  • the configuration device sends the port status of each port to the converter containing each port.
  • the method of sending the port status includes sending by sending a message, so as to ensure that each converter obtains the port status of its own port. And set the port status of the respective ports.
  • the configuration device sends the target data set to N converters, where the method of sending the target data set includes sending by sending a message, so that the converter can obtain the target data set.
  • the clock parameter in the Announce message sent by the converter can be the clock parameter in the target data set issued by the configuration device to provide the corresponding scenario.
  • the target data set and the method of sending the port status are both sent by sending a message
  • the target data set and the port status are carried in the same message, or, Are carried in different messages.
  • the preset data set is a data set of a virtual device of a communication network
  • the communication network is a network including N converters.
  • the method for configuring the device to obtain the port data set includes obtaining through the port data set message.
  • the configuration device determines the port identifier of each of the M ports, and sends the port identifier of each port to the converter containing each port, where the port identifier is sent
  • the method includes sending by sending a message, and the port identifier of each port is a precise time protocol port identifier, so that each converter obtains the port identifier of its own port, so that the port identifier can be used to request the configuration of the device to configure the port state.
  • the configuration device determines the port identifier of each port according to the port number of each port and the virtual device identifier of the communication network.
  • the communication network is a network containing N converters, and the The port number is a precise time protocol port number, so that the port identification of each port can be configured.
  • the configuration device sends the system-level parameters of the virtual device of the communication network to N converters.
  • the communication network is a network containing N converters, and the system-level parameter is a precise time protocol system-level parameter. Parameters, so that when the converter sends a Sync packet, the system-level parameters in the Sync packet sent by the converter can be the system-level parameters issued by the configuration device, so that the corresponding scenario can be met.
  • the converter is a network-side delay-sensitive network switch NW-TT or a terminal-side delay-sensitive network switch DS-TT.
  • NW-TT is an independent device, or NW-TT is integrated in a user plane function UPF device;
  • DS-TT is an independent device, or DS-TT is integrated in a user-side device UE.
  • the configuration device is deployed in a communication network used to connect TSN devices in a delay-sensitive network.
  • the configuration device is an independent device, or integrated in one of the N converters, or located in the same device as one or more of the N converters .
  • the port state includes a slave state, a master state or a passive state.
  • this application provides a method for configuring port states.
  • a first converter among N converters obtains port data sets of W ports in the first converter, and W is greater than or equal to An integer of 1, N is an integer greater than 1, and the port data set is a precise time protocol port data set.
  • the first converter sends the port data set of W ports to the configuration device, and the port data set is used to configure the device according to the port data set of the W ports and the port data set of the ports on the other converters among the N converters,
  • the N converters are integrated in at least two independent devices, and the port status of the W ports is the precise time protocol port status.
  • N converters are integrated in at least two independent devices, for the first converter of the N converters, the port data set of the W ports in the first converter is acquired and sent to the configuration device.
  • the other N-1 converters in the converter also send the port data set to the configuration device.
  • the configuration device can obtain the port data set of the port of the N converter, and configure the port status of the W ports according to the received port data set, thereby realizing automatic configuration of the port status and improving the configuration accuracy. Since the port status can be automatically configured, the port status can be modified in time when the port status of the converter changes.
  • the W ports include the first port, and the port data set of the first port includes the port identification of the first port, or the port identification and the clock parameter, and the clock parameter is a precision time protocol clock parameter; the clock parameter For the clock parameter sent by the first device and received by the first port, the first device is connected to the first converter.
  • the method of sending the port data set includes sending by sending a message.
  • the first converter receives the port status of the W ports sent by the configuration device, where receiving the port status includes receiving by receiving a message.
  • the first converter sets the port states of the W ports according to the received port states of the W ports, so that the port states of the W ports can be automatically set, which improves the setting efficiency and accuracy.
  • the first converter receives the target data set sent by the configuration device, the target data set is a data set determined by the configuration device according to the port data set received by the configuration device and the preset data set, and the preset data Both the set and the target data set are precise time protocol data sets; among them, the method of receiving the target data set includes receiving by receiving a message. In this way, the first converter can obtain the target data set.
  • the clock parameter in the Announce message sent by the first converter can be the clock parameter in the target data set issued by the configuration device to provide the corresponding scenario s solution.
  • the first converter receives the port identifiers of the W ports sent by the management device of the communication network, and the port identifiers of the W ports are determined by the management device according to the virtual device identifier of the communication network and the W ports.
  • the port number is generated, where the communication network is a network including N converters, and the port numbers of the W ports are the precise time protocol port numbers; among them, the way of receiving the port identification includes receiving by receiving the message.
  • the first converter receives the clock identifier of the virtual device of the communication network sent by the management device, and generates port identifiers of W ports according to the clock identifier of the virtual device and the port numbers of the W ports.
  • the clock identifier of the virtual device is generated by the management device according to the virtual device identifier of the communication network.
  • the management device of the communication network is the configuration device.
  • the first converter receives the system-level parameters of the virtual device of the communication network sent by the configuration device, and the system-level parameters are precision time protocol system-level parameters; when the first converter sends the message , Fill in the system-level parameters in the message, which is a precise time protocol message; among them, the communication network is a network that includes N converters.
  • the system-level parameters in the Sync message sent by the first converter may be the system-level parameters issued by the configuration device, which can satisfy the solution of the corresponding scenario.
  • the target data set is filled into the first Announce message; the first converter The first Announce message is sent through the port in the master state.
  • the first converter receives the second Announce message sent by the second converter, and the second Announce message includes the hop count parameter; the first converter generates the third Announce message according to the second Announce message.
  • Announce message where the source port identifier in the third Announce message is the port identifier of the third Announce message sent by the first converter.
  • the first converter writes the port ID of the port that sends the third Announce message into the source port ID field of the Announce message to be sent, so that the TSN device connected to the first converter can know the third Announce sent by the repeater.
  • the port identification of the message so as to facilitate fault location.
  • the second Announce message includes the hop count parameter
  • the first converter adds 1 to the value of the hop count parameter
  • the third Announce message includes the hop count parameter whose value is increased by 1.
  • the port state includes a slave state, a master state or a passive state.
  • an embodiment of the present application provides a device for configuring a port state, which is used to execute the first aspect or the method in any one of the possible implementation manners of the first aspect.
  • the device includes a unit for executing the method in the first aspect or any one of the possible implementation manners of the first aspect.
  • an embodiment of the present application provides a device for configuring a port state, which is used to execute the second aspect or the method in any one of the possible implementation manners of the second aspect.
  • the device includes a unit for executing the second aspect or the method in any one of the possible implementation manners of the second aspect.
  • an embodiment of the present application provides a device for configuring a port state, and the device includes a transceiver, a processor, and a memory.
  • the transceiver, the processor, and the memory may be connected through an internal connection.
  • the memory is used to store programs, instructions or codes
  • the processor is used to execute the programs, instructions or codes in the memory and cooperate with the transceiver, so that the device can complete the first aspect or any possible implementation of the first aspect The method in the way.
  • an embodiment of the present application provides a device for configuring a port state, and the device includes a transceiver, a processor, and a memory.
  • the transceiver, the processor, and the memory may be connected through an internal connection.
  • the memory is used to store programs, instructions or codes
  • the processor is used to execute the programs, instructions or codes in the memory and cooperate with the transceiver, so that the device can complete the second aspect or any possible implementation of the second aspect The method in the way.
  • an embodiment of the present application provides a computer program product, the computer program product includes a computer program stored in a computer-readable storage medium, and the calculation program is loaded by a processor to implement the above-mentioned first aspect ,
  • the second aspect any possible implementation manner of the first aspect, or any possible implementation manner of the second aspect.
  • the embodiments of the present application provide a computer-readable storage medium for storing a computer program, which is loaded by a processor to execute any possible aspect of the first aspect, the second aspect, and the first aspect.
  • the embodiments of the present application provide a system for configuring port status, which includes the device described in the third aspect and the device described in the fourth aspect, or includes the device described in the fifth aspect and the sixth aspect The device described.
  • FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of another network architecture provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of another network architecture provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of another network architecture provided by an embodiment of the present application.
  • FIG. 5 is a flowchart of a method for configuring port status according to an embodiment of the present application
  • FIG. 6 is a flowchart of a Pdelay message transmission provided by an embodiment of the present application.
  • FIG. 7 is a flowchart of sending PTP time according to an embodiment of the present application.
  • FIG. 8 is another flow chart of sending PTP time according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a device for configuring port status according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of another device for configuring port states according to an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of another device for configuring port states according to an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of another device for configuring port states according to an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of a system for configuring port status according to an embodiment of the present application.
  • the terminology in the embodiment of the present invention includes the port of the converter, the port data set of the converter, the port state of the converter, the preset data set, the optimal data set, the target data set, the port identification of the converter, the port status of the converter
  • the port number, system-level parameters, and clock parameters are all applicable to the precision time protocol (PTP) (in the IEEE 1588 protocol, and the corresponding 1588 profile, such as IEEE 802.1AS).
  • an embodiment of the present application provides a network architecture.
  • the network architecture includes a communication network and at least two TSNs, and each TSN is connected to the communication network.
  • the communication network includes N converters, where N is an integer greater than 1, and each TSN device is connected to a converter included in the communication network. For any two converters included in the communication network, a network connection can be established between the two converters, so that the TSN devices connected to the two converters can communicate through the communication network.
  • the communication network is a power network, a 4G network, a 5G network, or the like.
  • TSN is an Ethernet network, and TSN includes at least one TSN device.
  • the converter For each converter in the communication network, the converter includes at least one port, and the at least one port is a PTP port.
  • the connection of the TSN to the communication network means that the TSN device in the TSN is connected to a port of the converter.
  • the converter can be an independent device or a dedicated device, or the converter is a module and integrated in one device, the above converter includes at least one port, which means that the device where the converter is located includes at least one port.
  • the network architecture shown in FIG. 1 includes a first TSN and a second TSN, and the communication network includes a first converter and a second converter.
  • the first TSN includes the first TSN device
  • the second TSN includes the second TSN device.
  • the first TSN device is connected to the port of the first converter
  • the second TSN device is connected to the port of the second converter
  • a network connection is established between the first converter and the second converter, so that the first TSN device and The second TSN device can communicate through the first converter and the second converter.
  • the TSN includes at least one TSN device.
  • the first TSN device in the first TSN includes a first end station (end station), and the first end station is connected to the port of the first converter.
  • the second TSN device in the second TSN includes a TSN switch (TSN bridge), a TSN GM, and a second terminal.
  • the TSN switch is connected to the port of the second converter, the TSN GM is connected to the TSN switch, and the second terminal is connected to the port of the second switch.
  • the TSN switch is connected to the TSN GM.
  • the communication network also includes equipment such as user equipment (UE), user plane function (UPF), general base station (general NodeB, gNB), and grandmaster (5G GM).
  • equipment such as user equipment (UE), user plane function (UPF), general base station (general NodeB, gNB), and grandmaster (5G GM).
  • UE user equipment
  • UPF user plane function
  • general base station general NodeB
  • gNB general base station
  • 5G GM grandmaster
  • one or more converters may be integrated in the UE, or, referring to Figs. 3 and 4, the UE may be connected to one or more converters.
  • one or more converters can be integrated in the UPF, or, referring to Figure 4, the UPF can be connected to one or more converters.
  • a network connection is established between the UPF and the UE. In this way, the network connection between the two converters in the communication network can be connected through the network connection between the UE and the UPF.
  • the converter is a network-side time-sensitive network translator (NW-TT) or a terminal-side delay-sensitive network converter (device -side time sensitive network translator, DS-TT).
  • NW-TT network-side time-sensitive network translator
  • DS-TT terminal-side delay-sensitive network converter
  • the first converter is DS-TT
  • the second converter is NW-TT
  • the TSN switch in the second TSN is connected to the port of NW-TT
  • the first converter in the first TSN is The terminal station is connected to the DS-TT port.
  • NW-TT can be a stand-alone device, or NW-TT is integrated in a UPF device; DS-TT is a stand-alone device, or, DS-TT is integrated in a UE.
  • the communication network further includes a configuration device, which is an independent device or integrated on one of the N converters (not shown in the figure), or , And one or more of the N converters are located in the same device (not shown in the figure).
  • the configuration device may be a 5g-general precise time protocol (5g-gPTP) device of the fifth generation mobile communication technology.
  • the configuration device can be integrated in the NW-TT, or integrated in the DS-TT.
  • the configuration device and one or more converters are located in the same device, the configuration device and one or more NW-TTs are integrated in the UPF, or the configuration device and one or more DS-TTs are integrated in the UE .
  • FIGS. 2 to 4 only show one DS-TT and one NW-TT
  • the communication network may include multiple DS-TTs and multiple NW-TTs. There can also be multiple TSN switches and terminal stations.
  • the configuration device Before each first TSN device in the first TSN and each second TSN device in the second TSN communicate through the first converter and the second converter, the configuration device needs to configure the port of the port included in the first converter Status, and the port status of the port included in the second converter.
  • the embodiment of the present application provides a method for automatically configuring the port status of the first converter and the second converter, wherein the detailed implementation process of configuring the port status of the device configuration port will be described in detail in the subsequent embodiment shown in FIG. 5 Note, I won't introduce it here.
  • the communication network further includes a management device that configures the port identifiers of the ports included in each converter in the communication network; or, the configuration device configures the ports included in each converter in the communication network.
  • the port ID of the port is configured to configure the port identifiers of the ports included in each converter in the communication network.
  • the management device or the configuration device may be integrated in a session management function (SMF) or UPF.
  • SMF session management function
  • the management device or the configuration device can also be integrated in other devices of the communication network.
  • SMF is a management device of the communication network.
  • the management device and the configuration device can be one device or two independent devices.
  • an embodiment of the present application provides a method for configuring port status. This method can be applied to the network architecture described in any one of the embodiments of Figs.
  • a TSN is connected to the communication network, including:
  • Step 501 The first converter obtains port identifiers of W ports included in itself, where W is an integer greater than 0, the first converter is any one of the N converters in the communication network, and N is an integer greater than 1,
  • the N converters are integrated in at least two independent devices.
  • the W ports are PTP ports, and the port identifiers of the W ports are PTP port identifiers.
  • W can be the number of all PTP ports in the first converter, or a part of the number of PTP ports in the first converter. For example, there are 10 PTP ports in the first converter, and W may be less than or equal to 10.
  • the first converter can obtain the port identifiers of the W ports included in the first converter through the following two methods, and the port identifiers of the W ports are PTP port identifiers, and the two methods are:
  • Manner 1 The first converter receives the port identifiers of the W ports sent by the configuration device or the management device, and the port identifiers of the W ports are generated by the configuration device or the management device.
  • the configuration device or the management device generates the port identifiers of the W ports according to the virtual device identifier of the communication network and the port numbers of the W ports, and sends the W ports to the first converter.
  • the first converter receives the port identifiers of the W ports.
  • the port numbers of the W ports are PTP port numbers.
  • the value of the PTP port number may be the same as or different from the value of other protocol port numbers.
  • the communication network can be virtualized as a virtual device.
  • the virtual device may be called 5G System Bridge (referred to as 5GS Bridge for short).
  • the virtual device identifier of the communication network is the identifier of the virtual device.
  • the virtual device identifier may be a media access control (MAC) address or an organizational unique identifier (OUI) code, etc.
  • the management device or the configuration device includes the port numbers of the W ports in the first converter.
  • the port numbers of the W ports are configured by the management device or the configuration device to the first converter in advance, or the management device or the configuration device is obtained from the first converter.
  • the configuration device or the management device generates the clock identifier of the virtual device of the communication network according to the virtual device identifier of the communication network, and generates the W according to the clock identifier and the port numbers of the W ports. Port ID of each port.
  • the configuration device or the management device constitutes the port identifier of the port by the clock identifier of the virtual device and the port number of the port, and the length of the port identifier of the port is equal to that of the virtual device The sum of the length of the clock identifier and the length of the port number of the port.
  • the configuration device or management device For the remaining W-1 ports, the configuration device or management device generates the port identifiers of the remaining W-1 ports in the same manner as described above.
  • the management device or the configuration device composes the clock ID of the virtual device and the port number of the port into a port ID with a length of 10 bytes.
  • the manner in which the management device sends the port identification to the first converter includes sending by sending a port identification message.
  • the management device when the management device generates the port identifications of the W ports of the first converter, it sends a port identification message to the first converter, and the port identification message carries the port identification and port identification of each port of the first converter. No. In this way, the first converter receives the port identification message, and sets the port identifications of the W ports according to the port identifications and port numbers of the W ports carried in the port identification message.
  • the configuration device and the first converter may be located in the same device or in a different device.
  • the configuration device when the configuration device and the first converter are located in the same device, the configuration device may be integrated with the first converter, or the configuration device and the first converter may be integrated in the UE or UPF, and the configuration device and The first converters are connected through internal connections; in this case, when the configuration device generates the port identifications of the W ports of the first converter, it sends the port identifications of the W ports to the first converter through the internal connection And port number.
  • the first converter receives the port identifiers and port numbers of the W ports through the internal connection, and sets the port identifiers of the W ports according to the port identifiers and port numbers of the W ports.
  • the manner in which the configuration device sends the port identification to the first converter includes sending a port identification message; that is, the configuration device is generating the first When the port identification of the W ports of the converter, a port identification message is sent to the first converter, and the port identification message carries the port identification and the port number.
  • the first converter receives the port identification message, and sets the port identifications of the W ports according to the port identifications and port numbers of the W ports carried in the port identification message.
  • the port identification message includes a message header and a payload part.
  • the message header includes a MAC header and an Internet Protocol (IP) header, or only MAC header, the IP header or the destination address included in the MAC header is the address of the first converter.
  • IP Internet Protocol
  • the payload part includes the corresponding relationship between the port number of each of the W ports and the corresponding port identifier.
  • Table 1 below.
  • two adjacent fields are used to carry the record, that is, for the two adjacent fields, one of the fields is used to carry the port number of the one port, and the other is used.
  • the field carries the port identifier of the one port.
  • the port identification message may include the port numbers of multiple ports and the corresponding multiple port identifications, it is avoided that the management device or the configuration device needs to separately send the port identification message to each port of the first converter.
  • each of the N-1 converters obtains the port identifiers of the respective ports contained in the above-mentioned way one.
  • the first converter receives the clock identifier of the virtual device of the communication network sent by the configuration device or the management device, and generates the port identifiers of the W ports according to the clock identifier and the port numbers of the W ports.
  • the configuration device or the management device generates the clock ID of the virtual device of the communication network according to the virtual device ID of the communication network, and sends the clock ID of the virtual device to the first converter.
  • the first converter receives the clock identifier of the virtual device, and generates the port identifiers of the W ports according to the clock identifier of the virtual device and the port numbers of the W ports.
  • the first converter forms the port identifier of the port by the clock identifier of the virtual device and the port number of the port, and the length of the port identifier of the port is equal to that of the virtual device. The sum of the length of the clock identifier and the length of the port number of the port. For the remaining W-1 ports, the first converter generates the port identifiers of the remaining W-1 ports in the same manner as described above.
  • the manner in which the management device sends the clock identification to the first converter includes sending by sending a clock identification message. That is, when the management device generates the clock identification, it sends a clock identification message to the first converter, and the clock identification message carries the clock identification of the virtual device.
  • the configuration device and the first converter may be located in the same device or in a different device.
  • the configuration device and the first converter are connected through an internal connection; in this case, when the configuration device generates the clock identifier of the virtual device, the A converter sends the clock identification.
  • the method for the configuration device to send the clock identification to the first converter includes sending by sending a clock identification message; that is, when the configuration device generates the clock identification of the virtual device , Sending a clock identification message to the first converter, where the clock identification message carries the clock identification of the virtual device.
  • the clock identification message includes a message header and a payload part.
  • the message header includes a MAC header and an IP header, or only a MAC header.
  • the IP header or The destination address included in the MAC header is the address of the first converter, and the payload part includes the clock identifier of the virtual device.
  • the clock identification message does not need to carry the port identification and port number of each port, thereby reducing the amount of sending messages. Length reduces the occupation of network resources.
  • the configuration device or the management device For the remaining N-1 converters in the communication network, the configuration device or the management device also sends the clock identifier of the virtual device to each of the N-1 converters. In this way, each of the N-1 converters obtains the port identifier of the port included in the converter in the second manner.
  • the port status of the M ports can be configured through the following process.
  • the port status of each port is the PTP port status.
  • Step 502 The first converter obtains its own port data set of W ports, the W ports include the first port, and the port data set of the first port includes the port identifier of the first port, or the port identifier of the first port And clock parameters.
  • the clock parameter is a PTP clock parameter.
  • the port data sets of the W ports are PTP port data sets.
  • the first port of the first converter is connected to the first device. If the first port of the first converter receives the Announce message sent by the first device, the Announce message carries the clock parameter, The port data set of the first port acquired by the converter includes the port identifier of the first port and the clock parameter carried in the Announce message. If the first port of the first converter does not receive the Announce sent by the first device, the port data set of the first port acquired by the first converter includes the port identifier of the first port, and in this case, the port of the first port The clock parameter in the data set can be an empty set.
  • the first device is a TSN device connected to the first port.
  • the first device connected to the first port of NW-TT may be a TSN switch, and the first port of NW-TT may receive the Announce carrying clock parameters sent by the TSN switch. It is also possible that the Announce message carrying the clock parameter sent by the TSN switch has not been received, and the NW-TT obtains the port data set of the first port according to the reception of the Announce message by the first port.
  • the first device connected to the first port of DS-TT may be the end station, and the first port of DS-TT may receive the end station
  • the sent Announce message carrying the clock parameter may not receive the Announce message carrying the clock parameter sent by the end station, and the DS-TT obtains the port data set of the first port according to the receiving of the Announce by the first port.
  • the clock parameters include the domain number (dominNumber), the version number of the PTP protocol (MinorVersionPTP, version PTP), the standard organization main identifier (majorSdoId), the standard organization minor identifier (minorSdoId), grandparent clock priority 1 (grandmasterPriority1), Grandfather clock identification (grandmasterIdentity), grandfather clock level (grandmasterClockQuality), grandmaster clock priority 2 (grandmasterPriority2), hop count (stepsRemoved), source port identification (sourcePortIdentity), flags, current leap second value (currentUtcOffset), time One or more of the source (timeSource) and the trace path identifier (Path trace TLV).
  • the manner in which the first converter obtains the port data set of the first port is the same.
  • each of the N-1 converters performs the operation of this step as the first converter to obtain the port data set of the respective port.
  • Step 503 The first converter sends the port data set of the W ports of the first converter to the configuration device.
  • the configuration device and the first converter are located in the same device, the configuration device and the first converter are connected through an internal connection; in this case, the first converter sends the first converter to the configuration device through the internal connection.
  • a port data set of W ports of a converter is optionally located in the same device.
  • the manner in which the first converter sends the port data set to the configuration device includes sending by sending a message.
  • the first converter sends a port data set message of the first port to the configuration device, and the port data set message carries the port data of the first port set.
  • the first converter sends the port data set message of each port to the configuration device, like the first port.
  • the first converter may also send the port data sets of multiple ports among the included W ports through the same message.
  • the structure of the port data set message sent by the first converter is shown in Table 3 below, and the port data set message includes The message header and the payload part, the message header includes the MAC header and the IP header, or only the MAC header, the payload part includes the port identification and clock parameters of the first port, and the payload part also includes the flag bit (Flag), The flag bit is used to identify that the port data set of the first port includes the received clock parameter.
  • the flag bit is used to identify that the port data set of the first port includes the received clock parameter.
  • the structure of the port data set message sent by the first converter is shown in Table 4 below
  • the port data set message includes a message header and a payload part.
  • the message header includes a MAC header and an IP header, or only a MAC header.
  • the payload part includes the port identifier of the first port and the flag bit Flag.
  • the port data set used to identify the first port does not include the clock parameter (that is, the clock parameter is an empty set).
  • the payload part is used to carry the field of the clock parameter to carry an empty set.
  • the so-called empty set carried in this field means that the value of each bit in this field is a value of 0 or 1, etc.
  • the first converter may not send the port data set of the first port to the configuration device, thereby reducing the number of messages exchanged between the first converter and the configuration device .
  • each of the N-1 converters performs the operation of this step the same as the first converter to send to the configuration device the information of the respective ports included.
  • Port data set The number of port data sets sent by the N converters is M, that is, the N converters send port data sets of M ports in total, and M is an integer greater than 1.
  • Step 504 The configuration device receives port data sets of M ports in the N converters.
  • first converter when the configuration device and the first converter are located in the same device, the configuration device and the first converter are connected through an internal connection, and the configuration device receives the first converter through the internal connection.
  • the port data set of the W ports of the converter When the configuration device and the first converter are located in different devices, the configuration device receives the port data set message of the W ports sent by the first converter, and obtains the port data set message of each port from the port data set message of each port. data set.
  • the port data sets of multiple ports can be combined into one port data set message and sent.
  • the configuration device receives the port data set sent by each of the N-1 converters in a manner of receiving the port data set of the first converter.
  • Step 505 The configuration device determines the port state of the M ports according to the port data set of the M ports, and the port state of the M ports is the PTP port state.
  • the configuration device determines the port status of the M ports according to the port data set and the preset data set of the M ports.
  • the preset data set is a preset PTP data set, and the preset data set includes clock parameters but does not include port identifiers.
  • the preset data set is a data set of a virtual device of the communication network.
  • the preset data set is stored locally in the configuration device, and when the port status is determined, the configuration device obtains the preset data set locally.
  • the preset data set is stored in a device other than the configuration device.
  • the other device may be a server or the like.
  • the configuration device obtains the preset data set from the other device.
  • the following example of determining the port status is listed in this step, and the example may be:
  • the configuration device selects the optimal data set in the port data set of the M ports, and compares the optimal data set with the preset data set; when it is determined that the optimal data set is better than the preset data set, the configuration device determines the optimal data set
  • the port state of the port corresponding to the optimal data set is the slave state (Slave), and the state of each of the other M-1 ports is determined as the master state (Master) or the passive state (Passive).
  • the configuration device determines that the state of each of the M ports is a master state (Master) or a passive state (Passive).
  • the configuration device selects the optimal data set from the port data sets of the M ports through the BMC algorithm, and compares the optimal data set with the preset data set.
  • the configuration device can also perform the following operations when determining the port status of the M ports:
  • the configuration device When the optimal data set is better than the preset data set, the configuration device generates the target data set according to the optimal data set.
  • the value of the hop count parameter in the target data set is greater than the value of the hop count parameter of the optimal data set by 1, and the target data
  • the set is a precise time protocol data set; when the preset data set is better than the optimal data set, the preset data set is used as the target data set.
  • the operation of configuring the device to generate the target data set according to the optimal data set can be:
  • the configuration device adds 1 to the value of the hop count parameter of the optimal data set and removes the port identifier in the optimal data set, and then uses the optimal data set as the target data set. Or, the configuration device uses the optimal data set as the target data set, adds 1 to the value of the hop count parameter in the target data set, and removes the port identifier in the target data set.
  • Step 506 For the M ports, the configuration device sends the port status of each port to the converter including each port, where the configuration device sends the port status by sending a message.
  • the first converter includes W ports, and the implementation process of configuring the device to send the port states of the W ports to the first converter may be:
  • the configuration device and the first converter are located in the same device, the configuration device and the first converter are connected through an internal connection, and the configuration device sends the information of each of the W ports to the first converter through the internal connection. Port status and port identification, or port status and port number of each port.
  • the configuration device sends a configuration message to the first converter.
  • the configuration message carries the port status of each of the W ports and the corresponding port identifier. The corresponding relationship, or the corresponding relationship between the port status of each port and the corresponding port number.
  • two adjacent fields are used in the configuration message to carry the record, that is, for the two adjacent fields, one of the fields is used to carry the port identifier of the one port, and the other field is used to carry the one port.
  • Port status or,
  • two adjacent fields are used in the configuration message to carry the record, that is, for the two adjacent fields, one of the fields is used to carry the port number of the one port, and the other field is used to carry the one port. Port status.
  • the configuration device also sends the target data set to the N converters, where the method of sending the target data set includes sending by sending a message.
  • the target data set and the determined port status are carried in the same message, or in different messages.
  • the process of sending the target data set is still described by taking the above-mentioned first converter as an example.
  • first converter For other N-1 converters, reference may be made to the description of the first converter.
  • the implementation process of configuring the device to send the target data set to the first converter can be:
  • the configuration device When the configuration device and the first converter are located in the same device, the configuration device sends the target data set to the first converter through an internal connection.
  • the configuration device sends a data set configuration message to the first converter, and the data set configuration message carries the target data set; or, the configuration device sends a configuration to the first converter Message, the configuration message not only carries the port status and port identifier of each of the W ports, but also carries the target data set; or, the configuration message not only carries the port status and port identifier of each of the W ports
  • the port status and port number also carry the target data set.
  • Step 507 For the first converter included in the N converters, the first converter receives the port status of its own W ports, and sets the W ports according to the port status of the W ports.
  • the first converter receives the port status and port identifier of each of the W ports through the internal connection; according to each port received Set the port status of each port and port ID.
  • the first converter receives the port status and port number of each of the W ports through the internal connection; and sets the port status of each port according to the received port status and port number of each port.
  • the configuration device also sends the target data set through the internal connection and saves the target data set.
  • the first converter receives a configuration message sent by the configuration device, and the configuration message carries the port status and port identifiers of the W ports, according to each configuration message in the configuration message. Port status and port identification of each port, and set the port status of each port. Or, the configuration message carries the port status and port number of the W ports, and the port status of each port is set according to the port status and port number of each port in the configuration message;
  • the configuration message further includes a target data set, and the first converter also saves the target data set.
  • the first converter may also receive a data set configuration message sent by the configuration device, where the data set configuration message carries the target data set.
  • the first converter may also save the target data set.
  • the configuration device also obtains the system-level parameters of the virtual devices of the communication network, and also sends the system-level parameters to the N converters.
  • system-level parameter is a PTP system-level parameter.
  • system-level parameters of the virtual device may be information defined by the communication protocol used by the configuration device, and the configuration device may store the system-level parameters of the virtual device when it leaves the factory.
  • the technician configures the system-level parameters of the virtual device on the configuration device in advance, and the configuration device saves the system-level parameters of the virtual device.
  • the above-mentioned first converter is still taken as an example to illustrate the process of configuring the device to send system-level parameters.
  • the process can be: when the configuration device and the first converter are located in the same device, the configuration device sends the system-level parameters to the first converter through the internal connection, and the first converter receives and saves the system-level parameters from the internal connection. parameter.
  • the configuration device sends a parameter message to the first converter, and the parameter message carries the system-level parameter.
  • the first converter receives the parameter message and saves the parameter message.
  • system-level parameters include the domain number (dominNumber), the version number of the PTP protocol (MinorVersionPTP, version PTP), the standard organization main identifier (majorSdoId), the standard organization minor identifier (minorSdoId), the source port identifier (sourcePortIdentity), and One or more of the flags.
  • the system-level parameter is filled in the message, the message is a PTP message, and the message is sent to the TSN device connected to it.
  • the message is an Announce message, a synchronization (Sync) message, a follow-up message, or a Pdelay message.
  • Pdelay messages include Pdelay_request messages, Pdelay_response messages, and Pdelay_response_Follow_up messages.
  • the first converter may send a Pdelay message to the TSN device connected to it, and the Pdelay message is used to measure the time delay and frequency offset between the first converter and the TSN device.
  • the process includes: the first converter sends a Pdelay_request message to the TSN device, obtains the first time stamp, and records Is t1, and the first timestamp t1 is the timestamp for sending the Pdelay_request message, and the Pdelay_request message carries the system-level parameter.
  • the TSN device receives the Pdelay_request message, obtains the second timestamp, which is marked as t2, and the second timestamp t2 is the timestamp of receiving the Pdelay_request message, and sends the Pdelay_response message to the first converter to obtain the third timestamp, which is marked as t3, the first timestamp t3 is the timestamp for sending the Pdelay_response message.
  • the first converter receives the Pdelay_response message, obtains the fourth timestamp, which is recorded as t4, and the fourth timestamp t4 is the timestamp of receiving the Pdelay_response message, and sends the Pdelay_response_Follow_up message to the TSN device.
  • the Pdelay_response_Follow_up message carries the system level parameter.
  • the TSN device receives the Pdelay_response_Follow_up message, and calculates the time delay between the first converter and the TSN device as [(t4-t1)-(t3-t2)]/2. or,
  • the port state of the port is a master state, a slave state, or a passive state.
  • system-level parameter is carried in the header of the Pdelay message.
  • the first converter is NW-TT, and the TSN device is a TSN switch; or, the first converter is DS-TT, and the TSN device is a terminal station.
  • the first converter may generate the Sync message, and send the Sync message to the TSN device through the port in the master state, and the TSN device is connected to the port.
  • the system-level parameter is carried in the header of the Sync message.
  • the first converter after sending the Sync message, the first converter immediately generates a Follow up message, and sends the Follow up message to the TSN device through the port in the master state.
  • This system-level parameter is carried in the header of the Follow up message.
  • the first converter can generate the first Announce message, the first Announce message carries the system-level parameters and the target data set, and sends the first Announce message to the TSN device through the port in the main state.
  • the TSN device communicates with the TSN device.
  • the port is connected.
  • the header of the first Announce message carries the system-level parameter, and the payload part of the first Announce message carries the target data set.
  • the first converter is DS-TT
  • the TSN device is the terminal station
  • the terminal station is connected to the main state port of the DS-TT.
  • the first converter may also receive a message sent by the second converter, the message including system-level parameters, and the second converter is another conversion of the N converters except the first converter. Device.
  • the first converter can save the system-level parameters sent by the second converter.
  • the system-level parameters carried in the generated message can be the system-level parameters sent by the configuration device or The received system-level parameters in the message sent by the second converter.
  • the configuration device can receive the port data sets of the M ports, and determine the port data sets according to the port data sets of the M ports.
  • the port status of the M ports is sent to the converter including each port, so that the port status of the M ports is automatically configured for the N converters, which improves the configuration efficiency and Accuracy of configuration.
  • the TSN device After configuring the port status of the M ports in the N converters, the TSN device can obtain the time and quality level of the TSN device through the converter in the communication network, and the time and quality level can be transmitted by including the PTP message.
  • the first TSN device is connected to the port of the first converter
  • the second TSN device is connected to the port of the second converter.
  • the port is the port in the master state
  • the port on the second converter connected to the second TSN device is the port in the slave state, so that the second TSN device can send the second TSN device to the first TSN device through the second converter and the first converter.
  • the time and quality level of the TSN device, or the time and quality level of the tracking source of the second TSN device is the time and quality level of the tracking source of the second TSN device.
  • the first converter is DS-TT
  • the first TSN device is the terminal station
  • the second converter is NW-TT
  • the second TSN device is a TSN switch; that is, the NW-TT is connected to the TSN switch
  • the port is in the slave state
  • the port connected to the terminal on the DS-TT is the port in the master state, so that the TSN switch can send the time and quality level of the TSN switch to the terminal through NW-TT and DS-TT, or The time and quality level of the trace source of the TSN switch.
  • the first converter is NW-TT
  • the first TSN device is a TSN switch
  • the second converter is DS-TT
  • the second TSN device is a terminal station or a TSN switch or TSN GM; that is, the device on the NW-TT
  • the port connected to the TSN switch is the port in the master state
  • the port connected to the terminal station on the DS-TT is the port in the slave state, so that the second TSN device can send the second TSN to the TSN switch through DS-TT and NW-TT
  • the process of the second TSN device sending the PTP time to the first TSN device through the second converter and the first converter may be:
  • Step 701 The second TSN device sends a first Sync message to the second converter, where the first Sync message carries the system-level parameters of the second TSN device.
  • the second TSN device After the second TSN device sends the first Sync message to the second converter, it also sends a first Follow up message to the second converter.
  • the first Follow up message also carries the system-level parameters of the second TSN device.
  • the PTP header of the first Sync message carries the system-level parameters of the second TSN device, and the PTP header of the first Follow-up message also carries the system-level parameters of the second TSN device.
  • Step 702 The second converter receives the first Sync message, and sends the first Sync message to the first converter.
  • the second converter encapsulates the first Sync message, that is, the first Sync message is used as the payload part, and the message header is added to the payload part.
  • the header includes a MAC header and/or an IP header, and sends the encapsulated first Sync message to the first converter.
  • the second converter may also receive the first Follow-up message, and encapsulate the first Follow-up message, that is, the first Follow-up message is used as the payload part.
  • a message header is added on the basis of the payload part, the message header includes a MAC header and/or an IP header, and the encapsulated first Followup message is sent to the first converter.
  • Step 703 The first converter receives the encapsulated first Sync message, and sends a second Sync message to the first TSN device through the first port.
  • the source port identifier of the second Sync message is the port identifier of the first port.
  • the second Sync message carries system-level parameters, and the first port is a port on the first converter connected to the first TSN device.
  • the first converter receives the encapsulated first Sync message, decapsulates the encapsulated first Sync message to obtain the first Sync message, and generates the second Sync message, the second Sync message
  • the source port identifier is the port identifier of the first port
  • the system-level parameters carried in the PTP header of the second Sync message are the system-level parameters carried in the PTP header of the first Sync message, or the second Sync message
  • the system-level parameters carried in the PTP header of the text are the system-level parameters sent by the configuration device received by the first converter.
  • the first converter may also receive the encapsulated first Follow-up message, and after receiving the encapsulated first Follow-up message, decapsulate the encapsulated first Follow-up message to obtain the first follow-up message.
  • follow up message generate a second Follow up message
  • the source port identifier of the second Follow up message is the port identifier of the first port
  • the system-level parameter carried in the PTP header of the second follow up message is the first
  • the system-level parameters carried in the PTP header of the follow-up message, or the system-level parameters carried in the PTP header of the second Follow-up message are the system-level parameters sent by the configuration device received by the first converter.
  • Step 704 The first TSN device receives the second Snyc message.
  • the first TSN device also receives a second Follow up message.
  • the port identifier of the port that sends the Sync message is written into the source port identifier field of the Sync message to be sent, so that the first TSN device can know the first repeater
  • the port identifier for sending the Sync message so as to facilitate fault location;
  • the system-level parameters in the Sync message sent by the first converter may be in the Sync message sent by the second converter received by the first converter
  • the system-level parameters can also be system-level parameters issued by the configuration device, which can meet different scenarios.
  • the process for the second TSN device to send the PTP time of the second TSN device to the first TSN device through the second converter and the first converter may be:
  • Step 801 The second TSN device sends a second Announce message to the second converter, where the second Announce message carries the system-level parameters and clock parameters of the second TSN device.
  • the PTP header of the second Announce message carries system-level parameters of the second TSN device
  • the payload part of the second Announce message carries the clock parameters of the second TSN device
  • the clock parameters include hop count parameters
  • Step 802 The second converter receives the second Announce message through the second port, and sends the second Announce message to the first converter.
  • the second port is the slave port of the second converter connected to the second TSN device. .
  • the second converter adds 1 to the value of the hop count parameter in the second Announce message, and then sends a second Announce message in which the value of the hop count parameter is increased by 1 to the first converter.
  • the second converter encapsulates the second Announce message, that is, the second Announce message is used as the payload part, and the message header is added to the payload part.
  • the header includes a MAC header and/or an IP header, and sends the encapsulated second Announce message to the first converter.
  • Step 803 The first converter receives the second Announce message, and sends a third Announce message to the first TSN device through the first port.
  • the source port identifier of the third Announce message is the port identifier of the first port. It is the port on the first converter that is connected to the first TSN device.
  • the first converter receives the encapsulated second Announce message, decapsulates the encapsulated second Announce message to obtain the second Announce message, and generates the third Announce message according to the second Announce message ,
  • the source port identifier of the third Announce message is the port identifier of the first port.
  • the first converter adds the value of the hop count parameter included in the clock parameter in the second Announce message Add 1 to generate a third Announce message, and the payload part of the third Announce message carries the clock parameter of the number of hops plus 1;
  • the first converter extracts the clock parameter from the second Announce message to generate a third Announce message
  • the payload part of the third Announce message carries the extracted clock parameters
  • the first converter generates a third Announce message, and the payload part of the third Announce message carries the target data set.
  • the system-level parameter carried in the PTP header of the third Announce message is the system-level parameter carried in the PTP header of the second Announce message, or the system-level parameter carried in the header of the third Announce message is the first A converter receives the system-level parameters sent by the configuration device.
  • Step 804 The first TSN device receives the third Announce message.
  • the first converter when the first converter sends the Announce message, it writes the port identifier of the port that sends the Announce message into the source port identifier field of the Announce message to be sent, so that the first TSN device can know the first repeater The port identifier for sending the Announce message, so as to facilitate fault location.
  • the clock parameter in the Announce message sent by the first converter may be the clock parameter in the Announce message sent by the second converter received by the first converter, or may be the target data set sent by the configuration device The clock parameter; and the action of adding 1 to the value of the hop parameter can be executed by the second converter or by the first converter, providing solutions that meet different scenarios.
  • an embodiment of the present application provides an apparatus 900 for configuring port status.
  • the apparatus 900 is deployed in the configuration device provided in any of the foregoing embodiments, for example, in the configuration device provided in the embodiments shown in FIGS. 1 to 8. Include:
  • the obtaining unit 901 is configured to obtain port data sets of M ports in N converters, where N is an integer greater than 1, and M is an integer greater than 1.
  • the N converters are integrated in at least two independent devices,
  • the M ports are M precision time protocol ports, and the port data set is a precision time protocol port data set;
  • the processing unit 902 is configured to configure the port states of the M ports according to the port data sets of the M ports, where the port state is a precise time protocol port state.
  • step 504 for the detailed implementation process of obtaining the port data sets of the M ports by the obtaining unit 901, reference may be made to related content in step 504 in the embodiment shown in FIG. 5, which will be described in detail here.
  • processing unit 902 is configured to:
  • the preset data set is a preset precise time protocol data set.
  • processing unit 902 is further configured to:
  • a target data set is generated according to the optimal data set, and the value of the hop number parameter in the target data set is greater than the value of the hop number parameter of the optimal data set. If the value is greater than 1, the preset data set is a preset precise time protocol data set, and the target data set is a precise time protocol data set;
  • the preset data set is used as the target data set.
  • it further includes a first sending unit 903,
  • the processing unit 902 is configured to determine the port status of each of the M ports;
  • the first sending unit 903 is configured to send the port status of each port to a converter including each port, where the method of sending the port status includes sending by sending a message.
  • the detailed implementation process for the processing unit 902 to determine the port states of the M ports may refer to the optional content in step 505 in the embodiment shown in FIG. 5, which will be described in detail here.
  • it further includes a second sending unit 904,
  • the second sending unit 904 is configured to send the target data set to the N converters, where the method of sending the target data set includes sending by sending a message.
  • the target data set and the port status are both sent by sending a message
  • the target data set and the port status are carried in the same message, or are carried In different messages.
  • the preset data set is a data set of a virtual device of a communication network
  • the communication network is a network including the N converters.
  • the manner in which the obtaining unit obtains the port data set includes obtaining through a port data set message.
  • it further includes a third sending unit 905,
  • the processing unit 902 is further configured to determine the port identifier of each of the M ports,
  • the third sending unit 905 is further configured to send the port identification of each port to the converter including each port, wherein the method of sending the port identification includes sending by sending a message.
  • the port identifier of each port is a precise time protocol port identifier.
  • step 501 for the detailed implementation process of the processing unit 902 determining the port identifier, reference may be made to related content in step 501 in the embodiment shown in FIG. 5, which will be described in detail here.
  • processing unit 902 is configured to:
  • the communication network is a network containing the N converters, and the port number of each port It is the port number of the precise time protocol.
  • it further includes a fourth sending unit 906,
  • the fourth sending unit 906 is configured to send system-level parameters of virtual devices of the communication network to the N converters, where the communication network is a network including the N converters, and the system-level parameters It is a system-level parameter of the precise time protocol.
  • the converter is a network-side delay-sensitive network switch NW-TT or a terminal-side delay-sensitive network switch DS-TT.
  • the NW-TT is an independent device, or the NW-TT is integrated in a user plane function UPF device; the DS-TT is an independent device, or the DS-TT is integrated in a user-side device UE .
  • the device is deployed in a communication network used to connect TSN devices in a delay-sensitive network.
  • the device is an independent device, or integrated in one of the N converters, or located in the same device as one or more of the N converters.
  • the port state includes a slave state, a master state or a passive state.
  • the processing unit configures the port data set according to the M ports
  • the port status of M ports can automatically configure the port status and improve the configuration accuracy. Since the port status can be automatically configured, the port status can be modified in time when the port status of the converter changes.
  • an embodiment of the present application provides an apparatus 1000 for configuring port status.
  • the apparatus 1000 is deployed in the first converter provided in any of the foregoing embodiments, for example, in the embodiment shown in FIGS. 1 to 8.
  • the device 1000 includes:
  • the processing unit 1001 is configured to obtain port data sets of W ports in the device 1000, where W is an integer greater than or equal to 1, and N is an integer greater than 1, the port data set is a precise time protocol port data set, so The device is one of N converters;
  • the sending unit 1002 is configured to send the port data sets of the W ports to a configuration device, where the port data sets are used by the configuration device according to the port data sets of the W ports and the N converters
  • the port data set of the ports on the other converters determines the port status of the W ports, the N converters are integrated in at least two independent devices, and the port status of the W ports is a precise time protocol port state.
  • the W ports include a first port, and the port data set of the first port includes a port identifier of the first port, or the port identifier and a clock parameter, and the clock parameter is a precise time protocol Clock parameters:
  • the clock parameter is a clock parameter sent by a first device received by the first port, and the first device is connected to the apparatus.
  • the method for the sending unit 1002 to send the port data set includes sending by sending a message.
  • it further includes a first receiving unit 1003,
  • the first receiving unit 1003 is configured to receive the port status of the W ports sent by the configuration device, where receiving the port status includes receiving by receiving a message;
  • the processing unit 1001 is further configured to set the port states of the W ports according to the received port states of the W ports.
  • it further includes a second receiving unit 1004,
  • the second receiving unit 1004 is configured to receive a target data set sent by the configuration device, where the target data set is a data set determined by the configuration device according to the port data set received by the configuration device and a preset data set ,
  • the preset data set and the target data set are both accurate time protocol data sets;
  • the manner in which the second receiving unit 1004 receives the target data set includes receiving by receiving a message.
  • it further includes a third receiving unit 1005,
  • the third receiving unit 1005 is configured to receive the port identifiers of the W ports sent by the management device of the communication network, where the port identifiers of the W ports are the virtual device identifiers of the communication network and The port numbers of the W ports are generated, wherein the communication network is a network including the N converters, and the port numbers of the W ports are precision time protocol port numbers; wherein, the third receiver The manner in which the unit receives the port identifier includes receiving by receiving a message; or,
  • the third receiving unit 1005 is configured to receive the clock identifier of the virtual device of the communication network sent by the management device, and the processing unit is further configured to receive the clock identifier of the virtual device and the W
  • the port numbers of each port respectively generate port identifiers of the W ports, and the clock identifier of the virtual device is generated by the management device according to the virtual device identifier of the communication network.
  • the management device of the communication network is the configuration device.
  • the device further includes a fourth receiving unit 1006,
  • the fourth receiving unit 1006 is configured to receive system-level parameters of virtual devices of the communication network sent by the configuration device, where the system-level parameters are precision time protocol system-level parameters;
  • the processing unit 1006 is further configured to fill in the system-level parameters in the message when the sending unit 1002 sends a message, and the message is a precise time protocol message;
  • the communication network is a network including the N converters.
  • step 507 for the detailed implementation process of the fourth receiving unit 1006 receiving system-level parameters, refer to the related content in step 507 in the embodiment shown in FIG. 5, which will not be described in detail here.
  • the processing unit 1001 is configured to fill the target data set into the first Announce message when the sending unit 1002 sends the first Announce message through the port in the master state;
  • the sending unit 1002 is further configured to send the first Announce message through the port in the master state.
  • it further includes a fifth receiving unit 1007,
  • the fifth receiving unit 1007 is configured to receive a second Announce message sent by a second converter, where the second Announce message includes a hop count parameter;
  • the processing unit 1001 is further configured to generate a third Announce message according to the second Announce message, where the source port identifier in the third Announce message is used by the sending unit to send the third Announce message Port ID.
  • step 803 for the detailed implementation process of the processing unit 1001 generating the third Announce message, reference may be made to related content in step 803 in the embodiment shown in FIG. 8, which is not described in detail here.
  • the processing unit 1001 is further configured to increase the value of the hop count parameter by 1, and the third Announce message includes the hop count parameter whose value is increased by 1.
  • the port state includes a slave state, a master state or a passive state.
  • the processing unit obtains the port data set of the W ports in the first converter, and the sending unit sends it to the configuration device, and the other N-1 converters among the N converters also send ports to the configuration device. data set.
  • the configuration device can obtain the port data set of the port of the N converter, and configure the port status of the W ports according to the received port data set, thereby realizing automatic configuration of the port status and improving the configuration accuracy. Since the port status can be automatically configured, the port status can be modified in time when the port status of the converter changes.
  • an embodiment of the present application provides a schematic diagram of an apparatus 1100 for configuring a port state.
  • the apparatus 1100 may be the configuration device in any of the foregoing embodiments.
  • the device 1100 includes at least one processor 1101, an internal connection 1102, a memory 1103, and at least one transceiver 1104.
  • the device 1100 is a device with a hardware structure, and can be used to implement the functional modules in the device 900 described in FIG. 9.
  • the acquiring unit 901 and the processing unit 902 in the device 900 shown in FIG. 9 can be implemented by calling the code in the memory 1103 by the at least one processor 1101.
  • the first sending unit 903, the second sending unit 904, the third sending unit 905, and the fourth sending unit 906 can be implemented by the transceiver 1104.
  • the apparatus 1100 may also be used to implement the function of configuring the device in any of the foregoing embodiments.
  • processor 1101 may be a general central processing unit (CPU), network processor (NP), microprocessor, application-specific integrated circuit (ASIC) , Or one or more integrated circuits used to control the execution of the program of this application.
  • CPU central processing unit
  • NP network processor
  • ASIC application-specific integrated circuit
  • the aforementioned internal connection 1102 may include a path for transferring information between the aforementioned components.
  • the internal connection 1102 is a single board or a bus.
  • the above transceiver 1104 is used to communicate with other devices or communication networks.
  • the aforementioned memory 1103 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM), or other types that can store information and instructions.
  • the type of dynamic storage device can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical disk storage, optical discs Storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program codes in the form of instructions or data structures and can be used by Any other medium accessed by the computer, but not limited to this.
  • the memory can exist independently and is connected to the processor through a bus.
  • the memory can also be integrated with the processor.
  • the memory 1103 is used to store application program codes for executing the solutions of the present application, and the processor 1101 controls the execution.
  • the processor 1101 is configured to execute the application program code stored in the memory 1103 and cooperate with at least one transceiver 1104, so that the device 1100 realizes the functions in the method of the present patent.
  • the processor 1101 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 11.
  • the apparatus 1100 may include multiple processors, such as the processor 1101 and the processor 1107 in FIG. 11. Each of these processors can be a single-CPU (single-CPU) processor or a multi-core (multi-CPU) processor.
  • the processor here may refer to one or more devices, circuits, and/or processing cores for processing data (for example, computer program instructions).
  • an embodiment of the present application provides a schematic diagram of an apparatus 1200 for configuring a port state.
  • the device 1200 may be the first converter in any of the above-mentioned embodiments.
  • the device 1200 includes at least one processor 1201, an internal connection 1202, a memory 1203, and at least one transceiver 1204.
  • the device 1200 is a device with a hardware structure, and can be used to implement the functional modules in the device 1000 described in FIG. 10.
  • the processing unit 1001 in the device 1000 shown in FIG. 10 can be implemented by the at least one processor 1201 calling codes in the memory 1203, and the sending unit 1002 in the device 1000 shown in FIG.
  • the first receiving unit 1003, the second receiving unit 1004, the third receiving unit 1005, the fourth receiving unit 1006, and the fifth receiving unit 1007 can be implemented by the transceiver 1204.
  • the device 1200 can also be used to implement the function of the first converter in any of the foregoing embodiments.
  • processor 1201 may be a general-purpose central processing unit (central processing unit, CPU), network processor (NP), microprocessor, application-specific integrated circuit (ASIC) , Or one or more integrated circuits used to control the execution of the program of this application.
  • CPU central processing unit
  • NP network processor
  • ASIC application-specific integrated circuit
  • the internal connection 1202 may include a path for transferring information between the components.
  • the internal connection 1202 is a single board or a bus.
  • the above transceiver 1204 is used to communicate with other devices or communication networks.
  • the aforementioned memory 1203 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), or other types that can store information and instructions.
  • the type of dynamic storage device can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical disk storage, optical discs Storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program codes in the form of instructions or data structures and can be used by Any other medium accessed by the computer, but not limited to this.
  • the memory can exist independently and is connected to the processor through a bus.
  • the memory can also be integrated with the processor.
  • the memory 1203 is used to store application program codes for executing the solutions of the present application, and the processor 1201 controls the execution.
  • the processor 1201 is configured to execute application program codes stored in the memory 1203 and cooperate with at least one transceiver 1204, so that the device 1200 realizes the functions in the method of the present patent.
  • the processor 1201 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 12.
  • the apparatus 1200 may include multiple processors, such as the processor 1201 and the processor 1207 in FIG. 12. Each of these processors can be a single-CPU (single-CPU) processor or a multi-core (multi-CPU) processor.
  • the processor here may refer to one or more devices, circuits, and/or processing cores for processing data (for example, computer program instructions).
  • an embodiment of the present application provides a system 1300 for configuring port status.
  • the system 1300 includes the device 900 as shown in FIG. 9 and N devices 1000 as shown in FIG.
  • the apparatus 900 as shown in FIG. 9 and the apparatus 1100 as shown in FIG. 11 may be configured with a device 1301, and the apparatus 1000 as shown in FIG. 10 and the apparatus 1200 as shown in FIG. 12 may be a converter 1302, which includes N There are two converters 1302, and the N converters 1302 are integrated in at least two independent devices.
  • the program can be stored in a computer-readable storage medium.
  • the storage medium mentioned can be a read-only memory, a magnetic disk or an optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Small-Scale Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

本申请公开了一种配置端口状态的方法、装置、系统及存储介质,属于通信领域。所述方法包括:配置设备获取N个转换器中的M个端口的端口数据集,N为大于1的整数,M为大于1的整数,所述N个转换器集成在至少两个独立设备中,所述M个端口为M个精确时间协议端口,所述端口数据集为精确时间协议端口数据集;所述配置设备根据所述M个端口的端口数据集,配置所述M个端口的端口状态,所述端口状态为精确时间协议端口状态。本申请实现自动配置端口状态以及提高配置准确性。

Description

配置端口状态的方法、装置、系统及存储介质
本申请要求于2020年5月20日提交的申请号为202010432875.4、发明名称为“配置端口状态的方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信领域,特别涉及一种配置端口状态的方法、装置、系统及存储介质。
背景技术
当前可以在5G网络上承载时延敏感网络(time sensitive network,TSN)的业务,5G网络与多个TSN设备相连,并要求5G网络支持传递TSN设备的1588报文。例如,第一TSN设备连接到5G网络的第一转换器,第二TSN设备连接到5G网络的第二转换器,这样5G网络需要把第一TSN设备发送的1588报文携带的时间传递给第二TSN设备。
其中,第一TSN设备与第一转换器中的一个端口相连,第二TSN设备与第二转换器中的一个端口相连。在第一TSN设备使用5G网络向第二TSN设备发送1588报文之前,技术人员需要手动地将第一转换器中的与第一TSN设备相连的端口状态设置为从(Slave)状态,以及手动地将第二转换器中的与第二TSN设备相连的端口状态设置为主(Master)状态。这样第一转换器才可以通过Slave状态的端口接收来自第一TSN设备的1588报文,第二转换器通过Master状态的端口向第二TSN设备发送1588报文。
在实现本申请的过程中,发明人发现现有技术至少存在以下问题:
当前技术人员手动地设置5G网络中的转换器的端口状态,不仅设置的效率低下,还有可能设置的端口状态不准确。而且如果某个端口状态需要发生变化时,人工设置端口状态的方法无法实现自动修改端口状态。
发明内容
本申请提供了一种配置端口状态的方法、装置、系统及存储介质,以实现自动配置端口状态以及提高配置准确性。所述技术方案如下:
第一方面,本申请实施例提供了一种配置端口状态的方法,在所述方法中,配置设备获取N个转换器中的M个端口的端口数据集,N为大于1的整数,M为大于1的整数,N个转换器集成在至少两个独立设备中,M个端口为M个精确时间协议端口,该端口数据集为精确时间协议端口数据集。配置设备根据M个端口的端口数据集,配置M个端口的端口状态,所述端口状态为精确时间协议端口状态。
由于N个转换器集成在至少两个独立设备中,且配置设备获取到该N转换器的M个端口的端口数据集,根据M个端口的端口数据集,配置M个端口的端口状态,从而实现自动配置端口状态,提高配置准确性。由于可以自动配置端口状态,这样在转换器的端口状态发生变化,能够及时修改端口状态。
在一种可能的实现方式中,配置设备根据M个端口的端口数据集和预设数据集,配置M个端口的端口状态,预设数据集为预设精确时间协议数据集,实现基于该M个端口数据集配置M个端口的端口状态。
在另一种可能的实现方式中,配置设备在M个端口的端口数据集中选出最优数据集;在最优数据集优于预设数据集时,配置设备根据最优数据集生成目标数据集,目标数据集中的跳数参数的值比最优数据集的跳数参数的值大1,预设数据集为预设精确时间协议数据集,目标数据集为精确时间协议数据集。在预设数据集优于最优数据集时,配置设备将预设数据集作为目标数据集。如此,配置设备可以从该M个端口数据集和预设数据集中找出最优数据集,基于最优数据集得到目标数据集,提高目标数据集的精度。
在另一种可能的实现方式中,配置设备确定M个端口中每个端口的端口状态。配置设备将每个端口的端口状态发送至包含每个端口的转换器,其中,发送端口状态的方式包括通过发送报文的方式发送,这样保证每个转换器根据得到各自的端口的端口状态,并设置各自的端口的端口状态。
在另一种可能的实现方式中,配置设备将目标数据集发送至N个转换器,其中,发送目标数据集的方式包括通过发送报文的方式发送,这样转换器可以得到目标数据集,如此转换器在发送Announce报文时,转换器发送的Announce报文中的时钟参数,可以是配置设备下发的目标数据集中的时钟参数,提供满足相应的场景。
在另一种可能的实现方式中,当发送目标数据集的方式和发送端口状态的方式均为通过发送报文的方式发送时,目标数据集和端口状态被携带在同一报文中,或者,被携带在不同报文中。
在另一种可能的实现方式中,预设数据集为通信网络的虚拟设备的数据集,通信网络为包含N个转换器的网络。
在另一种可能的实现方式中,配置设备获取端口数据集的方式,包括通过端口数据集报文的方式获取。
在另一种可能的实现方式中,配置设备确定M个端口中的每个端口的端口标识,将每个端口的端口标识,分别发送给包含每个端口的转换器,其中,发送端口标识的方式,包括通过发送报文的方式发送,每个端口的端口标识为精确时间协议端口标识,如此使得每转换器得到各自的端口的端口标识,从而可以使用端口标识请求配置设备配置端口状态。
在另一种可能的实现方式中,配置设备根据每个端口的端口号和通信网络的虚拟设备标识,确定每个端口的端口标识,通信网络是包含N个转换器的网络,每个端口的端口号为精 确时间协议端口号,从而实现配置每个端口的端口标识。
在另一种可能的实现方式中,配置设备将通信网络的虚拟设备的系统级参数,发送给N个转换器,通信网络为包含N个转换器的网络,系统级参数为精确时间协议系统级参数,这样转换器在发送Sync报文时,转换器发送的Sync报文中的系统级参数,可以是配置设备下发的系统级参数,这样可以满足相应的场景。
在另一种可能的实现方式中,转换器为网络侧时延敏感网络转换器NW-TT或终端侧时延敏感网络转换器DS-TT。
在另一种可能的实现方式中,NW-TT是独立设备,或NW-TT集成在用户面功能UPF设备中;DS-TT是独立设备,或DS-TT集成在用户侧设备UE中。
在另一种可能的实现方式中,配置设备部署在用于连接时延敏感网络TSN设备的通信网络中。
在另一种可能的实现方式中,配置设备是独立的设备,或集成于N个转换器中的一个转换器中,或与N个转换器中的一个或多个转换器位于同一个设备中。
在另一种可能的实现方式中,端口状态包括从状态,主状态或被动状态。
第二方面,本申请提供了一种配置端口状态的方法,在该方法中,N个转换器中的第一转换器获取第一转换器中的W个端口的端口数据集,W为大于等于1的整数,N为大于1的整数,端口数据集为精确时间协议端口数据集。第一转换器将W个端口的端口数据集发送给配置设备,端口数据集用于配置设备根据W个端口的端口数据集和N个转换器中的其他转换器上的端口的端口数据集,确定W个端口的端口状态,N个转换器集成在至少两个独立设备中,W个端口的端口状态为精确时间协议端口状态。
由于N个转换器集成在至少两个独立设备中,对于该N个转换器中的第一转换器获取第一转换器中的W个端口的端口数据集,并发送给配置设备,该N个转换器中的其他N-1个转换器也向配置设备发送端口数据集。这样配置设备可得到该N转换器的端口的端口数据集,根据接收的端口数据集,配置该W个端口的端口状态,从而实现自动配置端口状态,提高配置准确性。由于可以自动配置端口状态,这样在转换器的端口状态发生变化,能够及时修改端口状态。
在一种可能的实现方式中,W个端口包括第一端口,第一端口的端口数据集包括第一端口的端口标识,或端口标识和时钟参数,时钟参数为精确时间协议时钟参数;时钟参数为第一端口接收的第一设备发送的时钟参数,第一设备与第一转换器相连。
在另一种可能的实现方式中,发送端口数据集的方式,包括通过发送报文的方式发送。
在另一种可能的实现方式中,第一转换器接收配置设备发送的W个端口的端口状态,其中,接收端口状态包括通过接收报文的方式接收。第一转换器根据接收到的W个端口的端口状态,设置W个端口的端口状态,从而可以自动设置该W个端口的端口状态,提高了设置效率和精度。
在另一种可能的实现方式中,第一转换器接收配置设备发送的目标数据集,目标数据集是配置设备根据配置设备接收的端口数据集和预设数据集确定的数据集,预设数据集和目标数据集均为精确时间协议数据集;其中,接收目标数据集的方式,包括通过接收报文的方式接收。这样第一转换器可得到目标数据集,在发送Announce报文时,第一转换器发送的Announce报文中的时钟参数,可以是配置设备下发的目标数据集中的时钟参数,提供满足相应场景的解决方案。
在另一种可能的实现方式中,第一转换器接收通信网络的管理设备发送的W个端口的端口标识,W个端口的端口标识是管理设备根据通信网络的虚拟设备标识和W个端口的端口号生成的,其中,通信网络是包含N个转换器的网络,W个端口的端口号是精确时间协议端口号;其中,接收端口标识的方式,包括通过接收报文的方式接收。
在另一种可能的实现方式中,第一转换器接收管理设备发送的通信网络的虚拟设备的时钟标识,根据虚拟设备的时钟标识和W个端口的端口号分别生成W个端口的端口标识,虚拟设备的时钟标识是管理设备根据所述通信网络的虚拟设备标识生成的。
在另一种可能的实现方式中,通信网络的管理设备为所述配置设备。
在另一种可能的实现方式中,第一转换器接收配置设备发送的通信网络的虚拟设备的系统级参数,所述系统级参数为精确时间协议系统级参数;第一转换器发送报文时,将系统级参数填写在该报文中,该报文为精确时间协议报文;其中,通信网络是包含N个转换器的网络。这样第一转换器在发送Sync报文时,第一转换器发送的Sync报文中的系统级参数,可以是配置设备下发的系统级参数,这样可以满足相应场景的解决方案。
在另一种可能的实现方式中,第一转换器通过处于主状态的端口发送第一通知Announce报文时,将所述目标数据集填到所述第一Announce报文中;第一转换器通过处于主状态的端口发送所述第一Announce报文。
在另一种可能的实现方式中,第一转换器接收第二转换器发送的第二Announce报文,第二Announce报文包括跳数参数;第一转换器根据第二Announce报文生成第三Announce报文,其中,第三Announce报文中的源端口标识是第一转换器发送第三Announce报文的端口标识。这样第一转换器将发送第三Announce报文的端口的端口标识写入待发送的Announce报文的源端口标识字段,使得与第一转换器相连的TSN设备可以知道转发器的发送第三 Announce报文的端口标识,从而便于故障定位。
在另一种可能的实现方式中,第二Announce报文包括跳数参数,第一转换器把跳数参数的值加1,第三Announce报文包括值加1后的跳数参数。
在另一种可能的实现方式中,端口状态包括从状态,主状态或被动状态。
第三方面,本申请实施例提供了一种配置端口状态的装置,用于执行第一方面或第一方面的任意一种可能的实现方式中的方法。具体地,所述装置包括用于执行第一方面或第一方面的任意一种可能的实现方式中的方法的单元。
第四方面,本申请实施例提供了一种配置端口状态的装置,用于执行第二方面或第二方面的任意一种可能的实现方式中的方法。具体地,所述装置包括用于执行第二方面或第二方面的任意一种可能的实现方式中的方法的单元。
第五方面,本申请实施例提供了一种配置端口状态的装置,所述装置包括收发器、处理器和存储器。其中,所述收发器、所述处理器以及所述存储器之间可以通过内部连接相连。所述存储器用于存储程序、指令或代码,所述处理器用于执行所述存储器中的程序、指令或代码以及配合收发器,使得所述装置完成第一方面或第一方面的任意可能的实现方式中的方法。
第六方面,本申请实施例提供了一种配置端口状态的装置,所述装置包括收发器、处理器和存储器。其中,所述收发器、所述处理器以及所述存储器之间可以通过内部连接相连。所述存储器用于存储程序、指令或代码,所述处理器用于执行所述存储器中的程序、指令或代码以及配合收发器,使得所述装置完成第二方面或第二方面的任意可能的实现方式中的方法。
第七方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括在计算机可读存储介质中存储的计算机程序,并且所述计算程序通过处理器进行加载来实现上述第一方面、第二方面、第一方面任意可能的实现方式或第二方面任意可能的实现方式的方法。
第八方面,本申请提实施例供了一种计算机可读存储介质,用于存储计算机程序,所述计算机程序通过处理器进行加载来执行第一方面、第二方面、第一方面任意可能的实现方式或第二方面任意可能的实现方式的方法的指令。
第九方面,本申请提实施例供了一种配置端口状态的系统,包括第三方面所述的装置和第四方面所述的装置,或者,包括第五方面所述的装置和第六方面所述的装置。
附图说明
图1是本申请实施例提供的一种网络架构示意图;
图2是本申请实施例提供的另一种网络架构示意图;
图3是本申请实施例提供的另一种网络架构示意图;
图4是本申请实施例提供的另一种网络架构示意图;
图5是本申请实施例提供的一种配置端口状态的方法流程图;
图6是本申请实施例提供的一种传输Pdelay报文的流程图;
图7是本申请实施例提供的一种发送PTP时间的流程图;
图8是本申请实施例提供的另一种发送PTP时间的流程图;
图9是本申请实施例提供的一种配置端口状态的装置结构示意图;
图10是本申请实施例提供的另一种配置端口状态的装置结构示意图;
图11是本申请实施例提供的另一种配置端口状态的装置结构示意图;
图12是本申请实施例提供的另一种配置端口状态的装置结构示意图;
图13是本申请实施例提供的一种配置端口状态的系统结构示意图。
具体实施方式
下面将结合附图对本申请实施方式作进一步地详细描述。
本发明实施例中的术语:包括转换器的端口、转换器的端口数据集、转换器的端口状态、预设数据集、最优数据集、目标数据集、转换器的端口标识、转换器的端口号、系统级参数和时钟参数,均适用在精确时间协议(precision time protocol,PTP)中(IEEE 1588协议中,以及对应的1588profile,比如:IEEE 802.1AS)。
参见图1,本申请实施例提供了一种网络架构,该网络架构包括通信网络和至少两个TSN,每个TSN连接到该通信网络。
通信网络包括N个转换器,N为大于1的整数,每个TSN设备连接到通信网络包括的转换器上。对于通信网络包括的任意两个转换器,该两个转换器之间可建立网络连接,这样连接到该两个转换器上的TSN设备可通过通信网络进行通信。
可选的,该通信网络为电力网络、4G网络或5G网络等。TSN是一种以太网络,TSN包括至少一个TSN设备。
对于通信网络中的每个转换器,该转换器包括至少一个端口,该至少一个端口为PTP端口。对于每个TSN,该TSN连接到通信网络是指该TSN中的TSN设备连接到转换器的一端口上。因为转换器可以是一个独立设备或称专用设备,或转换器是一个模块并集成在一个设备中,上述转换器包括至少一个端口,指转换器所在的设备包括至少一个端口。
例如,在图1所示的网络架构中包括第一TSN和第二TSN,通信网络包括第一转换器和第二转换器,第一TSN包括第一TSN设备,第二TSN包括第二TSN设备。第一TSN设备连接到第一转换器的端口上,第二TSN设备连接到第二转换器的端口上,第一转换器和第二转换器之间建立有网络连接,这样第一TSN设备和第二TSN设备可以通过第一转换器和第二转换器进行通信。
对于任一个TSN,该TSN中包括至少一个TSN设备。例如,参见图2至4,第一TSN 中的第一TSN设备包括第一终点站(end station),第一终点站连接到第一转换器的端口上。第二TSN中的第二TSN设备包括的TSN交换机(TSN bridge)、TSN GM和第二终点站,TSN交换机连接到第二转换器的端口上,TSN GM与TSN交换机相连,第二终点站与TSN交换机和TSN GM相连。
可选的,通信网络还包括用户侧设备(user equipment,UE)、用户面功能(user plane function,UPF)、通用基站(general NodeB,gNB)和祖父时钟(grandmaster,5G GM)等设备。参见图2,一个或多个转换器可集成于UE中,或者,参见图3和图4,UE可以与一个或多个转换器相连。参见图2和图3,一个或多个转换器可集成于UPF中,或者,参见图4,UPF可以与一个或多个转换器相连。UPF与UE之间建立有网络连接。这样通信网络中的两个转换器之间的网络连接可通过UE与UPF之间的网络连接进行连接。
可选的,对于通信网络中的任一个转换器,该转换器为网络侧时延敏感网络转换器(network-side time sensitive network translator,NW-TT)或终端侧时延敏感网络转换器(device-side time sensitive network translator,DS-TT)。例如,参见图2至图4,第一转换器为DS-TT,第二转换器为NW-TT,第二TSN中的TSN交换机连接到NW-TT的端口上,第一TSN中的第一终点站连接到DS-TT的端口上。
可选的,参见图2,图3和图4,NW-TT可以是独立设备,或NW-TT集成在UPF设备中;DS-TT是独立设备,或,DS-TT集成在UE中。
可选的,参见图1至图4,通信网络还包括配置设备,该配置设备为独立的设备,或者,集成于该N个转换器中的一个转换器上(图中未画出),或者,与该N个转换器中的一个或多个转换器位于同一个设备中(图中未画出)。当通信网络为5G网络时,配置设备可以是第五代移动通信技术通用精确时间协议(5g-general precise time protocol,5g-gPTP)设备。
例如,在配置设备集成于一个转换器上的情况下,配置设备可以集成于NW-TT中,或者,集成于DS-TT中。在配置设备与一个或多个转换器位于同一个设备中的情况下,配置设备和一个或多个NW-TT集成在UPF中,或者,配置设备和一个或多个DS-TT集成在UE中。
虽然图2至图4只示出一个DS-TT和一个NW-TT,但通信网络中可以包括多个DS-TT和多个NW-TT。TSN交换机和终点站也可以有多个。
在第一TSN中的各第一TSN设备和第二TSN中的各第二TSN设备在通过第一转换器和第二转换器进行通信之前,配置设备需要配置第一转换器包含的端口的端口状态,以及第二转换器包含的端口的端口状态。
本申请实施例提供一种自动配置第一转换器和第二转换器的端口状态的方法,其中,配置设备配置端口的端口状态的详细实现过程,将在后续图5所示的实施例进行详细说明,在此先不介绍。
可选的,参见图1至图4,通信网络还包括管理设备,该管理设备配置通信网络中的各转换器包括的端口的端口标识;或者,配置设备配置通信网络中的各转换器包括的端口的端口标识。
可选的,管理设备或配置设备可以集成在会话管理功能(Session Management Function,SMF)或UPF中。当然,管理设备或配置设备也可以集成在通信网络的其它设备中。其中,SMF为通信网络的一种管理设备。管理设备和配置设备可以是一个设备,也可以是两个独立的设备。
参见图5,本申请实施例提供了一种配置端口状态的方法,该方法可以应用于图1至4任一项实施例所述的网络架构,该网络架构包括通信网络和多个TSN,每个TSN连接到该通信网络上,包括:
步骤501:第一转换器获取自身包括的W个端口的端口标识,W为大于0的整数,第一转换器是通信网络中的N个转换器中的任一个,N为大于1的整数,该N个转换器集成在至少两个独立设备中。
该W个端口为PTP端口,W个端口的端口标识为PTP端口标识。W可以是第一转换器中所有PTP端口的数量,也可以是第一转换器中一部分PTP端口的数量。例如第一转换器中有10个PTP端口,则W可以小于或等于10。
可选的,第一转换器能够通过如下两种方式获取自身包括的W个端口的端口标识,该W个端口的端口标识为PTP端口标识,该两种方式分别为:
方式一、第一转换器接收配置设备或管理设备发送的该W个端口的端口标识,该W个端口的端口标识是配置设备或管理设备生成的。
可选的,在实现时:配置设备或管理设备根据该通信网络的虚拟设备标识和该W个端口的端口号(port number)生成该W个端口的端口标识,向第一转换器发送该W个端口的端口标识;第一转换器接收该W个端口的端口标识。
可选的,该W个端口的端口号为PTP端口号,对同一个端口,PTP端口号的值可以和其它协议端口号的值相同,也可以不同。
其中,可以将通信网络虚拟成一个虚拟设备。例如,通信网络是5G网络时,该虚拟设备可以称为5G System Bridge(简称为5GS Bridge)。通信网络的虚拟设备标识是该虚拟设备的标识。该虚拟设备标识可以为媒体介入控制层(media access control,MAC)地址或组织唯一标识(organizational unique identifier,OUI)码等。
可选的,管理设备或配置设备中包括第一转换器中的W个端口的端口号。该W个端口的端口号为管理设备或配置设备提前配置给第一转换器,或者,管理设备或配置设备从第一转换器中获取的。
可选的,在方式一中,配置设备或管理设备根据通信网络的虚拟设备标识,生成该通信网络的虚拟设备的时钟标识,根据该时钟标识和该W个端口的端口号,分别生成该W个端口的端口标识。
可选的,对于该W个端口中的任一个端口,配置设备或管理设备将该虚拟设备的时钟标识和该端口的端口号组成该端口的端口标识,该端口的端口标识长度等于该虚拟设备的时钟标识长度和该端口的端口号长度之和。对于其余的W-1个端口,配置设备或管理设备按上述相同方式生成其余W-1个端口的端口标识。
例如,假设虚拟设备的时钟标识长度为8字节,该端口的端口号长度为2字节。管理设备或配置设备将该虚拟设备的时钟标识和该端口的端口号组成长度为10字节的端口标识。
可选的,对于管理设备,管理设备向第一转换器发送端口标识的方式包括通过发送端口标识报文的方式发送。也就是说,管理设备在生成第一转换器的W个端口的端口标识时,向第一转换器发送端口标识报文,该端口标识报文携带第一转换器的各个端口的端口标识和端口号。这样第一转换器接收该端口标识报文,根据该端口标识报文携带的该W个端口的端口 标识和端口号,设置该W个端口的端口标识。
可选的,对于配置设备,配置设备可能与第一转换器位于同一设备中或位于不同设备中。
可选的,当配置设备与第一转换器位于同一个设备中,配置设备可能与第一转换器集成在一起,或者,配置设备与第一转换器可能集成在UE或UPF中,配置设备和第一转换器之间通过内部连接相连;在此种情况下,配置设备在生成第一转换器的W个端口的端口标识时,通过内部连接向第一转换器发送该W个端口的端口标识和端口号。第一转换器通过内部连接接收该W个端口的端口标识和端口号,根据该W个端口的端口标识和端口号,设置该W个端口的端口标识。
可选的,当配置设备与第一转换器位于不同设备中,配置设备向第一转换器发送端口标识的方式包括通过发送端口标识报文的方式发送;也就是说,配置设备在生成第一转换器的W个端口的端口标识时,向第一转换器发送端口标识报文,该端口标识报文携带端口标识和端口号。这样第一转换器接收该端口标识报文,根据该端口标识报文携带的该W个端口的端口标识和端口号,设置该W个端口的端口标识。
可选的,参见下表1所示的端口标识报文,该端口标识报文包括报文头和净荷部分,报文头包括MAC头和互联网协议(internet protocol,IP)头,或仅包括MAC头,该IP头或MAC头中包括的目的地址为第一转换器的地址。可选的,该净荷部分包括W个端口中的每个端口的端口号和与之对应的端口标识的对应关系。可选的,参见下表1,在该净荷部分中使用相邻的两个字段携带该记录,即对于该相邻两个字段,使用其中一个字段携带该一个端口的端口号,使用另一个字段携带该一个端口的端口标识。
因为该端口标识报文可以包括多个端口的端口号和对应的多个端口标识,避免管理设备或者配置设备需要给第一转换器的每个端口都单独发送端口标识报文。
表1 端口标识报文
Figure PCTCN2021094458-appb-000001
对于通信网络中的其余N-1个转换器,该N-1个转换器中的每个转换器均按上述方式一获取各自包含的端口的端口标识。
方式二、第一转换器接收配置设备或管理设备发送的通信网络的虚拟设备的时钟标识,根据该时钟标识和该W个端口的端口号,分别生成该W个端口的端口标识。
可选的,在方式二中,配置设备或管理设备根据通信网络的虚拟设备标识,生成该通信 网络的虚拟设备的时钟标识,向第一转换器发送该虚拟设备的时钟标识。第一转换器接收该虚拟设备的时钟标识,根据该虚拟设备的时钟标识和该W个端口的端口号,分别生成该W个端口的端口标识。
可选的,对于该W个端口中的任一个端口,第一转换器将该虚拟设备的时钟标识和该端口的端口号组成该端口的端口标识,该端口的端口标识长度等于该虚拟设备的时钟标识长度和该端口的端口号长度之和。对于其余的W-1个端口,第一转换器按上述相同方式生成其余W-1个端口的端口标识。
可选的,对于管理设备,管理设备向第一转换器发送时钟标识的方式包括通过发送时钟标识报文的方式发送。也就是说,管理设备在生成时钟标识时,向第一转换器发送时钟标识报文,该时钟标识报文携带该虚拟设备的时钟标识。
可选的,对于配置设备,配置设备可能与第一转换器位于同一设备中或位于不同设备中。当配置设备与第一转换器位于同一个设备中,配置设备和第一转换器之间通过内部连接相连;在此种情况下,配置设备在生成虚拟设备的时钟标识时,通过内部连接向第一转换器发送该时钟标识。当配置设备与第一转换器位于不同设备中,配置设备向第一转换器发送时钟标识的方式包括通过发送时钟标识报文的方式发送;也就是说,配置设备在生成虚拟设备的时钟标识时,向第一转换器发送时钟标识报文,该时钟标识报文携带该虚拟设备的时钟标识。
可选的,参见下表2所示的时钟标识报文,该时钟标识报文包括报文头和净荷部分,报文头包括MAC头和IP头,或仅包括MAC头,该IP头或MAC头中包括的目的地址为第一转换器的地址,净荷部分包括该虚拟设备的时钟标识。其中,通过对比表1所示的端口标识报文和表2所示的时钟标识报文,时钟标识报文由于不需要携带每个端口的端口标识和端口号,从而减小了发送报文的长度,减小了对网络资源的占用。
表2 时钟标识报文
Figure PCTCN2021094458-appb-000002
对于通信网络中的其余N-1个转换器,配置设备或管理设备也向该N-1个转换器中的每个转换器发送虚拟设备的时钟标识。这样该N-1个转换器中的每个转换器均按上述方式二的方式获取自身包括的端口的端口标识。
接下来需要配置该N个转换器的端口的端口状态,假设该N个转换器中包括M个端口,该M个端口为PTP端口,可以通过如下流程配置该M个端口的端口状态,该M个端口的端口状态为PTP端口状态。
步骤502:第一转换器获取自身的W个端口的端口数据集,该W个端口包括第一端口,第一端口的端口数据集包括第一端口的端口标识,或者,第一端口的端口标识和时钟参数。
可选的,该时钟参数为PTP时钟参数。该W个端口的端口数据集为PTP端口数据集。
在本步骤中,第一转换器的第一端口与第一设备相连,如果第一转换器的第一端口接收到第一设备发送的Announce报文时,该Announce报文携带时钟参数,第一转换器获取的第一端口的端口数据集包括第一端口的端口标识和该Announce报文携带的时钟参数。如果第一转换器的第一端口没有接收到第一设备发送的Announce时,第一转换器获取的第一端口的端口数据集包括第一端口的端口标识,而此情况下第一端口的端口数据集中的时钟参数可以为空集。
第一设备为与第一端口相连接的TSN设备。例如,在第一转换器为NW-TT时,与NW-TT的第一端口相连的第一设备可能为TSN交换机,NW-TT的第一端口可能接收到TSN交换机发送的携带时钟参数的Announce报文,也可能没有接收到TSN交换机发送的携带时钟参数的Announce报文,NW-TT根据第一端口接收Announce报文的情况获取第一端口的端口数据集。
同理,参见图2至4,在第一转换器为DS-TT时,与DS-TT的第一端口相连的第一设备可能为终点站,DS-TT的第一端口可能接收到终点站发送的携带时钟参数的Announce报文,也可能没有接收到终点站发送的携带时钟参数的Announce报文,DS-TT根据第一端口接收Announce的情况获取第一端口的端口数据集。
可选的,时钟参数包括域号(dominNumber)、PTP协议的版本号(MinorVersionPTP、version PTP)、标准组织主标识(majorSdoId)、标准组织小标识(minorSdoId)、祖父时钟优先级1(grandmasterPriority1)、祖父时钟标识(grandmasterIdentity)、祖父时钟等级(grandmasterClockQuality)、祖父时钟优先级2(grandmasterPriority2)、跳数(stepsRemoved)、源端口标识(sourcePortIdentity)、标识(flags)、当前闰秒值(currentUtcOffset)、时间源(timeSource)和跟踪路径标识(Path trace TLV)中的一个或多个。
对于第一转换器获取其他W-1个端口的每个端口的端口数据集,与上述第一转换器获取第一端口的端口数据集的方式相同。
对于通信网络中的其他N-1个转换器,该N-1个转换器中的每个转换器,均同第一转换器一样执行本步骤的操作,以获取各自端口的端口数据集。
步骤503:第一转换器向配置设备发送第一转换器的W个端口的端口数据集。
可选的,当配置设备与第一转换器位于同一个设备中,配置设备和第一转换器之间通过内部连接相连;在此种情况下,第一转换器通过内部连接向配置设备发送第一转换器的W个端口的端口数据集。
当配置设备与第一转换器位于不同设备中,第一转换器向配置设备发送端口数据集的方式,包括通过发送报文的方式发送。可选的,在实现时,第一转换器在获取第一端口的端口数据集后,向配置设备发送第一端口的端口数据集报文,该端口数据集报文携带第一端口的端口数据集。第一转换器在获取其他W-1个端口中的每个端口的端口数据集时,同第一端口一样,向配置设备分别发送每个端口的端口数据集报文。
可选的,第一转换器也可以把包含的W个端口中的多个端口的端口数据集通过同一个报文发送。
可选的,在第一端口的端口数据集包括第一端口的端口标识和时钟参数时,第一转换器发送的端口数据集报文的结构如下表3所示,该端口数据集报文包括报文头和净荷部分,报 文头包括MAC头和IP头,或仅包括MAC头,净荷部分包括第一端口的端口标识和时钟参数,该净荷部分还包括标志位(Flag),该标志位用于标识第一端口的端口数据集包括接收到的时钟参数。
表3 端口数据集报文(端口收到Announce报文)
Figure PCTCN2021094458-appb-000003
Figure PCTCN2021094458-appb-000004
可选的,在第一端口没有接受到Announce报文时,第一端口的端口数据集包括第一端口的端口标识时,第一转换器发送的端口数据集报文的结构如下表4所示,该端口数据集报文包括报文头和净荷部分,报文头包括MAC头和IP头,或仅包括MAC头,净荷部分包括第一端口的端口标识和标志位Flag,该标志位用于标识第一端口的端口数据集不包括时钟参数(也即时钟参数为空集)。
可选的,在此情况下,净荷部分用于携带时钟参数的字段携带空集。所谓该字段携带空集是指该字段中的每个比特的取值为数值0或1等。
表4 端口数据集报文(端口没有收到Announce报文)
Figure PCTCN2021094458-appb-000005
可选的,在第一端口没有接受到Announce报文时,第一转换器也可以不发送第一端口的 端口数据集给配置设备,减少第一转换器和配置设备之间交互的报文数量。
对于通信网络中的其他N-1个转换器,该N-1个转换器中的每个转换器,均同第一转换器一样执行本步骤的操作,以向配置设备发送各自包括的端口的端口数据集。该N个转换器发送的端口数据集数目为M,即该N转换器共发送M个端口的端口数据集,M为大于1的整数。
步骤504:配置设备接收该N个转换器中的M个端口的端口数据集。
仍以上述第一转换器为例,对本步骤进行详细说明:当配置设备与第一转换器位于同一个设备中,配置设备与第一转换器通过内部连接相连,配置设备通过内部连接接收第一转换器的W个端口的端口数据集。当配置设备与第一转换器位于不同设备中,配置设备接收第一转换器发送的该W个端口的端口数据集报文,从每个端口的端口数据集报文分别获取每个端口的端口数据集。
可选的,多个端口的端口数据集可以合并在一个端口数据集报文中发送。
对于通信网络中的其他N-1个转换器,配置设备按接收第一转换器的端口数据集的方式,接收该N-1个转换器中的每个转换器发送的端口数据集。
步骤505:配置设备根据该M个端口的端口数据集,确定该M个端口的端口状态,该M个端口的端口状态为PTP端口状态。
在本步骤中,配置设备根据该M个端口的端口数据集和预设数据集,确定该M个端口的端口状态。可选的,预设数据集为预设PTP数据集,且预设数据集包括时钟参数,但不包括端口标识。
可选的,预设数据集为通信网络的虚拟设备的数据集。
可选的,预设数据集存储在配置设备的本地,在确定端口状态时,配置设备从本地获取预设数据集。或者,预设数据集存储在除配置设备以外的其他设备,该其他设备可以为服务器等,在确定端口状态时,配置设备从该其他设备中获取预设数据集。
可选的,在本步骤中列举了如下一种确定端口状态的实例,该实例可以为:
配置设备在该M个端口的端口数据集中选出最优数据集,比较该最优数据集和预设数据集;在确定该最优数据集优于预设数据集时,配置设备确定该最优数据集对应的端口的端口状态为从状态(Slave),确定其他M-1个端口中的每个端口的状态为主状态(Master)或被动状态(Passive)。在确定预设数据集优于最优数据集时,配置设备确定该M个端口中的每个端口的状态为主状态(Master)或被动状态(Passive)。
可选的,配置设备通过BMC算法在该M个端口的端口数据集中选出最优数据集,以及比较最优数据集和预设数据集。
可选的,配置设备在确定该M个端口的端口状态时还可以执行如下操作:
配置设备在最优数据集优于预设数据集时,根据最优数据集生成目标数据集,目标数据集中的跳数参数的值比最优数据集的跳数参数的值大1,目标数据集为精确时间协议数据集;在预设数据集优于最优数据集时,将预设数据集作为目标数据集。
可选的,配置设备根据最优数据集生成目标数据集的操作,可以为:
配置设备将最优数据集的跳数参数的值加1并去除最优数据集中的端口标识,然后将该最优数据集作为目标数据集。或者,配置设备将最优数据集作为目标数据集,将目标数据集中的跳数参数的值加1并去除目标数据集中的端口标识。
步骤506:对于该M个端口,配置设备将每个端口的端口状态发送至包含每个端口的转换器,其中,配置设备发送端口状态的方式包括通过发送报文的方式发送。
仍以上述第一转换器为例对本步骤进行说明,对于其他N-1个转换器,可以参照对第一转换器的说明。在该例子中,第一转换器包括W个端口,配置设备向第一转换器发送该W个端口的端口状态的实现过程可以为:
当配置设备与第一转换器位于同一个设备中,配置设备和第一转换器之间通过内部连接相连,配置设备通过该内部连接向第一转换器发送该W个端口中的每个端口的端口状态和端口标识,或者每个端口的端口状态和端口号。当配置设备与第一转换器位于不同设备中,配置设备向第一转换器发送配置报文,该配置报文携带该W个端口中的每个端口的端口状态和和与之对应的端口标识间的对应关系,或者每个端口的端口状态和与之对应的端口号之间的对应关系。
可选的,在该配置报文中使用相邻的两个字段携带该记录,即对于该相邻两个字段,使用其中一个字段携带该一个端口的端口标识,使用另一个字段携带该一个端口的端口状态。或者,
可选的,在该配置报文中使用相邻的两个字段携带该记录,即对于该相邻两个字段,使用其中一个字段携带该一个端口的端口号,使用另一个字段携带该一个端口的端口状态。
可选的,配置设备还将目标数据集发送至该N个转换器,其中,发送目标数据集的方式包括通过发送报文的方式发送。
可选的,目标数据集和确定的端口状态被携带在同一报文中,或者,被携带在不同的报文中。
仍以上述第一转换器为例对发送目标数据集的过程进行说明,对于其他N-1个转换器,可以参照对第一转换器的说明。在该例子中,配置设备向第一转换器发送目标数据集的实现过程可以为:
当配置设备与第一转换器位于同一个设备中,配置设备通过内部连接向第一转换器发送目标数据集。当配置设备与第一转换器位于不同设备中,配置设备向第一转换器发送数据集配置报文,该数据集配置报文携带该目标数据集;或者,配置设备向第一转换器发送配置报文,该配置报文不仅携带该W个端口中的每个端口的端口状态和端口标识,还携带该目标数据集;或者,该配置报文不仅携带该W个端口中的每个端口的端口状态和端口号,还携带该目标数据集。
步骤507:对于该N个转换器包括的第一转换器,第一转换器接收其自身的W个端口的端口状态,根据该W个端口的端口状态设置该W个端口。
在本步骤中,当配置设备与第一转换器位于同一个设备中,第一转换器通过该内部连接接收该W个端口中的每个端口的端口状态和端口标识;根据接收的每个端口的端口状态和端口标识,设置每个端口的端口状态。或者,第一转换器通过该内部连接接收该W个端口中的每个端口的端口状态和端口号;根据接收的每个端口的端口状态和端口号,设置每个端口的端口状态。
可选的,配置设备还通过该内部连接发送目标数据集,并保存该目标数据集。
当配置设备与第一转换器位于不同设备中,第一转换器接收配置设备发送的配置报文,该配置报文携带该W个端口中的端口状态和端口标识,根据配置报文中的每个端口的端口状 态和端口标识,设置每个端口的端口状态。或者,该配置报文携带该W个端口中的端口状态和端口号,根据配置报文中的每个端口的端口状态和端口号,设置每个端口的端口状态;
可选的,在该配置报文中还包括目标数据集,第一转换器还保存该目标数据集。或者,
可选的,第一转换器还可能接收配置设备发送的数据集配置报文,该数据集配置报文携带该目标数据集。第一转换器还可能保存该目标数据集。
可选的,配置设备中还获取通信网络的虚拟设备的系统级参数,还向N个转换器发送该系统级参数。
可选的,该系统级参数为PTP系统级参数。
可选的,该虚拟设备的系统级参数可以是配置设备所使用的通信协议定义的信息,配置设备在出厂时就可保存有该虚拟设备的系统级参数。或者,技术人员事先在配置设备上配置该虚拟设备的系统级参数,配置设备保存该虚拟设备的系统级参数。
可选的,仍以上述第一转换器为例,来说明配置设备发送系统级参数的过程。该过程可以为:在配置设备和第一转换器位于同一设备的情况,配置设备通过内部连接向第一转换器发送该系统级参数,第一转换器从该内部连接上接收并保存该系统级参数。在配置设备与第一转换器位于不同设备的情况,配置设备向第一转换器发送参数报文,该参数报文携带该系统级参数,第一转换器接收该参数报文,保存该参数报文携带的该系统级参数。
可选的,该系统级参数包括域号(dominNumber)、PTP协议的版本号(MinorVersionPTP、version PTP)、标准组织主标识(majorSdoId)、标准组织小标识(minorSdoId)、源端口标识(sourcePortIdentity)和标识(flags)中的一个或多个。
可选的,第一转换器在发送报文时,将该系统级参数填写在该报文中,该报文为PTP报文,向与其相连的TSN设备发送该报文。该报文为通知(Announce)报文、同步(Sync)报文、跟踪(Follow up)报文或Pdelay报文等。
对于Pdelay报文,Pdelay报文包括Pdelay_request报文、Pdelay_response报文和Pdelay_response_Follow_up报文。第一转换器可以向与其相连的TSN设备发送Pdelay报文,Pdelay报文用于测量第一转换器与TSN设备之间的时延和频偏。
参见图6所示的Pdelay报文的发送过程,该过程是第一转换器测量该时延的过程,该过程包括:第一转换器向TSN设备发送Pdelay_request报文,获取第一时间戳,记为t1,第一时间戳t1为发送该Pdelay_request报文的时间戳,该Pdelay_request报文携带该系统级参数。TSN设备接收Pdelay_request报文,获取第二时间戳,记为t2,第二时间戳t2为接收该Pdelay_request报文的时间戳,向第一转换器发送Pdelay_response报文,获取第三时间戳,记为t3,第一时间戳t3为发送该Pdelay_response报文的时间戳。第一转换器接收Pdelay_response报文,获取第四时间戳,记为t4,第四时间戳t4为接收该Pdelay_response报文的时间戳,向TSN设备发送Pdelay_response_Follow_up报文,该Pdelay_response_Follow_up报文携带该系统级参数。TSN设备接收Pdelay_response_Follow_up报文,计算第一转换器与TSN设备之间的时延为[(t4-t1)-(t3-t2)]/2。或者,
可选的,第一转换器通过与TSN设备相连的端口发送Pdelay报文时,该端口的端口状态为主状态、从状态或被动状态等。
可选的,Pdelay报文的报文头中携带该系统级参数。
可选的,在图6所示的实例中,第一转换器为NW-TT,TSN设备为TSN交换机;或者, 第一转换器为DS-TT,TSN设备为终点站。
对于Sync报文,第一转换器可以生成该Sync报文,通过主状态的端口向TSN设备发送该Sync报文,TSN设备与该端口相连。Sync报文的报文头中携带该系统级参数。
可选的,第一转换器在发送Sync报文后,还立即生成Follow up报文,通过主状态的该端口向TSN设备发送该Follow up报文。Follow up报文的报文头中携带该系统级参数。
对于Annouce报文,第一转换器可以生成第一Announce报文,第一Announce报文携带该系统级参数和目标数据集,通过主状态的端口向TSN设备发送第一Announce报文,TSN设备与该端口相连。第一Announce报文的报文头中携带该系统级参数,第一Announce报文的净荷部分携带该目标数据集。
对于Sync报文或Announce报文的实例,第一转换器为DS-TT,TSN设备为终点站,终点站连接到DS-TT的主状态的端口上。
可选的,第一转换器还可能接收到第二转换器发送的报文,该报文包括系统级参数,第二转换器是该N个转换器除第一转换器之外的其他一个转换器。第一转换器可保存第二转换器发送的系统级参数。这样第一转换器在生成报文(包括Announce报文、Sync报文、Follow up报文或Pdelay报文)时,生成的报文中携带的系统级参数可以为配置设备发送的系统级参数或者接收到的第二转换器发送的报文里的系统级参数。
在本申请实施例中,由于N个转换器向配置设备发送M个端口的端口数据集,这样配置设备可接收到该M个端口的端口数据集,根据该M个端口的端口数据集确定该M个端口的端口状态,将每个端口的端口状态分别发至包括每个端口的转换器中,从而实现了自动为该N个转换器配置该M个端口的端口状态,提高了配置效率以及配置的准确性。
在配置该N个转换器中的M个端口的端口状态后,TSN设备可以通过通信网络中的转换器来TSN设备的时间和质量等级,时间和质量等级可以通过包括PTP报文来传递。例如,参见图2至4,第一TSN设备连接到第一转换器的端口上,第二TSN设备连接到第二转换器的端口上,假设第一转换器上的与第一TSN设备相连的端口为主状态的端口,第二转换器上与第二TSN设备相连的端口为从状态的端口,这样第二TSN设备可以通过第二转换器和第一转换器向第一TSN设备发送第二TSN设备的时间以及质量等级,或者第二TSN设备的跟踪源的时间以及质量等级。
可选的,第一转换器为DS-TT,第一TSN设备为终点站,第二转换器为NW-TT,第二TSN设备为TSN交换机;也就是说NW-TT上的与TSN交换机相连的端口为从状态的端口,DS-TT上的与终点站相连的端口为主状态的端口,这样TSN交换机可以通过NW-TT和DS-TT向终点端发送TSN交换机的时间以及质量等级,或者TSN交换机的跟踪源的时间以及质量等级。或者,第一转换器为NW-TT,第一TSN设备为TSN交换机,第二转换器为DS-TT,第二TSN设备为终点站或TSN交换机或TSN GM;也就是说NW-TT上的与TSN交换机相连的端口为主状态的端口,DS-TT上的与终点站相连的端口为从状态的端口,这样第二TSN设备可以通过DS-TT和NW-TT向TSN交换机发送第二TSN设备的时间以及质量等级,或者第二TSN设备的跟踪源的时间以及质量等级。
参见图7,第二TSN设备通过第二转换器和第一转换器向第一TSN设备发送PTP时间的过程可以为:
步骤701:第二TSN设备向第二转换器发送第一Sync报文,第一Sync报文携带第二TSN设备的系统级参数。
第二TSN设备向第二转换器发送第一Sync报文后,还向第二转换器发送第一Follow up报文,第一Follow up报文也携带第二TSN设备的系统级参数。
其中,第一Sync报文的PTP报文头携带第二TSN设备的系统级参数,第一Follow up报文的PTP报文头也携带第二TSN设备的系统级参数。
步骤702:第二转换器接收第一Sync报文,向第一转换器发送第一Sync报文。
可选的,第二转换器接收第一Sync报文后,对第一Sync报文进行封装,即将第一Sync报文作为净荷部分,在该净荷部分基础上添加报文头,该报文头包括MAC头和/或IP头,向第一转换器发送封装后的第一Sync报文。
可选的,第二转换器接收第一Sync报文后,还可能接收第一Follow up报文,对第一Follow up报文进行封装,即将第一Follow up报文作为净荷部分,在该净荷部分基础上添加报文头,该报文头包括MAC头和/或IP头,向第一转换器发送封装后的第一Follow up报文。
步骤703:第一转换器接收封装后的第一Sync报文,通过第一端口向第一TSN设备发送第二Sync报文,第二Sync报文的源端口标识为第一端口的端口标识,第二Sync报文携带系统级参数,第一端口是第一转换器上的与第一TSN设备相连的端口。
可选的,第一转换器接收封装后的第一Sync报文,对封装后的第一Sync报文进行解封装,得到第一Sync报文,生成第二Sync报文,第二Sync报文的源端口标识为第一端口的端口标识,第二Sync报文的PTP报文头携带的系统级参数为第一Sync报文的PTP报文头携带的系统级参数,或者,第二Sync报文的PTP报文头携带的系统级参数为第一转换器接收的配置设备发送的系统级参数。
可选的,第一转换器还可能接收封装后的第一Follow up报文,在接收封装后的第一Follow up报文,对封装后的第一Follow up报文进行解封装,得到第一Follow up报文,生成第二Follow up报文,第二Follow up报文的源端口标识为第一端口的端口标识,第二Follow up报文的PTP报文头携带的系统级参数为第一Follow up报文的PTP报文头携带的系统级参数,或者,第二Follow up报文的PTP报文头携带的系统级参数为第一转换器接收的配置设备发送的系统级参数。
步骤704:第一TSN设备接收第二Snyc报文。
可选的,第一TSN设备还接收第二Follow up报文。
本申请实施例,第一转换器发送Sync报文时,将发送Sync报文的端口的端口标识写入待发送的Sync报文的源端口标识字段,使得第一TSN设备可以知道第一转发器的发送Sync报文的端口标识,从而便于故障定位;另外,第一转换器发送的Sync报文中的系统级参数,可以是第一转换器接收到的第二转换器发送的Sync报文中的系统级参数,也可以是配置设备下发的系统级参数,这样可以满足不同场景。
参见图8,第二TSN设备通过第二转换器和第一转换器向第一TSN设备发送第二TSN设备的PTP时间的过程可以为:
步骤801:第二TSN设备向第二转换器发送第二Announce报文,第二Announce报文携带第二TSN设备的系统级参数和时钟参数。
其中,第二Announce报文的PTP报文头携带第二TSN设备的系统级参数,第二Announce报文的净荷部分携带第二TSN设备的时钟参数,该时钟参数包括跳数参数。
步骤802:第二转换器通过第二端口接收第二Announce报文,向第一转换器发送第二Announce报文,第二端口是第二转换器上与第二TSN设备相连的从状态的端口。
可选的,第二转换器将第二Announce报文中的跳数参数的值加1,再向第一转换器发送跳数参数的值加1后的第二Announce报文.
可选的,第二转换器接收第二Announce报文后,对第二Announce报文进行封装,即将第二Announce报文作为净荷部分,在该净荷部分基础上添加报文头,该报文头包括MAC头和/或IP头,向第一转换器发送封装后的第二Announce报文。
步骤803:第一转换器接收第二Announce报文,通过第一端口向第一TSN设备发送第三Announce报文,第三Announce报文的源端口标识为第一端口的端口标识,第一端口是第一转换器上的与第一TSN设备相连的端口。
可选的,第一转换器接收封装后的第二Announce报文,对封装后的第二Announce报文进行解封装,得到第二Announce报文,根据第二Announce报文生成第三Announce报文,第三Announce报文的源端口标识为第一端口的端口标识。
可选的,在第二转换器没有将第二Announce报文中的跳数参数的值加1的情况下,第一转换器将第二Announce报文中的时钟参数包括的跳数参数的值加1,生成第三Announce报文,第三Announce报文的净荷部分携带跳数加1后的时钟参数;或者,
可选的,在第二转换器将第二Announce报文中的跳数参数的值加1的情况下,第一转换器从第二Announce报文中提取时钟参数,生成第三Announce报文,第三Announce报文的净荷部分携带提取的时钟参数;或者,
可选的,第一转换器生成第三Announce报文,第三Announce报文的净荷部分携带目标数据集。
第三Announce报文的PTP报文头携带的系统级参数为第二Announce报文的PTP报文头携带的系统级参数,或者,第三Announce报文的报文头携带的系统级参数为第一转换器接收的配置设备发送的系统级参数。
步骤804:第一TSN设备接收第三Announce报文。
本申请实施例,第一转换器发送Announce报文时,将发送Announce报文的端口的端口标识写入待发送的Announce报文的源端口标识字段,使得第一TSN设备可以知道第一转发器的发送Announce报文的端口标识,从而便于故障定位。另外,第一转换器发送的Announce报文中的时钟参数,可以是第一转换器接收到第二转换器发送的Announce报文中的时钟参数,也可以是配置设备下发的目标数据集中的时钟参数;以及跳数参数的值加1的动作可以由第二转换器执行,也可以由第一转换器执行,提供满足不同场景的解决方案。
参见图9,本申请实施例提供了一种配置端口状态的装置900,所述装置900部署在上述任意实施例提供的配置设备中,例如部署在图1至8所示实施例提供的配置设备中,包括:
获取单元901,用于获取N个转换器中的M个端口的端口数据集,N为大于1的整数,M为大于1的整数,所述N个转换器集成在至少两个独立设备中,所述M个端口为M个精确时间协议端口,所述端口数据集为精确时间协议端口数据集;
处理单元902,用于根据所述M个端口的端口数据集,配置所述M个端口的端口状态,所述端口状态为精确时间协议端口状态。
可选的,获取单元901获取该M个端口的端口数据集的详细实现过程,可以参见图5所示的实施例中的步骤504中的相关内容,在此再详细说明。
可选的,处理单元902配置该M个端口的端口状态的详细实现过程,可以参见图5所示的实施例中的步骤505和506中的相关内容,在此再详细说明。
可选的,所述处理单元902,用于:
根据所述M个端口的端口数据集和预设数据集,配置所述M个端口的端口状态,所述预设数据集为预设精确时间协议数据集。
可选的,所述处理单元902,还用于:
在所述M个端口的端口数据集中选出最优数据集;
在所述最优数据集优于预设数据集时,根据所述最优数据集生成目标数据集,所述目标数据集中的跳数参数的值比所述最优数据集的跳数参数的值大1,所述预设数据集为预设精确时间协议数据集,所述目标数据集为精确时间协议数据集;
在所述预设数据集优于所述最优数据集时,将所述预设数据集作为目标数据集。
可选的,还包括第一发送单元903,
所述处理单元902,用于确定所述M个端口中每个端口的端口状态;
所述第一发送单元903,用于将所述每个端口的端口状态发送至包含所述每个端口的转换器,其中,发送端口状态的方式包括通过发送报文的方式发送。
可选的,处理单元902确定该M个端口的端口状态的详细实现过程,可以参见图5所示的实施例中的步骤505中的可选内容,在此再详细说明。
可选的,还包括第二发送单元904,
所述第二发送单元904,用于将所述目标数据集发送至所述N个转换器,其中,发送目标数据集的方式包括通过发送报文的方式发送。
可选的,第二发送单元904发送目标数据集的详细实现过程,可以参见图5所示的实施例中的步骤506中的相关内容,在此再详细说明。
可选的,当发送目标数据集的方式和发送端口状态的方式均为通过发送报文的方式发送时,所述目标数据集和所述端口状态被携带在同一报文中,或者,被携带在不同报文中。
可选的,所述预设数据集为通信网络的虚拟设备的数据集,所述通信网络为包含所述N个转换器的网络。
可选的,所述获取单元获取端口数据集的方式,包括通过端口数据集报文的方式获取。
可选的,还包括第三发送单元905,
所述处理单元902,还用于确定所述M个端口中的每个端口的端口标识,
所述第三发送单元905,还用于将所述每个端口的端口标识,分别发送给包含所述每个端口的转换器,其中,发送端口标识的方式,包括通过发送报文的方式发送,所述每个端口的端口标识为精确时间协议端口标识。
可选的,处理单元902确定端口标识的详细实现过程,可以参见图5所示的实施例中的步骤501中的相关内容,在此再详细说明。
可选的,所述处理单元902,用于:
据所述每个端口的端口号和通信网络的虚拟设备标识,确定所述每个端口的端口标识,所述通信网络是包含所述N个转换器的网络,所述每个端口的端口号为精确时间协议端口号。
可选的,还包括第四发送单元906,
所述第四发送单元906,用于将通信网络的虚拟设备的系统级参数,发送给所述N个转换器,所述通信网络为包含所述N个转换器的网络,所述系统级参数为精确时间协议系统级参数。
可选的,所述转换器为网络侧时延敏感网络转换器NW-TT或终端侧时延敏感网络转换器DS-TT。
可选的,所述NW-TT是独立设备,或所述NW-TT集成在用户面功能UPF设备中;所述DS-TT是独立设备,或所述DS-TT集成在用户侧设备UE中。
可选的,所述装置部署在用于连接时延敏感网络TSN设备的通信网络中。
可选的,所述装置是独立的设备,或集成于所述N个转换器中的一个转换器中,或与所述N个转换器中的一个或多个转换器位于同一个设备中。
可选的,所述端口状态包括从状态,主状态或被动状态。
本申请实施例中,由于N个转换器集成在至少两个独立设备中,且获取单元获取到该N转换器的M个端口的端口数据集,处理单元根据M个端口的端口数据集,配置M个端口的端口状态,从而实现自动配置端口状态,提高配置准确性。由于可以自动配置端口状态,这样在转换器的端口状态发生变化,能够及时修改端口状态。
参见图10,本申请实施例提供了一种配置端口状态的装置1000,所述装置1000部署在上述任意实施例提供的第一转换器中,例如部署在图1至8所示实施例提供的第一转换器中,所述装置1000包括:
处理单元1001,用于获取所述装置1000中的W个端口的端口数据集,W为大于等于1的整数,N为大于1的整数,所述端口数据集为精确时间协议端口数据集,所述装置是N个转换器中的一个;
发送单元1002,用于将所述W个端口的端口数据集发送给配置设备,所述端口数据集用于所述配置设备根据所述W个端口的端口数据集和所述N个转换器中的其他转换器上的端口的端口数据集,确定所述W个端口的端口状态,所述N个转换器集成在至少两个独立设备中,所述W个端口的端口状态为精确时间协议端口状态。
可选的,处理单元1001获取端口数据集的详细实现过程,可以参见图5所示的实施例中的步骤502中的相关内容,在此不再详细说明。
可选的,所述W个端口包括第一端口,所述第一端口的端口数据集包括所述第一端口的端口标识,或所述端口标识和时钟参数,所述时钟参数为精确时间协议时钟参数:
所述时钟参数为所述第一端口接收的第一设备发送的时钟参数,所述第一设备与所述装置相连。
可选的,所述发送单元1002发送端口数据集的方式,包括通过发送报文的方式发送。
可选的,还包括第一接收单元1003,
所述第一接收单元1003,用于接收配置设备发送的所述W个端口的端口状态,其中,接收所述端口状态包括通过接收报文的方式接收;
所述处理单元1001,还用于根据所述接收到的W个端口的端口状态,设置所述W个端口的端口状态。
可选的,处理单元1001设置端口状态的详细实现过程,可以参见图5所示的实施例中的步骤507中的相关内容,在此不再详细说明。
可选的,还包括第二接收单元1004,
所述第二接收单元1004,用于接收所述配置设备发送的目标数据集,所述目标数据集是所述配置设备根据所述配置设备接收的端口数据集和预设数据集确定的数据集,所述预设数据集和所述目标数据集均为精确时间协议数据集;
其中,所述第二接收单元1004接收所述目标数据集的方式,包括通过接收报文的方式接收。
可选的,第二接收单元1004接收目标数据集的详细实现过程,可以参见图5所示的实施例中的步骤507中的相关内容,在此不再详细说明。
可选的,还包括第三接收单元1005,
所述第三接收单元1005,用于接收通信网络的管理设备发送的所述W个端口的端口标识,所述W个端口的端口标识是所述管理设备根据所述通信网络的虚拟设备标识和所述W个端口的端口号生成的,其中,所述通信网络是包含所述N个转换器的网络,所述W个端口的端口号是精确时间协议端口号;其中,所述第三接收单元接收所述端口标识的方式,包括通过接收报文的方式接收;或者,
所述第三接收单元1005,用于接收所述管理设备发送的所述通信网络的虚拟设备的时钟标识,以及,所述处理单元,还用于根据所述虚拟设备的时钟标识和所述W个端口的端口号分别生成所述W个端口的端口标识,所述虚拟设备的时钟标识是所述管理设备根据所述通信网络的虚拟设备标识生成的。
可选的,所述通信网络的管理设备为所述配置设备。
可选的,所述装置还包括第四接收单元1006,
所述第四接收单元1006,用于接收所述配置设备发送的通信网络的虚拟设备的系统级参数,所述系统级参数为精确时间协议系统级参数;
所述处理单元1006,还用于在所述发送单元1002发送报文时,将所述系统级参数填写在所述报文中,所述报文为精确时间协议报文;
其中,所述通信网络是包含所述N个转换器的网络。
可选的,第四接收单元1006接收系统级参数的详细实现过程,可以参见图5所示的实施例中的步骤507中的相关内容,在此不再详细说明。
可选的,所述处理单元1001,用于在所述发送单元1002通过处于主状态的端口发送第一通知Announce报文时,将所述目标数据集填到所述第一Announce报文中;
所述发送单元1002,还用于通过所述处于主状态的端口发送所述第一Announce报文。
可选的,处理单元1001填写目标数据集的详细实现过程,可以参见图5所示的实施例中的步骤507中的相关内容或参见图8所示的实施例中的步骤803中的相关内容,在此不再详细说明。
可选的,还包括第五接收单元1007,
所述第五接收单元1007,用于接收第二转换器发送的第二Announce报文,所述第二 Announce报文包括跳数参数;
所述处理单元1001,还用于根据所述第二Announce报文生成第三Announce报文,其中,第三Announce报文中的源端口标识是所述发送单元发送所述第三Announce报文的端口标识。
可选的,处理单元1001生成第三Announce报文的详细实现过程,可以参见图8所示的实施例中的步骤803中的相关内容,在此不再详细说明。
可选的,所述处理单元1001,还用于把所述跳数参数的值加1,所述第三Announce报文包括值加1后的跳数参数。
可选的,所述端口状态包括从状态,主状态或被动状态。
在本申请实施例中,处理单元获取第一转换器中的W个端口的端口数据集,发送单元发送给配置设备,N个转换器中的其他N-1个转换器也向配置设备发送端口数据集。这样配置设备可得到该N转换器的端口的端口数据集,根据接收的端口数据集,配置该W个端口的端口状态,从而实现自动配置端口状态,提高配置准确性。由于可以自动配置端口状态,这样在转换器的端口状态发生变化,能够及时修改端口状态。
参见图11,本申请实施例提供了一种配置端口状态装置1100示意图。该装置1100可以是上述任一实施例中的配置设备。该装置1100包括至少一个处理器1101,内部连接1102,存储器1103以及至少一个收发器1104。
该装置1100是一种硬件结构的装置,可以用于实现图9所述的装置900中的功能模块。例如,本领域技术人员可以想到图9所示的装置900中的获取单元901和处理单元902可以通过该至少一个处理器1101调用存储器1103中的代码来实现,图9所示的装置900中的第一发送单元903、第二发送单元904、第三发送单元905和第四发送单元906可以通过该收发器1104来实现。
可选的,该装置1100还可用于实现上述任一实施例中配置设备的功能。
可选的,上述处理器1101可以是一个通用中央处理器(central processing unit,CPU),网络处理器(network processor,NP),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。
上述内部连接1102可包括一通路,在上述组件之间传送信息。可选的,内部连接1102为单板或总线等。
上述收发器1104,用于与其他设备或通信网络通信。
上述存储器1103可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。
其中,存储器1103用于存储执行本申请方案的应用程序代码,并由处理器1101来控制 执行。处理器1101用于执行存储器1103中存储的应用程序代码,以及配合至少一个收发器1104,从而使得该装置1100实现本专利方法中的功能。
在具体实现中,作为一种实施例,处理器1101可以包括一个或多个CPU,例如图11中的CPU0和CPU1。
在具体实现中,作为一种实施例,该装置1100可以包括多个处理器,例如图11中的处理器1101和处理器1107。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
参见图12,本申请实施例提供了一种配置端口状态装置1200示意图。该装置1200可以是上述任一实施例中的第一转换器。该装置1200包括至少一个处理器1201,内部连接1202,存储器1203以及至少一个收发器1204。
该装置1200是一种硬件结构的装置,可以用于实现图10所述的装置1000中的功能模块。例如,本领域技术人员可以想到图10所示的装置1000中的处理单元1001可以通过该至少一个处理器1201调用存储器1203中的代码来实现,图10所示的装置1000中的发送单元1002、第一接收单元1003、第二接收单元1004、第三接收单元1005、第四接单元1006和第五接收单元1007可以通过该收发器1204来实现。
可选的,该装置1200还可用于实现上述任一实施例中第一转换器的功能。
可选的,上述处理器1201可以是一个通用中央处理器(central processing unit,CPU),网络处理器(network processor,NP),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。
上述内部连接1202可包括一通路,在上述组件之间传送信息。可选的,内部连接1202为单板或总线等。
上述收发器1204,用于与其他设备或通信网络通信。
上述存储器1203可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。
其中,存储器1203用于存储执行本申请方案的应用程序代码,并由处理器1201来控制执行。处理器1201用于执行存储器1203中存储的应用程序代码,以及配合至少一个收发器1204,从而使得该装置1200实现本专利方法中的功能。
在具体实现中,作为一种实施例,处理器1201可以包括一个或多个CPU,例如图12中的CPU0和CPU1。
在具体实现中,作为一种实施例,该装置1200可以包括多个处理器,例如图12中的处理器1201和处理器1207。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也 可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
参见图13,本申请实施例提供了一种配置端口状态的系统1300,该系统1300包括如图9所述的装置900和N个如图10所述的装置1000,或者,该系统1300包括如图11所述的装置1100和N个如图12所述的装置1200。
其中,如图9所述的装置900和如图11所述的装置1100可以配置设备1301,如图10所述的装置1000和如图12所述的装置1200可以为转换器1302,即包括N个转换器1302,该N个转换器1302集成在至少两个独立设备中。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (59)

  1. 一种配置端口状态的方法,其特征在于,所述方法包括:
    配置设备获取N个转换器中的M个端口的端口数据集,N为大于1的整数,M为大于1的整数,所述N个转换器集成在至少两个独立设备中,所述M个端口为M个精确时间协议端口,所述端口数据集为精确时间协议端口数据集;
    所述配置设备根据所述M个端口的端口数据集,配置所述M个端口的端口状态,所述端口状态为精确时间协议端口状态。
  2. 如权利要求1所述的方法,其特征在于,所述配置设备根据所述M个端口的端口数据集,配置所述M个端口的端口状态,包括:
    所述配置设备根据所述M个端口的端口数据集和预设数据集,配置所述M个端口的端口状态,所述预设数据集为预设精确时间协议数据集。
  3. 如权利要求1或2所述的方法,其特征在于,还包括:
    在所述M个端口的端口数据集中选出最优数据集;
    在所述最优数据集优于预设数据集时,所述配置设备根据所述最优数据集生成目标数据集,所述目标数据集中的跳数参数的值比所述最优数据集的跳数参数的值大1,所述预设数据集为预设精确时间协议数据集,所述目标数据集为精确时间协议数据集;
    在所述预设数据集优于所述最优数据集时,所述配置设备将所述预设数据集作为目标数据集。
  4. 如权利要求1-3任一项所述的方法,其特征在于,所述配置设备配置所述M个端口的端口状态,包括:
    所述配置设备确定所述M个端口中每个端口的端口状态;
    所述配置设备将所述每个端口的端口状态发送至包含所述每个端口的转换器,其中,发送端口状态的方式包括通过发送报文的方式发送。
  5. 如权利要求1-4任一项所述的方法,其特征在于,还包括:
    所述配置设备将所述目标数据集发送至所述N个转换器,其中,发送目标数据集的方式包括通过发送报文的方式发送。
  6. 如权利要求5所述的方法,其特征在于,当发送目标数据集的方式和发送端口状态的方式均为通过发送报文的方式发送时,
    所述目标数据集和所述端口状态被携带在同一报文中,或者,被携带在不同报文中。
  7. 如权利要求2-6任一项所述的方法,其特征在于,所述预设数据集为通信网络的虚拟设 备的数据集,所述通信网络为包含所述N个转换器的网络。
  8. 如权利要求1-7任一项所述的方法,其特征在于,所述配置设备获取端口数据集的方式,包括通过端口数据集报文的方式获取。
  9. 如权利要求1-8任一项所述的方法,其特征在于,还包括:
    所述配置设备确定所述M个端口中的每个端口的端口标识,将所述每个端口的端口标识,分别发送给包含所述每个端口的转换器,其中,发送端口标识的方式,包括通过发送报文的方式发送,所述每个端口的端口标识为精确时间协议端口标识。
  10. 如权利要求9所述的方法,其特征在于,所述配置设备确定所述M个端口的端口标识,包括:
    所述配置设备根据所述每个端口的端口号和通信网络的虚拟设备标识,确定所述每个端口的端口标识,所述通信网络是包含所述N个转换器的网络,所述每个端口的端口号为精确时间协议端口号。
  11. 如权利要求1-10任一项所述的方法,其特征在于,还包括:
    所述配置设备将通信网络的虚拟设备的系统级参数,发送给所述N个转换器,所述通信网络为包含所述N个转换器的网络,所述系统级参数为精确时间协议系统级参数。
  12. 如权利要求1-11任一项所述的方法,其特征在于,所述转换器为网络侧时延敏感网络转换器NW-TT或终端侧时延敏感网络转换器DS-TT。
  13. 如权利要求12所述的方法,其特征在于,所述NW-TT是独立设备,或所述NW-TT集成在用户面功能UPF设备中;所述DS-TT是独立设备,或所述DS-TT集成在用户侧设备UE中。
  14. 如权利要求1-13任一项所述的方法,其特征在于,所述配置设备部署在用于连接时延敏感网络TSN设备的通信网络中。
  15. 如权利要求1-14任一项所述的方法,其特征在于,所述配置设备是独立的设备,或集成于所述N个转换器中的一个转换器中,或与所述N个转换器中的一个或多个转换器位于同一个设备中。
  16. 如权利要求1-15任一项所述的方法,其特征在于,所述端口状态包括从状态,主状态或被动状态。
  17. 一种配置端口状态的方法,其特征在于,所述方法包括:
    N个转换器中的第一转换器获取所述第一转换器中的W个端口的端口数据集,W为大于 等于1的整数,N为大于1的整数,所述端口数据集为精确时间协议端口数据集;
    所述第一转换器将所述W个端口的端口数据集发送给配置设备,所述端口数据集用于所述配置设备根据所述W个端口的端口数据集和所述N个转换器中的其他转换器上的端口的端口数据集,确定所述W个端口的端口状态,所述N个转换器集成在至少两个独立设备中,所述W个端口的端口状态为精确时间协议端口状态。
  18. 如权利要求17所述的方法,其特征在于,所述W个端口包括第一端口,所述第一端口的端口数据集包括所述第一端口的端口标识,或所述端口标识和时钟参数,所述时钟参数为精确时间协议时钟参数:
    所述时钟参数为所述第一端口接收的第一设备发送的时钟参数,所述第一设备与所述第一转换器相连。
  19. 如权利要求17或18所述的方法,其特征在于,发送端口数据集的方式,包括通过发送报文的方式发送。
  20. 如权利要求17-19任一项所述的方法,其特征在于,还包括:
    所述第一转换器接收配置设备发送的所述W个端口的端口状态,其中,接收所述端口状态包括通过接收报文的方式接收;
    所述第一转换器根据所述接收到的W个端口的端口状态,设置所述W个端口的端口状态。
  21. 如权利要求17-20任一项所述的方法,其特征在于,还包括:
    所述第一转换器接收所述配置设备发送的目标数据集,所述目标数据集是所述配置设备根据所述配置设备接收的端口数据集和预设数据集确定的数据集,所述预设数据集和所述目标数据集均为精确时间协议数据集;
    其中,接收所述目标数据集的方式,包括通过接收报文的方式接收。
  22. 如权利要求17至21任一项所述的方法,其特征在于,还包括:
    所述第一转换器接收通信网络的管理设备发送的所述W个端口的端口标识,所述W个端口的端口标识是所述管理设备根据所述通信网络的虚拟设备标识和所述W个端口的端口号生成的,其中,所述通信网络是包含所述N个转换器的网络,所述W个端口的端口号是精确时间协议端口号;其中,接收所述端口标识的方式,包括通过接收报文的方式接收;或者,
    所述第一转换器接收所述管理设备发送的所述通信网络的虚拟设备的时钟标识,根据所述虚拟设备的时钟标识和所述W个端口的端口号分别生成所述W个端口的端口标识,所述虚拟设备的时钟标识是所述管理设备根据所述通信网络的虚拟设备标识生成的。
  23. 如权利要求22所述的方法,其特征在于,所述通信网络的管理设备为所述配置设备。
  24. 如权利要求17-23任一项所述的方法,其特征在于,所述方法还包括:
    所述第一转换器接收所述配置设备发送的通信网络的虚拟设备的系统级参数,所述系统级参数为精确时间协议系统级参数;
    所述第一转换器发送报文时,将所述系统级参数填写在所述报文中,所述报文为精确时间协议报文;
    其中,所述通信网络是包含所述N个转换器的网络。
  25. 如权利要求21所述的方法,其特征在于,所述方法还包括:
    所述第一转换器通过处于主状态的端口发送第一通知Announce报文时,将所述目标数据集填到所述第一Announce报文中;
    所述第一转换器通过所述处于主状态的端口发送所述第一Announce报文。
  26. 如权利要求17至25任一项所述的方法,其特征在于,所述方法还包括:
    所述第一转换器接收第二转换器发送的第二Announce报文,所述第二Announce报文包括跳数参数;
    所述第一转换器根据所述第二Announce报文生成第三Announce报文,其中,第三Announce报文中的源端口标识是所述第一转换器发送所述第三Announce报文的端口标识。
  27. 如权利要求26所述的方法,其特征在于,所述第二Announce报文包括跳数参数,所述第一转换器根据所述第二Announce报文生成第三Announce报文,还包括:
    所述第一转换器把所述跳数参数的值加1,所述第三Announce报文包括值加1后的跳数参数。
  28. 如权利要求17-27任一项所述的方法,其特征在于,所述端口状态包括从状态,主状态或被动状态。
  29. 一种配置端口状态的装置,其特征在于,所述装置包括:
    获取单元,用于获取N个转换器中的M个端口的端口数据集,N为大于1的整数,M为大于1的整数,所述N个转换器集成在至少两个独立设备中,所述M个端口为M个精确时间协议端口,所述端口数据集为精确时间协议端口数据集;
    处理单元,用于根据所述M个端口的端口数据集,配置所述M个端口的端口状态,所述端口状态为精确时间协议端口状态。
  30. 如权利要求29所述的装置,其特征在于,所述处理单元,用于:
    根据所述M个端口的端口数据集和预设数据集,配置所述M个端口的端口状态,所述预设数据集为预设精确时间协议数据集。
  31. 如权利要求29或30所述的装置,其特征在于,所述处理单元,还用于:
    在所述M个端口的端口数据集中选出最优数据集;
    在所述最优数据集优于预设数据集时,根据所述最优数据集生成目标数据集,所述目标数据集中的跳数参数的值比所述最优数据集的跳数参数的值大1,所述预设数据集为预设精确时间协议数据集,所述目标数据集为精确时间协议数据集;
    在所述预设数据集优于所述最优数据集时,将所述预设数据集作为目标数据集。
  32. 如权利要求29-31任一项所述的装置,其特征在于,还包括第一发送单元,
    所述处理单元,用于确定所述M个端口中每个端口的端口状态;
    所述第一发送单元,用于将所述每个端口的端口状态发送至包含所述每个端口的转换器,其中,发送端口状态的方式包括通过发送报文的方式发送。
  33. 如权利要求29-32任一项所述的装置,其特征在于,还包括第二发送单元,
    所述第二发送单元,用于将所述目标数据集发送至所述N个转换器,其中,发送目标数据集的方式包括通过发送报文的方式发送。
  34. 如权利要求33所述的装置,其特征在于,当发送目标数据集的方式和发送端口状态的方式均为通过发送报文的方式发送时,
    所述目标数据集和所述端口状态被携带在同一报文中,或者,被携带在不同报文中。
  35. 如权利要求30-34任一项所述的装置,其特征在于,所述预设数据集为通信网络的虚拟设备的数据集,所述通信网络为包含所述N个转换器的网络。
  36. 如权利要求29-35任一项所述的装置,其特征在于,所述获取单元获取端口数据集的方式,包括通过端口数据集报文的方式获取。
  37. 如权利要求29-36任一项所述的装置,其特征在于,还包括第三发送单元,
    所述处理单元,还用于确定所述M个端口中的每个端口的端口标识,
    所述第三发送单元,还用于将所述每个端口的端口标识,分别发送给包含所述每个端口的转换器,其中,发送端口标识的方式,包括通过发送报文的方式发送,所述每个端口的端口标识为精确时间协议端口标识。
  38. 如权利要求37所述的装置,其特征在于,所述处理单元,用于:
    据所述每个端口的端口号和通信网络的虚拟设备标识,确定所述每个端口的端口标识,所述通信网络是包含所述N个转换器的网络,所述每个端口的端口号为精确时间协议端口号。
  39. 如权利要求29-38任一项所述的装置,其特征在于,还包括第四发送单元,
    所述第四发送单元,用于将通信网络的虚拟设备的系统级参数,发送给所述N个转换器,所述通信网络为包含所述N个转换器的网络,所述系统级参数为精确时间协议系统级参数。
  40. 如权利要求29-39任一项所述的装置,其特征在于,所述转换器为网络侧时延敏感网 络转换器NW-TT或终端侧时延敏感网络转换器DS-TT。
  41. 如权利要求40所述的装置,其特征在于,所述NW-TT是独立设备,或所述NW-TT集成在用户面功能UPF设备中;所述DS-TT是独立设备,或所述DS-TT集成在用户侧设备UE中。
  42. 如权利要求29-41任一项所述的装置,其特征在于,所述装置部署在用于连接时延敏感网络TSN设备的通信网络中。
  43. 如权利要求29-42任一项所述的装置,其特征在于,所述装置是独立的设备,或集成于所述N个转换器中的一个转换器中,或与所述N个转换器中的一个或多个转换器位于同一个设备中。
  44. 如权利要求29-43任一项所述的装置,其特征在于,所述端口状态包括从状态,主状态或被动状态。
  45. 一种配置端口状态的装置,其特征在于,所述装置包括:
    处理单元,用于获取所述装置中的W个端口的端口数据集,W为大于等于1的整数,N为大于1的整数,所述端口数据集为精确时间协议端口数据集,所述装置是N个转换器中的一个;
    发送单元,用于将所述W个端口的端口数据集发送给配置设备,所述端口数据集用于所述配置设备根据所述W个端口的端口数据集和所述N个转换器中的其他转换器上的端口的端口数据集,确定所述W个端口的端口状态,所述N个转换器集成在至少两个独立设备中,所述W个端口的端口状态为精确时间协议端口状态。
  46. 如权利要求45所述的装置,其特征在于,所述W个端口包括第一端口,所述第一端口的端口数据集包括所述第一端口的端口标识,或所述端口标识和时钟参数,所述时钟参数为精确时间协议时钟参数:
    所述时钟参数为所述第一端口接收的第一设备发送的时钟参数,所述第一设备与所述装置相连。
  47. 如权利要求45或46所述的装置,其特征在于,所述发送单元发送端口数据集的方式,包括通过发送报文的方式发送。
  48. 如权利要求45-47任一项所述的装置,其特征在于,还包括第一接收单元,
    所述第一接收单元,用于接收配置设备发送的所述W个端口的端口状态,其中,接收所述端口状态包括通过接收报文的方式接收;
    所述处理单元,还用于根据所述接收到的W个端口的端口状态,设置所述W个端口的端口状态。
  49. 如权利要求45-48任一项所述的装置,其特征在于,还包括第二接收单元,
    所述第二接收单元,用于接收所述配置设备发送的目标数据集,所述目标数据集是所述配置设备根据所述配置设备接收的端口数据集和预设数据集确定的数据集,所述预设数据集和所述目标数据集均为精确时间协议数据集;
    其中,所述第二接收单元接收所述目标数据集的方式,包括通过接收报文的方式接收。
  50. 如权利要求45至49任一项所述的装置,其特征在于,还包括第三接收单元,
    所述第三接收单元,用于接收通信网络的管理设备发送的所述W个端口的端口标识,所述W个端口的端口标识是所述管理设备根据所述通信网络的虚拟设备标识和所述W个端口的端口号生成的,其中,所述通信网络是包含所述N个转换器的网络,所述W个端口的端口号是精确时间协议端口号;其中,所述第三接收单元接收所述端口标识的方式,包括通过接收报文的方式接收;或者,
    所述第三接收单元,用于接收所述管理设备发送的所述通信网络的虚拟设备的时钟标识,以及,所述处理单元,还用于根据所述虚拟设备的时钟标识和所述W个端口的端口号分别生成所述W个端口的端口标识,所述虚拟设备的时钟标识是所述管理设备根据所述通信网络的虚拟设备标识生成的。
  51. 如权利要求50所述的装置,其特征在于,所述通信网络的管理设备为所述配置设备。
  52. 如权利要求45-51任一项所述的装置,其特征在于,所述装置还包括第四接收单元,
    所述第四接收单元,用于接收所述配置设备发送的通信网络的虚拟设备的系统级参数,所述系统级参数为精确时间协议系统级参数;
    所述处理单元,还用于在所述发送单元发送报文时,将所述系统级参数填写在所述报文中,所述报文为精确时间协议报文;
    其中,所述通信网络是包含所述N个转换器的网络。
  53. 如权利要求49所述的装置,其特征在于,所述处理单元,用于在所述发送单元通过处于主状态的端口发送第一通知Announce报文时,将所述目标数据集填到所述第一Announce报文中;
    所述发送单元,还用于通过所述处于主状态的端口发送所述第一Announce报文。
  54. 如权利要求45至53任一项所述的装置,其特征在于,所述装置还包括第五接收单元,
    所述第五接收单元,用于接收第二转换器发送的第二Announce报文,所述第二Announce报文包括跳数参数;
    所述处理单元,还用于根据所述第二Announce报文生成第三Announce报文,其中,第三Announce报文中的源端口标识是所述发送单元发送所述第三Announce报文的端口标识。
  55. 如权利要求54所述的装置,其特征在于,所述处理单元,还用于把所述跳数参数的 值加1,所述第三Announce报文包括值加1后的跳数参数。
  56. 如权利要求45-55任一项所述的装置,其特征在于,所述端口状态包括从状态,主状态或被动状态。
  57. 一种配置端口状态的系统,其特征在于,所述系统包括如权利要求29至44任一项所述的装置和N个如权利要求45至56任一项所述的装置,N为大于1的整数,所述N个装置集成在至少两个独立设备中。
  58. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被计算机执行时,实现如权利要求1-28任一项所述的方法。
  59. 一种计算机程序产品,其特征在于,所述计算机程序产品包括在计算机可读存储介质中存储的计算机程序,并且所述计算程序通过处理器进行加载来实现如权利要求1-28任一项所述的方法。
PCT/CN2021/094458 2020-05-20 2021-05-18 配置端口状态的方法、装置、系统及存储介质 WO2021233313A1 (zh)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP2022570486A JP2023526843A (ja) 2020-05-20 2021-05-18 ポート状態設定方法、装置、およびシステム、ならびに記憶媒体
MX2022014659A MX2022014659A (es) 2020-05-20 2021-05-18 Método, aparato y sistema de configuración de estado de puerto, y medio de almacenamiento.
BR112022023556A BR112022023556A2 (pt) 2020-05-20 2021-05-18 Método de configuração de status de porta, aparelho, sistema e meio de armazenamento
AU2021277366A AU2021277366A1 (en) 2020-05-20 2021-05-18 Port status configuration method, apparatus,and system, and storage medium
KR1020227044137A KR20230012565A (ko) 2020-05-20 2021-05-18 포트 상태 구성 방법, 장치, 시스템 및 저장 매체
EP21808782.3A EP4145729A4 (en) 2020-05-20 2021-05-18 METHOD, APPARATUS, SYSTEM AND STORAGE MEDIUM FOR CONFIGURING A PORT STATUS
US17/990,089 US20230091501A1 (en) 2020-05-20 2022-11-18 Port status configuration method, apparatus, and system, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010432875.4A CN113708869B (zh) 2020-05-20 2020-05-20 配置端口状态的方法、装置及系统
CN202010432875.4 2020-05-20

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/990,089 Continuation US20230091501A1 (en) 2020-05-20 2022-11-18 Port status configuration method, apparatus, and system, and storage medium

Publications (1)

Publication Number Publication Date
WO2021233313A1 true WO2021233313A1 (zh) 2021-11-25

Family

ID=78645363

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/094458 WO2021233313A1 (zh) 2020-05-20 2021-05-18 配置端口状态的方法、装置、系统及存储介质

Country Status (9)

Country Link
US (1) US20230091501A1 (zh)
EP (1) EP4145729A4 (zh)
JP (1) JP2023526843A (zh)
KR (1) KR20230012565A (zh)
CN (2) CN115021852B (zh)
AU (1) AU2021277366A1 (zh)
BR (1) BR112022023556A2 (zh)
MX (1) MX2022014659A (zh)
WO (1) WO2021233313A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115915098A (zh) * 2023-02-15 2023-04-04 鹏城实验室 一种5g与tsn跨域ptp中bmca实现方法

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827056B (zh) * 2022-04-13 2024-03-19 华南理工大学 基于5g移动通信中时间敏感网络传输的系统及方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457346A (zh) * 2010-10-29 2012-05-16 中兴通讯股份有限公司 时间同步实现方法及时钟节点
CN103051486A (zh) * 2011-10-14 2013-04-17 华东电力试验研究院有限公司 基于网络通信分布式精确时间同步协议的主时钟测试方法
WO2013143112A1 (en) * 2012-03-30 2013-10-03 Telefonaktiebolaget L M Ericsson(Publ) Method and system for robust precision time protocol synchronization
CN104410170A (zh) * 2014-12-19 2015-03-11 重庆大学 一种适用于电力通信sdn技术
CN106533600A (zh) * 2016-10-14 2017-03-22 瑞斯康达科技发展股份有限公司 一种时钟同步方法及设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017130034A1 (en) * 2016-01-27 2017-08-03 Telefonaktiebolaget Lm Ericsson (Publ) A method of timing loop prevention for the precision time protocol (ptp) with g.8275.1 profile
WO2020081060A1 (en) * 2018-10-16 2020-04-23 Nokia Technologies Oy. Synchronization in wireless networks for supporting ieee tsn-based industrial automation
CN110113127B (zh) * 2019-06-05 2021-08-20 深圳市英特瑞半导体科技有限公司 一种基于1588协议传递时间的方法及其系统
CN110611924B (zh) * 2019-09-27 2021-08-24 腾讯科技(深圳)有限公司 实现时间敏感网络的数据传输的方法、相关设备及介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457346A (zh) * 2010-10-29 2012-05-16 中兴通讯股份有限公司 时间同步实现方法及时钟节点
CN103051486A (zh) * 2011-10-14 2013-04-17 华东电力试验研究院有限公司 基于网络通信分布式精确时间同步协议的主时钟测试方法
WO2013143112A1 (en) * 2012-03-30 2013-10-03 Telefonaktiebolaget L M Ericsson(Publ) Method and system for robust precision time protocol synchronization
CN104410170A (zh) * 2014-12-19 2015-03-11 重庆大学 一种适用于电力通信sdn技术
CN106533600A (zh) * 2016-10-14 2017-03-22 瑞斯康达科技发展股份有限公司 一种时钟同步方法及设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4145729A4

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115915098A (zh) * 2023-02-15 2023-04-04 鹏城实验室 一种5g与tsn跨域ptp中bmca实现方法
CN115915098B (zh) * 2023-02-15 2023-06-06 鹏城实验室 一种5g与tsn跨域ptp中bmca实现方法

Also Published As

Publication number Publication date
EP4145729A1 (en) 2023-03-08
CN113708869A (zh) 2021-11-26
AU2021277366A1 (en) 2023-01-05
BR112022023556A2 (pt) 2023-01-03
JP2023526843A (ja) 2023-06-23
US20230091501A1 (en) 2023-03-23
KR20230012565A (ko) 2023-01-26
EP4145729A4 (en) 2023-11-08
CN115021852B (zh) 2023-11-03
CN113708869B (zh) 2024-04-12
MX2022014659A (es) 2023-02-14
CN115021852A (zh) 2022-09-06

Similar Documents

Publication Publication Date Title
US11909652B2 (en) Method, device and storage medium for quality of service (QoS) flow management of time sensitive data for transmission of ethernet packet filter sets
JP7183416B2 (ja) 時間依存ネットワーキング通信方法及び装置
US20210006421A1 (en) Method and device for controlling qos, smf, upf, ue, pcf and an
CN114189905B (zh) 一种报文处理方法及相关设备
WO2021233313A1 (zh) 配置端口状态的方法、装置、系统及存储介质
CN111585862A (zh) 一种EtherCAT与TSN网络互通的实现方法及装置
WO2022027666A1 (zh) 一种时间同步方法及装置
CN113825251A (zh) 会话建立方法、装置、系统及计算机存储介质
JP2024504466A (ja) パケット転送方法、パケット処理方法、およびデバイス
CN111385131A (zh) 网络设备的配置方法、装置、设备及系统
WO2021163901A1 (zh) 一种会话处理方法及其装置
US20220393784A1 (en) Communication method, apparatus, and system
CN114650566A (zh) 一种提供确定性服务质量的边缘计算网络架构
CN114697269A (zh) 数据通信方法、装置、设备和介质
CN114389733A (zh) Ptp主时钟设备、时钟同步方法及存储介质
US20240195731A1 (en) Software defined network controller, network device, method and apparatus of determining resources
WO2023246118A1 (zh) 报文的转发方法、装置、存储介质及电子装置
CN111107046B (zh) 一种数据流的传输方法及装置
US20230262625A1 (en) Time Synchronization Fault Processing Method, Apparatus, And System
WO2024067520A1 (zh) 一种网络时延或抖动处理方法及装置、通信设备
WO2021168773A1 (zh) 通信方法和通信装置
CN117500000A (zh) 基于移动边缘计算的算力资源调度方法、设备及存储介质
CN115696490A (zh) 局域网通信方法、装置、终端、电子设备和存储介质
TW202337165A (zh) 時鐘狀態同步方法及通信裝置
CN116599871A (zh) 一种网络时延的确定方法和相关装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21808782

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022570486

Country of ref document: JP

Kind code of ref document: A

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112022023556

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 2021808782

Country of ref document: EP

Effective date: 20221202

ENP Entry into the national phase

Ref document number: 20227044137

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 112022023556

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20221118

ENP Entry into the national phase

Ref document number: 2021277366

Country of ref document: AU

Date of ref document: 20210518

Kind code of ref document: A