시리얼 인터페이스
이 주제는 시리얼 인터페이스, 시리얼 라인 프로토콜, 시리얼 클럭킹 모드, 시리얼 신호 처리, 직렬 DTR 서킷, 시리얼 신호 극성, 시리얼 루프백 기능 및 시리얼 라인 인코딩 구성 방법에 대해 설명합니다.
시리얼 인터페이스 개요
직렬 인터페이스를 통해 통신하는 디바이스는 두 클래스로 나뉩니다. 데이터 터미널 장비(DTE) 및 데이터 서킷 종료 장비(DCE)를 제공합니다. 주니퍼 네트웍스 PIC(Serial Physical Interface Card)는 PIC당 2개의 포트를 가지고 있으며 전이중 데이터 전송을 지원합니다. 이러한 PIC는 DTE 모드만 지원합니다. 시리얼 PIC에서. 표 1 은(는) 직렬 인터페이스의 주요 세부 정보를 지정합니다.
인터페이스 세부 정보 |
설명 |
---|---|
인터페이스 이름 |
시리얼 인터페이스 |
다음에서 지원 |
플랫폼 지원에 대한 자세한 내용은 하드웨어 호환성 도구(HCT)를 참조하십시오. |
시리얼 인터페이스 유형을 구성하는 표준 |
|
지원되는 기능 |
|
논리적 속성 |
직렬 인터페이스별 논리적 속성은 없습니다. 구성할 수 있는 일반적인 논리적 속성에 대한 정보는 논리적 인터페이스 속성 구성을 참조하십시오. 직렬 인터페이스에서의 이러한 지원은 T1 및 E1 인터페이스의 기존 LFI 및 MLPPP 지원과 동일합니다. |
시리얼 전송
기본 직렬 통신에서 9개의 신호는 전송에 매우 중요합니다. 각 신호는 9핀 또는 25핀 커넥터의 핀과 연결됩니다. 표 2 은(는) 직렬 신호와 해당 소스를 나열하고 정의합니다.
신호 이름 |
정의 |
신호 소스 |
---|---|---|
TD |
전송된 데이터 |
Dte |
RD |
수신 데이터 |
Dce |
Rts |
전송 요청 |
Dte |
Cts |
전송 삭제 |
Dce |
Dsr |
데이터 세트 준비 |
Dce |
신호 접지 |
접지 신호 |
– |
CD |
캐리어 감지 |
– |
Dtr |
데이터 터미널 지원 |
Dte |
Ri |
링 표시기 |
– |
Serial line protocol guidelines:
DCE는 DTE에 DSR 신호를 전송하며 DTR 신호로 응답합니다. 이렇게 하면 링크와 트래픽이 통과할 수 있습니다.
DTE 디바이스가 데이터를 수신할 준비가 된 경우:
RTS 신호를 모든 1s의 표시된 상태로 설정하여 DCE에 데이터를 전송할 수 있음을 나타냅니다. 예를 들어 버퍼 조건 때문에 DTE가 데이터를 수신할 수 없는 경우 RTS 신호를 모든 0으로 설정합니다.
CTS 신호를 표시된 상태로 설정하여 DTE에 데이터를 전송할 수 있음을 나타냅니다. DCE가 데이터를 수신할 수 없는 경우 CTS 신호를 모든 0으로 설정합니다.
정보를 전송할 때 전송된 데이터(TD) 회선을 통해 데이터를 전송하고 수신된 데이터(RD) 라인에서 데이터를 수신합니다.
TD 라인 - 데이터가 DTE 디바이스에서 DCE 디바이스로 전송하는 라인
RD 라인 - 데이터가 DCE 디바이스에서 DTE 디바이스로 전송하는 라인
와이어 이름은 데이터 플로우의 방향을 나타내지 않습니다.
시리얼 포트가 열리면 DTE 디바이스는 DTR 신호를 표시된 상태로 설정합니다. 마찬가지로 DCE는 DSR 신호를 표시된 상태로 설정합니다. 그러나 RTS 및 CTS 신호와 협상하기 때문에 DTR 및 DSR 신호는 거의 활용되지 않습니다.
캐리어 감지 및 링 표시기 신호는 원격 모뎀과의 연결을 감지하며 이러한 신호는 거의 사용되지 않습니다.
SRX 디바이스의 8포트 동기식 시리얼 GPIM
GPIM(Gigabit-Backplane Physical Interface Module )은 SRX550 서비스 게이트웨이 전면 슬롯에 설치하여 LAN 또는 WAN에 물리적 연결을 제공할 수 있는 네트워크 인터페이스 카드(NIC)입니다. 8포트 동기식 직렬 GPIM은 직렬 네트워크 미디어 유형에 대한 물리적 연결을 제공하여 수신 패킷을 수신하고 네트워크의 발신 패킷을 전송합니다. 처리를 위해 패킷을 포워딩하는 것 외에도 GPIM은 프레이밍 및 회선 속도 신호를 수행합니다. 이 GPIM은 동기화 모드에서 작동하는 8개의 포트를 제공하며 포트당 64Mbps 또는 8Mbps의 회선 속도를 지원합니다.
8포트 시리얼 GPIM 구성에 대한 자세한 내용은 8포트 시리얼 GPIM 기본 구성을 참조하십시오.
Features Supported on 8-Port Synchronous Serial GPIM
표 3 은(는) 8포트 동기식 시리얼 GPIM에서 지원되는 기능을 나열합니다.
기능 |
설명 |
---|---|
작동 모드(케이블 기반 자동 선택, 구성 필요 없음) |
|
클로킹 |
|
클럭 속도(바우 속도) |
1.2KHz ~ 8.0MHz 주:
RS-232 시리얼 인터페이스에 200KHz 이상의 클럭 속도의 오류가 발생할 수 있습니다. |
Mtu |
9192바이트, 기본값은 1504바이트입니다. |
HDLC 기능 |
|
라인 인코딩 |
NRZ 및 NRZI |
데이터 역추적 |
구현된 |
라인 프로토콜 |
EIA530/EIA530A, X.21, RS-449, RS-232, V.35 |
데이터 케이블 |
각 라인 프로토콜에 대한 별도의 케이블(DTE/DCE 모드 모두) |
오류 카운터(ANSI 사양 준수) |
구현된 |
알람 및 결함 |
|
데이터 신호 |
Rx 클럭 |
신호 제어 |
|
- 시리얼 자동 연결 |
|
진단 기능 |
|
레이어 2 기능 |
캡슐화
|
SNMP 기능 |
각 포트에서 수신 가능한 SNMP 정보
|
회계 부정 수표 |
구현된 |
시리얼 인터페이스의 이점
시리얼 인터페이스는 디바이스 또는 IC의 송수신을 연결하는 간단하고 비용 효율적인 방법입니다. 직렬 인터페이스는 다른 인터페이스보다 전도성 와이어(종종 하나만)가 더 적어야 하므로 구현이 용이합니다.
시리얼 인터페이스는 장거리 통신을 지원합니다.
시리얼 라인 프로토콜 구성
시리얼 라인 프로토콜 구성
기본적으로 시리얼 인터페이스는 EIA-530 라인 프로토콜을 사용합니다. PIC에서 각 포트를 독립적으로 구성하여 다음 라인 프로토콜 중 하나를 사용할 수 있습니다.
EIA-530
V.35
X.21
시리얼 라인 프로토콜을 구성하려면 다음을 수행합니다.
line-protocol
, 또는 x.21
옵션을 지정하는 eia530
v.35
문을 포함합니다. line-protocol protocol;
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
직렬 인터페이스에 대한 자세한 내용은 다음 섹션을 참조하십시오.
시리얼 인터페이스 기본 설정
시리얼 인터페이스 기본 설정
EIA-530 인터페이스 기본 설정
명령문을 포함하지 line-protocol
않거나 기본 EIA-530 라인 프로토콜을 명시적으로 구성하는 경우 기본 설정은 다음과 같습니다.
dce-options | dte-options { cts normal; dcd normal; dsr normal; dtr normal; rts normal; tm normal; } clock-rate 16.384mhz; clocking-mode loop; cts-polarity positive; dcd-polarity positive; dsr-polarity positive; dtr-circuit balanced; dtr-polarity positive; encoding nrz; rts-polarity positive; tm-polarity positive;
M Series 라우터에서 EIA-530 인터페이스에 대한 DCE 클럭 모드를 설정하고 커밋할 수 있습니다. 오류 메시지가 표시되지 않고 CLI가 차단되지 않습니다.
다음 계층 수준에서 line-protocol 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
V.35 인터페이스 기본 설정
명령문을 포함 line-protocol v.35
하면 기본 설정은 다음과 같습니다.
dce-options | dte-options { cts normal; dcd normal; dsr normal; dtr normal; rts normal; } clock-rate 16.384mhz; clocking-mode loop; cts-polarity positive; dcd-polarity positive; dsr-polarity positive; dtr-circuit balanced; dtr-polarity positive; encoding nrz; rts-polarity positive;
다음 계층 수준에서 line-protocol 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
X.21 인터페이스 기본 설정
명령문을 포함 line-protocol x.21
하면 기본 설정은 다음과 같습니다.
dce-options | dte-options { control-signal normal; indication normal; } clock-rate 16.384mhz; clocking-mode loop; control-polarity positive; encoding nrz; indication-polarity positive;
다음 계층 수준에서 line-protocol 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
잘못된 시리얼 인터페이스 문
다음 섹션에는 각 직렬 인터페이스 유형에 대한 잘못된 구성 문이 표시됩니다. 구성에 다음 문을 포함하면 오류 메시지가 오류의 위치를 나타내며 구성이 활성화되지 않음을 나타냅니다.
잘못된 EIA-530 인터페이스 문
문을 포함하지 line-protocol
않거나 기본 EIA-530 라인 프로토콜을 명시적으로 구성하는 경우 다음 문이 무효입니다.
dce-options | dte-options { control-signal (assert | de-assert | normal); indication (ignore | normal | require); } control-polarity (negative | positive); indication-polarity (negative | positive);
다음 계층 수준에서 line-protocol 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
잘못된 V.35 인터페이스 문
명령문을 line-protocol v.35
포함하면 다음 문이 유효하지 않습니다.
dce-options | dte-options { control-signal (assert | de-assert | normal); indication (ignore | normal | require); tm (ignore | normal | require); } control-polarity (negative | positive); indication-polarity (negative | positive); loopback (dce-local | dce-remote); tm-polarity (negative | positive);
다음 계층 수준에서 line-protocol 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
잘못된 X.21 인터페이스 문
명령문을 line-protocol x.21
포함하면 다음 문이 유효하지 않습니다.
dce-options | dte-options { cts (ignore | normal | require); dcd (ignore | normal | require); dsr (ignore | normal | require); dtr (assert | de-assert | normal); rts (assert | de-assert | normal); tm (ignore | normal | require); } clocking-mode (dce | internal); cts-polarity (negative | positive); dce-polarity (negative | positive); dsr-polarity (negative | positive); dtr-circuit (balanced | unbalanced); dtr-polarity (negative | positive); loopback (dce-local | dce-remote); rts-polarity (negative | positive); tm-polarity (negative | positive);
다음 계층 수준에서 line-protocol 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
시리얼 클럭킹 모드 구성
시리얼 클럭킹 모드 구성
기본적으로 시리얼 인터페이스는 루프 클럭 모드를 사용합니다. EIA-530 및 V.35 인터페이스의 경우, 루프, DCE 또는 내부 클럭 모드를 사용하도록 PIC의 각 포트를 독립적으로 구성할 수 있습니다. X.21 인터페이스의 경우 루프 클럭 모드만 지원됩니다.
3개의 클럭 모드는 다음과 같이 작동합니다.
루프 클럭 모드 - DCE의 RX 클럭을 사용하여 DCE에서 DTE로 데이터를 클럭합니다.
DCE 클럭 모드 - DTE가 DTE의 전송 클럭으로 사용할 수 있도록 DCE에서 생성되는 TXC 클럭을 사용합니다.
내부 클럭 모드(회선 타이밍이라고도 함)는 내부적으로 생성된 클럭을 사용합니다. 또는
[edit interfaces se-fpc/pic/port dte-options]
계층 수준에서 문을 포함하여clock-rate
이 클럭의[edit interfaces se-pim/0/port serial-options]
속도를 구성할 수 있습니다. DTE 클럭 속도에 대한 자세한 내용은 을(를) 참조하십시오 DTE 클럭 속도 구성.
DCE 클럭 모드 및 루프 클럭 모드는 DCE에서 생성된 외부 클럭을 사용합니다.
그림 1 은(는) 루프, DCE 및 내부 클럭 모드의 클럭 소스를 보여줍니다.
직렬 인터페이스의 클럭 모드를 구성하려면 문을 포함합니다 clocking-mode
.
clocking-mode (dce | internal | loop);
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
시리얼 인터페이스 전송 클럭 반전
외부 시간 단축 클럭 모드(DCE 또는 루프)를 사용할 경우, 긴 케이블은 DTE 전송 클럭 및 데이터의 위상 변화를 가져올 수 있습니다. 이러한 위상 전환은 빠른 속도로 오류를 일으킬 수 있습니다. 전송 클럭을 반전하면 위상 변화가 수정되어 오류 속도가 감소합니다.
기본적으로 전송 클럭은 반전되지 않습니다. 전송 클럭을 반전하려면 문을 포함합니다 transmit-clock invert
.
transmit-clock invert;
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
DTE 클럭 속도 구성
기본적으로 시리얼 인터페이스의 클럭 속도는 16.384MHz입니다. 내부 클럭 모드가 구성된 EIA-530 및 V.35 인터페이스의 경우 클럭 속도를 구성할 수 있습니다.
클럭 속도를 구성하려면 문을 포함합니다 clock-rate
.
clock-rate rate;
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
다음과 같은 인터페이스 속도를 구성할 수 있습니다.
2.048MHz
2.341MHz
2.731MHz
3.277MHz
4.096MHz
5.461MHz
8.192MHz
16.384MHz
직렬 인터페이스는 기본 속도 16.384MHz로 사용하도록 되어 있지만 다음 조건 중 어느 것이라도 우선하는 경우 더 느린 속도를 사용해야 할 수 있습니다.
상호 연결된 케이블이 너무 길어 효과적인 작동이 가능합니다.
상호 연결된 케이블은 +1v를 초과하는 원치 않는 전압을 유발할 수 있는 불필요한 노이즈 소스에 노출되어 케이블의 로드 엔드에서 일반적인 신호 전도사와 서킷 간에 차등 측정되었으며, 50-옴 저항기로 발전기를 대체했습니다.
다른 신호에 대한 간섭을 최소화해야 합니다.
신호를 반전시켜야 합니다.
신호 전송 속도와 인터페이스 케이블 거리 간의 관계에 대한 자세한 내용은 다음 표준을 참조하십시오.
EIA-422-A, 균형 잡힌 전압 디지털 인터페이스 서킷의 전기적 특성
EIA-423-A, 불균형 전압 디지털 인터페이스 회로의 전기적 특성
시리얼 신호 처리 구성
기본적으로 모든 신호에 대해 정상적인 신호 처리가 활성화되어 있습니다. 각 신호에 normal
대해 옵션은 다음 표준에 정의된 대로 해당 신호에 대한 일반 신호 처리에 적용됩니다.
TIA/EIA 표준 530
ITU-T 권장 사항 V.35
ITU-T 권장 사항 X.21
표 4 은(는) 각 신호 유형을 지원하는 시리얼 인터페이스 모드를 보여줍니다.
신호 |
시리얼 인터페이스 |
---|---|
DCE로부터의 신호 | |
전송 삭제(CTS) |
EIA-530 및 V.35 |
데이터 캐리어 감지(DCD) |
EIA-530 및 V.35 |
데이터 세트 준비(DSR) |
EIA-530 및 V.35 |
표시 |
X.21 전용 |
테스트 모드(TM) |
EIA-530 전용 |
TO-DCE 신호 | |
신호 제어 |
X.21 전용 |
DTR(Data Transfer Ready) |
EIA-530 및 V.35 |
전송 요청(RTS) |
EIA-530 및 V.35 |
또는 dte-options
문을 포함하여 dce-options
직렬 인터페이스 신호 특성을 구성합니다.
dce-options |dte-options { control-signal (assert | de-assert | normal); cts (ignore | normal | require); dcd (ignore | normal | require); dsr (ignore | normal | require); dtr signal-handling-option; ignore-all; indication (ignore | normal | require); rts (assert | de-assert | normal); tm (ignore | normal | require); }
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
EIA-530 및 V.35 인터페이스의 경우, 및 문을 포함하여 dtr
DCE 신호를 구성하고assert
, de-assert
또는 normal
옵션을 지정 rts
합니다.
dtr (assert | de-assert | normal); rts (assert | de-assert | normal);
X.21 인터페이스의 경우, , 또는 normal
옵션을 지정하는 de-assert
assert
문을 포함하여 control-signal
DCE 신호를 구성합니다.
control-signal (assert | de-assert | normal);
주장은 주어진 신호의 긍정적 측면이 잠재적인 높은 수준의 출력 전압(Voh)에 있는 경우이고, 동일한 신호의 음수 측면은 잠재적인 저수준 출력 전압(Vol)에 있는 경우입니다. 디저전(Deassertion )은 주어진 신호의 긍정적인 측면이 잠재적인 Vol에 있는 반면, 동일한 신호의 부정적인 측면은 잠재적 Voh에 있는 경우입니다.
DTR 신호의 경우, 문을 포함하고 dtr
옵션을 지정 auto-synchronize
함으로써 자동 재동기화를 위한 신호를 사용하여 정상적인 신호 처리를 구성할 수 있습니다.
dtr { auto-synchronize { duration milliseconds; interval seconds; } }
재동기화의 펄스 시간은 1~1000밀리초입니다. 재동기화의 오프셋 간격은 1~31초입니다.
EIA-530 및 V.35 인터페이스의 경우, , dcd
및 문을 포함하여 cts
DCE 신호를 구성하고ignore
dsr
, normal
또는 require
옵션을 지정합니다.
cts (ignore | normal | require); dcd (ignore | normal | require); dsr (ignore | normal | require);
X.21 인터페이스의 경우, , 또는 require
옵션을 지정하는 normal
ignore
문을 포함하여 indication
DCE 신호를 구성합니다.
indication (ignore | normal | require);
EIA-530 인터페이스의 경우에만, 문을 포함하여 tm
DCE 테스트 모드(TM) 시그널링을 구성할 수 있으며, , normal
또는 require
옵션을 지정할 ignore
수 있습니다.
tm (ignore | normal | require);
DCE에서 전송 신호를 반드시 주장해야 하며, 구성에 require
옵션을 포함합니다. DCE 전송 신호를 무시해야 하며, 구성에 ignore
옵션을 포함해야 합니다.
V.35 및 X.21 인터페이스의 경우, 구성에 tm
문을 포함할 수 없습니다.
X.21 인터페이스의 경우, , dcd
, dtr
dsr
및 rts
문을 구성에 포함cts
할 수 없습니다.
EIA-530 및 V.35 인터페이스의 control-signal
경우, 구성에 및 indication
문을 포함할 수 없습니다.
각 시리얼 인터페이스 모드에서 지원되지 않는 시리얼 옵션 문 전체 목록은 잘못된 시리얼 인터페이스 문을 참조하십시오.
기본 표준 신호 처리로 돌아가려면 다음 예에 표시된 대로 구성에서 , assert
ignore
, , de-assert
또는 auto-synchronize
문을 삭제require
합니다.
[edit] user@host# delete interfaces se-fpc/pic/port dte-options control-leads cts require
정상적인 신호 처리를 명시적으로 구성하려면 옵션의 control-signal
normal
문을 포함합니다.
control-signal normal;
문을 포함하여 모든 제어 리드를 무시하도록 시리얼 인터페이스를 구성할 수 있습니다.ignore-all
ignore-all;
또는 [edit interfaces se-fpc/pic/port serial-options dte-options]
계층 수준에서 다른 신호 처리 옵션을 명시적으로 활성화하지 않는 경우에만 구성에 [edit interfaces se-pim/0/port serial-options dce-options]
명령문을 포함 ignore-all
할 수 있습니다.
다음 계층 수준에서 , cts
, dtr
dcd
indication
dsr
, rts
및 tm
문을 포함control-signal
할 수 있습니다.
[edit interfaces se-pim/0/port serial-options dte-options]
[edit interfaces se-fpc/pic/port serial-options dte-options]
시리얼 DTR 서킷 구성
균형 잡힌 서킷은 위상에서 크기와 반대의 두 개의 전류를 가지고 있습니다. 불균형 회로는 하나의 전류와 지면을 갖는다. 한 쌍의 터미널이 균형을 이루지 못하면 한쪽은 전기 지면에 연결되고 다른 한 쪽은 신호를 전달합니다. 기본적으로 DTR 서킷은 균형이 이루어 졌다.
EIA-530 및 V.35 인터페이스의 경우 문을 포함하여 DTR 서킷을 구성합니다 dtr-circuit
.
dtr-circuit (balanced | unbalanced);
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
시리얼 신호 극성 구성
시리얼 인터페이스는 차동 프로토콜 신호 기술을 사용합니다. 서킷과 연결된 두 개의 시리얼 신호 중 A 신호라고 하는 신호는 플러스 기호로 표시되고 B 신호라고 하는 신호는 마이너스 기호로 표시됩니다. 예를 들어 DTR+ 및 DTR–을 사용합니다. DTR이 낮으면 DTR+와 관련해 DTR+가 부정적입니다. DTR이 높으면 DTR+와 관련해 DTR+가 긍정적입니다.
기본적으로 모든 신호 극성은 긍정적입니다. 주니퍼 네트웍스 직렬 인터페이스에서 이 극성을 되돌릴 수 있습니다. 역극의 결과로 신호가 잘못 배선되는 경우 이를 수행해야 할 수도 있습니다.
EIA-530 및 V.35 인터페이스의 경우, , dcd-polarity
, dsr-polarity
, dtr-polarity
rts-polarity
및 tm-polarity
문을 포함하여 cts-polarity
신호 극성을 구성합니다.
cts-polarity (negative | positive); dcd-polarity (negative | positive); dsr-polarity (negative | positive); dtr-polarity (negative | positive); rts-polarity (negative | positive); tm-polarity (negative | positive);
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
X.21 인터페이스의 경우, 및 indication-polarity
문을 포함하여 control-polarity
신호 극성을 구성합니다.
control-polarity (negative | positive); indication-polarity (negative | positive);
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
시리얼 루프백 기능 구성
라우터에서 원격 라인 인터페이스 유닛(LIU) 루프백은 TX(전송) 데이터와 TX 클럭을 RX(수신) 데이터 및 RX 클럭으로 라우터로 다시 루프합니다. 라인에서, LIU 루프백은 RX 데이터와 RX 클럭을 에 표시된 대로 TX 데이터 및 TX 클럭으로 다시 루프합니다 그림 2.

