

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# CDN 和集成的测试工具和实用程序参考 MediaTailor
<a name="testing-tools-reference"></a>

AWS Elemental MediaTailor 内容分发网络 (CDN) 集成测试需要各种工具来进行全面的验证和调试。内容分发网络和 MediaTailor 集成测试中常用工具的参考指南。

`curl`-HTTP 请求测试  
测试清单请求：`curl -v "https://your-cdn-domain.com/v1/master/hls/config/master.m3u8"`  
使用标题进行测试：`curl -H "User-Agent: TestAgent/1.0" "https://your-cdn-domain.com/..."`  
使用参数进行测试：`curl "https://your-cdn-domain.com/...?aws.sessionId=test123"`

`ffprobe`-HLS 清单验证  
验证 HLS 语法：`ffprobe -v quiet -print_format json -show_format "https://your-cdn-domain.com/master.m3u8"`  
查看区段信息：`ffprobe -v quiet -show_entries packet=pts_time "segment.ts"`

`mp4box`-DASH 清单验证  
验证 DASH MPD：`mp4box -info "https://your-cdn-domain.com/manifest.mpd"`  
检查分段时间：`mp4box -info segment.m4s`

浏览器开发者工具  
在 “网络” 选项卡中监控网络请求  
在 “控制台” 选项卡中检查 CORS 错误  
检查 request/response 标题  
分析时间和性能指标

**其他资源：**
+ [故障排除 CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Troubleshooting.html)-全面的 CDN 故障排除指南
+ [提高 CloudFront 缓存命中率](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cache-hit-ratio.html)-性能优化指南
+ [监控 AWS 资源](https://docs.aws.amazon.com/wellarchitected/latest/performance-efficiency-pillar/monitor-aws-resources.html)-性能监控最佳实践