DCE 로컬 및 DCE 원격은 링크 파트너 DCE에서 로컬 및 원격 루프백을 활성화하기 위한 EIA-530 인터페이스별 신호를 제어합니다. 로컬 루프백은 에 그림 3표시됩니다.

EIA-530 인터페이스의 경우 DCE 로컬, DCE 원격, 로컬 및 원격(LIU) 루프백 기능을 구성할 수 있습니다.
V.35의 경우 원격 LIU 및 로컬 루프백 기능을 구성할 수 있습니다. DCE 로컬 및 DCE 원격 루프백은 V.35 및 X.21 인터페이스에서 지원되지 않습니다. 로컬 및 원격 루프백은 X.21 인터페이스에서 지원되지 않습니다.
직렬 인터페이스에서 루프백 기능을 구성하려면, , dce-remote
또는 옵션을 지정하는 dce-local
문을 포함합니다loopback
.remote
local
loopback mode;
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
루프백 기능을 비활성화하려면 구성에서 문을 제거 loopback
하십시오.
[edit] user@host# delete interfaces se-fpc/pic/port serial-options loopback
명령의 출력 show interface se-fpc/pic/port extensive
에서 오류 카운터를 확인하여 내부 또는 외부 문제가 있는지 여부를 결정할 수 있습니다.
user@host> show interfaces se-fpc/pic/port extensive
시리얼 루프백 기능 구성:
시리얼 라인 인코딩 구성
기본적으로 시리얼 인터페이스는 NRZ(Non-Return to Zero) 라인 인코딩을 사용합니다. 필요한 경우 비-반환을 NRZI(Zero Inverted) 라인 인코딩으로 구성할 수 있습니다.
인터페이스에 NRZI 라인 인코딩을 사용하려면, 옵션을 지정하는 nrzi
문을 포함합니다encoding
.
encoding nrzi;
기본 NRZ 라인 인코딩을 명시적으로 구성하려면, 옵션을 지정하는 nrz
문을 포함합니다encoding
.
encoding nrz;
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit interfaces se-pim/0/port serial-options]
[edit interfaces se-fpc/pic/port serial-options]
라인 인코딩 매개 변수를 설정할 때, 페어링된 포트에 대해 동일한 값을 설정해야 합니다. 포트 0과 1은 동일한 값을 공유해야 합니다.
SRX 디바이스에서 시리얼 인터페이스 구성
이 예에서는 직렬 인터페이스의 초기 구성을 완료하는 방법, 직렬 인터페이스를 삭제하는 방법 및 시리얼 인터페이스 8포트 동기식 시리얼 GPIM을 구성하는 방법을 알아봅니다.
SRX 시리즈 디바이스에서 직렬 PIM 설치에 대한 정보는 브랜치 물리적 인터페이스 모듈 하드웨어 가이드의 SRX 시리즈 서비스 게이트웨이를 참조하십시오.
이 예에서는 다음을 참조하십시오.
- 직렬 인터페이스에서 새 인터페이스를 생성합니다
se-1/0/0
.캡슐화 유형을 ppp로 설정하고 에 대한 기본 구성을 생성합니다
se-1/0/0
.논리적 인터페이스를 0으로 설정하고 논리적 단위 번호는 0에서 16,384까지 다양할 수 있습니다.
논리적 캡슐화 또는 프로토콜 체계와 같은 논리적 인터페이스에서 구성해야 하는 속성에 대한 추가 값을 입력합니다.
에서 IPv4 주소 10.10.10.10/24를
se-1/0/0
설정합니다.
인터페이스를 se-1/0/0
삭제하면 인터페이스가 비활성화되고 소프트웨어 구성에서 제거됩니다. 네트워크 인터페이스는 물리적으로 유지되며 식별자가 J-Web 페이지에 계속 표시됩니다.
기본 시리얼 인터페이스 구성
이 예에서 se-1/0/0이라는 직렬 인터페이스를 생성하고 캡슐화 유형을 ppp로 설정합니다. 이 예를 빠르게 구성하려면 계층 수준에서 CLI 빠른 구성을 [edit]
사용하고 구성 모드에서 커밋합니다.
set interfaces se-1/0/0 encapsulation ppp unit 0 family inet address 10.10.10.10/24
시리얼 인터페이스를 구성하기 위해 다음을 수행 se-1/0/0
합니다.
구성을 성공적으로 완료한 후 명령을 사용하여 매개 변수를 확인합니다 show interfaces se-1/0/0
.
시리얼 인터페이스 삭제
이 예에서는 직렬 인터페이스 se-1/0/0
을(를) 삭제합니다. 인터페이스를 구성하기 전에 디바이스 초기화를 제외한 구성은 필요하지 않습니다.
시리얼 인터페이스를 삭제하려면 다음을 수행 se-1/0/0
합니다.
구성을 성공적으로 완료한 후 명령을 사용하여 구성을 확인합니다 show interfaces
.
예를 들면 다음과 같습니다. 8포트 동기식 시리얼 GPIM에서 시리얼 인터페이스 구성
이 예에서는 8포트 동기식 직렬 GPIM을 사용하여 기본 백투백 디바이스 구성을 수행할 수 있습니다. 디바이스는 데이터 통신 장비(DCE) 및 데이터 터미널 장비(DTE) 모두로 표시됩니다. 특정 구축 시나리오에서 DTE는 직렬 모뎀 또는 암호화자 또는 복호화기일 수 있습니다.
이 시나리오에서는 두 개의 인터페이스를 사용하여 직렬 인터페이스를 구성할 수 있습니다. Cisco HDLC(High-Level Data Link Control), 프레임 릴레이 및 PPP(Point-to-Point Protocol)와 같은 서로 다른 캡슐화를 가진 모든 포트를 구성할 수 있습니다. 프레임 릴레이가 설정되면 데이터 링크 연결 식별자(이 예에서는 111)도 설정해야 합니다. 디바이스 1(SRX650)의 모든 8개 포트는 DTE 모드에서 구성되며 디바이스 2(SRX650)의 각 8개 포트는 DCE 모드에서 구성됩니다.
이 예에서는 디바이스 1의 경우:
에 캡슐화 유형을
ppp
설정하고 논리적 인터페이스0
를 로 설정합니다. 논리적 단위 번호는 0에서 16,384까지 다양할 수 있습니다.논리적 캡슐화 또는 프로토콜 체계와 같은 논리적 인터페이스에서 구성해야 하는 속성에 대한 추가 값을 입력합니다.
시리얼 포트에서 IPv4 주소를 10.10.10.1/24로 설정합니다.
디바이스 2의 경우 디바이스 1과 유사한 절차를 따르지만 클럭 모드를 dce로 설정합니다.
그림 4 은(는) 이 예에서 사용되는 토폴로지 를 보여줍니다.

이 예를 빠르게 구성하려면 계층 수준에서 CLI [edit]
:
디바이스 1
set interfaces se-7/0/0 mtu 9192
set interfaces se-7/0/0 encapsulation ppp
set interfaces se-7/0/0 serial-options clocking-mode internal
set interfaces se-7/0/0 unit 0 family inet address 10.10.10.1/24
set interfaces se-7/0/1 mtu 9192
set interfaces se-7/0/1 encapsulation cisco-hdlc
set interfaces se-7/0/1 serial-options clocking-mode internal
set interfaces se-7/0/1 unit 0 family inet address 11.11.11.1/24
set interfaces se-7/0/2 dce
set interfaces se-7/0/2 mtu 9192
set interfaces se-7/0/2 encapsulation frame-relay
set interfaces se-7/0/2 serial-options clocking-mode internal
set interfaces se-7/0/2 unit 0 dlci 111
set interfaces se-7/0/2 unit 0 family inet address 12.12.12.1/24
set interfaces se-7/0/3 mtu 9192
set interfaces se-7/0/3 encapsulation ppp
set interfaces se-7/0/3 serial-options clocking-mode internal
set interfaces se-7/0/3 unit 0 family inet address 13.13.13.1/24
set interfaces se-7/0/4 mtu 9192
set interfaces se-7/0/4 encapsulation cisco-hdlc
set interfaces se-7/0/4 serial-options clocking-mode internal
set interfaces se-7/0/4 unit 0 family inet address 14.14.14.1/24
set interfaces se-7/0/5 dce
set interfaces se-7/0/5 mtu 9192
set interfaces se-7/0/5 encapsulation frame-relay
set interfaces se-7/0/5 serial-options clocking-mode internal
set interfaces se-7/0/5 unit 0 dlci 112
set interfaces se-7/0/5 unit 0 family inet address 15.15.15.1/24
set interfaces se-7/0/6 mtu 9192
set interfaces se-7/0/6 encapsulation cisco-hdlc
set interfaces se-7/0/6 serial-options clocking-mode internal
set interfaces se-7/0/6 unit 0 family inet address 16.16.16.1/24
set interfaces se-7/0/7 mtu 9192
set interfaces se-7/0/7 encapsulation ppp
set interfaces se-7/0/7 serial-options clocking-mode internal
set interfaces se-7/0/7 unit 0 family inet address 17.17.17.1/24
set routing-options static route 21.21.21.0/24 next-hop 10.10.10.2
set routing-options static route 23.23.23.0/24 next-hop 11.11.11.2
set routing-options static route 25.25.25.0/24 next-hop 12.12.12.2
set routing-options static route 27.27.27.0/24 next-hop 13.13.13.2
set routing-options static route 29.29.29.0/24 next-hop 14.14.14.2
set routing-options static route 31.31.31.0/24 next-hop 15.15.15.2
set routing-options static route 33.33.33.0/24 next-hop 16.16.16.2
set routing-options static route 35.35.35.0/24 next-hop 17.17.17.2
디바이스 2
set interfaces se-3/0/0 mtu 9192
set interfaces se-3/0/0 encapsulation ppp
set interfaces se-3/0/0 serial-options clocking-mode dce
set interfaces se-3/0/0 unit 0 family inet address 10.10.10.2/24
set interfaces se-3/0/1 mtu 9192
set interfaces se-3/0/1 encapsulation cisco-hdlc
set interfaces se-3/0/1 serial-options clocking-mode dce
set interfaces se-3/0/1 unit 0 family inet address 11.11.11.2/24
set interfaces se-3/0/2 dce
set interfaces se-3/0/2 mtu 9192
set interfaces se-3/0/2 encapsulation frame-relay
set interfaces se-3/0/2 serial-options clocking-mode dce
set interfaces se-3/0/2 unit 0 dlci 111
set interfaces se-3/0/2 unit 0 family inet address 12.12.12.2/24
set interfaces se-3/0/3 mtu 9192
set interfaces se-3/0/3 encapsulation ppp
set interfaces se-3/0/3 serial-options clocking-mode dce
set interfaces se-3/0/3 unit 0 family inet address 13.13.13.2/24
set interfaces se-3/0/4 mtu 9192
set interfaces se-3/0/4 encapsulation cisco-hdlc
set interfaces se-3/0/4 serial-options clocking-mode dce
set interfaces se-3/0/4 unit 0 family inet address 14.14.14.2/24
set interfaces se-3/0/5 dce
set interfaces se-3/0/5 mtu 9192
set interfaces se-3/0/5 encapsulation frame-relay
set interfaces se-3/0/5 serial-options clocking-mode dce
set interfaces se-3/0/5 unit 0 dlci 112
set interfaces se-3/0/5 unit 0 family inet address 15.15.15.2/24
set interfaces se-3/0/6 mtu 9192
set interfaces se-3/0/6 encapsulation cisco-hdlc
set interfaces se-3/0/6 serial-options clocking-mode dce
set interfaces se-3/0/6 unit 0 family inet address 16.16.16.2/24
set interfaces se-3/0/7 mtu 9192
set interfaces se-3/0/7 encapsulation ppp
set interfaces se-3/0/7 serial-options clocking-mode dce
set interfaces se-3/0/7 unit 0 family inet address 17.17.17.2/24
set routing-options static route 20.20.20.0/24 next-hop 10.10.10.1
set routing-options static route 22.22.22.0/24 next-hop 11.11.11.1
set routing-options static route 24.24.24.0/24 next-hop 12.12.12.1
set routing-options static route 26.26.26.0/24 next-hop 13.13.13.1
set routing-options static route 28.28.28.0/24 next-hop 14.14.14.1
set routing-options static route 30.30.30.0/24 next-hop 15.15.15.1
set routing-options static route 32.32.32.0/24 next-hop 16.16.16.1
set routing-options static route 34.34.34.0/24 next-hop 17.17.17.1
디바이스 1에서 인터페이스를 구성하려면 다음을 수행합니다.
디바이스 2에서 인터페이스를 구성하려면 다음을 수행합니다.
인터페이스에 대한 MTU 값을 지정합니다.
[edit interfaces] user@host#
set se-3/0/0 mtu 9192
캡슐화 유형을 설정합니다.
[edit interfaces] user@host#
set se-3/0/0 encapsulation ppp
클럭 모드와 같은 직렬 옵션을 설정합니다.
[edit interfaces] user@host#
set se-3/0/0 serial-options clocking-mode dce
시리얼 포트에서 IPv4 주소를 설정합니다.
[edit interfaces] user@host#
set se-3/0/0 unit 0 family inet address 10.10.10.2/24
정적 경로 정보를 지정합니다.
[edit routing-options] user@host#
set static route 20.20.20.0/24 next-hop 10.10.10.1
디바이스 2의 다른 7개 포트에 대해 동일한 구성을 반복합니다.
디바이스 구성을 마친 후 구성을 커밋합니다.
[edit] user@host#
commit
확인
목적
시리얼 인터페이스에 구성된 매개 변수에 대한 정보를 표시합니다.
실행
네트워크의 각 피어 주소에 핑 도구를 사용하여 디바이스의 모든 인터페이스가 작동하는지 확인할 수 있습니다. 모든 인터페이스의 링크 상태를 확인하려면 다음을 수행합니다.
디바이스의 각 인터페이스:
J-Web 인터페이스에서 을(를) 선택합니다
Troubleshoot > Ping Host
.원격 호스트 상자에 링크 상태를 확인하려는 인터페이스의 주소를 입력합니다.
을 클릭합니다
Start
. 출력은 별도의 페이지에 표시됩니다.
PING 10.10.10.10 : 56 data bytes 64 bytes from 10.10.10.10: icmp_seq=0 ttl=255 time=0.382 ms 64 bytes from 10.10.10.10: icmp_seq=1 ttl=255 time=0.266 ms
인터페이스가 작동하면 ICMP 응답을 생성합니다. 이 응답이 수신되면 왕복 시간은 밀리초 단위로 시간 필드에 나열됩니다.
인터페이스 속성이 올바른지 확인하려면 명령을 사용하여
show interfaces detail
인터페이스 정보 요약을 표시합니다. 다음 정보를 확인합니다.물리적 인터페이스가 활성화됩니다. 인터페이스가 비활성화로 표시되는 경우 다음 중 하나를 수행합니다.
CLI 구성 편집기에서 구성 계층의 [편집 인터페이스 se-1/0/0] 수준에서 문을 삭제
disable
합니다.J-Web 구성 편집기에서 인터페이스 > se-1/0/0 페이지의 확인란을 지웁
Disable
니다.
물리적 링크가 업입니다. 다운의 링크 상태는 인터페이스 모듈, 인터페이스 포트 또는 물리적 연결(링크 레이어 오류)의 문제를 나타냅니다.
마지막으로 플랩된 시간은 예상 값입니다. 이는 물리적 인터페이스를 사용할 수 없게 된 후 다시 사용할 수 있게 된 마지막 시간을 나타냅니다. 예기치 않은 플랩핑은 링크 레이어 오류가 발생할 가능성이 있음을 나타냅니다.
트래픽 통계는 예상 입력 및 출력 속도를 반영합니다. 인바운드 및 아웃바운드 바이트 및 패킷 수가 물리적 인터페이스에 대한 예상 처리량과 일치하는지 확인합니다. 통계를 지우고 새로운 변경 사항만 보려면 명령을 사용합니다
clear interfaces statistics se-1/0/0
.
인터페이스 링크 상태가 작동 중인지 확인하려면 명령을 입력합니다
show interface terse se-7/0/*
.user@srx650-1>
show interface terse se-7/0/*
Interface Admin Link Proto Local Remote se-7/0/0 up up se-7/0/0.0 up up inet 10.10.10.1/24 se-7/0/1 up up se-7/0/1.0 up up inet 11.11.11.1/24 se-7/0/2 up up se-7/0/2.0 up up inet 12.12.12.1/24 se-7/0/3 up up se-7/0/3.0 up up inet 13.13.13.1/24 se-7/0/4 up up se-7/0/4.0 up up inet 14.14.14.1/24 se-7/0/5 up up se-7/0/5.0 up up inet 15.15.15.1/24 se-7/0/6 up up se-7/0/6.0 up up inet 16.16.16.1/24 se-7/0/7 up up se-7/0/7.0 up up inet 17.17.17.1/24
출력에는 구성된 모든 인터페이스의 목록이 표시됩니다. 링크 열이 모든 인터페이스에
up
대해 표시되는 경우 구성이 정확합니다. 이렇게 하면 GPIM이 작동하고 엔드 투 엔드 핑이 작동하는지 확인합니다.DCE에 대한 인터페이스 통계를 확인하려면 명령을 사용합니다
show interface se-7/0/0 extensive | no-more
.user@srx650-1>
show interface se-7/0/0 extensive | no-more
Physical interface: se-7/0/0, Enabled, Physical link is Up Interface index: 161, SNMP ifIndex: 592, Generation: 164 Type: Serial, Link-level type: PPP, MTU: 1504, Maximum speed: 8mbps Device flags : Present Running Interface flags: Point-To-Point Internal: 0x0 Link flags : Keepalives Hold-times : Up 0 ms, Down 0 ms Keepalive settings: Interval 10 seconds, Up-count 1, Down-count 3 Keepalive statistics: Input : 123 (last seen 00:00:02 ago) Output: 123 (last sent 00:00:01 ago) LCP state: Opened NCP state: inet: Opened, inet6: Not-configured, iso: Not-configured, mpls: Not-configured CHAP state: Closed PAP state: Closed CoS queues : 8 supported, 8 maximum usable queues Last flapped : 2011-06-27 22:57:24 PDT (00:20:59 ago) Statistics last cleared: Never Traffic statistics: Input bytes : 23792 160 bps Output bytes : 22992 536 bps Input packets: 404 0 pps Output packets: 409 0 pps Input errors: Errors: 3, Drops: 0, Framing errors: 3, Runts: 0, Giants: 0, Policed discards: 0, Resource errors: 0 Output errors: Carrier transitions: 1, Errors: 0, Drops: 0, MTU errors: 0, Resource errors: 0 Egress queues: 8 supported, 4 in use Queue counters: Queued packets Transmitted packets Dropped packets 0 best-effort 0 0 0 1 expedited-fo 0 0 0 2 assured-forw 0 0 0 3 network-cont 409 409 0 Queue number: Mapped forwarding classes 0 best-effort 1 expedited-forwarding 2 assured-forwarding 3 network-control Serial media information: Line protocol: eia530 Resync history: Sync loss count: 0 Data signal: Rx Clock: OK Control signals: Local mode: DCE To DTE: CTS: up, DCD: up, DSR: up From DTE: DTR: up, RTS: up DCE loopback override: Off Clocking mode: internal Loopback: none Tx clock: non-invert Line encoding: nrz Packet Forwarding Engine configuration: Destination slot: 7 CoS information: Direction : Output CoS transmit queue Bandwidth Buffer Priority Limit % bps % usec 0 best-effort 95 7600000 95 0 low none 3 network-control 5 400000 5 0 low none continue................................................................................ ..........................................................................................
출력에는 모든 DCE 검증 매개 변수 및 구성된 모드의 목록이 표시됩니다. 로컬 모드에 DCE가 표시되면 구성이 정확합니다.
DTE에 대한 인터페이스 통계를 확인하려면 명령을 사용합니다
show interface se-3/0/0 extensive | no-more
.user@srx650-2>
show interfaces se-3/0/0 extensive | no-more
Physical interface: se-3/0/0, Enabled, Physical link is Up Interface index: 168, SNMP ifIndex: 594, Generation: 171 Type: Serial, Link-level type: PPP, MTU: 1504, Maximum speed: 8mbps Device flags : Present Running Interface flags: Point-To-Point Internal: 0x0 Link flags : Keepalives Hold-times : Up 0 ms, Down 0 ms Keepalive settings: Interval 10 seconds, Up-count 1, Down-count 3 Keepalive statistics: Input : 242 (last seen 00:00:09 ago) Output: 242 (last sent 00:00:10 ago) LCP state: Opened NCP state: inet: Opened, inet6: Not-configured, iso: Not-configured, mpls: Not-configured CHAP state: Closed PAP state: Closed CoS queues : 8 supported, 8 maximum usable queues Last flapped : 2011-06-27 22:52:06 PDT (00:40:41 ago) Statistics last cleared: Never Traffic statistics: Input bytes : 44582 0 bps Output bytes : 42872 0 bps Input packets: 776 0 pps Output packets: 779 0 pps Input errors: Errors: 6, Drops: 0, Framing errors: 6, Runts: 0, Giants: 0, Policed discards: 0, Resource errors: 0 Output errors: Carrier transitions: 1, Errors: 0, Drops: 0, MTU errors: 0, Resource errors: 0 Egress queues: 8 supported, 4 in use Queue counters: Queued packets Transmitted packets Dropped packets 0 best-effort 2 2 0 1 expedited-fo 0 0 0 2 assured-forw 0 0 0 3 network-cont 777 777 0 Queue number: Mapped forwarding classes 0 best-effort 1 expedited-forwarding 2 assured-forwarding 3 network-control Serial media information: Line protocol: eia530 Resync history: Sync loss count: 0 Data signal: Rx Clock: OK Control signals: Local mode: DTE To DCE: DTR: up, RTS: up From DCE: CTS: up, DCD: up, DSR: up Clocking mode: loop-timed Loopback: none Tx clock: non-invert Line encoding: nrz Packet Forwarding Engine configuration: Destination slot: 3 CoS information: Direction : Output CoS transmit queue Bandwidth Buffer Priority Limit % bps % usec 0 best-effort 95 7600000 95 0 low none 3 network-control 5 400000 5 0 low none continue ........................................................................... .....................................................................................
출력에는 모든 DTE 검증 매개 변수와 구성된 모드의 목록이 표시됩니다. 로컬 모드에 DTE가 표시되면 구성이 정확합니다.